unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
59,105
0
static int check_call(struct bpf_verifier_env *env, int func_id, int insn_idx) { const struct bpf_func_proto *fn = NULL; struct bpf_reg_state *regs; struct bpf_call_arg_meta meta; bool changes_data; int i, err; /* find function prototype */ if (func_id < 0 || func_id >= __BPF_FUNC_MAX_ID) { verbose(env, "inva...
15,400
56,820
0
int usb_new_device(struct usb_device *udev) { int err; if (udev->parent) { /* Initialize non-root-hub device wakeup to disabled; * device (un)configuration controls wakeup capable * sysfs power/wakeup controls wakeup enabled/disabled */ device_init_wakeup(&udev->dev, 0); } /* Tell the runtime-PM fram...
15,401
149,889
0
void LayerTreeHostImpl::AnimatePendingTreeAfterCommit() { AnimateInternal(false); }
15,402
65,298
0
nfs3svc_release_fhandle2(struct svc_rqst *rqstp, __be32 *p, struct nfsd3_fhandle_pair *resp) { fh_put(&resp->fh1); fh_put(&resp->fh2); return 1; }
15,403
57,239
0
static inline int nfs4_server_supports_acls(struct nfs_server *server) { return server->caps & NFS_CAP_ACLS; }
15,404
144,887
0
void RenderWidgetHostViewAura::CopyFromSurface( const gfx::Rect& src_subrect, const gfx::Size& dst_size, const ReadbackRequestCallback& callback, const SkColorType preferred_color_type) { if (!IsSurfaceAvailableForCopy()) { callback.Run(SkBitmap(), READBACK_SURFACE_UNAVAILABLE); return; } ...
15,405
121,806
0
int UDPSocketWin::SendToOrWrite(IOBuffer* buf, int buf_len, const IPEndPoint* address, const CompletionCallback& callback) { DCHECK(CalledOnValidThread()); DCHECK_NE(INVALID_SOCKET, socket_); DCHECK(write_callback_.is_...
15,406
160,368
0
void LargeObjectArena::freeLargeObjectPage(LargeObjectPage* object) { ASAN_UNPOISON_MEMORY_REGION(object->payload(), object->payloadSize()); object->heapObjectHeader()->finalize(object->payload(), object->payloadSize()); getThreadState()->heap().heapStats().decreaseAllocated...
15,407
157,347
0
blink::WebSize WebMediaPlayerImpl::VisibleRect() const { DCHECK(main_task_runner_->BelongsToCurrentThread()); scoped_refptr<VideoFrame> video_frame = GetCurrentFrameFromCompositor(); if (!video_frame) return blink::WebSize(); const gfx::Rect& visible_rect = video_frame->visible_rect(); return blink::WebS...
15,408
24,505
0
cleanup_volume_info(struct smb_vol **pvolume_info) { struct smb_vol *volume_info; if (!pvolume_info || !*pvolume_info) return; volume_info = *pvolume_info; kzfree(volume_info->password); kfree(volume_info->UNC); kfree(volume_info->prepath); kfree(volume_info); *pvolume_info = NULL; return; }
15,409
43,052
0
void luaD_reallocCI (lua_State *L, int newsize) { CallInfo *oldci = L->base_ci; luaM_reallocvector(L, L->base_ci, L->size_ci, newsize, CallInfo); L->size_ci = newsize; L->ci = (L->ci - oldci) + L->base_ci; L->end_ci = L->base_ci + L->size_ci - 1; }
15,410
59,106
0
static int check_cfg(struct bpf_verifier_env *env) { struct bpf_insn *insns = env->prog->insnsi; int insn_cnt = env->prog->len; int ret = 0; int i, t; insn_state = kcalloc(insn_cnt, sizeof(int), GFP_KERNEL); if (!insn_state) return -ENOMEM; insn_stack = kcalloc(insn_cnt, sizeof(int), GFP_KERNEL); if (!insn_...
15,411
141,320
0
Range* Document::createRange() { return Range::Create(*this); }
15,412
2,045
0
parse_options(const char *data, struct parsed_mount_info *parsed_info) { char *value = NULL; char *equals = NULL; char *next_keyword = NULL; char *out = parsed_info->options; unsigned long *filesys_flags = &parsed_info->flags; int out_len = 0; int word_len; int rc = 0; int got_uid = 0; int got_cruid = 0; int...
15,413
173,814
0
void SoftGSM::initPorts() { OMX_PARAM_PORTDEFINITIONTYPE def; InitOMXParams(&def); def.nPortIndex = 0; def.eDir = OMX_DirInput; def.nBufferCountMin = kNumBuffers; def.nBufferCountActual = def.nBufferCountMin; def.nBufferSize = 1024 / kMSGSMFrameSize * kMSGSMFrameSize; def.bEnabled = OMX_TR...
15,414
157,782
0
const std::string& WebContentsImpl::GetMediaDeviceGroupIDSaltBase() const { return media_device_group_id_salt_base_; }
15,415
47,432
0
static inline u8 *cbc_crypt(const u8 *in, u8 *out, u32 *key, u8 *iv, struct cword *cword, int count) { /* Padlock in CBC mode fetches at least cbc_fetch_bytes of data. */ if (unlikely(((unsigned long)in & ~PAGE_MASK) + cbc_fetch_bytes > PAGE_SIZE)) return cbc_crypt_copy(in, out, key, iv, cword, count); ret...
15,416
46,044
0
xdr_chrand_arg(XDR *xdrs, chrand_arg *objp) { if (!xdr_ui_4(xdrs, &objp->api_version)) { return (FALSE); } if (!xdr_krb5_principal(xdrs, &objp->princ)) { return (FALSE); } return (TRUE); }
15,417
57,332
0
ZEND_API zend_bool zend_is_executing(void) /* {{{ */ { return EG(current_execute_data) != 0; } /* }}} */
15,418
14,968
0
ProcCreateWindow(ClientPtr client) { WindowPtr pParent, pWin; REQUEST(xCreateWindowReq); int len, rc; REQUEST_AT_LEAST_SIZE(xCreateWindowReq); LEGAL_NEW_RESOURCE(stuff->wid, client); rc = dixLookupWindow(&pParent, stuff->parent, client, DixAddAccess); if (rc != Success) return rc;...
15,419
181,389
1
static int set_register(pegasus_t *pegasus, __u16 indx, __u8 data) { int ret; ret = usb_control_msg(pegasus->usb, usb_sndctrlpipe(pegasus->usb, 0), PEGASUS_REQ_SET_REG, PEGASUS_REQT_WRITE, data, indx, &data, 1, 1000); if (ret < 0) netif_dbg(pegasus, drv, pegasus->net, "%s returned %d\n", __func__, ret); retur...
15,420
126,716
0
void BrowserView::BookmarkBarStateChanged( BookmarkBar::AnimateChangeType change_type) { if (bookmark_bar_view_.get()) { bookmark_bar_view_->SetBookmarkBarState( browser_->bookmark_bar_state(), change_type, browser_->search_model()->mode()); } if (MaybeShowBookmarkBar(GetActiveTabContents(...
15,421
181,299
1
static struct sock *dccp_v6_request_recv_sock(const struct sock *sk, struct sk_buff *skb, struct request_sock *req, struct dst_entry *dst, struct request_sock *req_unhash, bool *own_req) { struct inet_request_sock *ireq = inet_rsk(req); struct ipv6_pinfo *newnp; ...
15,422
68,589
0
SYSCALL_DEFINE1(shmdt, char __user *, shmaddr) { struct mm_struct *mm = current->mm; struct vm_area_struct *vma; unsigned long addr = (unsigned long)shmaddr; int retval = -EINVAL; #ifdef CONFIG_MMU loff_t size = 0; struct file *file; struct vm_area_struct *next; #endif if (addr & ~PAGE_MASK) return retval; ...
15,423
135,203
0
void Document::didInsertText(Node* text, unsigned offset, unsigned length) { for (Range* range : m_ranges) range->didInsertText(text, offset, length); m_markers->shiftMarkers(text, offset, length); }
15,424
31,053
0
static size_t rtnl_link_get_size(const struct net_device *dev) { const struct rtnl_link_ops *ops = dev->rtnl_link_ops; size_t size; if (!ops) return 0; size = nla_total_size(sizeof(struct nlattr)) + /* IFLA_LINKINFO */ nla_total_size(strlen(ops->kind) + 1); /* IFLA_INFO_KIND */ if (ops->get_size) /...
15,425
75,929
0
data_cmd(thread_t * thread) { smtp_t *smtp = THREAD_ARG(thread); if (send(thread->u.fd, SMTP_DATA_CMD, strlen(SMTP_DATA_CMD), 0) == -1) smtp->stage = ERROR; return 0; }
15,426
14,382
0
do_authenticated(Authctxt *authctxt) { setproctitle("%s", authctxt->pw->pw_name); /* setup the channel layer */ /* XXX - streamlocal? */ if (no_port_forwarding_flag || (options.allow_tcp_forwarding & FORWARD_LOCAL) == 0) channel_disable_adm_local_opens(); else channel_permit_all_opens(); auth_debug_sen...
15,427
137,740
0
void HeadlessWebContentsImpl::Close() { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); browser_context()->DestroyWebContents(this); }
15,428
180,577
1
static int snd_timer_user_open(struct inode *inode, struct file *file) { struct snd_timer_user *tu; int err; err = nonseekable_open(inode, file); if (err < 0) return err; tu = kzalloc(sizeof(*tu), GFP_KERNEL); if (tu == NULL) return -ENOMEM; spin_lock_init(&tu->qlock); init_waitqueue_head(&tu->qchange_sleep); mutex_...
15,429
49,215
0
static void prb_setup_retire_blk_timer(struct packet_sock *po) { struct tpacket_kbdq_core *pkc; pkc = GET_PBDQC_FROM_RB(&po->rx_ring); prb_init_blk_timer(po, pkc, prb_retire_rx_blk_timer_expired); }
15,430
163,686
0
xmlBufShrink(xmlBufPtr buf, size_t len) { if ((buf == NULL) || (buf->error != 0)) return(0); CHECK_COMPAT(buf) if (len == 0) return(0); if (len > buf->use) return(0); buf->use -= len; if ((buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) || ((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->content...
15,431
20,970
0
static inline void set_IF(struct kernel_vm86_regs *regs) { VEFLAGS |= X86_EFLAGS_VIF; if (VEFLAGS & X86_EFLAGS_VIP) return_to_32bit(regs, VM86_STI); }
15,432
32,369
0
static int m_show(struct seq_file *m, void *v) { struct proc_mounts *p = proc_mounts(m); struct mount *r = list_entry(v, struct mount, mnt_list); return p->show(m, &r->mnt); }
15,433
164,930
0
ResourceDispatcherHostImpl::GetInterestingPerFrameLoadInfos() { auto infos = std::make_unique<LoadInfoList>(); std::map<GlobalFrameRoutingId, LoadInfo> frame_infos; for (const auto& loader : pending_loaders_) { net::URLRequest* request = loader.second->request(); net::UploadProgress upload_progress = requ...
15,434
110,214
0
void NaClProcessHost::OnAttachDebugExceptionHandler(const std::string& info, IPC::Message* reply_msg) { if (!AttachDebugExceptionHandler(info, reply_msg)) { NaClProcessMsg_AttachDebugExceptionHandler::WriteReplyParams(reply_msg, ...
15,435
164,259
0
void AppCacheUpdateJob::OnDestructionImminent(AppCacheHost* host) { auto found = pending_master_entries_.find(host->pending_master_entry_url()); CHECK(found != pending_master_entries_.end()); PendingHosts& hosts = found->second; auto it = std::find(hosts.begin(), hosts.end(), host); CHECK(it != hosts.end()); ...
15,436
86,898
0
static TEE_Result tee_svc_obj_generate_key_rsa( struct tee_obj *o, const struct tee_cryp_obj_type_props *type_props, uint32_t key_size, const TEE_Attribute *params, uint32_t param_count) { TEE_Result res; struct rsa_keypair *key = o->attr; uint32_t e = TEE_U32_TO_BIG_ENDIAN(65537); /* Copy the present attribute...
15,437
34,432
0
long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg) { struct btrfs_ioctl_space_args space_args; struct btrfs_ioctl_space_info space; struct btrfs_ioctl_space_info *dest; struct btrfs_ioctl_space_info *dest_orig; struct btrfs_ioctl_space_info __user *user_dest; struct btrfs_space_info *info; u6...
15,438
144,602
0
void WebContentsImpl::OnEndColorChooser(int color_chooser_id) { if (color_chooser_info_ && color_chooser_id == color_chooser_info_->identifier) color_chooser_info_->chooser->End(); }
15,439
85,792
0
int ocfs2_change_file_space(struct file *file, unsigned int cmd, struct ocfs2_space_resv *sr) { struct inode *inode = file_inode(file); struct ocfs2_super *osb = OCFS2_SB(inode->i_sb); int ret; if ((cmd == OCFS2_IOC_RESVSP || cmd == OCFS2_IOC_RESVSP64) && !ocfs2_writes_unwritten_extents(osb)) return ...
15,440
64,353
0
static int cmd_resize(void *data, const char *input) { RCore *core = (RCore *)data; ut64 oldsize, newsize = 0; st64 delta = 0; int grow, ret; if (core->file && core->file->desc) oldsize = r_io_desc_size (core->io, core->file->desc); else oldsize = 0; switch (*input) { case '2': r_sys_cmdf ("radare%s", inpu...
15,441
23,762
0
static inline int bond_slave_override(struct bonding *bond, struct sk_buff *skb) { int i, res = 1; struct slave *slave = NULL; struct slave *check_slave; if (!skb->queue_mapping) return 1; /* Find out if any slaves have the same mapping as this skb. */ bond_for_each_slave(bond, check_slave, i) { i...
15,442
119,012
0
void WebContentsImpl::RenderViewForInterstitialPageCreated( RenderViewHost* render_view_host) { FOR_EACH_OBSERVER(WebContentsObserver, observers_, RenderViewForInterstitialPageCreated(render_view_host)); }
15,443
17,259
0
CatalogueUnrefFPEs (FontPathElementPtr fpe) { CataloguePtr cat = fpe->private; FontPathElementPtr subfpe; int i; for (i = 0; i < cat->fpeCount; i++) { subfpe = cat->fpeList[i]; subfpe->refcount--; if (subfpe->refcount == 0) { FontFileFreeFPE (subfpe); xfree(subfpe->name); xfree...
15,444
44,415
0
static int lxcfs_read(const char *path, char *buf, size_t size, off_t offset, struct fuse_file_info *fi) { if (strncmp(path, "/cgroup", 7) == 0) return cg_read(path, buf, size, offset, fi); if (strncmp(path, "/proc", 5) == 0) return proc_read(path, buf, size, offset, fi); return -EINVAL; }
15,445
88,559
0
MagickExport MagickBooleanType SetBlobExtent(Image *image, const MagickSizeType extent) { BlobInfo *magick_restrict blob_info; assert(image != (Image *) NULL); assert(image->signature == MagickCoreSignature); if (image->debug != MagickFalse) (void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",ima...
15,446
27,807
0
void br_multicast_add_port(struct net_bridge_port *port) { port->multicast_router = 1; setup_timer(&port->multicast_router_timer, br_multicast_router_expired, (unsigned long)port); setup_timer(&port->multicast_query_timer, br_multicast_port_query_expired, (unsigned long)port); }
15,447
18,612
0
SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen) { struct socket *sock; struct sockaddr_storage address; int err, fput_needed; sock = sockfd_lookup_light(fd, &err, &fput_needed); if (sock) { err = move_addr_to_kernel(umyaddr, addrlen, &address); if (err >= 0) { err = security...
15,448
117,320
0
xmlXPtrLocationSetMerge(xmlLocationSetPtr val1, xmlLocationSetPtr val2) { int i; if (val1 == NULL) return(NULL); if (val2 == NULL) return(val1); /* * !!!!! this can be optimized a lot, knowing that both * val1 and val2 already have unicity of their values. */ for (i = 0;i < v...
15,449
25,246
0
armv6pmu_disable_event(struct hw_perf_event *hwc, int idx) { unsigned long val, mask, evt, flags; if (ARMV6_CYCLE_COUNTER == idx) { mask = ARMV6_PMCR_CCOUNT_IEN; evt = 0; } else if (ARMV6_COUNTER0 == idx) { mask = ARMV6_PMCR_COUNT0_IEN | ARMV6_PMCR_EVT_COUNT0_MASK; evt = ARMV6_PERFCTR_NOP << ARMV6_...
15,450
171,354
0
void OMXCodec::on_message(const omx_message &msg) { if (mState == ERROR) { /* * only drop EVENT messages, EBD and FBD are still * processed for bookkeeping purposes */ if (msg.type == omx_message::EVENT) { ALOGW("Dropping OMX EVENT message - we're in ERROR state."); return; }...
15,451
164,557
0
static void countInverse(sqlite3_context *ctx, int argc, sqlite3_value **argv){ CountCtx *p; p = sqlite3_aggregate_context(ctx, sizeof(*p)); /* p is always non-NULL since countStep() will have been called first */ if( (argc==0 || SQLITE_NULL!=sqlite3_value_type(argv[0])) && ALWAYS(p) ){ p->n--; #ifdef SQLIT...
15,452
165,227
0
void ArcVoiceInteractionFrameworkService::OnConnectionReady() { DCHECK_CURRENTLY_ON(content::BrowserThread::UI); if (is_request_pending_) { is_request_pending_ = false; if (is_pending_request_toggle_) { mojom::VoiceInteractionFrameworkInstance* framework_instance = ARC_GET_INSTANCE_FOR_METH...
15,453
110,524
0
void GLES2DecoderImpl::DoVertexAttrib2f(GLuint index, GLfloat v0, GLfloat v1) { VertexAttribManager::VertexAttribInfo* info = vertex_attrib_manager_->GetVertexAttribInfo(index); if (!info) { SetGLError(GL_INVALID_VALUE, "glVertexAttrib2f", "index out of range"); return; } VertexAttribManager::Vert...
15,454
142,298
0
bool ChromePasswordManagerClient::IsFillingEnabled(const GURL& url) const { const bool ssl_errors = net::IsCertStatusError(GetMainFrameCertStatus()); if (log_manager_->IsLoggingActive()) { password_manager::BrowserSavePasswordProgressLogger logger( log_manager_.get()); logger.LogBoolean(Logger::STR...
15,455
141,127
0
bool Document::IsDelayingLoadEvent() { if (ThreadState::Current()->SweepForbidden()) { if (!load_event_delay_count_) CheckLoadEventSoon(); return true; } return load_event_delay_count_; }
15,456
147,846
0
static void ShortAttributeAttributeSetter( v8::Local<v8::Value> v8_value, const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Isolate* isolate = info.GetIsolate(); ALLOW_UNUSED_LOCAL(isolate); v8::Local<v8::Object> holder = info.Holder(); ALLOW_UNUSED_LOCAL(holder); TestObject* impl = V8TestObject::T...
15,457
29,919
0
static int uid_m_show(struct seq_file *seq, void *v) { struct user_namespace *ns = seq->private; struct uid_gid_extent *extent = v; struct user_namespace *lower_ns; uid_t lower; lower_ns = seq_user_ns(seq); if ((lower_ns == ns) && lower_ns->parent) lower_ns = lower_ns->parent; lower = from_kuid(lower_ns, KUI...
15,458
147,743
0
void V8TestObject::ReadonlyDOMTimeStampMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_readonlyDOMTimeStampMethod"); test_object_v8_internal::ReadonlyDOMTimeStampMethodMethod(info); }
15,459
87,856
0
callout_tag_table_new(CalloutTagTable** rt) { CalloutTagTable* t; *rt = 0; t = onig_st_init_strend_table_with_size(INIT_TAG_NAMES_ALLOC_NUM); CHECK_NULL_RETURN_MEMERR(t); *rt = t; return ONIG_NORMAL; }
15,460
10,999
0
inline static char xml_decode_iso_8859_1(unsigned short c) { return (char)(c > 0xff ? '?' : c); }
15,461
134,513
0
void WebContentsViewAura::OnDragEntered(const ui::DropTargetEvent& event) { if (drag_dest_delegate_) drag_dest_delegate_->DragInitialize(web_contents_); current_drop_data_.reset(new DropData()); PrepareDropData(current_drop_data_.get(), event.data()); blink::WebDragOperationsMask op = ConvertToWeb(event.s...
15,462
64,731
0
int dns_packet_append_rr(DnsPacket *p, const DnsResourceRecord *rr, const DnsAnswerFlags flags, size_t *start, size_t *rdata_start) { size_t saved_size, rdlength_offset, end, rdlength, rds; uint32_t ttl; int r; assert(p); assert(rr); saved_size = p->size; r = ...
15,463
72,068
0
static void _fb_wrunlock(void) { slurm_mutex_lock(&file_bcast_mutex); fb_write_lock--; pthread_cond_broadcast(&file_bcast_cond); slurm_mutex_unlock(&file_bcast_mutex); }
15,464
9,829
0
struct http_res_rule *parse_http_res_cond(const char **args, const char *file, int linenum, struct proxy *proxy) { struct http_res_rule *rule; struct http_res_action_kw *custom = NULL; int cur_arg; char *error; rule = calloc(1, sizeof(*rule)); if (!rule) { Alert("parsing [%s:%d]: out of memory.\n", file, linen...
15,465
114,474
0
void EglRenderingVDAClient::NotifyInitializeDone() { SetState(CS_INITIALIZED); initialize_done_ticks_ = base::TimeTicks::Now(); for (int i = 0; i < num_in_flight_decodes_; ++i) DecodeNextNALUs(); }
15,466
64,775
0
int crypto_register_skciphers(struct skcipher_alg *algs, int count) { int i, ret; for (i = 0; i < count; i++) { ret = crypto_register_skcipher(&algs[i]); if (ret) goto err; } return 0; err: for (--i; i >= 0; --i) crypto_unregister_skcipher(&algs[i]); return ret; }
15,467
47,477
0
static int __init adf_register_ctl_device_driver(void) { mutex_init(&adf_ctl_lock); if (qat_algs_init()) goto err_algs_init; if (adf_chr_drv_create()) goto err_chr_dev; if (adf_init_aer()) goto err_aer; if (qat_crypto_register()) goto err_crypto_register; return 0; err_crypto_register: adf_exit_aer...
15,468
19,298
0
static struct sock *unix_from_bucket(struct seq_file *seq, loff_t *pos) { unsigned long offset = get_offset(*pos); unsigned long bucket = get_bucket(*pos); struct sock *sk; unsigned long count = 0; for (sk = sk_head(&unix_socket_table[bucket]); sk; sk = sk_next(sk)) { if (sock_net(sk) != seq_file_net(seq)) c...
15,469
31,934
0
perf_event_alloc(struct perf_event_attr *attr, int cpu, struct task_struct *task, struct perf_event *group_leader, struct perf_event *parent_event, perf_overflow_handler_t overflow_handler, void *context) { struct pmu *pmu; struct perf_event *event; struct hw_perf_event *hwc; long err; if ((unsigne...
15,470
37,771
0
static inline void mark_all_clean(struct vmcb *vmcb) { vmcb->control.clean = ((1 << VMCB_DIRTY_MAX) - 1) & ~VMCB_ALWAYS_DIRTY_MASK; }
15,471
162,082
0
void FindRenderProcessesForSite( const GURL& site_url, std::set<RenderProcessHost*>* foreground_processes, std::set<RenderProcessHost*>* background_processes) { auto result = map_.find(site_url); if (result == map_.end()) return; std::map<ProcessID, Count>& counts_per_process = re...
15,472
80,403
0
GF_Err sgpd_Write(GF_Box *s, GF_BitStream *bs) { u32 i; GF_SampleGroupDescriptionBox *p = (GF_SampleGroupDescriptionBox *)s; GF_Err e; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_u32(bs, p->grouping_type); if (p->version>=1) gf_bs_write_u32(bs, p->default_length); if (p->version>=2) gf_bs_w...
15,473
65,593
0
nfsd4_get_closestateid(struct nfsd4_compound_state *cstate, struct nfsd4_close *close) { get_stateid(cstate, &close->cl_stateid); }
15,474
131,653
0
static void reflectBooleanAttributeAttributeSetterCallback(v8::Local<v8::String>, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); CustomElementCallbackDispatcher::CallbackDeliveryScope deliveryScope; TestObjectPythonV8Internal...
15,475
108,184
0
void GLES2DecoderTestBase::DoDeleteBuffer( GLuint client_id, GLuint service_id) { EXPECT_CALL(*gl_, DeleteBuffersARB(1, Pointee(service_id))) .Times(1) .RetiresOnSaturation(); DeleteBuffers cmd; cmd.Init(1, shared_memory_id_, shared_memory_offset_); memcpy(shared_memory_address_, &client_id, siz...
15,476
116,646
0
void RenderViewImpl::OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id) { DCHECK(history_length >= 0); DCHECK(history_list_offset_ == history_list_length_ - 1); DCHECK(minimum_page_id >= -1); std::vector<int32> new_history_page_ids(history_leng...
15,477
181,907
1
static void calcstepsizes(uint_fast16_t refstepsize, int numrlvls, uint_fast16_t *stepsizes) { int bandno; int numbands; uint_fast16_t expn; uint_fast16_t mant; expn = JPC_QCX_GETEXPN(refstepsize); mant = JPC_QCX_GETMANT(refstepsize); numbands = 3 * numrlvls - 2; for (bandno = 0; bandno < numbands; ++bandn...
15,478
104,685
0
static v8::Handle<v8::Value> GetExtensionViews(const v8::Arguments& args) { if (args.Length() != 2) return v8::Undefined(); if (!args[0]->IsInt32() || !args[1]->IsString()) return v8::Undefined(); int browser_window_id = args[0]->Int32Value(); std::string view_type_string = *v8::String:...
15,479
148,409
0
double WebContentsImpl::GetPendingPageZoomLevel() { NavigationEntry* pending_entry = GetController().GetPendingEntry(); if (!pending_entry) return HostZoomMap::GetZoomLevel(this); GURL url = pending_entry->GetURL(); return HostZoomMap::GetForWebContents(this)->GetZoomLevelForHostAndScheme( url.scheme...
15,480
40,647
0
static void *prb_dispatch_next_block(struct tpacket_kbdq_core *pkc, struct packet_sock *po) { struct tpacket_block_desc *pbd; smp_rmb(); /* 1. Get current block num */ pbd = GET_CURR_PBLOCK_DESC_FROM_CORE(pkc); /* 2. If this block is currently in_use then freeze the queue */ if (TP_STATUS_USER & BLOCK_STATUS...
15,481
75,540
0
static int usb_bus_notify(struct notifier_block *nb, unsigned long action, void *data) { struct device *dev = data; switch (action) { case BUS_NOTIFY_ADD_DEVICE: if (dev->type == &usb_device_type) (void) usb_create_sysfs_dev_files(to_usb_device(dev)); else if (dev->type == &usb_if_device_type) usb_creat...
15,482
175,018
0
void impeg2d_format_convert(dec_state_t *ps_dec, pic_buf_t *ps_src_pic, iv_yuv_buf_t *ps_disp_frm_buf, UWORD32 u4_start_row, UWORD32 u4_num_rows) { UWORD8 *pu1_src_y,*pu1_src_u,*pu1_src_v; UWORD8 *pu1_dst_y,*pu1_dst_u,*pu1_dst_v; if((NULL == ps_src_pic) || (NULL == ps_src_pic...
15,483
36,914
0
xfs_handlereq_to_dentry( struct file *parfilp, xfs_fsop_handlereq_t *hreq) { return xfs_handle_to_dentry(parfilp, hreq->ihandle, hreq->ihandlen); }
15,484
135,470
0
base::string16 GetUsernameFromSuggestion(const base::string16& suggestion) { return suggestion == l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_EMPTY_LOGIN) ? base::string16() : suggestion; }
15,485
153,616
0
void GLES2Implementation::DeleteSamplersStub(GLsizei n, const GLuint* samplers) { helper_->DeleteSamplersImmediate(n, samplers); }
15,486
169,855
0
xsltExtStyleInitTest(xsltStylesheetPtr style ATTRIBUTE_UNUSED, const xmlChar * URI) { if (testStyleData != NULL) { xsltTransformError(NULL, NULL, NULL, "xsltExtInitTest: already initialized\n"); return (NULL); } testStyleData = (void *) "test d...
15,487
124,464
0
bool WebRuntimeFeatures::isPrefixedEncryptedMediaEnabled() { return RuntimeEnabledFeatures::prefixedEncryptedMediaEnabled(); }
15,488
55,856
0
void deinitialize_tty_struct(struct tty_struct *tty) { tty_ldisc_deinit(tty); }
15,489
67,765
0
static int cp_input_mapped(struct hid_device *hdev, struct hid_input *hi, struct hid_field *field, struct hid_usage *usage, unsigned long **bit, int *max) { unsigned long quirks = (unsigned long)hid_get_drvdata(hdev); if (!(quirks & CP_2WHEEL_MOUSE_HACK)) return 0; if (usage->type == EV_REL && usage->code ==...
15,490
160,621
0
blink::WebPlugin* RenderFrameImpl::GetWebPluginForFind() { if (frame_->GetDocument().IsPluginDocument()) return frame_->GetDocument().To<WebPluginDocument>().Plugin(); #if BUILDFLAG(ENABLE_PLUGINS) if (plugin_find_handler_) return plugin_find_handler_->container()->Plugin(); #endif return nullptr; }
15,491
51,777
0
parse_single_hex_dump_line(char* rec, guint8 *buf, guint byte_offset) { int pos, i; char *s; unsigned long value; guint16 word_value; /* Get the byte_offset directly from the record */ rec[4] = '\0'; s = rec; value = strtoul(s, NULL, 16); if (value != byte_offset) { return FALSE; } /* Go through the...
15,492
151,087
0
void DevToolsWindow::OnLoadCompleted() { WebContents* inspected_web_contents = GetInspectedWebContents(); if (inspected_web_contents) { SessionTabHelper* session_tab_helper = SessionTabHelper::FromWebContents(inspected_web_contents); if (session_tab_helper) { base::FundamentalValue tabId(sessi...
15,493
178,465
1
PHP_METHOD(Phar, getSupportedCompression) { if (zend_parse_parameters_none() == FAILURE) { return; } array_init(return_value); phar_request_initialize(TSRMLS_C); if (PHAR_G(has_zlib)) { add_next_index_stringl(return_value, "GZ", 2, 1); } if (PHAR_G(has_bz2)) { a...
15,494
58,419
0
cmsPipeline* BlackPreservingKOnlyIntents(cmsContext ContextID, cmsUInt32Number nProfiles, cmsUInt32Number TheIntents[], cmsHPROFILE hProfiles[], ...
15,495
80,966
0
static inline bool is_gp_fault(u32 intr_info) { return is_exception_n(intr_info, GP_VECTOR); }
15,496
153,071
0
void PDFiumEngine::OnDocumentComplete() { if (!doc_ || !form_) { file_access_.m_FileLen = doc_loader_.document_size(); if (!fpdf_availability_) { fpdf_availability_ = FPDFAvail_Create(&file_availability_, &file_access_); DCHECK(fpdf_availability_); } LoadDocument(); return; } Fini...
15,497
37,199
0
static inline bool vmcs12_read_any(struct kvm_vcpu *vcpu, unsigned long field, u64 *ret) { short offset = vmcs_field_to_offset(field); char *p; if (offset < 0) return 0; p = ((char *)(get_vmcs12(vcpu))) + offset; switch (vmcs_field_type(field)) { case VMCS_FIELD_TYPE_NATURAL_WIDTH: *ret = *((natural_w...
15,498
55,963
0
static int skcipher_alloc_sgl(struct sock *sk) { struct alg_sock *ask = alg_sk(sk); struct skcipher_ctx *ctx = ask->private; struct skcipher_sg_list *sgl; struct scatterlist *sg = NULL; sgl = list_entry(ctx->tsgl.prev, struct skcipher_sg_list, list); if (!list_empty(&ctx->tsgl)) sg = sgl->sg; if (!sg || sgl-...
15,499