unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
48,914
0
static int netif_rx_internal(struct sk_buff *skb) { int ret; net_timestamp_check(netdev_tstamp_prequeue, skb); trace_netif_rx(skb); #ifdef CONFIG_RPS if (static_key_false(&rps_needed)) { struct rps_dev_flow voidflow, *rflow = &voidflow; int cpu; preempt_disable(); rcu_read_lock(); cpu = get_rps_cpu(sk...
2,400
137,180
0
gfx::Rect Textfield::GetBounds() { return GetLocalBounds(); }
2,401
166,569
0
void BrowserCommandController::UpdateCommandsForMediaRouter() { if (is_locked_fullscreen_) return; command_updater_.UpdateCommandEnabled(IDC_ROUTE_MEDIA, CanRouteMedia(browser_)); }
2,402
175,245
0
void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, size_t datalen, RIL_SOCKET_ID socket_id) #else extern "C" void RIL_onUnsolicitedResponse(int unsolResponse, const void *data, size_t datalen) #endif { int unsolResponseIndex; int ret; int64_t timeReceived = 0; bool shouldScheduleTimeout = false; ...
2,403
145,285
0
~DetectedLanguage() {}
2,404
55,530
0
bool find_numa_distance(int distance) { int i; if (distance == node_distance(0, 0)) return true; for (i = 0; i < sched_domains_numa_levels; i++) { if (sched_domains_numa_distance[i] == distance) return true; } return false; }
2,405
156,642
0
explicit ClosePageBeforeCommitHelper(WebContents* web_contents) : DidCommitProvisionalLoadInterceptor(web_contents) {}
2,406
77,628
0
ofputil_make_flow_mod_table_id(bool flow_mod_table_id) { struct nx_flow_mod_table_id *nfmti; struct ofpbuf *msg; msg = ofpraw_alloc(OFPRAW_NXT_FLOW_MOD_TABLE_ID, OFP10_VERSION, 0); nfmti = ofpbuf_put_zeros(msg, sizeof *nfmti); nfmti->set = flow_mod_table_id; return msg; }
2,407
115,559
0
void NetworkChangeNotifier::NotifyObserversOfDNSChange() { if (g_network_change_notifier) { g_network_change_notifier->resolver_state_observer_list_->Notify( &DNSObserver::OnDNSChanged); } }
2,408
145,616
0
void NavigationRequest::CommitErrorPage( RenderFrameHostImpl* render_frame_host, const base::Optional<std::string>& error_page_content) { UpdateRequestNavigationParamsHistory(); frame_tree_node_->TransferNavigationRequestOwnership(render_frame_host); if (IsPerNavigationMojoInterfaceEnabled() && request_na...
2,409
187,096
1
DOMHandler::DOMHandler() : DevToolsDomainHandler(DOM::Metainfo::domainName), host_(nullptr) { }
2,410
50,881
0
set_str_a_characters_bp(struct archive_write *a, unsigned char *bp, int from, int to, const char *s, enum vdc vdc) { int r; switch (vdc) { case VDC_STD: set_str(bp+from, s, to - from + 1, 0x20, a_characters_map); r = ARCHIVE_OK; break; case VDC_LOWERCASE: set_str(bp+from, s, to - from + 1, 0x20, ...
2,411
63,396
0
static void ape_flush(AVCodecContext *avctx) { APEContext *s = avctx->priv_data; s->samples= 0; }
2,412
43,781
0
iakerb_gss_inquire_context(OM_uint32 *minor_status, gss_ctx_id_t context_handle, gss_name_t *src_name, gss_name_t *targ_name, OM_uint32 *lifetime_rec, gss_OID *mech_type, OM_uint32 *ctx_flags, int *initiate, int ...
2,413
29,453
0
static void serial_unlink_irq_chain(struct mp_port *mtpt) { struct irq_info *i = irq_lists + mtpt->port.irq; if (list_empty(i->head)) { free_irq(mtpt->port.irq, i); } serial_do_unlink(i, mtpt); }
2,414
17,216
0
BrowserContextDestroyer::~BrowserContextDestroyer() {}
2,415
166,718
0
Address NormalPageArena::AllocateFromFreeList(size_t allocation_size, size_t gc_info_index) { size_t bucket_size = static_cast<size_t>(1) << free_list_.biggest_free_list_index_; int index = free_list_.biggest_free_list_index_; for (; index > 0; ...
2,416
187,473
1
int send_event (int fd, uint16_t type, uint16_t code, int32_t value) { struct uinput_event event; BTIF_TRACE_DEBUG("%s type:%u code:%u value:%d", __FUNCTION__, type, code, value); memset(&event, 0, sizeof(event)); event.type = type; event.code = code; event.value = value; return write(fd, &event, sizeof(event))...
2,417
41,380
0
static unsigned long kvm_get_guest_ip(void) { unsigned long ip = 0; if (percpu_read(current_vcpu)) ip = kvm_rip_read(percpu_read(current_vcpu)); return ip; }
2,418
41,165
0
static int tcp_is_sackfrto(const struct tcp_sock *tp) { return (sysctl_tcp_frto == 0x2) && !tcp_is_reno(tp); }
2,419
178,401
1
xps_parse_glyphs(xps_document *doc, const fz_matrix *ctm, char *base_uri, xps_resource *dict, fz_xml *root) { fz_xml *node; char *fill_uri; char *opacity_mask_uri; char *bidi_level_att; char *fill_att; char *font_size_att; char *font_uri_att; char *origin_x_att; char *origin_y_att; char *is_sideways_att; char *indice...
2,420
163,986
0
void PaymentRequestState::SetDefaultProfileSelections() { if (!contact_profiles().empty() && profile_comparator()->IsContactInfoComplete(contact_profiles_[0])) selected_contact_profile_ = contact_profiles()[0]; const std::vector<std::unique_ptr<PaymentInstrument>>& instruments = available_instrumen...
2,421
74,387
0
VOID ParaNdis_UpdateDeviceFilters(PARANDIS_ADAPTER *pContext) { if (pContext->bHasHardwareFilters) { ParaNdis_DeviceFiltersUpdateRxMode(pContext); ParaNdis_DeviceFiltersUpdateAddresses(pContext); ParaNdis_DeviceFiltersUpdateVlanId(pContext); } }
2,422
6,295
0
PHP_MINIT_FUNCTION(date) { REGISTER_INI_ENTRIES(); date_register_classes(TSRMLS_C); /* * RFC4287, Section 3.3: http://www.ietf.org/rfc/rfc4287.txt * A Date construct is an element whose content MUST conform to the * "date-time" production in [RFC3339]. In addition, an uppercase "T" * character MUST be used...
2,423
8,098
0
GfxFont *GfxResources::lookupFont(char *name) { GfxFont *font; GfxResources *resPtr; for (resPtr = this; resPtr; resPtr = resPtr->next) { if (resPtr->fonts) { if ((font = resPtr->fonts->lookup(name))) return font; } } error(-1, "Unknown font tag '%s'", name); return NULL; }
2,424
81,588
0
void ftrace_profile_free_filter(struct perf_event *event) { struct event_filter *filter = event->filter; event->filter = NULL; __free_filter(filter); }
2,425
55,160
0
enum commit_action get_commit_action(struct rev_info *revs, struct commit *commit) { if (commit->object.flags & SHOWN) return commit_ignore; if (revs->unpacked && has_sha1_pack(commit->object.sha1)) return commit_ignore; if (revs->show_all) return commit_show; if (commit->object.flags & UNINTERESTING) retur...
2,426
11,363
0
fbCombineDisjointGeneralC (CARD32 *dest, CARD32 *src, CARD32 *mask, int width, CARD8 combine) { int i; for (i = 0; i < width; ++i) { CARD32 s, d; CARD32 m,n,o,p; CARD32 Fa, Fb; CARD16 t, u, v; CARD32 sa; CARD8 da; s = READ(src + i); m = RE...
2,427
77,942
0
static void PNGType(png_bytep p,const png_byte *type) { (void) memcpy(p,type,4*sizeof(png_byte)); }
2,428
77,650
0
ofputil_port_stats_from_ofp10(struct ofputil_port_stats *ops, const struct ofp10_port_stats *ps10) { ops->port_no = u16_to_ofp(ntohs(ps10->port_no)); ops->stats.rx_packets = ntohll(get_32aligned_be64(&ps10->rx_packets)); ops->stats.tx_packets = ntohll(get_32aligned_be64(&ps10-...
2,429
25,876
0
void kgdb_arch_set_pc(struct pt_regs *regs, unsigned long ip) { regs->ip = ip; }
2,430
63,180
0
static av_always_inline int dnxhd_decode_dct_block(const DNXHDContext *ctx, RowContext *row, int n, int index_bits, ...
2,431
93,656
0
static unsigned int cqspi_calc_rdreg(struct spi_nor *nor, const u8 opcode) { struct cqspi_flash_pdata *f_pdata = nor->priv; u32 rdreg = 0; rdreg |= f_pdata->inst_width << CQSPI_REG_RD_INSTR_TYPE_INSTR_LSB; rdreg |= f_pdata->addr_width << CQSPI_REG_RD_INSTR_TYPE_ADDR_LSB; rdreg |= f_pdata->data_width << CQSPI_REG_...
2,432
175,489
0
static int out_open_pcm_devices(struct stream_out *out) { struct pcm_device *pcm_device; struct listnode *node; struct audio_device *adev = out->dev; int ret = 0; list_for_each(node, &out->pcm_dev_list) { pcm_device = node_to_item(node, struct pcm_device, stream_list_node); ALOGV("%s: Opening P...
2,433
46,256
0
int blkdev_fsync(struct file *filp, loff_t start, loff_t end, int datasync) { struct inode *bd_inode = filp->f_mapping->host; struct block_device *bdev = I_BDEV(bd_inode); int error; error = filemap_write_and_wait_range(filp->f_mapping, start, end); if (error) return error; /* * There is no need to seriali...
2,434
58,376
0
void dump_backtrace_entry(unsigned long where, unsigned long from, unsigned long frame) { #ifdef CONFIG_KALLSYMS printk("[<%08lx>] (%pS) from [<%08lx>] (%pS)\n", where, (void *)where, from, (void *)from); #else printk("Function entered at [<%08lx>] from [<%08lx>]\n", where, from); #endif if (in_exception_text(where...
2,435
96,378
0
static VOID SharedMemAllocateCompleteHandler( IN NDIS_HANDLE MiniportAdapterContext, IN PVOID VirtualAddress, IN PNDIS_PHYSICAL_ADDRESS PhysicalAddress, IN ULONG Length, IN PVOID Context ) { UNREFERENCED_PARAMETER(MiniportAdapterContext); UNREFERENCED_PARAMETER(VirtualAddress); ...
2,436
170,294
0
virtual ~MediaStreamDevicesControllerBrowserTest() {}
2,437
26,879
0
static int proc_pident_fill_cache(struct file *filp, void *dirent, filldir_t filldir, struct task_struct *task, const struct pid_entry *p) { return proc_fill_cache(filp, dirent, filldir, p->name, p->len, proc_pident_instantiate, task, p); }
2,438
16,583
0
FileTransfer::HandleCommands(Service *, int command, Stream *s) { FileTransfer *transobject; char *transkey = NULL; dprintf(D_FULLDEBUG,"entering FileTransfer::HandleCommands\n"); if ( s->type() != Stream::reli_sock ) { return 0; } ReliSock *sock = (ReliSock *) s; sock->timeout(0); if (!sock->get_secret(t...
2,439
66,337
0
static inline void gen_goto_tb(DisasContext *s, int tb_num, target_ulong eip) { target_ulong pc = s->cs_base + eip; if (use_goto_tb(s, pc)) { /* jump to same page: we can use a direct jump */ tcg_gen_goto_tb(tb_num); gen_jmp_im(eip); tcg_gen_exit_tb((uintptr_t)s->tb + tb_num); ...
2,440
139,617
0
std::string TranslateLegacyAvc1CodecIds(const std::string& codec_id) { uint32_t level_start = 0; std::string result; if (base::StartsWith(codec_id, "avc1.66.", base::CompareCase::SENSITIVE)) { level_start = 8; result = "avc1.4200"; } else if (base::StartsWith(codec_id, "avc1.77.", ...
2,441
91,911
0
static void sycc444_to_rgb(opj_image_t *img) { int *d0, *d1, *d2, *r, *g, *b; const int *y, *cb, *cr; size_t maxw, maxh, max, i; int offset, upb; upb = (int)img->comps[0].prec; offset = 1 << (upb - 1); upb = (1 << upb) - 1; maxw = (size_t)img->comps[0].w; maxh = (size_t)img->comps[...
2,442
2,920
0
gs_to_exit(const gs_memory_t *mem, int exit_status) { return gs_to_exit_with_code(mem, exit_status, 0); }
2,443
100,762
0
xmlReadFd(int fd, const char *URL, const char *encoding, int options) { xmlParserCtxtPtr ctxt; xmlParserInputBufferPtr input; xmlParserInputPtr stream; if (fd < 0) return (NULL); input = xmlParserInputBufferCreateFd(fd, XML_CHAR_ENCODING_NONE); if (input == NULL) return (NULL);...
2,444
141,319
0
ProcessingInstruction* Document::createProcessingInstruction( const String& target, const String& data, ExceptionState& exception_state) { if (!IsValidName(target)) { exception_state.ThrowDOMException( DOMExceptionCode::kInvalidCharacterError, "The target provided ('" + target + "') is...
2,445
104,264
0
RTCVoidRequestImpl::~RTCVoidRequestImpl() { }
2,446
164,323
0
bool TabsHighlightFunction::HighlightTab(TabStripModel* tabstrip, ui::ListSelectionModel* selection, int* active_index, int index, std::string* error) { i...
2,447
157,725
0
void WebContentsImpl::ClearDeviceEmulationSize() { RenderWidgetHostView* rwhv = GetMainFrame()->GetView(); if (!view_size_before_emulation_.IsEmpty() && rwhv && rwhv->GetViewBounds().size() == device_emulation_size_) { rwhv->SetSize(view_size_before_emulation_); } device_emulation_size_ = gfx::Size();...
2,448
84,426
0
side_get_n_unix_fds (ProxySide *side, int n_fds) { GList *res = NULL; while (side->control_messages != NULL) { GSocketControlMessage *control_message = side->control_messages->data; if (G_IS_UNIX_FD_MESSAGE (control_message)) { GUnixFDMessage *fd_message = G_UNIX_FD_MESSAGE (cont...
2,449
15,382
0
void EC_ec_pre_comp_free(EC_PRE_COMP *pre) { int i; if (pre == NULL) return; CRYPTO_DOWN_REF(&pre->references, &i, pre->lock); REF_PRINT_COUNT("EC_ec", pre); if (i > 0) return; REF_ASSERT_ISNT(i < 0); if (pre->points != NULL) { EC_POINT **pts; for (pts = p...
2,450
101,842
0
void Browser::TabReplacedAt(TabStripModel* tab_strip_model, TabContentsWrapper* old_contents, TabContentsWrapper* new_contents, int index) { TabDetachedAtImpl(old_contents, index, DETACH_TYPE_REPLACE); TabInsertedAt(new_contents, in...
2,451
93,570
0
struct sock *mroute6_socket(struct net *net, struct sk_buff *skb) { struct mr6_table *mrt; struct flowi6 fl6 = { .flowi6_iif = skb->skb_iif ? : LOOPBACK_IFINDEX, .flowi6_oif = skb->dev->ifindex, .flowi6_mark = skb->mark, }; if (ip6mr_fib_lookup(net, &fl6, &mrt) < 0) return NULL; return mrt->mroute6_sk; }...
2,452
36,315
0
follow_link(struct path *link, struct nameidata *nd, void **p) { struct dentry *dentry = link->dentry; int error; char *s; BUG_ON(nd->flags & LOOKUP_RCU); if (link->mnt == nd->path.mnt) mntget(link->mnt); error = -ELOOP; if (unlikely(current->total_link_count >= 40)) goto out_put_nd_path; cond_resched()...
2,453
111,493
0
int relativeLeftOffset(int caretPosition, int leftOffset) { ASSERT(caretPosition >= 0); return std::max(0, caretPosition - leftOffset); }
2,454
57,788
0
int load_pdptrs(struct kvm_vcpu *vcpu, struct kvm_mmu *mmu, unsigned long cr3) { gfn_t pdpt_gfn = cr3 >> PAGE_SHIFT; unsigned offset = ((cr3 & (PAGE_SIZE-1)) >> 5) << 2; int i; int ret; u64 pdpte[ARRAY_SIZE(mmu->pdptrs)]; ret = kvm_read_guest_page_mmu(vcpu, mmu, pdpt_gfn, pdpte, offset * sizeof(u64), s...
2,455
124,416
0
void setSerifFontFamilyWrapper(WebSettings* settings, const string16& font, UScriptCode script) { settings->setSerifFontFamily(font, script); }
2,456
138,564
0
explicit CustomNTPUrlTest(const std::string& ntp_file_path) : https_test_server_(net::EmbeddedTestServer::TYPE_HTTPS), ntp_file_path_(ntp_file_path) { https_test_server_.ServeFilesFromSourceDirectory( "chrome/test/data/local_ntp"); }
2,457
182,977
1
rdpdr_process(STREAM s) { uint32 handle; uint16 vmin; uint16 component; uint16 pakid; logger(Protocol, Debug, "rdpdr_process()"); /* hexdump(s->p, s->end - s->p); */ in_uint16(s, component); in_uint16(s, pakid); if (component == RDPDR_CTYP_CORE) { switch (pakid) { case PAKID_CORE_DEVICE_IOREQU...
2,458
22,865
0
static int nfs4_do_setattr(struct inode *inode, struct rpc_cred *cred, struct nfs_fattr *fattr, struct iattr *sattr, struct nfs4_state *state) { struct nfs_server *server = NFS_SERVER(inode); struct nfs4_exception exception = { }; int err; do { err = nfs4_handle_exception(server, _nfs4_do_setattr(...
2,459
19,871
0
static struct nfs4_createdata *nfs4_alloc_createdata(struct inode *dir, struct qstr *name, struct iattr *sattr, u32 ftype) { struct nfs4_createdata *data; data = kzalloc(sizeof(*data), GFP_KERNEL); if (data != NULL) { struct nfs_server *server = NFS_SERVER(dir); data->msg.rpc_proc = &nfs4_procedures[NFSPROC4...
2,460
132,533
0
LayoutTestContentBrowserClient::GetLayoutTestNotificationManager() { return layout_test_notification_manager_.get(); }
2,461
6,182
0
static int do_ssl3_write(SSL *s, int type, const unsigned char *buf, unsigned int len, int create_empty_fragment) { unsigned char *p, *plen; int i, mac_size, clear = 0; int prefix_len = 0; int eivlen; long align = 0; SSL3_RECORD *wr; SSL3_BUFFER *wb = &(s->s3->wbuf);...
2,462
106,804
0
void AddSetMsiMarkerWorkItem(const InstallerState& installer_state, BrowserDistribution* dist, bool set, WorkItemList* work_item_list) { DCHECK(work_item_list); DWORD msi_value = set ? 1 : 0; WorkItem* set_msi_work_item = work_...
2,463
149,656
0
static LayoutPoint CornerPointOfRect(LayoutRect rect, Corner which_corner) { switch (which_corner) { case Corner::kTopLeft: return rect.MinXMinYCorner(); case Corner::kTopRight: return rect.MaxXMinYCorner(); } NOTREACHED(); return LayoutPoint(); }
2,464
54,415
0
static ZIPARCHIVE_METHOD(unchangeArchive) { struct zip *intern; zval *self = getThis(); if (!self) { RETURN_FALSE; } ZIP_FROM_OBJECT(intern, self); if (zip_unchange_archive(intern) != 0) { RETURN_FALSE; } else { RETURN_TRUE; } }
2,465
155,527
0
AuthenticatorGenericErrorSheetModel::AuthenticatorGenericErrorSheetModel( AuthenticatorRequestDialogModel* dialog_model, base::string16 title, base::string16 description) : AuthenticatorSheetModelBase(dialog_model), title_(std::move(title)), description_(std::move(description)) {}
2,466
149,359
0
void BinaryUploadService::ResetAuthorizationData() { can_upload_data_ = base::nullopt; IsAuthorized(base::DoNothing()); }
2,467
38,072
0
static int picolcd_probe(struct hid_device *hdev, const struct hid_device_id *id) { struct picolcd_data *data; int error = -ENOMEM; dbg_hid(PICOLCD_NAME " hardware probe...\n"); /* * Let's allocate the picolcd data structure, set some reasonable * defaults, and associate it with the device */ data =...
2,468
162,642
0
bool HeadlessPrintManager::OnMessageReceived( const IPC::Message& message, content::RenderFrameHost* render_frame_host) { if (!printing_rfh_ && (message.type() == PrintHostMsg_GetDefaultPrintSettings::ID || message.type() == PrintHostMsg_ScriptedPrint::ID)) { std::string type; switch (mes...
2,469
21,013
0
static void __mem_cgroup_threshold(struct mem_cgroup *memcg, bool swap) { struct mem_cgroup_threshold_ary *t; u64 usage; int i; rcu_read_lock(); if (!swap) t = rcu_dereference(memcg->thresholds.primary); else t = rcu_dereference(memcg->memsw_thresholds.primary); if (!t) goto unlock; usage = mem_cgroup_...
2,470
17,425
0
getEventMask(ScreenPtr pScreen, ClientPtr client) { SetupScreen(pScreen); ScreenSaverEventPtr pEv; if (!pPriv) return 0; for (pEv = pPriv->events; pEv; pEv = pEv->next) if (pEv->client == client) return pEv->mask; return 0; }
2,471
89,537
0
newSWFGlyphShape() { SWFShape shape = (SWFShape)malloc(sizeof(struct SWFShape_s)); /* If malloc failed, return NULL to signify this */ if (NULL == shape) return NULL; SWFCharacterInit((SWFCharacter)shape); BLOCK(shape)->writeBlock = NULL; BLOCK(shape)->complete = NULL; BLOCK(shape)->dtor = NULL; BLOCK(shap...
2,472
181,205
1
static Image *ReadJPEGImage(const ImageInfo *image_info, ExceptionInfo *exception) { char value[MaxTextExtent]; const char *option; ErrorManager error_manager; Image *image; IndexPacket index; JSAMPLE *volatile jpeg_pixels; JSAMPROW scanline[1]; MagickBooleanType ...
2,473
113,584
0
bool AccessibilityUIElement::isAttributeSupported(JSStringRef attribute) { return false; }
2,474
174,522
0
decode_rfc3442_rt(int dl, const uint8_t *data) { const uint8_t *p = data; const uint8_t *e; uint8_t cidr; size_t ocets; struct rt *routes = NULL; struct rt *rt = NULL; /* Minimum is 5 -first is CIDR and a router length of 4 */ if (dl < 5) return NULL; e = p + dl; while (p < e) { cidr = *p++; if (cidr > ...
2,475
163,359
0
bool RenderThreadImpl::IsThreadedAnimationEnabled() { return is_threaded_animation_enabled_; }
2,476
45,931
0
static int init_tfm(struct crypto_tfm *tfm) { struct crypto_cipher *cipher; struct crypto_instance *inst = (void *)tfm->__crt_alg; struct crypto_spawn *spawn = crypto_instance_ctx(inst); struct priv *ctx = crypto_tfm_ctx(tfm); u32 *flags = &tfm->crt_flags; cipher = crypto_spawn_cipher(spawn); if (IS_ERR(cipher)...
2,477
178,620
1
ProcEstablishConnection(ClientPtr client) { const char *reason; char *auth_proto, *auth_string; xConnClientPrefix *prefix; REQUEST(xReq); prefix = (xConnClientPrefix *) ((char *) stuff + sz_xReq); auth_proto = (char *) prefix + sz_xConnClientPrefix; auth_string = auth_proto + pad_to_int32(prefix->nbytesAuthProto); ...
2,478
92,835
0
GF_Err EncodeFile(char *in, GF_ISOFile *mp4, GF_SMEncodeOptions *opts, FILE *logs) { #ifdef GPAC_DISABLE_SMGR return GF_NOT_SUPPORTED; #else GF_Err e; GF_SceneLoader load; GF_SceneManager *ctx; GF_SceneGraph *sg; #ifndef GPAC_DISABLE_SCENE_STATS GF_StatManager *statsman = NULL; #endif sg = gf_sg_new(); ctx = g...
2,479
158,863
0
bool Browser::ShouldStartShutdown() const { if (IsBrowserClosing()) return false; const size_t closing_browsers_count = BrowserList::GetInstance()->currently_closing_browsers().size(); return BrowserList::GetInstance()->size() == closing_browsers_count + 1u; }
2,480
168,515
0
void ReadableStreamBytesConsumer::OnRejected() { DCHECK(is_reading_); DCHECK(!pending_buffer_); is_reading_ = false; if (state_ == PublicState::kClosed) return; DCHECK_EQ(state_, PublicState::kReadableOrWaiting); state_ = PublicState::kErrored; reader_.Clear(); Client* client = client_; ClearClien...
2,481
123,542
0
void SavePackage::GetSerializedHtmlDataForCurrentPageWithLocalLinks() { if (wait_state_ != HTML_DATA) return; std::vector<GURL> saved_links; std::vector<FilePath> saved_file_paths; int successful_started_items_count = 0; for (SaveUrlItemMap::iterator it = in_progress_items_.begin(); it != in_progr...
2,482
122,980
0
void RenderWidgetHostImpl::ImeConfirmComposition(const string16& text) { ImeConfirmComposition(text, ui::Range::InvalidRange()); }
2,483
10,441
0
static int megasas_finish_internal_dcmd(MegasasCmd *cmd, SCSIRequest *req) { int opcode; int retval = MFI_STAT_OK; int lun = req->lun; opcode = le32_to_cpu(cmd->frame->dcmd.opcode); scsi_req_unref(req); trace_megasas_dcmd_internal_finish(cmd->index, opcod...
2,484
167,075
0
BluetoothSocketCloseFunction::BluetoothSocketCloseFunction() {}
2,485
141,148
0
static inline bool IsValidNameStart(UChar32 c) { if ((c >= 0x02BB && c <= 0x02C1) || c == 0x559 || c == 0x6E5 || c == 0x6E6) return true; if (c == ':' || c == '_') return true; const uint32_t kNameStartMask = WTF::unicode::kLetter_Lowercase | WTF::unicode::kLetter_Uppercase | WTF::unicode::k...
2,486
175,095
0
void SoundChannel::setVolume(float leftVolume, float rightVolume) { Mutex::Autolock lock(&mLock); setVolume_l(leftVolume, rightVolume); }
2,487
124,972
0
LayoutUnit RenderBox::viewLogicalHeightForPercentages() const { if (document().printing()) return static_cast<LayoutUnit>(view()->pageLogicalHeight()); return view()->viewLogicalHeight(); }
2,488
62,245
0
bgp_capabilities_print(netdissect_options *ndo, const u_char *opt, int caps_len) { int cap_type, cap_len, tcap_len, cap_offset; int i = 0; while (i < caps_len) { ND_TCHECK2(opt[i], BGP_CAP_HEADER_SIZE); cap_type=opt[i]; cap_len=opt...
2,489
25,275
0
static inline u32 armv7pmu_read_counter(int idx) { unsigned long value = 0; if (idx == ARMV7_CYCLE_COUNTER) asm volatile("mrc p15, 0, %0, c9, c13, 0" : "=r" (value)); else if ((idx >= ARMV7_COUNTER0) && (idx <= ARMV7_COUNTER_LAST)) { if (armv7_pmnc_select_counter(idx) == idx) asm volatile("mrc p15, 0, %0, c9...
2,490
183,419
1
static int tun_set_iff(struct net *net, struct file *file, struct ifreq *ifr) { struct tun_struct *tun; struct tun_file *tfile = file->private_data; struct net_device *dev; int err; if (tfile->detached) return -EINVAL; dev = __dev_get_by_name(net, ifr->ifr_name); if (dev) { if (ifr->ifr_flags & IFF_TUN_EXCL) return -...
2,491
184,497
1
bool PrintPreviewMessageHandler::OnMessageReceived( const IPC::Message& message) { bool handled = true; IPC_BEGIN_MESSAGE_MAP(PrintPreviewMessageHandler, message) IPC_MESSAGE_HANDLER(PrintHostMsg_RequestPrintPreview, OnRequestPrintPreview) IPC_MESSAGE_HANDLER(PrintHostMsg_DidG...
2,492
150,726
0
const PermissionInfoList& last_permission_info_list() { return last_permission_info_list_; }
2,493
130,412
0
void ThreadWatcher::OnCheckResponsiveness(uint64 ping_sequence_number) { DCHECK(WatchDogThread::CurrentlyOnWatchDogThread()); if (!active_) { responsive_ = true; return; } if (ping_sequence_number_ != ping_sequence_number) { ResetHangCounters(); responsive_ = true; return; } GotNoRespon...
2,494
107,042
0
WKPageRef QQuickWebView::pageRef() const { Q_D(const QQuickWebView); return toAPI(d->webPageProxy.get()); }
2,495
133,351
0
void WindowTreeHostManager::CreateOrUpdateMirroringDisplay( const DisplayInfoList& info_list) { if (GetDisplayManager()->IsInMirrorMode() || GetDisplayManager()->IsInUnifiedMode()) { mirror_window_controller_->UpdateWindow(info_list); cursor_window_controller_->UpdateContainer(); } else { NOTR...
2,496
37,578
0
static int rmap_add(struct kvm_vcpu *vcpu, u64 *spte, gfn_t gfn) { struct kvm_mmu_page *sp; unsigned long *rmapp; sp = page_header(__pa(spte)); kvm_mmu_page_set_gfn(sp, spte - sp->spt, gfn); rmapp = gfn_to_rmap(vcpu->kvm, gfn, sp->role.level); return pte_list_add(vcpu, spte, rmapp); }
2,497
79,416
0
static int mov_write_tfrf_tags(AVIOContext *pb, MOVMuxContext *mov, MOVTrack *track) { int64_t pos = avio_tell(pb); int i; for (i = 0; i < mov->ism_lookahead; i++) { /* Update the tfrf tag for the last ism_lookahead fragments, * nb_frag_info - 1 is the next fr...
2,498
25,939
0
static int is_f00f_bug(struct pt_regs *regs, unsigned long address) { #ifdef CONFIG_X86_F00F_BUG unsigned long nr; /* * Pentium F0 0F C7 C8 bug workaround: */ if (boot_cpu_data.f00f_bug) { nr = (address - idt_descr.address) >> 3; if (nr == 6) { do_invalid_op(regs, 0); return 1; } } #endif return ...
2,499