unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
161,676
0
void VaapiVideoDecodeAccelerator::Flush() { VLOGF(2) << "Got flush request"; DCHECK(task_runner_->BelongsToCurrentThread()); QueueInputBuffer(media::BitstreamBuffer()); }
8,000
33,278
0
int kvm_arch_prepare_memory_region(struct kvm *kvm, struct kvm_memory_slot *memslot, struct kvm_memory_slot old, struct kvm_userspace_memory_region *mem, bool user_alloc) { int npages = memslot->npages; /* * Only private memory slots need to be mapped here since * KVM_SET_MEMORY_REGION ioctl is n...
8,001
123,554
0
void SavePackage::SaveCanceled(SaveItem* save_item) { file_manager_->RemoveSaveFile(save_item->save_id(), save_item->url(), this); if (save_item->save_id() != -1) BrowserThread::PostTask( BrowserThread::FILE, FROM_HERE, base::Bind(&...
8,002
67,548
0
static int mpage_prepare_extent_to_map(struct mpage_da_data *mpd) { struct address_space *mapping = mpd->inode->i_mapping; struct pagevec pvec; unsigned int nr_pages; long left = mpd->wbc->nr_to_write; pgoff_t index = mpd->first_page; pgoff_t end = mpd->last_page; int tag; int i, err = 0; int blkbits = mpd->in...
8,003
135,767
0
WebTextInputType InputMethodController::TextInputType() const { if (!GetFrame().Selection().IsAvailable()) { return kWebTextInputTypeNone; } if (!RootEditableElementOfSelection(GetFrame().Selection())) return kWebTextInputTypeNone; if (!IsAvailable()) return kWebTextInputTypeNone; Element* elem...
8,004
8,224
0
static void v9fs_mknod(void *opaque) { int mode; gid_t gid; int32_t fid; V9fsQID qid; int err = 0; int major, minor; size_t offset = 7; V9fsString name; struct stat stbuf; V9fsFidState *fidp; V9fsPDU *pdu = opaque; v9fs_string_init(&name); err = pdu_unmarshal(pdu, o...
8,005
142,959
0
void HTMLMediaElement::pause() { BLINK_MEDIA_LOG << "pause(" << (void*)this << ")"; autoplay_policy_->StopAutoplayMutedWhenVisible(); PauseInternal(); }
8,006
84,920
0
SMB2_sess_auth_rawntlmssp_authenticate(struct SMB2_sess_data *sess_data) { int rc; struct cifs_ses *ses = sess_data->ses; struct smb2_sess_setup_req *req; struct smb2_sess_setup_rsp *rsp = NULL; unsigned char *ntlmssp_blob = NULL; bool use_spnego = false; /* else use raw ntlmssp */ u16 blob_length = 0; rc = SM...
8,007
6,757
0
static void ide_sector_write_cb(void *opaque, int ret) { IDEState *s = opaque; int n; if (ret == -ECANCELED) { return; } block_acct_done(blk_get_stats(s->blk), &s->acct); s->pio_aiocb = NULL; s->status &= ~BUSY_STAT; if (ret != 0) { if (ide_handle_rw_error(s, -ret, IDE...
8,008
48,229
0
combineSeparateTileSamples24bits (uint8 *in[], uint8 *out, uint32 cols, uint32 rows, uint32 imagewidth, uint32 tw, uint16 spp, uint16 bps, FILE *dumpfile, int format, int level) { int ready_bits = 0; uint32 src_ro...
8,009
87,810
0
R_API int r_core_cmd0(RCore *core, const char *cmd) { return r_core_cmd (core, cmd, 0); }
8,010
91,912
0
static void sycc_to_rgb(int offset, int upb, int y, int cb, int cr, int *out_r, int *out_g, int *out_b) { int r, g, b; cb -= offset; cr -= offset; r = y + (int)(1.402 * (float)cr); if (r < 0) { r = 0; } else if (r > upb) { r = upb; } *out_r = r; ...
8,011
39,835
0
static inline unsigned char read_buf(struct n_tty_data *ldata, size_t i) { return ldata->read_buf[i & (N_TTY_BUF_SIZE - 1)]; }
8,012
10,728
0
Write_CVT_Stretched( TT_ExecContext exc, FT_ULong idx, FT_F26Dot6 value ) { exc->cvt[idx] = FT_DivFix( value, Current_Ratio( exc ) ); }
8,013
6,258
0
static void virtio_gpu_resource_create_2d(VirtIOGPU *g, struct virtio_gpu_ctrl_command *cmd) { pixman_format_code_t pformat; struct virtio_gpu_simple_resource *res; struct virtio_gpu_resource_create_2d c2d; VIRTIO_GPU_FILL_CMD(c2d); trace_virtio_gpu_cmd_res...
8,014
94,252
0
static enum test_return test_binary_delete_impl(const char *key, uint8_t cmd) { union { protocol_binary_request_no_extras request; protocol_binary_response_no_extras response; char bytes[1024]; } send, receive; size_t len = raw_command(send.bytes, sizeof(send.bytes), cmd, ...
8,015
167,947
0
bool LocalFrame::IsProvisional() const { CHECK_NE(FrameLifecycle::kDetached, lifecycle_.GetState()); if (IsMainFrame()) { return GetPage()->MainFrame() != this; } DCHECK(Owner()); return Owner()->ContentFrame() != this; }
8,016
92,605
0
static inline u64 max_vruntime(u64 max_vruntime, u64 vruntime) { s64 delta = (s64)(vruntime - max_vruntime); if (delta > 0) max_vruntime = vruntime; return max_vruntime; }
8,017
84,824
0
static int tm_dscr_active(struct task_struct *target, const struct user_regset *regset) { if (!cpu_has_feature(CPU_FTR_TM)) return -ENODEV; if (MSR_TM_ACTIVE(target->thread.regs->msr)) return regset->n; return 0; }
8,018
141,710
0
void V8Console::traceCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { ConsoleHelper(info).reportCallWithDefaultArgument(ConsoleAPIType::kTrace, String16("console.trace")); }
8,019
16,181
0
escapeGahpString(const char * input) { static std::string output; if (!input) return NULL; output = ""; unsigned int i = 0; size_t input_len = strlen(input); for (i=0; i < input_len; i++) { if ( input[i] == ' ' || input[i] == '\\' || input[i] == '\r' || input[i] == '\n' ) { output += '\\'; } outp...
8,020
51,302
0
static int php_zip_parse_options(zval *options, long *remove_all_path, char **remove_path, int *remove_path_len, char **add_path, int *add_path_len TSRMLS_DC) /* {{{ */ { zval **option; if (zend_hash_find(HASH_OF(options), "remove_all_path", sizeof("remove_all_path"), (void **)&option) == SUCCESS) { long opt; if...
8,021
86,214
0
static int i8042_enable_aux_port(void) { i8042_ctr &= ~I8042_CTR_AUXDIS; i8042_ctr |= I8042_CTR_AUXINT; if (i8042_command(&i8042_ctr, I8042_CMD_CTL_WCTR)) { i8042_ctr &= ~I8042_CTR_AUXINT; i8042_ctr |= I8042_CTR_AUXDIS; pr_err("Failed to enable AUX port\n"); return -EIO; } return 0; }
8,022
121,315
0
bool GetInfoFromDataURL(const GURL& url, ResourceResponseInfo* info, std::string* data, int* error_code) { std::string mime_type; std::string charset; if (net::DataURL::Parse(url, &mime_type, &charset, data)) { *error_code = net::OK; ...
8,023
174,429
0
static int aacDecoder_drcReadCompression ( HANDLE_FDK_BITSTREAM bs, CDrcPayload *pDrcBs, UINT payloadPosition ) { int bitCnt = 0; int dmxLevelsPresent, extensionPresent, compressionPresent; int coarseGrainTcPresent, fineGrainTcPresent; /* Move to the beginning of the DRC payload field...
8,024
34,874
0
static void nlmclnt_rpc_release(void *data) { nlmclnt_release_call(data); }
8,025
9,730
0
static boolean parse_label( struct translate_ctx *ctx, uint *val ) { const char *cur = ctx->cur; if (parse_uint( &cur, val )) { eat_opt_white( &cur ); if (*cur == ':') { cur++; ctx->cur = cur; return TRUE; } } return FALSE; }
8,026
15,967
0
ImportArrayTIFF_Short ( const TIFF_Manager::TagInfo & tagInfo, const bool nativeEndian, SXMPMeta * xmp, const char * xmpNS, const char * xmpProp ) { try { // Don't let errors with one stop the others. XMP_Uns16 * binPtr = (XMP_Uns16*)tagInfo.dataPtr; xmp->DeleteProperty ( xmpNS, xmpProp ); // ! Don't kee...
8,027
97,369
0
void FrameLoader::clear(bool clearWindowProperties, bool clearScriptObjects, bool clearFrameView) { m_frame->editor()->clear(); if (!m_needsClear) return; m_needsClear = false; if (!m_frame->document()->inPageCache()) { m_frame->document()->cancelParsing(); m_frame->documen...
8,028
186,055
1
scoped_refptr<NGLayoutResult> NGFlexLayoutAlgorithm::Layout() { DCHECK(!NeedMinMaxSize(ConstraintSpace(), Style())) << "Don't support that yet"; borders_ = ComputeBorders(ConstraintSpace(), Style()); padding_ = ComputePadding(ConstraintSpace(), Style()); // TODO(dgrogan): Pass padding+borders as optimization. border_b...
8,029
69,649
0
rend_services_add_filenames_to_lists(smartlist_t *open_lst, smartlist_t *stat_lst) { if (!rend_service_list) return; SMARTLIST_FOREACH_BEGIN(rend_service_list, rend_service_t *, s) { if (!rend_service_is_ephemeral(s)) { rend_service_add_filenames_to_list(open_lst, ...
8,030
158,026
0
LocalFrame* LocalFrameClientImpl::CreateFrame( const AtomicString& name, HTMLFrameOwnerElement* owner_element) { return web_frame_->CreateChildFrame(name, owner_element); }
8,031
125,138
0
void NotifyPluginsOfActivation() { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); for (PluginProcessHostIterator iter; !iter.Done(); ++iter) iter->OnAppActivation(); }
8,032
158,673
0
void GLES2DecoderImpl::DoBlitFramebufferCHROMIUM( GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { const char* func_name = "glBlitFramebufferCHROMIUM"; DCHECK(!ShouldDeferReads() && !ShouldDeferDraws()); if (!Che...
8,033
150,610
0
void DataReductionProxyIOData::SetPingbackReportingFraction( float pingback_reporting_fraction) { DCHECK(io_task_runner_->BelongsToCurrentThread()); ui_task_runner_->PostTask( FROM_HERE, base::BindOnce(&DataReductionProxyService::SetPingbackReportingFraction, service_, pingback_...
8,034
10,591
0
Ins_EIF( void ) { /* nothing to do */ }
8,035
172,096
0
static uint64_t btsnoop_timestamp(void) { struct timeval tv; gettimeofday(&tv, NULL); uint64_t timestamp = tv.tv_sec * 1000 * 1000LL; timestamp += tv.tv_usec; timestamp += BTSNOOP_EPOCH_DELTA; return timestamp; }
8,036
128,837
0
SVGDocumentExtensions::SVGDocumentExtensions(Document* document) : m_document(document) , m_resourcesCache(adoptPtr(new SVGResourcesCache)) #if !ASSERT_DISABLED , m_inRelativeLengthSVGRootsInvalidation(false) #endif { }
8,037
74,417
0
BOOLEAN AnalyzeL2Hdr( PNET_PACKET_INFO packetInfo) { PETH_HEADER dataBuffer = (PETH_HEADER) packetInfo->headersBuffer; if (packetInfo->dataLength < ETH_HEADER_SIZE) return FALSE; packetInfo->ethDestAddr = dataBuffer->DstAddr; if (ETH_IS_BROADCAST(dataBuffer)) { packetInfo->isB...
8,038
74,859
0
static int pva_read_packet(AVFormatContext *s, AVPacket *pkt) { AVIOContext *pb = s->pb; int64_t pva_pts; int ret, length, streamid; if (read_part_of_packet(s, &pva_pts, &length, &streamid, 1) < 0 || (ret = av_get_packet(pb, pkt, length)) <= 0) return AVERROR(EIO); pkt->stream_index...
8,039
114,857
0
void TestingAutomationProvider::BuildSimpleWebKeyEvent( WebKit::WebInputEvent::Type type, int windows_key_code, NativeWebKeyboardEvent* event) { event->nativeKeyCode = 0; event->windowsKeyCode = windows_key_code; event->setKeyIdentifierFromWindowsKeyCode(); event->type = type; event->modifiers = 0...
8,040
125,122
0
void PluginServiceImpl::GetAllowedPluginForOpenChannelToPlugin( int render_process_id, int render_view_id, const GURL& url, const GURL& page_url, const std::string& mime_type, PluginProcessHost::Client* client, ResourceContext* resource_context) { webkit::WebPluginInfo info; bool allow_w...
8,041
80,616
0
GF_Err trun_Size(GF_Box *s) { u32 i, count; GF_TrackFragmentRunBox *ptr = (GF_TrackFragmentRunBox *)s; ptr->size += 4; if (ptr->flags & GF_ISOM_TRUN_DATA_OFFSET) ptr->size += 4; if (ptr->flags & GF_ISOM_TRUN_FIRST_FLAG) ptr->size += 4; count = gf_list_count(ptr->entries); for (i=0; i<count; i++) { if (ptr->f...
8,042
150,524
0
std::string ReadSubresourceFromRenderer(Browser* browser, const GURL& url, bool asynchronous_xhr = true) { static const char asynchronous_script[] = R"((url => { var xhr = new XMLHttpRequest(); xhr.open('GET', url, true); xhr....
8,043
96,129
0
static int timer_load(Unit *u) { Timer *t = TIMER(u); int r; assert(u); assert(u->load_state == UNIT_STUB); r = unit_load_fragment_and_dropin(u); if (r < 0) return r; if (u->load_state == UNIT_LOADED) { if (set_isempty(u->depend...
8,044
71,312
0
static void SetHeaderFromIPL(Image *image, IPLInfo *ipl){ image->columns = ipl->width; image->rows = ipl->height; image->depth = ipl->depth; image->x_resolution = 1; image->y_resolution = 1; }
8,045
36,900
0
xfs_attrlist_by_handle( struct file *parfilp, void __user *arg) { int error = -ENOMEM; attrlist_cursor_kern_t *cursor; xfs_fsop_attrlist_handlereq_t al_hreq; struct dentry *dentry; char *kbuf; if (!capable(CAP_SYS_ADMIN)) return -XFS_ERROR(EPERM); if (copy_from_user(&al_hreq, arg, sizeof(xfs_fsop_at...
8,046
20,111
0
int __sk_mem_schedule(struct sock *sk, int size, int kind) { struct proto *prot = sk->sk_prot; int amt = sk_mem_pages(size); long allocated; int parent_status = UNDER_LIMIT; sk->sk_forward_alloc += amt * SK_MEM_QUANTUM; allocated = sk_memory_allocated_add(sk, amt, &parent_status); /* Under limit. */ if (pare...
8,047
131,212
0
static void anyAttributeAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); v8SetReturnValue(info, imp->anyAttribute().v8Value()); }
8,048
126,040
0
IPC::Message* AutomationProviderBookmarkModelObserver::ReleaseReply() { return reply_message_.release(); }
8,049
91,948
0
static void __blk_rq_prep_clone(struct request *dst, struct request *src) { dst->cpu = src->cpu; dst->__sector = blk_rq_pos(src); dst->__data_len = blk_rq_bytes(src); if (src->rq_flags & RQF_SPECIAL_PAYLOAD) { dst->rq_flags |= RQF_SPECIAL_PAYLOAD; dst->special_vec = src->special_vec; } dst->nr_phys_segments =...
8,050
155,921
0
void PeopleHandler::DisplaySpinner() { configuring_sync_ = true; const int kTimeoutSec = 30; DCHECK(!engine_start_timer_); engine_start_timer_.reset(new base::OneShotTimer()); engine_start_timer_->Start(FROM_HERE, base::TimeDelta::FromSeconds(kTimeoutSec), this, ...
8,051
74,159
0
create_peer_node( int hmode, address_node * addr, attr_val_fifo * options ) { peer_node *my_node; attr_val *option; int freenode; int errflag = 0; my_node = emalloc_zero(sizeof(*my_node)); /* Initialize node values to default */ my_node->peerversion = NTP_VERSION; /* Now set the node to the read values ...
8,052
14,607
0
PHP_FUNCTION(trim) { php_do_trim(INTERNAL_FUNCTION_PARAM_PASSTHRU, 3); }
8,053
111,485
0
void InputHandler::notifyClientOfKeyboardVisibilityChange(bool visible, bool triggeredByFocusChange) { if (!isInputModeEnabled() && visible) return; if (!triggeredByFocusChange && processingChange() && visible) return; if (!m_delayKeyboardVisibilityChange) { m_webPage->showVirtualK...
8,054
133,789
0
X509Certificate* SSLClientSocketOpenSSL::UpdateServerCert() { if (server_cert_.get()) return server_cert_.get(); crypto::ScopedOpenSSL<X509, X509_free> cert(SSL_get_peer_certificate(ssl_)); if (!cert.get()) { LOG(WARNING) << "SSL_get_peer_certificate returned NULL"; return NULL; } STACK_OF(X509)...
8,055
159,886
0
bool TopSitesImpl::IsKnownURL(const GURL& url) { return loaded_ && cache_->IsKnownURL(url); }
8,056
30,913
0
void install_exec_creds(struct linux_binprm *bprm) { security_bprm_committing_creds(bprm); commit_creds(bprm->cred); bprm->cred = NULL; /* * Disable monitoring for regular users * when executing setuid binaries. Must * wait until new credentials are committed * by commit_creds() above */ if (get_dumpab...
8,057
80,284
0
GF_Err name_Size(GF_Box *s) { GF_NameBox *ptr = (GF_NameBox *)s; if (ptr->string) ptr->size += strlen(ptr->string) + 1; return GF_OK; }
8,058
93,919
0
virDomainSetMemoryStatsPeriod(virDomainPtr domain, int period, unsigned int flags) { virConnectPtr conn; VIR_DOMAIN_DEBUG(domain, "period=%d, flags=%x", period, flags); virResetLastError(); virCheckDomainReturn(domain, -1); conn = domain->conn; virCheckReadOnlyG...
8,059
134,883
0
String WebPageSerializerImpl::preActionBeforeSerializeEndTag( const Element* element, SerializeDomParam* param, bool* needSkip) { String result; *needSkip = false; if (!param->isHTMLDocument) return result; if (param->skipMetaElement == element) { *needSkip = true; } else if (is...
8,060
131,464
0
static void longAttributeAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); TestObjectPythonV8Internal::longAttributeAttributeGetter(info); TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); }
8,061
161,321
0
std::unique_ptr<Network::Request> NetworkHandler::CreateRequestFromURLRequest( const net::URLRequest* request) { std::unique_ptr<DictionaryValue> headers_dict(DictionaryValue::create()); for (net::HttpRequestHeaders::Iterator it(request->extra_request_headers()); it.GetNext();) { headers_dict->setStr...
8,062
38,595
0
int sta_info_insert(struct sta_info *sta) { int err = sta_info_insert_rcu(sta); rcu_read_unlock(); return err; }
8,063
92,680
0
set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) { /* 'current' is not kept within the tree. */ if (se->on_rq) { /* * Any task has to be enqueued before it get to execute on * a CPU. So account for the time it spent waiting on the * runqueue. */ update_stats_wait_end(cfs_rq, se); __de...
8,064
159,030
0
void PDFiumEngine::StartFind(const std::string& text, bool case_sensitive) { DCHECK(!text.empty()); if (pages_.empty()) return; bool first_search = (current_find_text_ != text); int character_to_start_searching_from = 0; if (first_search) { std::vector<PDFiumRange> old_selection = selection_; St...
8,065
26,817
0
static int mem_open(struct inode* inode, struct file* file) { file->private_data = (void*)((long)current->self_exec_id); /* OK to pass negative loff_t, we can catch out-of-range */ file->f_mode |= FMODE_UNSIGNED_OFFSET; return 0; }
8,066
138,683
0
ui::AXTreeIDRegistry::AXTreeID RenderFrameHostImpl::GetAXTreeID() { return ui::AXTreeIDRegistry::GetInstance()->GetOrCreateAXTreeID( GetProcess()->GetID(), routing_id_); }
8,067
37,255
0
static u32 vmx_get_preemption_timer_value(struct kvm_vcpu *vcpu) { ktime_t remaining = hrtimer_get_remaining(&to_vmx(vcpu)->nested.preemption_timer); u64 value; if (ktime_to_ns(remaining) <= 0) return 0; value = ktime_to_ns(remaining) * vcpu->arch.virtual_tsc_khz; do_div(value, 1000000); return value >> VMX...
8,068
2,316
0
_PUBLIC_ size_t strlen_m_ext_term(const char *s, const charset_t src_charset, const charset_t dst_charset) { if (!s) { return 0; } return strlen_m_ext(s, src_charset, dst_charset) + 1; }
8,069
141,718
0
void V8Debugger::asyncTaskCanceled(void* task) { if (!m_maxAsyncCallStackDepth) return; m_asyncTaskStacks.erase(task); m_recurringTasks.erase(task); }
8,070
137,482
0
bool RunLoop::IsRunningOnCurrentThread() { Delegate* delegate = tls_delegate.Get().Get(); return delegate && !delegate->active_run_loops_.empty(); }
8,071
117,219
0
void GLES2DecoderImpl::DoCompressedTexSubImage2D( GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei image_size, const void * data) { TextureManager::TextureInfo* info = GetTextureInfoForTarget(target); if (!info) { SetGLError(GL_INV...
8,072
153,453
0
void TabStrip::PaintChildren(const views::PaintInfo& paint_info) { bool is_dragging = false; Tab* active_tab = nullptr; Tabs tabs_dragging; Tabs selected_and_hovered_tabs; const auto paint_or_add_to_tabs = [&paint_info, &selected_and_hovered_tabs](Tab* tab) { if (tab-...
8,073
121,335
0
void set_client(WebURLLoaderClient* client) { client_ = client; }
8,074
161,494
0
TargetHandler::Throttle::~Throttle() { CleanupPointers(); }
8,075
155,324
0
void ChromeContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( std::vector<std::string>* additional_allowed_schemes) { ContentBrowserClient::GetAdditionalAllowedSchemesForFileSystem( additional_allowed_schemes); additional_allowed_schemes->push_back(content::kChromeDevToolsScheme); additiona...
8,076
80,510
0
void subs_del(GF_Box *s) { GF_SubSampleInformationBox *ptr = (GF_SubSampleInformationBox *)s; if (ptr == NULL) return; while (gf_list_count(ptr->Samples)) { GF_SubSampleInfoEntry *pSamp; pSamp = (GF_SubSampleInfoEntry*)gf_list_get(ptr->Samples, 0); while (gf_list_count(pSamp->SubSamples)) { GF_SubSampleEnt...
8,077
187,036
1
void Document::InitContentSecurityPolicy( ContentSecurityPolicy* csp, const ContentSecurityPolicy* policy_to_inherit, const ContentSecurityPolicy* previous_document_csp) { SetContentSecurityPolicy(csp ? csp : ContentSecurityPolicy::Create()); GetContentSecurityPolicy()->BindToExecutionContext(this); // ...
8,078
4,194
0
tt_cmap6_char_next( TT_CMap cmap, FT_UInt32 *pchar_code ) { FT_Byte* table = cmap->data; FT_UInt32 result = 0; FT_UInt32 char_code = *pchar_code + 1; FT_UInt gindex = 0; FT_Byte* p = table + 6; FT_UInt start = TT_NEXT_USHORT( p );...
8,079
34,748
0
static int ext4_ext_grow_indepth(handle_t *handle, struct inode *inode, struct ext4_ext_path *path, struct ext4_extent *newext) { struct ext4_ext_path *curp = path; struct ext4_extent_header *neh; struct buffer_head *bh; ext4_fsblk_t newblock; int err = 0; newblock = ext4_ext_new_meta_block(handle, ino...
8,080
54,646
0
void snd_seq_info_queues_read(struct snd_info_entry *entry, struct snd_info_buffer *buffer) { int i, bpm; struct snd_seq_queue *q; struct snd_seq_timer *tmr; for (i = 0; i < SNDRV_SEQ_MAX_QUEUES; i++) { if ((q = queueptr(i)) == NULL) continue; tmr = q->timer; if (tmr->tempo) bpm = 60000000 /...
8,081
32,634
0
static int tg3_nvram_lock(struct tg3 *tp) { if (tg3_flag(tp, NVRAM)) { int i; if (tp->nvram_lock_cnt == 0) { tw32(NVRAM_SWARB, SWARB_REQ_SET1); for (i = 0; i < 8000; i++) { if (tr32(NVRAM_SWARB) & SWARB_GNT1) break; udelay(20); } if (i == 8000) { tw32(NVRAM_SWARB, SWARB_REQ_CLR1); ...
8,082
31,077
0
static int dcb_app_add(const struct dcb_app *app, int ifindex) { struct dcb_app_type *entry; entry = kmalloc(sizeof(*entry), GFP_ATOMIC); if (!entry) return -ENOMEM; memcpy(&entry->app, app, sizeof(*app)); entry->ifindex = ifindex; list_add(&entry->list, &dcb_app_list); return 0; }
8,083
27,826
0
static void br_multicast_port_group_query_expired(unsigned long data) { struct net_bridge_port_group *pg = (void *)data; struct net_bridge_port *port = pg->port; struct net_bridge *br = port->br; spin_lock(&br->multicast_lock); if (!netif_running(br->dev) || hlist_unhashed(&pg->mglist) || pg->queries_sent >=...
8,084
120,782
0
void BluetoothAdapterChromeOS::OnStopDiscovery(const base::Closure& callback) { callback.Run(); }
8,085
86,428
0
static void set_page_huge_active(struct page *page) { VM_BUG_ON_PAGE(!PageHeadHuge(page), page); SetPagePrivate(&page[1]); }
8,086
76,325
0
xfs_attr_remove( struct xfs_inode *dp, const unsigned char *name, int flags) { struct xfs_mount *mp = dp->i_mount; struct xfs_da_args args; struct xfs_defer_ops dfops; xfs_fsblock_t firstblock; int error; XFS_STATS_INC(mp, xs_attr_remove); if (XFS_FORCED_SHUTDOWN(dp->i_mount)) return -EIO; error = ...
8,087
93,893
0
virDomainPMWakeup(virDomainPtr dom, unsigned int flags) { virConnectPtr conn; VIR_DOMAIN_DEBUG(dom, "flags=%x", flags); virResetLastError(); virCheckDomainReturn(dom, -1); conn = dom->conn; virCheckReadOnlyGoto(conn->flags, error); if (conn->driver->domainPMWakeup) { ...
8,088
39,624
0
long do_futex(u32 __user *uaddr, int op, u32 val, ktime_t *timeout, u32 __user *uaddr2, u32 val2, u32 val3) { int clockrt, ret = -ENOSYS; int cmd = op & FUTEX_CMD_MASK; int fshared = 0; if (!(op & FUTEX_PRIVATE_FLAG)) fshared = 1; clockrt = op & FUTEX_CLOCK_REALTIME; if (clockrt && cmd != FUTEX_WAIT_BITSET ...
8,089
134,543
0
void WebContentsViewAura::SetInitialFocus() { if (web_contents_->FocusLocationBarByDefault()) web_contents_->SetFocusToLocationBar(false); else Focus(); }
8,090
100,509
0
void Cache::remove(CachedResource* resource) { if (resource->inCache()) { m_resources.remove(resource->url()); resource->setInCache(false); removeFromLRUList(resource); removeFromLiveDecodedResourcesList(resource); HashSet<DocLoader*>::iterator end = m_docLoaders.en...
8,091
156,329
0
bool MediaRecorder::isTypeSupported(ExecutionContext* context, const String& type) { std::unique_ptr<WebMediaRecorderHandler> handler = Platform::Current()->CreateMediaRecorderHandler( context->GetTaskRunner(TaskType::kInternalMediaRealTime)); if (!handler) re...
8,092
178,964
1
void ptrace_triggered(struct perf_event *bp, int nmi, struct perf_sample_data *data, struct pt_regs *regs) { struct perf_event_attr attr; /* * Disable the breakpoint request here since ptrace has defined a * one-shot behaviour for breakpoint exceptions in PPC64. * The SIGTRAP signal is generated aut...
8,093
177,396
0
const BlockEntry* Cluster::GetEntry(const CuePoint& cp, const CuePoint::TrackPosition& tp) const { assert(m_pSegment); const long long tc = cp.GetTimeCode(); if (tp.m_block > 0) { const long block = static_cast<long>(tp.m_block); const long index = block - 1; while (index >= m_entries_count) { long long pos;...
8,094
101,519
0
void PrintWebViewHelper::PrintPreviewContext::OnPrintPreview() { DCHECK_EQ(INITIALIZED, state_); ClearContext(); }
8,095
21,180
0
struct cg_proto *tcp_proto_cgroup(struct mem_cgroup *memcg) { if (!memcg || mem_cgroup_is_root(memcg)) return NULL; return &memcg->tcp_mem.cg_proto; }
8,096
77,723
0
parse_instruction_ids(struct ofpbuf *payload, bool loose, uint32_t *insts) { *insts = 0; while (payload->size > 0) { enum ovs_instruction_type inst; enum ofperr error; uint64_t ofpit; /* OF1.3 and OF1.4 aren't clear about padding in the instruction IDs. * It seems clear...
8,097
68,831
0
static __always_inline int alloc_block(struct kmem_cache *cachep, struct array_cache *ac, struct page *page, int batchcount) { /* * There must be at least one object available for * allocation. */ BUG_ON(page->active >= cachep->num); while (page->active < cachep->num && batchcount--) { STATS_INC_ALLOCED(c...
8,098
127,115
0
int ComputeConsumedBytes(int initial_bytes_enqueued, int initial_bytes_buffered) { int byte_delta = bytes_enqueued_ - initial_bytes_enqueued; int buffered_delta = algorithm_.bytes_buffered() - initial_bytes_buffered; int consumed = byte_delta - buffered_delta; CHECK_GE(cons...
8,099