unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
184,182
1
void PrintWebViewHelper::UpdatePrintableSizeInPrintParameters( WebFrame* frame, WebNode* node, ViewMsg_Print_Params* params) { double content_width_in_points; double content_height_in_points; double margin_top_in_points; double margin_right_in_points; double margin_bottom_in_points; double margin_left_in_points; Prepar...
17,500
132,807
0
void PictureLayer::SetNeedsDisplayRect(const gfx::Rect& layer_rect) { if (!layer_rect.IsEmpty()) { pending_invalidation_.Union( gfx::IntersectRects(layer_rect, gfx::Rect(bounds()))); } Layer::SetNeedsDisplayRect(layer_rect); }
17,501
87,803
0
static int foreach_comment(void *user, const char *k, const char *v) { RAnalMetaUserItem *ui = user; RCore *core = ui->anal->user; const char *cmd = ui->user; if (!strncmp (k, "meta.C.", 7)) { char *cmt = (char *)sdb_decode (v, 0); if (cmt) { r_core_cmdf (core, "s %s", k + 7); r_core_cmd0 (core, cmd); ...
17,502
30,770
0
int bt_sock_unregister(int proto) { int err = 0; if (proto < 0 || proto >= BT_MAX_PROTO) return -EINVAL; write_lock(&bt_proto_lock); if (!bt_proto[proto]) err = -ENOENT; else bt_proto[proto] = NULL; write_unlock(&bt_proto_lock); return err; }
17,503
127,054
0
void ChromeClientImpl::resetPagePopupDriver() { m_pagePopupDriver = m_webView; }
17,504
114,587
0
void RenderThreadImpl::IdleHandlerInForegroundTab() { int64 new_delay_ms = idle_notification_delay_in_ms_ + 1000000 / (idle_notification_delay_in_ms_ + 2000); if (new_delay_ms >= kLongIdleHandlerDelayMs) new_delay_ms = kShortIdleHandlerDelayMs; if (idle_notifications_to_skip_ > 0) { ...
17,505
34,910
0
static const char *rpc_proc_name(const struct rpc_task *task) { const struct rpc_procinfo *proc = task->tk_msg.rpc_proc; if (proc) { if (proc->p_name) return proc->p_name; else return "NULL"; } else return "no proc"; }
17,506
78,095
0
cmsBool ismiddle(int c) { return (!isseparator(c) && (c != '#') && (c !='\"') && (c != '\'') && (c > 32) && (c < 127)); }
17,507
152,356
0
blink::WebRelatedAppsFetcher* RenderFrameImpl::GetRelatedAppsFetcher() { if (!related_apps_fetcher_) related_apps_fetcher_.reset(new RelatedAppsFetcher(&GetManifestManager())); return related_apps_fetcher_.get(); }
17,508
8,186
0
int v9fs_device_realize_common(V9fsState *s, Error **errp) { V9fsVirtioState *v = container_of(s, V9fsVirtioState, state); int i, len; struct stat stat; FsDriverEntry *fse; V9fsPath path; int rc = 1; /* initialize pdu allocator */ QLIST_INIT(&s->free_list); QLIST_INIT(&s->active_lis...
17,509
90,149
0
static int hidp_sock_create(struct net *net, struct socket *sock, int protocol, int kern) { struct sock *sk; BT_DBG("sock %p", sock); if (sock->type != SOCK_RAW) return -ESOCKTNOSUPPORT; sk = sk_alloc(net, PF_BLUETOOTH, GFP_ATOMIC, &hidp_proto, kern); if (!sk) return -ENOMEM; sock_init_data(sock, s...
17,510
68,023
0
static plist_t parse_array_node(struct bplist_data *bplist, const char** bnode, uint64_t size) { uint64_t j; uint64_t str_j = 0; uint64_t index1; plist_data_t data = plist_new_plist_data(); const char *index1_ptr = NULL; data->type = PLIST_ARRAY; data->length = size; plist_t node = nod...
17,511
105,845
0
void UrlmonUrlRequestManager::SetInfoForUrl(const std::wstring& url, IMoniker* moniker, LPBC bind_ctx) { CComObject<UrlmonUrlRequest>* new_request = NULL; CComObject<UrlmonUrlRequest>::CreateInstance(&new_request); if (new_request) { GURL start_url(url); DCHECK(...
17,512
125,611
0
void RenderViewHostImpl::ForwardKeyboardEvent( const NativeWebKeyboardEvent& key_event) { if (ignore_input_events()) { if (key_event.type == WebInputEvent::RawKeyDown) delegate_->OnIgnoredUIEvent(); return; } RenderWidgetHostImpl::ForwardKeyboardEvent(key_event); }
17,513
46,990
0
static void decrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) { const unsigned int bsize = SERPENT_BLOCK_SIZE; struct crypt_priv *ctx = priv; int i; ctx->fpu_enabled = serpent_fpu_begin(ctx->fpu_enabled, nbytes); if (nbytes >= SERPENT_AVX2_PARALLEL_BLOCKS * bsize) { serpent_ecb_dec_16way(ctx->ctx, ...
17,514
48,646
0
static void h2_session_ev_no_io(h2_session *session, int arg, const char *msg) { switch (session->state) { case H2_SESSION_ST_BUSY: /* Nothing to READ, nothing to WRITE on the master connection. * Possible causes: * - we wait for the client to send us sth *...
17,515
108,906
0
void RenderViewImpl::LoadNavigationErrorPage( WebFrame* frame, const WebURLRequest& failed_request, const WebURLError& error, const std::string& html, bool replace) { std::string alt_html; const std::string* error_html; if (!html.empty()) { error_html = &html; } else { content::GetC...
17,516
125,666
0
void RenderViewHostImpl::OnOpenURL( const ViewHostMsg_OpenURL_Params& params) { GURL validated_url(params.url); FilterURL(ChildProcessSecurityPolicyImpl::GetInstance(), GetProcess(), false, &validated_url); delegate_->RequestOpenURL( this, validated_url, params.referrer, params.disposition,...
17,517
30,345
0
static __init void vsock_init_tables(void) { int i; for (i = 0; i < ARRAY_SIZE(vsock_bind_table); i++) INIT_LIST_HEAD(&vsock_bind_table[i]); for (i = 0; i < ARRAY_SIZE(vsock_connected_table); i++) INIT_LIST_HEAD(&vsock_connected_table[i]); }
17,518
82,519
0
void jslFunctionCharAsString(unsigned char ch, char *str, size_t len) { if (ch >= LEX_TOKEN_START) { jslTokenAsString(ch, str, len); } else { str[0] = (char)ch; str[1] = 0; } }
17,519
47,789
0
static int pcm_chmap_ctl_tlv(struct snd_kcontrol *kcontrol, int op_flag, unsigned int size, unsigned int __user *tlv) { struct snd_pcm_chmap *info = snd_kcontrol_chip(kcontrol); const struct snd_pcm_chmap_elem *map; unsigned int __user *dst; int c, count = 0; if (snd_BUG_ON(!info->chmap)) return -EINVAL...
17,520
154,216
0
error::Error GLES2DecoderImpl::HandleDrawArrays(uint32_t immediate_data_size, const volatile void* cmd_data) { const volatile cmds::DrawArrays& c = *static_cast<const volatile cmds::DrawArrays*>(cmd_data); GLint first = static_cast<GLint>(c.first); GLsizei cou...
17,521
10,910
0
ksba_ocsp_set_nonce (ksba_ocsp_t ocsp, unsigned char *nonce, size_t noncelen) { if (!ocsp) return 0; if (!nonce) return sizeof ocsp->nonce; if (noncelen > sizeof ocsp->nonce) noncelen = sizeof ocsp->nonce; if (noncelen) { memcpy (ocsp->nonce, nonce, noncelen); /* Reset the high bit. ...
17,522
55,381
0
static int tcp_clean_rtx_queue(struct sock *sk, int prior_fackets, u32 prior_snd_una, struct tcp_sacktag_state *sack) { const struct inet_connection_sock *icsk = inet_csk(sk); struct skb_mstamp first_ackt, last_ackt, now; struct tcp_sock *tp = tcp_sk(sk); u32 prior_sacked = tp->sacked_out; u32 ...
17,523
173,521
0
bool effect_exists(effect_context_t *context) { struct listnode *node; list_for_each(node, &created_effects_list) { effect_context_t *fx_ctxt = node_to_item(node, effect_context_t, effects_list_node); if (fx_ctxt == context) { return true; } } return false; ...
17,524
168,347
0
void BrowserView::SetAlwaysOnTop(bool always_on_top) { NOTIMPLEMENTED(); }
17,525
83,019
0
int pdf_set_font(struct pdf_doc *pdf, const char *font) { struct pdf_object *obj; int last_index = 0; /* See if we've used this font before */ for (obj = pdf_find_first_object(pdf, OBJ_font); obj; obj = obj->next) { if (strcmp(obj->font.name, font) == 0) break; last_index = ...
17,526
70,853
0
static int http_buf_read_compressed(URLContext *h, uint8_t *buf, int size) { HTTPContext *s = h->priv_data; int ret; if (!s->inflate_buffer) { s->inflate_buffer = av_malloc(DECOMPRESS_BUF_SIZE); if (!s->inflate_buffer) return AVERROR(ENOMEM); } if (s->inflate_stream.ava...
17,527
72,981
0
HTMLlineproc0(char *line, struct html_feed_environ *h_env, int internal) { Lineprop mode; int cmd; struct readbuffer *obuf = h_env->obuf; int indent, delta; struct parsed_tag *tag; Str tokbuf; struct table *tbl = NULL; struct table_mode *tbl_mode = NULL; int tbl_width = 0; #ifdef USE...
17,528
1,097
0
GfxColorSpace *GfxDeviceNColorSpace::parse(Array *arr) { GfxDeviceNColorSpace *cs; int nCompsA; GooString *namesA[gfxColorMaxComps]; GfxColorSpace *altA; Function *funcA; Object obj1, obj2; int i; if (arr->getLength() != 4 && arr->getLength() != 5) { error(-1, "Bad DeviceN color space"); goto e...
17,529
122,420
0
bool HTMLTextAreaElement::appendFormData(FormDataList& encoding, bool) { if (name().isEmpty()) return false; document().updateLayout(); const String& text = (m_wrap == HardWrap) ? valueWithHardLineBreaks() : value(); encoding.appendData(name(), text); const AtomicString& dirnameAttrValue ...
17,530
186,651
1
void WebGL2RenderingContextBase::texImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, ...
17,531
107,087
0
QWebViewportInfo* QQuickWebViewExperimental::viewportInfo() { return m_viewportInfo; }
17,532
144,308
0
void LoginDisplayHostDestroyed() { login_display_host_ = nullptr; }
17,533
169,857
0
xsltFreeCtxtExts(xsltTransformContextPtr ctxt) { if (ctxt->extElements != NULL) xmlHashFree(ctxt->extElements, NULL); if (ctxt->extFunctions != NULL) xmlHashFree(ctxt->extFunctions, NULL); }
17,534
13,284
0
pdf14_clist_create_compositor(gx_device * dev, gx_device ** pcdev, const gs_composite_t * pct, gs_gstate * pgs, gs_memory_t * mem, gx_device *cdev) { pdf14_clist_device * pdev = (pdf14_clist_device *)dev; int code, is_pdf14_compositor; const gs_pdf14trans_t * pdf14pct = (const gs_pdf14trans_t *) pct...
17,535
75,298
0
static float square(float x) { return x*x; }
17,536
129,383
0
uint32 GLES2DecoderImpl::GetTextureUploadCount() { return texture_state_.texture_upload_count + async_pixel_transfer_manager_->GetTextureUploadCount(); }
17,537
158,501
0
void WebLocalFrameImpl::BindDevToolsAgentRequest( mojom::blink::DevToolsAgentAssociatedRequest request) { if (!dev_tools_agent_) dev_tools_agent_ = WebDevToolsAgentImpl::CreateForFrame(this); dev_tools_agent_->BindRequest(std::move(request)); }
17,538
100,387
0
void BrowserRenderProcessHost::OnUpdatedCacheStats( const WebCache::UsageStats& stats) { WebCacheManager::GetInstance()->ObserveStats(id(), stats); }
17,539
75,529
0
static void usb_set_lpm_parameters(struct usb_device *udev) { struct usb_hub *hub; unsigned int port_to_port_delay; unsigned int udev_u1_del; unsigned int udev_u2_del; unsigned int hub_u1_del; unsigned int hub_u2_del; if (!udev->lpm_capable || udev->speed < USB_SPEED_SUPER) return; hub = usb_hub_to_struct_h...
17,540
59,912
0
static int uas_slave_alloc(struct scsi_device *sdev) { struct uas_dev_info *devinfo = (struct uas_dev_info *)sdev->host->hostdata; sdev->hostdata = devinfo; /* * USB has unusual DMA-alignment requirements: Although the * starting address of each scatter-gather element doesn't matter, * the length of each e...
17,541
164,235
0
bool CanUseExistingResource(const net::HttpResponseInfo* http_info) { if (!http_info->headers || http_info->headers->RequiresValidation( http_info->request_time, http_info->response_time, base::Time::Now())) { return false; } std::string value...
17,542
110,976
0
LRESULT RootWindowHostWin::OnKeyEvent(UINT message, WPARAM w_param, LPARAM l_param) { MSG msg = { hwnd(), message, w_param, l_param }; KeyEvent keyev(msg, message == WM_CHAR); SetMsgHandled(root_window_->DispatchKeyEvent(&keyev)); retur...
17,543
168,480
0
void CoordinatorImpl::RequestPrivateMemoryFootprint( base::ProcessId pid, RequestPrivateMemoryFootprintCallback callback) { auto adapter = [](RequestPrivateMemoryFootprintCallback callback, bool success, uint64_t, mojom::GlobalMemoryDumpPtr global_memory_dump) { std...
17,544
145,621
0
mojom::NavigationClient* NavigationRequest::GetCommitNavigationClient() { if (commit_navigation_client_ && commit_navigation_client_.is_bound()) return commit_navigation_client_.get(); return nullptr; }
17,545
34,970
0
static void rpc_release_resources_task(struct rpc_task *task) { if (task->tk_rqstp) xprt_release(task); if (task->tk_msg.rpc_cred) { put_rpccred(task->tk_msg.rpc_cred); task->tk_msg.rpc_cred = NULL; } rpc_task_release_client(task); }
17,546
106,502
0
void WebPageProxy::didReceiveTitleForFrame(uint64_t frameID, const String& title, CoreIPC::ArgumentDecoder* arguments) { RefPtr<APIObject> userData; WebContextUserMessageDecoder messageDecoder(userData, context()); if (!arguments->decode(messageDecoder)) return; WebFrameProxy* frame = process()...
17,547
103,530
0
bool ExtensionService::UninstallExtensionHelper( ExtensionService* extensions_service, const std::string& extension_id) { const Extension* extension = extensions_service->GetInstalledExtension(extension_id); if (!extension) { LOG(WARNING) << "Attempted uninstallation of non-existent extension wi...
17,548
57,893
0
static inline void unmap_mapping_range_tree(struct rb_root *root, struct zap_details *details) { struct vm_area_struct *vma; pgoff_t vba, vea, zba, zea; vma_interval_tree_foreach(vma, root, details->first_index, details->last_index) { vba = vma->vm_pgoff; vea = vba + vma_pages(vma) - 1; /* Assume...
17,549
163,988
0
void PaymentRequestState::SetSelectedInstrument(PaymentInstrument* instrument) { selected_instrument_ = instrument; UpdateIsReadyToPayAndNotifyObservers(); }
17,550
93,700
0
cJSON *cJSON_CreateIntArray(const int *numbers,int count) {int i;cJSON *n=0,*p=0,*a=cJSON_CreateArray();for(i=0;a && i<count;i++){n=cJSON_CreateNumber(numbers[i]);if(!n){cJSON_Delete(a);return 0;}if(!i)a->child=n;else suffix_object(p,n);p=n;}return a;}
17,551
39,852
0
struct sk_buff *__pskb_copy(struct sk_buff *skb, int headroom, gfp_t gfp_mask) { unsigned int size = skb_headlen(skb) + headroom; struct sk_buff *n = __alloc_skb(size, gfp_mask, skb_alloc_rx_flag(skb), NUMA_NO_NODE); if (!n) goto out; /* Set the data pointer */ skb_reserve(n, headroom); /* Set the tail p...
17,552
29,149
0
static int nfs4_do_create(struct inode *dir, struct dentry *dentry, struct nfs4_createdata *data) { int status = nfs4_call_sync(NFS_SERVER(dir)->client, NFS_SERVER(dir), &data->msg, &data->arg.seq_args, &data->res.seq_res, 1); if (status == 0) { update_changeattr(dir, &data->res.dir_cinfo); status = nfs_i...
17,553
132,163
0
void RenderViewTest::SendWebMouseEvent( const blink::WebMouseEvent& mouse_event) { RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); impl->OnMessageReceived( InputMsg_HandleInputEvent(0, &mouse_event, ui::LatencyInfo(), false)); }
17,554
152,780
0
void SparseHistogram::WriteAscii(std::string* output) const { WriteAsciiImpl(true, "\n", output); }
17,555
112,387
0
void Document::addMessage(MessageSource source, MessageLevel level, const String& message, const String& sourceURL, unsigned lineNumber, PassRefPtr<ScriptCallStack> callStack, ScriptState* state, unsigned long requestIdentifier) { if (!isContextThread()) { postTask(AddConsoleMessageTask::create(source, leve...
17,556
87,411
0
static RECTANGLE_16* region16_extents_noconst(REGION16* region) { if (!region) return NULL; return &region->extents; }
17,557
110,686
0
bool TextureManager::TextureInfo::SetParameter( const FeatureInfo* feature_info, GLenum pname, GLint param) { DCHECK(feature_info); if (target_ == GL_TEXTURE_EXTERNAL_OES || target_ == GL_TEXTURE_RECTANGLE_ARB) { if (pname == GL_TEXTURE_MIN_FILTER && (param != GL_NEAREST && param != GL_LINEAR...
17,558
36,256
0
void sctp_assoc_rwnd_decrease(struct sctp_association *asoc, unsigned int len) { int rx_count; int over = 0; if (unlikely(!asoc->rwnd || asoc->rwnd_over)) pr_debug("%s: association:%p has asoc->rwnd:%u, " "asoc->rwnd_over:%u!\n", __func__, asoc, asoc->rwnd, asoc->rwnd_over); if (asoc->ep->rcvbuf_policy)...
17,559
187,425
1
static int svc_can_register(const uint16_t *name, size_t name_len, pid_t spid, uid_t uid) { const char *perm = "add"; if (uid >= AID_APP) { return 0; /* Don't allow apps to register services */ } return check_mac_perms_from_lookup(spid, uid, perm, str8(name, name_len)) ? 1 : 0; }
17,560
64,587
0
void _yr_scan_remove_match_from_list( YR_MATCH* match, YR_MATCHES* matches_list) { if (match->prev != NULL) match->prev->next = match->next; if (match->next != NULL) match->next->prev = match->prev; if (matches_list->head == match) matches_list->head = match->next; if (matches_list->tail ...
17,561
108,015
0
bool InlineTextBox::isSelected(int startPos, int endPos) const { int sPos = max(startPos - m_start, 0); int ePos = min(endPos - m_start, (int)m_len); return (sPos < ePos); }
17,562
19,185
0
void _out_dns_mark_bad(conn_t out) { if (out->s2s->dns_bad_timeout > 0) { dnsres_t bad; char *ipport; /* mark this host as bad */ ipport = dns_make_ipport(out->ip, out->port); bad = xhash_get(out->s2s->dns_bad, ipport); if (bad == NULL) { bad = (dnsres_t)...
17,563
176,370
0
explicit StringWrapperElementsAccessor(const char* name) : ElementsAccessorBase<Subclass, KindTraits>(name) { USE(KindTraits::Kind); }
17,564
181,475
1
DefragTimeoutTest(void) { int i; int ret = 0; /* Setup a small numberr of trackers. */ if (ConfSet("defrag.trackers", "16") != 1) { printf("ConfSet failed: "); goto end; } DefragInit(); /* Load in 16 packets. */ for (i = 0; i < 16; i++) { Packet *p = BuildTestPacket(i, 0, 1, 'A' + i, 16); if (p == NULL) goto...
17,565
142,297
0
void ChromePasswordManagerClient::HidePasswordGenerationPopup() { if (popup_controller_) popup_controller_->HideAndDestroy(); }
17,566
153,213
0
uint32_t DesktopWindowTreeHostX11::DispatchEvent( const ui::PlatformEvent& event) { XEvent* xev = event; TRACE_EVENT1("views", "DesktopWindowTreeHostX11::Dispatch", "event->type", event->type); UpdateWMUserTime(event); switch (xev->type) { case EnterNotify: case LeaveNotify: { ...
17,567
58,804
0
struct page * find_get_page(struct address_space *mapping, pgoff_t offset) { struct page *page; read_lock_irq(&mapping->tree_lock); page = radix_tree_lookup(&mapping->page_tree, offset); if (page) page_cache_get(page); read_unlock_irq(&mapping->tree_lock); return page; }
17,568
29,694
0
static void __net_exit sysctl_net_exit(struct net *net) { retire_sysctl_set(&net->sysctls); }
17,569
80,863
0
GF_Err tbox_dump(GF_Box *a, FILE * trace) { GF_TextBoxBox*p = (GF_TextBoxBox*)a; gf_isom_box_dump_start(a, "TextBoxBox", trace); fprintf(trace, ">\n"); tx3g_dump_box(trace, &p->box); gf_isom_box_dump_done("TextBoxBox", a, trace); return GF_OK; }
17,570
112,864
0
void GDataCache::CommitDirty(const std::string& resource_id, const std::string& md5, FileOperationType file_operation_type, base::PlatformFileError* error) { AssertOnSequencedWorkerPool(); DCHECK(error); scoped_ptr<CacheEntry>...
17,571
151,638
0
bool ChromePaymentRequestDelegate::IsIncognito() const { Profile* profile = Profile::FromBrowserContext(web_contents_->GetBrowserContext()); return profile && profile->GetProfileType() == Profile::INCOGNITO_PROFILE; }
17,572
37,734
0
static void add_msr_offset(u32 offset) { int i; for (i = 0; i < MSRPM_OFFSETS; ++i) { /* Offset already in list? */ if (msrpm_offsets[i] == offset) return; /* Slot used by another offset? */ if (msrpm_offsets[i] != MSR_INVALID) continue; /* Add offset to list */ msrpm_offsets[i] = offset; ret...
17,573
94,493
0
static void rfcomm_tty_close(struct tty_struct *tty, struct file *filp) { struct rfcomm_dev *dev = (struct rfcomm_dev *) tty->driver_data; unsigned long flags; if (!dev) return; BT_DBG("tty %p dev %p dlc %p opened %d", tty, dev, dev->dlc, dev->port.count); spin_lock_irqsave(&dev->port.lock, flags); if ...
17,574
135,797
0
void SelectionController::SelectClosestMisspellingFromHitTestResult( const HitTestResult& result, AppendTrailingWhitespace append_trailing_whitespace) { Node* inner_node = result.InnerNode(); if (!inner_node || !inner_node->GetLayoutObject()) return; const VisiblePositionInFlatTree& pos = VisiblePos...
17,575
82,069
0
mrb_class_get_under(mrb_state *mrb, struct RClass *outer, const char *name) { return class_from_sym(mrb, outer, mrb_intern_cstr(mrb, name)); }
17,576
145,777
0
static BROTLI_INLINE int DecodeBlockTypeAndLength(int safe, BrotliState* s, int tree_type) { uint32_t max_block_type = s->num_block_types[tree_type]; int tree_offset = tree_type * BROTLI_HUFFMAN_MAX_TABLE_SIZE; const HuffmanCode* type_tree = &s->block_type_trees[tree_offset]; const HuffmanCode* len_tree = &...
17,577
95,633
0
static void S_AL_ClearError( qboolean quiet ) { int error = qalGetError(); if( quiet ) return; if(error != AL_NO_ERROR) { Com_DPrintf(S_COLOR_YELLOW "WARNING: unhandled AL error: %s\n", S_AL_ErrorMsg(error)); } }
17,578
49,781
0
static uint8_t arcmsr_hbaB_wait_msgint_ready(struct AdapterControlBlock *acb) { struct MessageUnit_B *reg = acb->pmuB; int i; for (i = 0; i < 2000; i++) { if (readl(reg->iop2drv_doorbell) & ARCMSR_IOP2DRV_MESSAGE_CMD_DONE) { writel(ARCMSR_MESSAGE_INT_CLEAR_PATTERN, reg->iop2drv_doorbell); writel(ARC...
17,579
175,480
0
static size_t out_get_buffer_size(const struct audio_stream *stream) { struct stream_out *out = (struct stream_out *)stream; return out->config.period_size * audio_stream_out_frame_size((const struct audio_stream_out *)stream); }
17,580
115,878
0
static WebCore::FrameLoaderClientEfl* _ewk_frame_loader_efl_get(const WebCore::Frame* frame) { return static_cast<WebCore::FrameLoaderClientEfl*>(frame->loader()->client()); }
17,581
35,283
0
void netdev_rx_handler_unregister(struct net_device *dev) { ASSERT_RTNL(); rcu_assign_pointer(dev->rx_handler, NULL); rcu_assign_pointer(dev->rx_handler_data, NULL); }
17,582
162,649
0
std::string HeadlessPrintManager::PrintResultToString(PrintResult result) { switch (result) { case PRINT_SUCCESS: return std::string(); // no error message case PRINTING_FAILED: return "Printing failed"; case INVALID_PRINTER_SETTINGS: return "Show invalid printer settings error"; ca...
17,583
103,527
0
void ExtensionService::SyncExtensionChangeIfNeeded(const Extension& extension) { SyncBundle* sync_bundle = GetSyncBundleForExtension(extension); if (sync_bundle) { ExtensionSyncData extension_sync_data(extension, IsExtensionEnabled(extension.id()), ...
17,584
131,135
0
static void withExecutionContextAttributeAttributeSetter(v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TestObject* imp = V8TestObject::toNative(info.Holder()); V8TRYCATCH_VOID(TestObject*, cppValue, V8TestObject::toNativeWithTypeCheck(info.GetIsolate(), jsValue)); ExecutionCont...
17,585
178,033
1
T42_Open_Face( T42_Face face ) { T42_LoaderRec loader; T42_Parser parser; T1_Font type1 = &face->type1; FT_Memory memory = face->root.memory; FT_Error error; PSAux_Service psaux = (PSAux_Service)face->psaux; t42_loader_init( &loader, face ); parser = &lo...
17,586
100,515
0
CachedResource* Cache::resourceForURL(const String& url) { return m_resources.get(url); }
17,587
39,909
0
unsigned char *skb_pull(struct sk_buff *skb, unsigned int len) { return skb_pull_inline(skb, len); }
17,588
19,825
0
static int _nfs4_proc_lookup(struct rpc_clnt *clnt, struct inode *dir, const struct qstr *name, struct nfs_fh *fhandle, struct nfs_fattr *fattr) { struct nfs_server *server = NFS_SERVER(dir); int status; struct nfs4_lookup_arg args = { .bitmask = server->attr_bitmask, .dir_fh = NFS_FH(dir), .name =...
17,589
525
0
static void pdf_run_gs_OPM(fz_context *ctx, pdf_processor *proc, int i) { pdf_run_processor *pr = (pdf_run_processor *)proc; pdf_gstate *gstate = pdf_flush_text(ctx, pr); gstate->stroke.color_params.opm = i; gstate->fill.color_params.opm = i; }
17,590
128,005
0
AwContents::GetMessagePortMessageFilter() { if (message_port_message_filter_.get() == nullptr) { message_port_message_filter_ = new AwMessagePortMessageFilter( web_contents_->GetMainFrame()->GetRoutingID()); web_contents_->GetRenderProcessHost()->AddFilter( message_port_message_fil...
17,591
180,574
1
int snd_timer_close(struct snd_timer_instance *timeri) { struct snd_timer *timer = NULL; struct snd_timer_instance *slave, *tmp; if (snd_BUG_ON(!timeri)) return -ENXIO; /* force to stop the timer */ snd_timer_stop(timeri); if (timeri->flags & SNDRV_TIMER_IFLG_SLAVE) { /* wait, until the active callback is finished *...
17,592
45,130
0
static int req_emerg(lua_State *L) { return req_log_at(L, APLOG_EMERG); }
17,593
3,494
0
irc_server_login (struct t_irc_server *server) { const char *password, *username, *realname; password = IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_PASSWORD); username = IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTION_USERNAME); realname = IRC_SERVER_OPTION_STRING(server, IRC_SERVER_OPTIO...
17,594
128,611
0
base::HistogramBase::Sample GetSwitchUMAId(const std::string& switch_name) { return static_cast<base::HistogramBase::Sample>( base::HashMetricName(switch_name)); }
17,595
45,769
0
static void gcm_enc_copy_hash(struct aead_request *req, struct crypto_gcm_req_priv_ctx *pctx) { struct crypto_aead *aead = crypto_aead_reqtfm(req); u8 *auth_tag = pctx->auth_tag; scatterwalk_map_and_copy(auth_tag, req->dst, req->cryptlen, crypto_aead_authsize(aead), 1); }
17,596
60,910
0
got_filesystem_info (FilesystemInfoState *state, GFileInfo *info) { NautilusDirectory *directory; NautilusFile *file; const char *filesystem_type; /* careful here, info may be NULL */ directory = nautilus_directory_ref (state->directory); state->directory->detai...
17,597
104,139
0
error::Error GLES2DecoderImpl::HandleGetUniformLocation( uint32 immediate_data_size, const gles2::GetUniformLocation& c) { uint32 name_size = c.data_size; const char* name = GetSharedMemoryAs<const char*>( c.name_shm_id, c.name_shm_offset, name_size); if (!name) { return error::kOutOfBounds; } S...
17,598
61,498
0
static const char *CompositeOperatorToPSDBlendMode(CompositeOperator op) { const char *blend_mode; switch (op) { case ColorBurnCompositeOp: blend_mode = "idiv"; break; case ColorDodgeCompositeOp: blend_mode = "div "; break; case ColorizeCompositeOp: blend_mode = "colr"; break; case Dark...
17,599