unique_id
int64
13
189k
target
int64
0
1
code
stringlengths
20
241k
__index_level_0__
int64
0
18.9k
176,098
0
virtual void unsetHeap(int32_t seqNum) { Parcel data, reply; data.writeInterfaceToken(ICrypto::getInterfaceDescriptor()); data.writeInt32(seqNum); remote()->transact(UNSET_HEAP, data, &reply); return; }
12,000
185,775
1
bool IsSiteMuted(const TabStripModel& tab_strip, const int index) { content::WebContents* web_contents = tab_strip.GetWebContentsAt(index); GURL url = web_contents->GetLastCommittedURL(); if (url.SchemeIs(content::kChromeUIScheme)) { return web_contents->IsAudioMuted() && GetTabAudioMutedReaso...
12,001
104,647
0
bool Extension::ParsePEMKeyBytes(const std::string& input, std::string* output) { DCHECK(output); if (!output) return false; if (input.length() == 0) return false; std::string working = input; if (StartsWithASCII(working, kKeyBeginHeaderMarker, true)) { working = ...
12,002
5,922
0
static int ohci_port_set_if_connected(OHCIState *ohci, int i, uint32_t val) { int ret = 1; /* writing a 0 has no effect */ if (val == 0) return 0; /* If CurrentConnectStatus is cleared we set * ConnectStatusChange */ if (!(ohci->rhport[i].ctrl & OHCI_PORT_CCS)) { ohci->rh...
12,003
79,029
0
ExprCreateInteger(int ival) { EXPR_CREATE(ExprInteger, expr, EXPR_VALUE, EXPR_TYPE_INT); expr->integer.ival = ival; return expr; }
12,004
36,532
0
static loff_t snd_disconnect_llseek(struct file *file, loff_t offset, int orig) { return -ENODEV; }
12,005
153,859
0
GLES2Implementation::~GLES2Implementation() { WaitForCmd(); query_tracker_.reset(); if (support_client_side_arrays_ && reserved_ids_[0]) { DeleteBuffers(base::size(reserved_ids_), &reserved_ids_[0]); } ClearMappedBufferRangeMap(); share_group_->FreeContext(this); buffer_tracker_.reset(); readba...
12,006
162,130
0
void RenderProcessHostImpl::RegisterAecDumpConsumerOnUIThread(int id) { DCHECK_CURRENTLY_ON(BrowserThread::UI); aec_dump_consumers_.push_back(id); WebRTCInternals* webrtc_internals = WebRTCInternals::GetInstance(); if (webrtc_internals->IsAudioDebugRecordingsEnabled()) { base::FilePath file_with_extensions...
12,007
77,361
0
ofproto_port_set_bfd(struct ofproto *ofproto, ofp_port_t ofp_port, const struct smap *cfg) { struct ofport *ofport; int error; ofport = ofproto_get_port(ofproto, ofp_port); if (!ofport) { VLOG_WARN("%s: cannot configure bfd on nonexistent port %"PRIu32, of...
12,008
102,075
0
bool SyncBackendHost::IsCryptographerReady( const sync_api::BaseTransaction* trans) const { return initialized() && trans->GetCryptographer()->is_ready(); }
12,009
131,153
0
static void TestObjectPythonReplaceableAttributeSetterCallback(v8::Local<v8::String> name, v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info) { TestObjectPythonV8Internal::TestObjectPythonReplaceableAttributeSetter(name, jsValue, info); }
12,010
120,689
0
void Element::webkitRequestFullScreen(unsigned short flags) { FullscreenController::from(document())->requestFullScreenForElement(this, (flags | LEGACY_MOZILLA_REQUEST), FullscreenController::EnforceIFrameAllowFullScreenRequirement); }
12,011
61,391
0
static inline int mov_get_stsc_samples(MOVStreamContext *sc, int index) { int chunk_count; if (mov_stsc_index_valid(index, sc->stsc_count)) chunk_count = sc->stsc_data[index + 1].first - sc->stsc_data[index].first; else chunk_count = sc->chunk_count - (sc->stsc_data[index].first - 1); ...
12,012
45,814
0
static inline void setbit128_bbe(void *b, int bit) { __set_bit(bit ^ (0x80 - #ifdef __BIG_ENDIAN BITS_PER_LONG #else BITS_PER_BYTE #endif ), b); }
12,013
83,806
0
static inline void hwsim_net_set_netgroup(struct net *net) { struct hwsim_net *hwsim_net = net_generic(net, hwsim_net_id); hwsim_net->netgroup = hwsim_netgroup++; }
12,014
149,411
0
bool ContentSecurityPolicy::allowJavaScriptURLs( Element* element, const String& source, const String& contextURL, const WTF::OrdinalNumber& contextLine, SecurityViolationReportingPolicy reportingPolicy) const { return isAllowedByAll<&CSPDirectiveList::allowJavaScriptURLs>( m_policies, eleme...
12,015
7,674
0
static ssize_t handle_llistxattr(FsContext *ctx, V9fsPath *fs_path, void *value, size_t size) { int fd, ret; struct handle_data *data = (struct handle_data *)ctx->private; fd = open_by_handle(data->mountfd, fs_path->data, O_NONBLOCK); if (fd < 0) { return fd; ...
12,016
9,853
0
smp_fetch_http_auth(struct proxy *px, struct session *l4, void *l7, unsigned int opt, const struct arg *args, struct sample *smp, const char *kw) { if (!args || args->type != ARGT_USR) return 0; CHECK_HTTP_MESSAGE_FIRST(); if (!get_http_auth(l4)) return 0; smp->type = SMP_T_BOOL; smp->d...
12,017
115,303
0
OmniboxViewWin::ScopedFreeze::~ScopedFreeze() { if (edit_->IsWindow() && text_object_model_) { long count; text_object_model_->Unfreeze(&count); if (count == 0) { edit_->InvalidateRect(NULL, false); edit_->UpdateWindow(); } } }
12,018
77,094
0
parse_set_vlan_vid(char *arg, struct ofpbuf *ofpacts, bool push_vlan_if_needed) { struct ofpact_vlan_vid *vlan_vid; uint16_t vid; char *error; error = str_to_u16(arg, "VLAN VID", &vid); if (error) { return error; } if (vid & ~VLAN_VID_MASK) { return xasprintf("%s: not a val...
12,019
56,243
0
static void __dma_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle, struct dma_attrs *attrs) { bool freed; phys_addr_t paddr = dma_to_phys(dev, dma_handle); if (dev == NULL) { WARN_ONCE(1, "Use an actual device structure for DMA allocation\n"); return; } freed = dma_r...
12,020
151,898
0
bool RenderFrameHostImpl::CheckOrDispatchBeforeUnloadForSubtree( bool subframes_only, bool send_ipc, bool is_reload) { bool found_beforeunload = false; for (FrameTreeNode* node : frame_tree_node_->frame_tree()->SubtreeNodes(frame_tree_node_)) { RenderFrameHostImpl* rfh = node->current_frame_h...
12,021
138,873
0
void WallpaperManager::EnsureLoggedInUserWallpaperLoaded() { WallpaperInfo info; if (GetLoggedInUserWallpaperInfo(&info)) { UMA_HISTOGRAM_ENUMERATION("Ash.Wallpaper.Type", info.type, wallpaper::WALLPAPER_TYPE_COUNT); RecordWallpaperAppType(); if (info == current_user_wallpa...
12,022
119,226
0
void ApplyBlockElementCommand::rangeForParagraphSplittingTextNodesIfNeeded(const VisiblePosition& endOfCurrentParagraph, Position& start, Position& end) { start = startOfParagraph(endOfCurrentParagraph).deepEquivalent(); end = endOfCurrentParagraph.deepEquivalent(); document().updateStyleIfNeeded(); b...
12,023
183,796
1
void RTCPeerConnection::setRemoteDescription(PassRefPtr<RTCSessionDescription> prpSessionDescription, PassRefPtr<VoidCallback> successCallback, PassRefPtr<RTCErrorCallback> errorCallback, ExceptionCode& ec) { if (m_readyState == ReadyStateClosing || m_readyState == ReadyStateClosed) { ec = INVALID_STATE_ERR...
12,024
94,485
0
static void rfcomm_dev_state_change(struct rfcomm_dlc *dlc, int err) { struct rfcomm_dev *dev = dlc->owner; if (!dev) return; BT_DBG("dlc %p dev %p err %d", dlc, dev, err); dev->err = err; wake_up_interruptible(&dev->wait); if (dlc->state == BT_CLOSED) { if (!dev->port.tty) { if (test_bit(RFCOMM_RELEASE...
12,025
87
0
int ssl3_get_req_cert_type(SSL *s, unsigned char *p) { int ret=0; unsigned long alg_k; alg_k = s->s3->tmp.new_cipher->algorithm_mkey; #ifndef OPENSSL_NO_GOST if (s->version >= TLS1_VERSION) { if (alg_k & SSL_kGOST) { p[ret++]=TLS_CT_GOST94_SIGN; p[ret++]=TLS_CT_GOST01_SIGN; return(ret); } } ...
12,026
153,694
0
bool GLES2Implementation::GetInternalformativHelper(GLenum target, GLenum format, GLenum pname, GLsizei bufSize, ...
12,027
99,639
0
void VaapiVideoDecodeAccelerator::InitiateSurfaceSetChange(size_t num_pics, gfx::Size size) { DCHECK_EQ(message_loop_, base::MessageLoop::current()); DCHECK(!awaiting_va_surfaces_recycle_); DVLOG(1) << "Initiating surface set change"; awaiting_va_surfa...
12,028
51,267
0
static ZIPARCHIVE_METHOD(locateName) { struct zip *intern; zval *this = getThis(); char *name; int name_len; long flags = 0; long idx = -1; if (!this) { RETURN_FALSE; } ZIP_FROM_OBJECT(intern, this); if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|l", &name, &name_len, &flags) == FAILURE) { ...
12,029
144,042
0
png_do_read_invert_alpha(png_row_infop row_info, png_bytep row) { png_debug(1, "in png_do_read_invert_alpha"); #ifdef PNG_USELESS_TESTS_SUPPORTED if (row != NULL && row_info != NULL) #endif { png_uint_32 row_width = row_info->width; if (row_info->color_type == PNG_COLOR_TYPE_RGB_ALPHA) { ...
12,030
153,896
0
ALWAYS_INLINE bool GLES2DecoderImpl::CheckMultiDrawElementsVertices( const char* function_name, bool instanced, const GLsizei* counts, GLenum type, const int32_t* offsets, const GLsizei* primcounts, GLsizei drawcount, Buffer* element_array_buffer, GLuint* total_max_vertex_accessed, ...
12,031
152,644
0
HTMLFormElement* HTMLFormControlElement::formOwner() const { return ListedElement::form(); }
12,032
67,044
0
int ff_unlock_avcodec(const AVCodec *codec) { if (codec->caps_internal & FF_CODEC_CAP_INIT_THREADSAFE || !codec->init) return 0; av_assert0(ff_avcodec_locked); ff_avcodec_locked = 0; avpriv_atomic_int_add_and_fetch(&entangled_thread_counter, -1); if (lockmgr_cb) { if ((*lockmgr_cb)(...
12,033
29,856
0
kvec_array_init(struct kvec *new, struct kvec *iov, unsigned int nr_segs, size_t bytes) { size_t base = 0; while (bytes || !iov->iov_len) { int copy = min(bytes, iov->iov_len); bytes -= copy; base += copy; if (iov->iov_len == base) { iov++; nr_segs--; base = 0; } } memcpy(new, iov, sizeof(*io...
12,034
117,401
0
png_handle_bKGD(png_structp png_ptr, png_infop info_ptr, png_uint_32 length) { png_size_t truelen; png_byte buf[6]; png_debug(1, "in png_handle_bKGD"); if (!(png_ptr->mode & PNG_HAVE_IHDR)) png_error(png_ptr, "Missing IHDR before bKGD"); else if (png_ptr->mode & PNG_HAVE_IDAT) { png_warn...
12,035
168,392
0
void TestBrowserWindow::ExecuteExtensionCommand( const extensions::Extension* extension, const extensions::Command& command) {}
12,036
109,282
0
void InspectorPageAgent::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWorld* world) { if (world != mainThreadNormalWorld()) return; if (frame == m_page->mainFrame()) m_injectedScriptManager->discardInjectedScripts(); if (!m_frontend) return; RefPtr<JSONObject> scripts =...
12,037
82,542
0
void jslSeekTo(size_t seekToChar) { if (lex->it.var) jsvLockAgain(lex->it.var); // see jslGetNextCh jsvStringIteratorFree(&lex->it); jsvStringIteratorNew(&lex->it, lex->sourceVar, seekToChar); jsvUnLock(lex->it.var); // see jslGetNextCh lex->tokenStart.it.var = 0; lex->tokenStart.currCh = 0; jslPreload();...
12,038
139,164
0
mojom::RouteProvider* RenderProcessHostImpl::GetRemoteRouteProvider() { return remote_route_provider_.get(); }
12,039
27,456
0
static void __exit sit_cleanup(void) { xfrm4_tunnel_deregister(&sit_handler, AF_INET6); unregister_pernet_device(&sit_net_ops); rcu_barrier(); /* Wait for completion of call_rcu()'s */ }
12,040
115,110
0
void Clipboard::InsertMapping(const char* key, char* data, size_t data_len) { DCHECK(clipboard_data_->find(key) == clipboard_data_->end()); (*clipboard_data_)[key] = std::make_pair(data, data_len); }
12,041
183,451
1
void Preferences::NotifyPrefChanged(const std::wstring* pref_name) { if (!pref_name || *pref_name == prefs::kTapToClickEnabled) { CrosLibrary::Get()->GetSynapticsLibrary()->SetBoolParameter( PARAM_BOOL_TAP_TO_CLICK, tap_to_click_enabled_.GetValue()); } if (!pref_name || *pref_name == prefs::kV...
12,042
10,972
0
PHP_FUNCTION(xml_set_processing_instruction_handler) { xml_parser *parser; zval *pind, **hdl; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rZ", &pind, &hdl) == FAILURE) { return; } ZEND_FETCH_RESOURCE(parser,xml_parser *, &pind, -1, "XML Parser", le_xml_parser); xml_set_handler(&parser->processing...
12,043
163,672
0
xmlBufGetAllocationScheme(xmlBufPtr buf) { if (buf == NULL) { #ifdef DEBUG_BUFFER xmlGenericError(xmlGenericErrorContext, "xmlBufGetAllocationScheme: buf == NULL\n"); #endif return(-1); } return(buf->alloc); }
12,044
46,266
0
static int blkdev_write_end(struct file *file, struct address_space *mapping, loff_t pos, unsigned len, unsigned copied, struct page *page, void *fsdata) { int ret; ret = block_write_end(file, mapping, pos, len, copied, page, fsdata); unlock_page(page); page_cache_release(page); return ret; }
12,045
182,649
1
int DecodeTeredo(ThreadVars *tv, DecodeThreadVars *dtv, Packet *p, uint8_t *pkt, uint16_t len, PacketQueue *pq) { if (!g_teredo_enabled) return TM_ECODE_FAILED; uint8_t *start = pkt; /* Is this packet to short to contain an IPv6 packet ? */ if (len < IPV6_HEADER_LEN) return TM_ECODE_FAILED; /* Teredo encapsulate IPv...
12,046
40,317
0
static int atalk_pick_and_bind_port(struct sock *sk, struct sockaddr_at *sat) { int retval; write_lock_bh(&atalk_sockets_lock); for (sat->sat_port = ATPORT_RESERVED; sat->sat_port < ATPORT_LAST; sat->sat_port++) { struct sock *s; sk_for_each(s, &atalk_sockets) { struct atalk_sock *at = at_sk(s)...
12,047
144,751
0
WebContents* GetActiveWebContents() { return browser()->tab_strip_model()->GetActiveWebContents(); }
12,048
92,867
0
GF_Err gf_sm_aggregate(GF_SceneManager *ctx, u16 ESID) { GF_Err e; u32 i, stream_count; #ifndef GPAC_DISABLE_VRML u32 j; GF_AUContext *au; GF_Command *com; #endif e = GF_OK; #if DEBUG_RAP com_count = 0; stream_count = gf_list_count(ctx->streams); for (i=0; i<stream_count; i++) { GF_StreamContext *sc = (GF_...
12,049
104,989
0
void GraphicsContext::setPlatformStrokeThickness(float thickness) { if (paintingDisabled()) return; if (m_data->context) m_data->context->SetPen(wxPen(strokeColor(), thickness, strokeStyleToWxPenStyle(strokeStyle()))); }
12,050
26,555
0
static int __init packet_init(void) { int rc = proto_register(&packet_proto, 0); if (rc != 0) goto out; sock_register(&packet_family_ops); register_pernet_subsys(&packet_net_ops); register_netdevice_notifier(&packet_netdev_notifier); out: return rc; }
12,051
115,276
0
void OmniboxViewWin::RevertAll() { ScopedFreeze freeze(this, GetTextObjectModel()); ClosePopup(); model_->Revert(); saved_selection_for_focus_change_.cpMin = -1; TextChanged(); }
12,052
13,211
0
nsPluginInstance::WriteReady(NPStream* /* stream */ ) { if ( _streamfd != -1 ) { return 1024; } else { return 0; } }
12,053
118,483
0
RenderFrameImpl::createWorkerPermissionClientProxy( blink::WebLocalFrame* frame) { if (!frame || !frame->view()) return NULL; DCHECK(!frame_ || frame_ == frame); return GetContentClient()->renderer()->CreateWorkerPermissionClientProxy( this, frame); }
12,054
123,909
0
void RenderViewImpl::OnSetCompositionFromExistingText( int start, int end, const std::vector<WebKit::WebCompositionUnderline>& underlines) { if (!webview()) return; DCHECK(!handling_ime_event_); handling_ime_event_ = true; webview()->setCompositionFromExistingText(start, end, underlines); handling...
12,055
164,282
0
bool IsBlocked(const scoped_refptr<const Extension>& extension, const GURL& url, int tab_id) { return IsAllowed(extension, url, PERMITTED_NONE, tab_id); }
12,056
37,126
0
static inline bool nested_cpu_has2(struct vmcs12 *vmcs12, u32 bit) { return (vmcs12->cpu_based_vm_exec_control & CPU_BASED_ACTIVATE_SECONDARY_CONTROLS) && (vmcs12->secondary_vm_exec_control & bit); }
12,057
44,504
0
static struct cgroup_meta_data *lxc_cgroup_put_meta(struct cgroup_meta_data *meta_data) { size_t i; if (!meta_data) return NULL; if (--meta_data->ref > 0) return meta_data; lxc_free_array((void **)meta_data->mount_points, (lxc_free_fn)lxc_cgroup_mount_point_free); if (meta_data->hierarchies) { for (i = 0; i ...
12,058
182,148
1
int URI_FUNC(ComposeQueryEngine)(URI_CHAR * dest, const URI_TYPE(QueryList) * queryList, int maxChars, int * charsWritten, int * charsRequired, UriBool spaceToPlus, UriBool normalizeBreaks) { UriBool firstItem = URI_TRUE; int ampersandLen = 0; /* increased to 1 from second item on */ URI_CHAR * write = dest; ...
12,059
171,616
0
char16_t* utf8_to_utf16_n(const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen) { const uint8_t* const u8end = src + srcLen; const uint8_t* u8cur = src; const char16_t* const u16end = dst + dstLen; char16_t* u16cur = dst; while (u8cur < u8end && u16cur < u16end) { size_t u8len = utf8_codepoint_len(*u8...
12,060
78,733
0
static int list_readers(void) { unsigned int i, rcount = sc_ctx_get_reader_count(ctx); if (rcount == 0) { printf("No smart card readers found.\n"); return 0; } printf("# Detected readers (%s)\n", ctx->reader_driver->short_name); printf("Nr. Card Features Name\n"); for (i = 0; i < rcount; i++) { sc_reade...
12,061
147,012
0
int WebFrame::InstanceCount() { return g_frame_count; }
12,062
119,164
0
void XMLHttpRequest::createRequest(ExceptionState& es) { if (m_url.protocolIs("blob") && m_method != "GET") { es.throwDOMException(NetworkError, ExceptionMessages::failedToExecute("send", "XMLHttpRequest", "'GET' is the only method allowed for 'blob:' URLs.")); return; } bool uploadEvents =...
12,063
9,951
0
Chunk::Chunk(Container* parent, WEBP_MetaHandler* handler) { this->needsRewrite = (parent) ? parent->needsRewrite : false; this->parent = parent; XMP_IO* file = handler->parent->ioRef; this->pos = file->Offset(); this->tag = XIO::ReadUns32_LE(file); this->size = XIO::ReadUns32_LE(file); ...
12,064
167,961
0
void LocalFrame::PrintNavigationErrorMessage(const Frame& target_frame, const char* reason) { String target_frame_description = target_frame.IsLocalFrame() ? "with URL '" + ToLocalFrame(target_frame).GetDocument()->Url().GetString() + ...
12,065
135,067
0
void AppCacheHost::GetResourceList( AppCacheResourceInfoVector* resource_infos) { if (associated_cache_.get() && associated_cache_->is_complete()) associated_cache_->ToResourceInfoVector(resource_infos); }
12,066
155,399
0
bool ChromeContentBrowserClient::IsBuiltinComponent( content::BrowserContext* browser_context, const url::Origin& origin) { #if BUILDFLAG(ENABLE_EXTENSIONS) return ChromeContentBrowserClientExtensionsPart::IsBuiltinComponent( browser_context, origin); #else return false; #endif }
12,067
149,583
0
net::NetworkIsolationKey CreateNetworkIsolationKey(const GURL& main_frame_url) { url::Origin origin = url::Origin::Create(main_frame_url); return net::NetworkIsolationKey(origin, origin); }
12,068
112,250
0
void UrlFetcher::Core::SetHeader(const std::string& key, const std::string& value) { request_headers_.SetHeader(key, value); }
12,069
58,863
0
exim_wait_tick(struct timeval *then_tv, int resolution) { struct timeval now_tv; long int now_true_usec; (void)gettimeofday(&now_tv, NULL); now_true_usec = now_tv.tv_usec; now_tv.tv_usec = (now_true_usec/resolution) * resolution; if (exim_tvcmp(&now_tv, then_tv) <= 0) { struct itimerval itval; itval.it_interval...
12,070
32,273
0
static void ext4_dx_csum_set(struct inode *inode, struct ext4_dir_entry *dirent) { struct dx_countlimit *c; struct dx_tail *t; int count_offset, limit, count; if (!EXT4_HAS_RO_COMPAT_FEATURE(inode->i_sb, EXT4_FEATURE_RO_COMPAT_METADATA_CSUM)) return; c = get_dx_countlimit(inode, dirent, &count_offset); i...
12,071
22,649
0
static void update_group_shares_cpu(struct task_group *tg, int cpu, unsigned long sd_shares, unsigned long sd_rq_weight, unsigned long *usd_rq_weight) { unsigned long shares, rq_weight; int boost = 0; rq_weight = usd_rq_weight[cpu]; if (!rq_weight) { boost = 1; rq_weight = NICE_0_LOAD; ...
12,072
23,228
0
int nfs4_proc_layoutget(struct nfs4_layoutget *lgp) { struct nfs_server *server = NFS_SERVER(lgp->args.inode); struct rpc_task *task; struct rpc_message msg = { .rpc_proc = &nfs4_procedures[NFSPROC4_CLNT_LAYOUTGET], .rpc_argp = &lgp->args, .rpc_resp = &lgp->res, }; struct rpc_task_setup task_setup_data = { ...
12,073
35,193
0
void signal_wake_up(struct task_struct *t, int resume) { unsigned int mask; set_tsk_thread_flag(t, TIF_SIGPENDING); /* * For SIGKILL, we want to wake it up in the stopped/traced/killable * case. We don't check t->state here because there is a race with it * executing another processor and just now entering s...
12,074
88,043
0
void genl_lock(void) { mutex_lock(&genl_mutex); }
12,075
165,981
0
void RTCPeerConnectionHandler::GetStats( std::unique_ptr<blink::WebRTCStatsReportCallback> callback, blink::RTCStatsFilter filter) { DCHECK(task_runner_->RunsTasksInCurrentSequence()); signaling_thread()->PostTask( FROM_HERE, base::BindOnce(&GetRTCStatsOnSignalingThread, task_runner_, ...
12,076
25,472
0
static int del_instruction_bp(struct task_struct *child, int slot) { switch (slot) { case 1: if ((child->thread.dbcr0 & DBCR0_IAC1) == 0) return -ENOENT; if (dbcr_iac_range(child) & DBCR_IAC12MODE) { /* address range - clear slots 1 & 2 */ child->thread.iac2 = 0; dbcr_iac_range(child) &= ~DBCR_IAC12M...
12,077
65,123
0
static inline void VectorSubtract3(const DDSVector3 left, const DDSVector3 right, DDSVector3 *destination) { destination->x = left.x - right.x; destination->y = left.y - right.y; destination->z = left.z - right.z; }
12,078
133,758
0
static SSLContext* GetInstance() { return Singleton<SSLContext>::get(); }
12,079
53,871
0
acpi_os_table_override(struct acpi_table_header *existing_table, struct acpi_table_header **new_table) { if (!existing_table || !new_table) return AE_BAD_PARAMETER; *new_table = NULL; #ifdef CONFIG_ACPI_CUSTOM_DSDT if (strncmp(existing_table->signature, "DSDT", 4) == 0) *new_table = (struct acpi_table...
12,080
14,184
0
__GLXcontext *__glXLookupContextByTag(__GLXclientState *cl, GLXContextTag tag) { int num = cl->numCurrentContexts; if (tag < 1 || tag > num) { return 0; } else { return cl->currentContexts[tag-1]; } }
12,081
49,769
0
static void arcmsr_hbaA_stop_bgrb(struct AdapterControlBlock *acb) { struct MessageUnit_A __iomem *reg = acb->pmuA; acb->acb_flags &= ~ACB_F_MSG_START_BGRB; writel(ARCMSR_INBOUND_MESG0_STOP_BGRB, &reg->inbound_msgaddr0); if (!arcmsr_hbaA_wait_msgint_ready(acb)) { printk(KERN_NOTICE "arcmsr%d: wait 'stop adapte...
12,082
188,568
1
virtual void SetUp() { video_ = new libvpx_test::WebMVideoSource(kVP9TestFile); ASSERT_TRUE(video_ != NULL); video_->Init(); video_->Begin(); vpx_codec_dec_cfg_t cfg = {0}; decoder_ = new libvpx_test::VP9Decoder(cfg, 0); ASSERT_TRUE(decoder_ != NULL); }
12,083
32,113
0
static int dev_get_valid_name(struct net *net, const char *name, char *buf, bool fmt) { if (!dev_valid_name(name)) return -EINVAL; if (fmt && strchr(name, '%')) return __dev_alloc_name(net, name, buf); else if (__dev_get_by_name(net, name)) return -EEXIST; else if (buf != name) strlcpy(buf, name, ...
12,084
126,539
0
bool TabStripGtk::IsTabDetached(const TabGtk* tab) const { if (drag_controller_.get()) return drag_controller_->IsTabDetached(tab); return false; }
12,085
15,556
0
process_mux_stdio_fwd(u_int rid, Channel *c, Buffer *m, Buffer *r) { Channel *nc; char *reserved, *chost; u_int cport, i, j; int new_fd[2]; struct mux_stdio_confirm_ctx *cctx; chost = reserved = NULL; if ((reserved = buffer_get_string_ret(m, NULL)) == NULL || (chost = buffer_get_string_ret(m, NULL)) == NULL...
12,086
47,734
0
static inline int netlink_allowed(const struct socket *sock, unsigned int flag) { return (nl_table[sock->sk->sk_protocol].flags & flag) || ns_capable(sock_net(sock->sk)->user_ns, CAP_NET_ADMIN); }
12,087
24,338
0
static void ieee80211_teardown_sdata(struct net_device *dev) { struct ieee80211_sub_if_data *sdata = IEEE80211_DEV_TO_SUB_IF(dev); struct ieee80211_local *local = sdata->local; int flushed; int i; /* free extra data */ ieee80211_free_keys(sdata); ieee80211_debugfs_remove_netdev(sdata); for (i = 0; i < IEEE80...
12,088
36,500
0
int snd_ctl_replace(struct snd_card *card, struct snd_kcontrol *kcontrol, bool add_on_replace) { struct snd_ctl_elem_id id; unsigned int idx; struct snd_kcontrol *old; int ret; if (!kcontrol) return -EINVAL; if (snd_BUG_ON(!card || !kcontrol->info)) { ret = -EINVAL; goto error; } id = kcontrol->id;...
12,089
140,100
0
void HTMLMediaElement::setMuted(bool muted) { BLINK_MEDIA_LOG << "setMuted(" << (void*)this << ", " << boolString(muted) << ")"; if (m_muted == muted) return; bool wasAutoplayingMuted = isAutoplayingMuted(); bool wasPendingAutoplayMuted = m_autoplayVisibilityObserver && paused() && ...
12,090
34,619
0
static void __sctp_unhash_established(struct sctp_association *asoc) { struct sctp_hashbucket *head; struct sctp_ep_common *epb; epb = &asoc->base; epb->hashent = sctp_assoc_hashfn(epb->bind_addr.port, asoc->peer.port); head = &sctp_assoc_hashtable[epb->hashent]; sctp_write_lock(&head->lock); __hlist_d...
12,091
60,688
0
static int sctp_sendmsg(struct sock *sk, struct msghdr *msg, size_t msg_len) { struct net *net = sock_net(sk); struct sctp_sock *sp; struct sctp_endpoint *ep; struct sctp_association *new_asoc = NULL, *asoc = NULL; struct sctp_transport *transport, *chunk_tp; struct sctp_chunk *chunk; union sctp_addr to; struct...
12,092
10,969
0
PHP_FUNCTION(xml_parser_create_ns) { php_xml_parser_create_impl(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1); }
12,093
47,622
0
ap_queue_interruption_control(ap_qid_t qid, void *ind) { register unsigned long reg0 asm ("0") = qid | 0x03000000UL; register unsigned long reg1_in asm ("1") = 0x0000800000000000UL | AP_ISC; register struct ap_queue_status reg1_out asm ("1"); register void *reg2 asm ("2") = ind; asm volatile( ".long 0xb2af0000" ...
12,094
164,623
0
void IndexedDBDatabase::DeleteRange( IndexedDBTransaction* transaction, int64_t object_store_id, std::unique_ptr<IndexedDBKeyRange> key_range, scoped_refptr<IndexedDBCallbacks> callbacks) { DCHECK(transaction); IDB_TRACE1("IndexedDBDatabase::DeleteRange", "txn.id", transaction->id()); DCHECK_NE(tr...
12,095
28,421
0
static __inline__ u32 fib6_new_sernum(void) { u32 n = ++rt_sernum; if ((__s32)n <= 0) rt_sernum = n = 1; return n; }
12,096
116,364
0
void RangeTransactionServer::RangeHandler(const net::HttpRequestInfo* request, std::string* response_status, std::string* response_headers, std::string* response_data) { if (request->extra_hea...
12,097
58,010
0
static int nft_ctx_init_from_setattr(struct nft_ctx *ctx, const struct sk_buff *skb, const struct nlmsghdr *nlh, const struct nlattr * const nla[]) { struct net *net = sock_net(skb->sk); const struct nfgenmsg *nfmsg = nlmsg_data(nlh); struct nft_af_info *afi = NULL; struct nft_table *tabl...
12,098
112,538
0
void Document::resetActiveLinkColor() { m_activeLinkColor.setNamedColor("red"); }
12,099