unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
137,983
0
void AXLayoutObject::setSelection(const AXRange& selection) { if (!getLayoutObject() || !selection.isValid()) return; AXObject* anchorObject = selection.anchorObject ? selection.anchorObject.get() : this; AXObject* focusObject = selection.focusObject ? selection.focusObject.get() : this; if (!...
16,900
109,324
0
void InspectorPageAgent::setDeviceMetricsOverride(ErrorString* errorString, int width, int height, double deviceScaleFactor, bool fitWindow, const bool* optionalTextAutosizing) { const static long maxDimension = 10000000; if (width < 0 || height < 0 || width > maxDimension || height > maxDimension) { *...
16,901
101,685
0
void Browser::HideInstant() { window_->HideInstant(instant_->is_active()); }
16,902
135,817
0
const VisibleSelection& SelectionEditor::ComputeVisibleSelectionInDOMTree() const { DCHECK_EQ(GetFrame()->GetDocument(), GetDocument()); DCHECK_EQ(GetFrame(), GetDocument().GetFrame()); UpdateCachedVisibleSelectionIfNeeded(); if (cached_visible_selection_in_dom_tree_.IsNone()) return cached_visible_sele...
16,903
133,063
0
void CancelUnlockOperation() { cancel_unlock_ = true; }
16,904
82,229
0
SYSCALL_DEFINE5(getsockopt, int, fd, int, level, int, optname, char __user *, optval, int __user *, optlen) { return __sys_getsockopt(fd, level, optname, optval, optlen); }
16,905
46,682
0
static int xts_fallback_init(struct crypto_tfm *tfm) { const char *name = tfm->__crt_alg->cra_name; struct s390_xts_ctx *xts_ctx = crypto_tfm_ctx(tfm); xts_ctx->fallback = crypto_alloc_blkcipher(name, 0, CRYPTO_ALG_ASYNC | CRYPTO_ALG_NEED_FALLBACK); if (IS_ERR(xts_ctx->fallback)) { pr_err("Allocating XTS fal...
16,906
75,192
0
static void process_bin_stat(conn *c) { char *subcommand = binary_get_key(c); size_t nkey = c->binary_header.request.keylen; if (settings.verbose > 1) { int ii; fprintf(stderr, "<%d STATS ", c->sfd); for (ii = 0; ii < nkey; ++ii) { fprintf(stderr, "%c", subcommand[ii]); ...
16,907
32,561
0
static void tg3_get_ethtool_stats(struct net_device *dev, struct ethtool_stats *estats, u64 *tmp_stats) { struct tg3 *tp = netdev_priv(dev); if (tp->hw_stats) tg3_get_estats(tp, (struct tg3_ethtool_stats *)tmp_stats); else memset(tmp_stats, 0, sizeof(struct tg3_ethtool_stats)); }
16,908
128,951
0
StateBase* handleError(Status errorStatus, const String& message, StateBase* state) { ASSERT(errorStatus != Success); m_status = errorStatus; m_errorMessage = message; while (state) { StateBase* tmp = state->nextState(); delete state; state = t...
16,909
88,585
0
static int get_next_eof(FILE *fp) { int match, c; const char buf[] = "%%EOF"; match = 0; while ((c = fgetc(fp)) != EOF) { if (c == buf[match]) ++match; else match = 0; if (match == 5) /* strlen("%%EOF") */ return ftell(fp) - 5; } retur...
16,910
58,730
0
static inline ssize_t do_tty_write( ssize_t (*write)(struct tty_struct *, struct file *, const unsigned char *, size_t), struct tty_struct *tty, struct file *file, const char __user *buf, size_t count) { ssize_t ret, written = 0; unsigned int chunk; ret = tty_write_lock(tty, file->f_flags & O_NDELAY); if (ret...
16,911
120,546
0
const AtomicString& Element::imageSourceURL() const { return getAttribute(srcAttr); }
16,912
117,198
0
bool Texture::AllocateStorage(const gfx::Size& size, GLenum format) { DCHECK_NE(id_, 0u); ScopedGLErrorSuppressor suppressor(decoder_); ScopedTexture2DBinder binder(decoder_, id_); WrappedTexImage2D(GL_TEXTURE_2D, 0, // mip level format, size.width()...
16,913
66,343
0
static void gen_inc(DisasContext *s1, TCGMemOp ot, int d, int c) { if (s1->prefix & PREFIX_LOCK) { tcg_gen_movi_tl(cpu_T0, c > 0 ? 1 : -1); tcg_gen_atomic_add_fetch_tl(cpu_T0, cpu_A0, cpu_T0, s1->mem_index, ot | MO_LE); } else { if (d != OR_TMP0) { ...
16,914
175,544
0
WORD32 ihevcd_get_total_pic_buf_size(codec_t *ps_codec, WORD32 wd, WORD32 ht) { WORD32 size; WORD32 num_luma_samples; WORD32 max_dpb_size; WORD32 num_samples; sps_t *ps_sps = (ps_codec->s_parse.ps_sps_base + ps_codec->i4_sps_id...
16,915
94,504
0
static void rfcomm_tty_unthrottle(struct tty_struct *tty) { struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; BT_DBG("tty %p dev %p", tty, dev); rfcomm_dlc_unthrottle(dev->dlc); }
16,916
130,740
0
static void enabledPerContextAttrAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestObject* imp = V8TestObject::toNative(info.Holder()); v8SetReturnValueInt(info, imp->enabledPerContextAttr()); }
16,917
149,890
0
bool LayerTreeHostImpl::AnimationsPreserveAxisAlignment( const LayerImpl* layer) const { return mutator_host_->AnimationsPreserveAxisAlignment(layer->element_id()); }
16,918
151,512
0
bool WorkerFetchContext::ShouldBlockFetchAsCredentialedSubresource( const ResourceRequest& resource_request, const KURL& url) const { if ((!url.User().IsEmpty() || !url.Pass().IsEmpty()) && resource_request.GetRequestContext() != WebURLRequest::kRequestContextXMLHttpRequest) { if (Url().Us...
16,919
70,143
0
TIFFReadDirEntryCheckRangeLong8Slong8(int64 value) { if (value < 0) return(TIFFReadDirEntryErrRange); else return(TIFFReadDirEntryErrOk); }
16,920
48,451
0
static void clear_empty_dir(struct ctl_dir *dir) { dir->header.ctl_table[0].child = NULL; }
16,921
86,902
0
TEE_Result syscall_obj_generate_key(unsigned long obj, unsigned long key_size, const struct utee_attribute *usr_params, unsigned long param_count) { TEE_Result res; struct tee_ta_session *sess; const struct tee_cryp_obj_type_props *type_props; struct tee_obj *o; struct tee_cryp_obj_secret *key; size_t byte_...
16,922
178,511
1
load(ImlibImage * im, ImlibProgressFunction progress, char progress_granularity, char immediate_load) { int rc; char p = ' ', numbers = 3, count = 0; int w = 0, h = 0, v = 255, c = 0; char buf[256]; FILE *f = NULL; if (im->data) return 0; f = ...
16,923
59,261
0
static void account_kernel_stack(struct task_struct *tsk, int account) { void *stack = task_stack_page(tsk); struct vm_struct *vm = task_stack_vm_area(tsk); BUILD_BUG_ON(IS_ENABLED(CONFIG_VMAP_STACK) && PAGE_SIZE % 1024 != 0); if (vm) { int i; BUG_ON(vm->nr_pages != THREAD_SIZE / PAGE_SIZE); for (i = 0; i...
16,924
125,692
0
void RenderViewHostImpl::OnTargetDropACK() { NotificationService::current()->Notify( NOTIFICATION_RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK, Source<RenderViewHost>(this), NotificationService::NoDetails()); }
16,925
130,189
0
void RenderFrameHostImpl::OnFrameFocused() { frame_tree_->SetFocusedFrame(frame_tree_node_); }
16,926
81,788
0
void streamDecodeID(void *buf, streamID *id) { uint64_t e[2]; memcpy(e,buf,sizeof(e)); id->ms = ntohu64(e[0]); id->seq = ntohu64(e[1]); }
16,927
13,125
0
static struct dyn_lease *find_lease_by_nip(uint32_t nip) { unsigned i; for (i = 0; i < server_config.max_leases; i++) if (g_leases[i].lease_nip == nip) return &g_leases[i]; return NULL; }
16,928
71,572
0
static MagickBooleanType WriteHRZImage(const ImageInfo *image_info,Image *image) { Image *hrz_image; MagickBooleanType status; register const PixelPacket *p; register ssize_t x, y; register unsigned char *q; ssize_t count; unsigned char *pixels; /* Open output ...
16,929
63,902
0
COMPAT_SYSCALL_DEFINE2(timerfd_gettime, int, ufd, struct compat_itimerspec __user *, otmr) { struct itimerspec kotmr; int ret = do_timerfd_gettime(ufd, &kotmr); if (ret) return ret; return put_compat_itimerspec(otmr, &kotmr) ? -EFAULT: 0; }
16,930
95,401
0
MODRET auth_post_host(cmd_rec *cmd) { /* If the HOST command changed the main_server pointer, reinitialize * ourselves. */ if (session.prev_server != NULL) { int res; /* Remove the TimeoutLogin timer. */ pr_timer_remove(PR_TIMER_LOGIN, &auth_module); pr_event_unregister(&auth_module, "core....
16,931
84,906
0
SMB2_auth_kerberos(struct SMB2_sess_data *sess_data) { cifs_dbg(VFS, "Kerberos negotiated but upcall support disabled!\n"); sess_data->result = -EOPNOTSUPP; sess_data->func = NULL; }
16,932
81,674
0
get_message(struct mg_connection *conn, char *ebuf, size_t ebuf_len, int *err) { if (ebuf_len > 0) { ebuf[0] = '\0'; } *err = 0; reset_per_request_attributes(conn); if (!conn) { mg_snprintf(conn, NULL, /* No truncation check for ebuf */ ebuf, ebuf_len, ...
16,933
82,483
0
bool jsvIsNumeric(const JsVar *v) { return v && (v->flags&JSV_VARTYPEMASK)>=_JSV_NUMERIC_START && (v->flags&JSV_VARTYPEMASK)<=_JSV_NUMERIC_END; }
16,934
129,854
0
std::vector<const DictionaryValue*> FindTraceEntries( const ListValue& trace_parsed, const char* string_to_match) { std::vector<const DictionaryValue*> hits; size_t trace_parsed_count = trace_parsed.GetSize(); for (size_t i = 0; i < trace_parsed_count; i++) { const Value* value = NULL; trace_parse...
16,935
46,043
0
xdr_chrand3_arg(XDR *xdrs, chrand3_arg *objp) { if (!xdr_ui_4(xdrs, &objp->api_version)) { return (FALSE); } if (!xdr_krb5_principal(xdrs, &objp->princ)) { return (FALSE); } if (!xdr_krb5_boolean(xdrs, &objp->keepold)) { return (FALSE); } if (!xdr_array(xdrs, (caddr_t *)&objp->ks_tuple, (unsigned ...
16,936
124,003
0
virtual void SetUpOnMainThread() { ASSERT_TRUE(ui_test_utils::BringBrowserWindowToFront(browser())); ASSERT_NO_FATAL_FAILURE(SetupComponents()); chrome::FocusLocationBar(browser()); ViewID location_bar_focus_view_id = VIEW_ID_LOCATION_BAR; #if defined(USE_AURA) location_bar_focus_view_id = VIEW_ID...
16,937
148,158
0
void V8TestObject::VoidMethodStringArgVariadicStringArgMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { RUNTIME_CALL_TIMER_SCOPE_DISABLED_BY_DEFAULT(info.GetIsolate(), "Blink_TestObject_voidMethodStringArgVariadicStringArg"); test_object_v8_internal::VoidMethodStringArgVariadicStringArgMethod(info...
16,938
136,931
0
bool HTMLInputElement::MatchesReadOnlyPseudoClass() const { return input_type_->SupportsReadOnly() && IsReadOnly(); }
16,939
135,998
0
bool ChildProcessSecurityPolicyImpl::CanCreateFileSystemFile( int child_id, const storage::FileSystemURL& url) { return HasPermissionsForFileSystemFile(child_id, url, CREATE_NEW_FILE_GRANT); }
16,940
54,488
0
static bool numamigrate_update_ratelimit(pg_data_t *pgdat, unsigned long nr_pages) { /* * Rate-limit the amount of data that is being migrated to a node. * Optimal placement is no good if the memory bus is saturated and * all the time is being spent migrating! */ if (time_after(jiffies, pgdat->numabalanc...
16,941
130,523
0
void DisplayItemList::addItemToIndexIfNeeded(const DisplayItem& displayItem, size_t index, DisplayItemIndicesByClientMap& displayItemIndicesByClient) { if (!displayItem.isCacheable()) return; DisplayItemIndicesByClientMap::iterator it = displayItemIndicesByClient.find(displayItem.client()); Vector<...
16,942
19,211
0
void netlink_ack(struct sk_buff *in_skb, struct nlmsghdr *nlh, int err) { struct sk_buff *skb; struct nlmsghdr *rep; struct nlmsgerr *errmsg; size_t payload = sizeof(*errmsg); /* error messages get the original request appened */ if (err) payload += nlmsg_len(nlh); skb = nlmsg_new(payload, GFP_KERNEL); if (...
16,943
115,854
0
void NavigationController::RendererDidNavigateInPage( const ViewHostMsg_FrameNavigate_Params& params, bool* did_replace_entry) { DCHECK(content::PageTransitionIsMainFrame(params.transition)) << "WebKit should only tell us about in-page navs for the main frame."; NavigationEntry* existing_entry = GetEntryW...
16,944
21,732
0
static int em_btc(struct x86_emulate_ctxt *ctxt) { emulate_2op_SrcV_nobyte(ctxt, "btc"); return X86EMUL_CONTINUE; }
16,945
115,825
0
void InitResource(SafeBrowsingService::UnsafeResource* resource, bool is_subresource, const GURL& url) { resource->client = this; resource->url = url; resource->is_subresource = is_subresource; resource->threat_type = SafeBrowsingService::URL_MALWARE; resour...
16,946
131,483
0
static void nameAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) { TestObjectPython* imp = V8TestObjectPython::toNative(info.Holder()); v8SetReturnValueString(info, imp->getNameAttribute(), info.GetIsolate()); }
16,947
14,266
0
MYSQLND_METHOD(mysqlnd_conn_data, free_options)(MYSQLND_CONN_DATA * conn TSRMLS_DC) { zend_bool pers = conn->persistent; if (conn->options->charset_name) { mnd_pefree(conn->options->charset_name, pers); conn->options->charset_name = NULL; } if (conn->options->auth_protocol) { mnd_pefree(conn->options->auth_p...
16,948
74,206
0
getnetnum( const char *num, sockaddr_u *addr, int complain, enum gnn_type a_type /* ignored */ ) { NTP_REQUIRE(AF_UNSPEC == AF(addr) || AF_INET == AF(addr) || AF_INET6 == AF(addr)); if (!is_ip_address(num, AF(addr), addr)) return 0; if (IS_IPV6(addr) && !ipv6_works) return -1; # ifdef ISC_PLA...
16,949
20,849
0
static int kvm_vm_ioctl_set_identity_map_addr(struct kvm *kvm, u64 ident_addr) { kvm->arch.ept_identity_map_addr = ident_addr; return 0; }
16,950
26,944
0
handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks) { journal_t *journal; if (sb->s_flags & MS_RDONLY) return ERR_PTR(-EROFS); vfs_check_frozen(sb, SB_FREEZE_TRANS); /* Special case here: if the journal has aborted behind our * backs (eg. EIO in the commit thread), then we still need to * t...
16,951
106,095
0
JSValue jsTestObjCONST_VALUE_12(ExecState* exec, JSValue, const Identifier&) { UNUSED_PARAM(exec); return jsNumber(static_cast<int>(0x01)); }
16,952
117,255
0
gfx::Size GLES2DecoderImpl::GetBoundReadFrameBufferSize() { FramebufferManager::FramebufferInfo* framebuffer = GetFramebufferInfoForTarget(GL_READ_FRAMEBUFFER); if (framebuffer != NULL) { const FramebufferManager::FramebufferInfo::Attachment* attachment = framebuffer->GetAttachment(GL_COLOR_ATTACH...
16,953
15,886
0
void msix_set_pending(PCIDevice *dev, unsigned int vector) { *msix_pending_byte(dev, vector) |= msix_pending_mask(vector); }
16,954
82,387
0
void jsvDumpLockedVars() { jsvGarbageCollect(); if (isMemoryBusy) return; isMemoryBusy = MEMBUSY_SYSTEM; JsVarRef i; for (i=1;i<=jsVarsSize;i++) { JsVar *var = jsvGetAddressOf(i); if ((var->flags&JSV_VARTYPEMASK) != JSV_UNUSED) { // if it is not unused var->flags |= (JsVarFlags)JSV_GARBAGE_COLL...
16,955
144,900
0
void RenderWidgetHostViewAura::ExtendSelectionAndDelete( size_t before, size_t after) { RenderFrameHostImpl* rfh = GetFocusedFrame(); if (rfh) rfh->ExtendSelectionAndDelete(before, after); }
16,956
73,113
0
static FxInfo **DestroyFxThreadSet(FxInfo **fx_info) { register ssize_t i; assert(fx_info != (FxInfo **) NULL); for (i=0; i < (ssize_t) GetMagickResourceLimit(ThreadResource); i++) if (fx_info[i] != (FxInfo *) NULL) fx_info[i]=DestroyFxInfo(fx_info[i]); fx_info=(FxInfo **) RelinquishMagickMemory(...
16,957
20,506
0
static loff_t ext4_max_size(int blkbits, int has_huge_files) { loff_t res; loff_t upper_limit = MAX_LFS_FILESIZE; /* small i_blocks in vfs inode? */ if (!has_huge_files || sizeof(blkcnt_t) < sizeof(u64)) { /* * CONFIG_LBDAF is not enabled implies the inode * i_block represent total blocks in 512 bytes *...
16,958
15,401
0
bdfReadFont(FontPtr pFont, FontFilePtr file, int bit, int byte, int glyph, int scan) { bdfFileState state; xCharInfo *min, *max; BitmapFontPtr bitmapFont; pFont->fontPrivate = 0; bzero(&state, sizeof(bdfFileState)); bdfFileLineNum = 0; if (!bdfReadHeader(file, &state...
16,959
152,678
0
bool HTMLFormControlElement::supportsFocus() const { return !isDisabledFormControl(); }
16,960
158,368
0
void RenderWidgetHostImpl::SetPageFocus(bool focused) { is_focused_ = focused; if (!focused) { if (IsMouseLocked()) view_->UnlockMouse(); if (IsKeyboardLocked()) UnlockKeyboard(); if (auto* touch_emulator = GetExistingTouchEmulator()) touch_emulator->CancelTouch(); } else if (keyb...
16,961
58,550
0
BOOL nla_verify_header(wStream* s) { if ((s->pointer[0] == 0x30) && (s->pointer[1] & 0x80)) return TRUE; return FALSE; }
16,962
170,211
0
void ComponentUpdaterPolicyTest::FinishDefaultPolicy_GroupPolicyNotSupported() { VerifyExpectations(!kUpdateDisabled); cur_test_case_ = std::make_pair( &ComponentUpdaterPolicyTest::EnabledPolicy_GroupPolicySupported, &ComponentUpdaterPolicyTest::FinishEnabledPolicy_GroupPolicySupported); CallAsync(cu...
16,963
168,551
0
static char* sanitize_path(const char* path) { const char root_prefix[] = "\\\\.\\"; size_t j, size, root_size; char* ret_path = NULL; size_t add_root = 0; if (path == NULL) return NULL; size = safe_strlen(path)+1; root_size = sizeof(root_prefix)-1; if (!((size > 3) && (((path[0] == '\\') && (path[1] == '\...
16,964
59,976
0
static int get_min_max_with_quirks(struct usb_mixer_elem_info *cval, int default_min, struct snd_kcontrol *kctl) { /* for failsafe */ cval->min = default_min; cval->max = cval->min + 1; cval->res = 1; cval->dBmin = cval->dBmax = 0; if (cval->val_type == USB_MIXER_BOOLEAN || cval->val_type == USB_MIXE...
16,965
83,695
0
int git_index_remove_directory(git_index *index, const char *dir, int stage) { git_buf pfx = GIT_BUF_INIT; int error = 0; size_t pos; git_index_entry *entry; if (!(error = git_buf_sets(&pfx, dir)) && !(error = git_path_to_dir(&pfx))) index_find(&pos, index, pfx.ptr, pfx.size, GIT_INDEX_STAGE_ANY); while (!e...
16,966
134,331
0
void TabStrip::FileSupported(const GURL& url, bool supported) { if (drop_info_.get() && drop_info_->url == url) drop_info_->file_supported = supported; }
16,967
177,064
0
status_t SoftAVC::resetPlugin() { mIsInFlush = false; mReceivedEOS = false; memset(mTimeStamps, 0, sizeof(mTimeStamps)); memset(mTimeStampsValid, 0, sizeof(mTimeStampsValid)); /* Initialize both start and end times */ gettimeofday(&mTimeStart, NULL); gettimeofday(&mTimeEnd, NULL); return OK;...
16,968
2,063
0
static void full_header_set_msg_serial(SpiceDataHeaderOpaque *header, uint64_t serial) { ((SpiceDataHeader *)header->data)->serial = serial; }
16,969
104,627
0
bool Extension::IdIsValid(const std::string& id) { if (id.size() != (kIdSize * 2)) return false; std::string temp = StringToLowerASCII(id); for (size_t i = 0; i < temp.size(); i++) if (temp[i] < 'a' || temp[i] > 'p') return false; return true; }
16,970
147,119
0
DEFINE_TRACE(DocumentLoader) { visitor->Trace(frame_); visitor->Trace(fetcher_); visitor->Trace(main_resource_); visitor->Trace(history_item_); visitor->Trace(writer_); visitor->Trace(subresource_filter_); visitor->Trace(document_load_timing_); visitor->Trace(application_cache_host_); visitor->Trace(c...
16,971
59,002
0
HTStream *HTMLToC(HTPresentation *pres GCC_UNUSED, HTParentAnchor *anchor, HTStream *sink) { HTStructured *html; if (sink) (*sink->isa->put_string) (sink, "/* "); /* Before even title */ html = HTML_new(anchor, WWW_PLAINTEXT, sink); html->comment_start = "/* "; html->comment_end = " */\n"...
16,972
12,345
0
SPL_METHOD(Array, count) { long count; spl_array_object *intern = (spl_array_object*)zend_object_store_get_object(getThis() TSRMLS_CC); if (zend_parse_parameters_none() == FAILURE) { return; } spl_array_object_count_elements_helper(intern, &count TSRMLS_CC); RETURN_LONG(count); } /* }}} */ static void spl_...
16,973
80,173
0
GF_Err hmhd_Write(GF_Box *s, GF_BitStream *bs) { GF_Err e; GF_HintMediaHeaderBox *ptr = (GF_HintMediaHeaderBox *)s; e = gf_isom_full_box_write(s, bs); if (e) return e; gf_bs_write_u16(bs, ptr->maxPDUSize); gf_bs_write_u16(bs, ptr->avgPDUSize); gf_bs_write_u32(bs, ptr->maxBitrate); gf_bs_write_u32(bs, ptr->avgB...
16,974
10,447
0
static void megasas_frame_set_scsi_status(MegasasState *s, unsigned long frame, uint8_t v) { PCIDevice *pci = &s->parent_obj; stb_pci_dma(pci, frame + offsetof(struct mfi_frame_header, scsi_status), v); }
16,975
54,785
0
void snd_usbmidi_input_stop(struct list_head *p) { struct snd_usb_midi *umidi; unsigned int i, j; umidi = list_entry(p, struct snd_usb_midi, list); if (!umidi->input_running) return; for (i = 0; i < MIDI_MAX_ENDPOINTS; ++i) { struct snd_usb_midi_endpoint *ep = &umidi->endpoints[i]; if (ep->in) for (j = 0...
16,976
41,709
0
static void free_sa_defrag_extent(struct new_sa_defrag_extent *new) { struct old_sa_defrag_extent *old, *tmp; if (!new) return; list_for_each_entry_safe(old, tmp, &new->head, list) { list_del(&old->list); kfree(old); } kfree(new); }
16,977
3,018
0
static uint64_t vga_mem_read(void *opaque, hwaddr addr, unsigned size) { VGACommonState *s = opaque; return vga_mem_readb(s, addr); }
16,978
32,612
0
static void tg3_mdio_config_5785(struct tg3 *tp) { u32 val; struct phy_device *phydev; phydev = tp->mdio_bus->phy_map[TG3_PHY_MII_ADDR]; switch (phydev->drv->phy_id & phydev->drv->phy_id_mask) { case PHY_ID_BCM50610: case PHY_ID_BCM50610M: val = MAC_PHYCFG2_50610_LED_MODES; break; case PHY_ID_BCMAC131: va...
16,979
150,836
0
blink::mojom::WebBluetoothResult TranslateGATTErrorAndRecord( device::BluetoothRemoteGattService::GattErrorCode error_code, UMAGATTOperation operation) { switch (error_code) { case device::BluetoothRemoteGattService::GATT_ERROR_UNKNOWN: RecordGATTOperationOutcome(operation, UMAGATTOperationOutcome::...
16,980
444
0
pdf_drop_cmap_imp(fz_context *ctx, fz_storable *cmap_) { pdf_cmap *cmap = (pdf_cmap *)cmap_; pdf_drop_cmap(ctx, cmap->usecmap); fz_free(ctx, cmap->ranges); fz_free(ctx, cmap->xranges); fz_free(ctx, cmap->mranges); fz_free(ctx, cmap->dict); fz_free(ctx, cmap->tree); fz_free(ctx, cmap); }
16,981
95,293
0
AcpiNsLocal ( ACPI_OBJECT_TYPE Type) { ACPI_FUNCTION_TRACE (NsLocal); if (!AcpiUtValidObjectType (Type)) { /* Type code out of range */ ACPI_WARNING ((AE_INFO, "Invalid Object Type 0x%X", Type)); return_UINT32 (ACPI_NS_NORMAL); } return_UINT32 (AcpiGbl_NsPrope...
16,982
121,821
0
static ImageEventSender& beforeLoadEventSender() { DEFINE_STATIC_LOCAL(ImageEventSender, sender, (eventNames().beforeloadEvent)); return sender; }
16,983
45,370
0
tree_mod_log_search(struct btrfs_fs_info *fs_info, u64 start, u64 min_seq) { return __tree_mod_log_search(fs_info, start, min_seq, 0); }
16,984
71,092
0
cmsBool WriteOneMLUC(struct _cms_typehandler_struct* self, cmsIOHANDLER* io, _cmsDICelem* e, cmsUInt32Number i, const cmsMLU* mlu, cmsUInt32Number BaseOffset) { cmsUInt32Number Before; if (mlu == NULL) { e ->Sizes[i] = 0; e ->Offsets[i] = 0; return TRUE; } Before = io ->Tell(...
16,985
149,022
0
static int btreeInvokeBusyHandler(void *pArg){ BtShared *pBt = (BtShared*)pArg; assert( pBt->db ); assert( sqlite3_mutex_held(pBt->db->mutex) ); return sqlite3InvokeBusyHandler(&pBt->db->busyHandler); }
16,986
39,642
0
int handle_early_requeue_pi_wakeup(struct futex_hash_bucket *hb, struct futex_q *q, union futex_key *key2, struct hrtimer_sleeper *timeout) { int ret = 0; /* * With the hb lock held, we avoid races while we process the wakeup. * We only need to hold hb (and not hb2) to ensure atomicity as the * w...
16,987
183,715
1
~OffScreenRootWindow() { if (!--refCount) { #if PLATFORM(QT) delete window; window = 0; #elif PLATFORM(EFL) XUnmapWindow(display, window); XDestroyWindow(display, window); #endif } }
16,988
126,250
0
void Browser::ToggleFullscreenModeForTab(WebContents* web_contents, bool enter_fullscreen) { fullscreen_controller_->ToggleFullscreenModeForTab(web_contents, enter_fullscreen); }
16,989
4,178
0
tt_cmap12_init( TT_CMap12 cmap, FT_Byte* table ) { cmap->cmap.data = table; table += 12; cmap->num_groups = FT_PEEK_ULONG( table ); cmap->valid = 0; return SFNT_Err_Ok; }
16,990
44,016
0
crm_buffer_add_char(char **buffer, int *offset, int *max, char c) { buffer_print(*buffer, *max, *offset, "%c", c); }
16,991
26,609
0
static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from) { to->pkt_type = from->pkt_type; to->priority = from->priority; to->protocol = from->protocol; skb_dst_drop(to); skb_dst_set(to, dst_clone(skb_dst(from))); to->dev = from->dev; to->mark = from->mark; #ifdef CONFIG_NET_SCHED to->tc_index = ...
16,992
36,035
0
static void __udf_clear_extent_cache(struct inode *inode) { struct udf_inode_info *iinfo = UDF_I(inode); if (iinfo->cached_extent.lstart != -1) { brelse(iinfo->cached_extent.epos.bh); iinfo->cached_extent.lstart = -1; } }
16,993
19,845
0
static void nfs41_call_priv_sync_prepare(struct rpc_task *task, void *calldata) { rpc_task_set_priority(task, RPC_PRIORITY_PRIVILEGED); nfs41_call_sync_prepare(task, calldata); }
16,994
28,275
0
finish_realms() { int i; for (i = 0; i < kdc_numrealms; i++) { finish_realm(kdc_realmlist[i]); kdc_realmlist[i] = 0; } kdc_numrealms = 0; }
16,995
27,820
0
static int br_multicast_ipv4_rcv(struct net_bridge *br, struct net_bridge_port *port, struct sk_buff *skb) { struct sk_buff *skb2 = skb; struct iphdr *iph; struct igmphdr *ih; unsigned len; unsigned offset; int err; /* We treat OOM as packet loss for now. */ if (!pskb_may_pull(skb, sizeof(*iph))) r...
16,996
102,201
0
void SyncManager::TriggerOnIncomingNotificationForTest( const syncable::ModelTypeBitSet& model_types) { syncable::ModelTypePayloadMap model_types_with_payloads = syncable::ModelTypePayloadMapFromBitSet(model_types, std::string()); data_->OnIncomingNotification(model_types_with_payloads); }
16,997
178,766
1
int hugetlb_reserve_pages(struct inode *inode, long from, long to, struct vm_area_struct *vma, vm_flags_t vm_flags) { long ret, chg; struct hstate *h = hstate_inode(inode); struct hugepage_subpool *spool = subpool_inode(inode); /* * Only apply hugepage reservation if asked. At fault time, an * attempt will be made for...
16,998
15,667
0
static void ssi_sd_save(QEMUFile *f, void *opaque) { SSISlave *ss = SSI_SLAVE(opaque); ssi_sd_state *s = (ssi_sd_state *)opaque; int i; qemu_put_be32(f, s->mode); qemu_put_be32(f, s->cmd); for (i = 0; i < 4; i++) qemu_put_be32(f, s->cmdarg[i]); for (i = 0; i < 5; i++) qemu_p...
16,999