idx
int64
func
string
target
int64
433,566
static u32 iwl_trans_pcie_get_cmdlen(struct iwl_trans *trans, void *tfd) { struct iwl_trans_pcie *trans_pcie = IWL_TRANS_GET_PCIE_TRANS(trans); u32 cmdlen = 0; int i; for (i = 0; i < trans_pcie->max_tbs; i++) cmdlen += iwl_pcie_tfd_tb_get_len(trans, tfd, i); return cmdlen; }
0
59,144
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); }
0
234,869
EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows(ExecState* exec) { JSValue thisValue = exec->hostThisValue(); if (!thisValue.inherits(&JSTestObj::s_info)) return throwVMTypeError(exec); JSTestObj* castedThis = jsCast<JSTestObj*>(asObject(thisValue)); AS...
0
172,484
void VariationsService::RecordLastFetchTime() { DCHECK(thread_checker_.CalledOnValidThread()); if (local_state_) { local_state_->SetInt64(prefs::kVariationsLastFetchTime, base::Time::Now().ToInternalValue()); } }
0
315,578
int SafeSock::get_bytes(void *dta, int size) { ASSERT( size > 0 ); while(!_msgReady) { if(_timeout > 0) { Selector selector; selector.set_timeout( _timeout ); selector.add_fd( _sock, Selector::IO_READ ); selector.execute(); if ( selector.timed_out() ) { return 0; } else if ( !selector.has...
0
119,070
void Tensor::FillDescription(TensorDescription* description) const { description->set_dtype(dtype()); shape().AsProto(description->mutable_shape()); if (buf_ != nullptr && buf_->data() != nullptr) { buf_->FillAllocationDescription( description->mutable_allocation_description()); } }
0
78,868
static struct net_device_stats *veth_get_stats(struct net_device *dev) { struct veth_priv *priv; int cpu; struct veth_net_stats *stats, total = {0}; priv = netdev_priv(dev); for_each_possible_cpu(cpu) { stats = per_cpu_ptr(priv->stats, cpu); total.rx_packets += stats->rx_packets; total.tx_packets += stats...
0
423,125
static void tcp_clamp_window(struct sock *sk) { struct tcp_sock *tp = tcp_sk(sk); struct inet_connection_sock *icsk = inet_csk(sk); icsk->icsk_ack.quick = 0; if (sk->sk_rcvbuf < sysctl_tcp_rmem[2] && !(sk->sk_userlocks & SOCK_RCVBUF_LOCK) && !sk_under_memory_pressure(sk) && sk_memory_allocated(sk) ...
0
146,973
njs_typed_array_get_u8(const void *a) { return *(const uint8_t *) a; }
0
250,505
PassOwnPtrWillBeRawPtr<LocalFileSystem> LocalFileSystem::create(PassOwnPtr<FileSystemClient> client) { return adoptPtrWillBeNoop(new LocalFileSystem(client)); }
0
272,246
gst_asf_demux_handle_seek_push (GstASFDemux * demux, GstEvent * event) { gdouble rate; GstFormat format; GstSeekFlags flags; GstSeekType cur_type, stop_type; gint64 cur, stop; guint packet; gboolean res; GstEvent *byte_event; gst_event_parse_seek (event, &rate, &format, &flags, &cur_type, &cur, ...
0
434,367
int mutt_check_overwrite (const char *attname, const char *path, char *fname, size_t flen, int *append, char **directory) { int rc = 0; char tmp[_POSIX_PATH_MAX]; struct stat st; strfcpy (fname, path, flen); if (access (fname, F_OK) != 0) return 0; if (stat (fname, &st) != 0) return -1; if (...
0
419,233
input_osc_11(struct input_ctx *ictx, const char *p) { struct window_pane *wp = ictx->wp; u_int r, g, b; if (sscanf(p, "rgb:%2x/%2x/%2x", &r, &g, &b) != 3) goto bad; wp->colgc.bg = colour_join_rgb(r, g, b); wp->flags |= PANE_REDRAW; return; bad: log_debug("bad OSC 11: %s", p); }
0
394,286
BGD_DECLARE(int) gdImageColorExact (gdImagePtr im, int r, int g, int b) { return gdImageColorExactAlpha (im, r, g, b, gdAlphaOpaque); }
0
391,213
static void rng_backend_free_requests(RngBackend *s) { GSList *i; for (i = s->requests; i; i = i->next) { rng_backend_free_request(i->data); } g_slist_free(s->requests); s->requests = NULL; }
0
97,383
//! Load image from a BMP file \newinstance. static CImg<T> get_load_bmp(std::FILE *const file) { return CImg<T>().load_bmp(file);
0
169,180
std::wstring LocaleWindowCaptionFromPageTitle( const std::wstring& expected_title) { std::wstring page_title = WindowCaptionFromPageTitle(expected_title); #if defined(OS_WIN) std::string locale = g_browser_process->GetApplicationLocale(); if (base::i18n::GetTextDirectionForLocale(locale.c_str()) == ...
0
444,834
void StreamEncoderImpl::encodeHeader(const char* key, uint32_t key_size, const char* value, uint32_t value_size) { ASSERT(key_size > 0); connection_.copyToBuffer(key, key_size); connection_.addCharToBuffer(':'); connection_.addCharToBuffer(' '); connection_.copyToBuffer(...
0
437,968
const BlockEntry* Cluster::GetEntry(const CuePoint& cp, const CuePoint::TrackPosition& tp) const { assert(m_pSegment); const long long tc = cp.GetTimeCode(); if (tp.m_block > 0) { const long block = static_cast<long>(tp.m_block); const long index = block - 1; whil...
0
286,871
int vmw_gb_surface_define_ioctl(struct drm_device *dev, void *data, struct drm_file *file_priv) { struct vmw_private *dev_priv = vmw_priv(dev); struct vmw_user_surface *user_srf; struct vmw_surface *srf; struct vmw_resource *res; struct vmw_resource *tmp; union drm_vmw_gb_surface_create_arg *arg = (union...
1
423,213
*/ struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev, struct rtnl_link_stats64 *storage) { const struct net_device_ops *ops = dev->netdev_ops; if (ops->ndo_get_stats64) { memset(storage, 0, sizeof(*storage)); ops->ndo_get_stats64(dev, storage); } else if (ops->ndo_get_stats) { netdev_stats_...
0
331,275
static void set_dirty_tracking(void) { BlkMigDevState *bmds; QSIMPLEQ_FOREACH(bmds, &block_mig_state.bmds_list, entry) { bmds->dirty_bitmap = bdrv_create_dirty_bitmap(bmds->bs, BLOCK_SIZE); } }
1
51,186
static void srpt_unmap_sg_to_ib_sge(struct srpt_rdma_ch *ch, struct srpt_send_ioctx *ioctx) { struct scatterlist *sg; enum dma_data_direction dir; BUG_ON(!ch); BUG_ON(!ioctx); BUG_ON(ioctx->n_rdma && !ioctx->rdma_wrs); while (ioctx->n_rdma) kfree(ioctx->rdma_wrs[--ioctx->n_rdma].wr.sg_list); kfree(i...
0
477,811
CImg<T>& operator-=(const t value) { if (is_empty()) return *this; cimg_openmp_for(*this,*ptr - value,524288); return *this; }
0
180,968
void InitializeSpdySsl() { ssl_data_->SetNextProto(kProtoSPDY2); }
0
510,275
my_decimal *Item_ref::val_decimal_result(my_decimal *decimal_value) { if (result_field) { if ((null_value= result_field->is_null())) return 0; return result_field->val_decimal(decimal_value); } return val_decimal(decimal_value); }
0
475,660
static void nft_netdev_unregister_hooks(struct net *net, struct list_head *hook_list) { struct nft_hook *hook; list_for_each_entry(hook, hook_list, list) nf_unregister_net_hook(net, &hook->ops); }
0
68,003
static int handle_triple_fault(struct kvm_vcpu *vcpu) { vcpu->run->exit_reason = KVM_EXIT_SHUTDOWN; return 0; }
0
477,478
static void tcf_block_owner_del(struct tcf_block *block, struct Qdisc *q, enum flow_block_binder_type binder_type) { struct tcf_block_owner_item *item; list_for_each_entry(item, &block->owner_list, list) { if (item->q == q && item->binder_type == binder_type) { list_del(&item->list); kfree(item); ...
0
421,396
add_to_client(struct i915_request *rq, struct drm_file *file) { rq->file_priv = file->driver_priv; list_add_tail(&rq->client_link, &rq->file_priv->mm.request_list); }
0
380,026
static int ZEND_FASTCALL ZEND_BW_NOT_SPEC_CV_HANDLER(ZEND_OPCODE_HANDLER_ARGS) { zend_op *opline = EX(opline); bitwise_not_function(&EX_T(opline->result.u.var).tmp_var, _get_zval_ptr_cv(&opline->op1, EX(Ts), BP_VAR_R TSRMLS_CC) TSRMLS_CC); ZEND_VM_NEXT_OPCODE(); }
0
360,033
nautilus_file_get_parent_location (NautilusFile *file) { g_assert (NAUTILUS_IS_FILE (file)); if (nautilus_file_is_self_owned (file)) { /* Callers expect an empty string, not a NULL. */ return NULL; } return nautilus_directory_get_location (file->details->directory); }
0
251,339
static void overloadedStaticMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { ExceptionState exceptionState(ExceptionState::ExecutionContext, "overloadedStaticMethod", "TestObjectPython", info.Holder(), info.GetIsolate()); if (UNLIKELY(info.Length() < 2)) { exceptionState.throwTypeError(E...
0
415,860
bool switch_to_ns(pid_t pid, const char *ns) { int fd, ret; char nspath[MAXPATHLEN]; /* Switch to new ns */ ret = snprintf(nspath, MAXPATHLEN, "/proc/%d/ns/%s", pid, ns); if (ret < 0 || ret >= MAXPATHLEN) return false; fd = open(nspath, O_RDONLY); if (fd < 0) { SYSERROR("Failed to open %s", nspath); retu...
0
298,494
bool ValidateARIA() { std::cout << "\nARIA validation suite running...\n\n"; bool pass1 = true, pass2 = true, pass3 = true; ARIAEncryption enc; pass1 = enc.StaticGetValidKeyLength(8) == 16 && pass1; pass1 = enc.StaticGetValidKeyLength(16) == 16 && pass1; pass1 = enc.StaticGetValidKeyLength(24) == 24 && p...
0
107,957
static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) { struct vm_area_struct *mpnt, *tmp, *prev, **pprev; struct rb_node **rb_link, *rb_parent; int retval; unsigned long charge; struct mempolicy *pol; uprobe_start_dup_mmap(); down_write(&oldmm->mmap_sem); flush_cache_dup_mm(oldmm); uprobe_dup_mm...
0
509,941
TIFFjpeg_alloc_sarray(JPEGState* sp, int pool_id, JDIMENSION samplesperrow, JDIMENSION numrows) { return CALLJPEG(sp, (JSAMPARRAY) NULL, (*sp->cinfo.comm.mem->alloc_sarray) (&sp->cinfo.comm, pool_id, samplesperrow, numrows)); }
0
202,809
static void calc_matrix(double mat[4][4], const double *mat_freq, const int *index) { for (int i = 0; i < 4; ++i) { mat[i][i] = mat_freq[2 * index[i]] + 3 * mat_freq[0] - 4 * mat_freq[index[i]]; for (int j = i + 1; j < 4; ++j) mat[i][j] = mat[j][i] = mat_freq[index[i] + i...
0
259,264
static inline void blk_pm_put_request(struct request *rq) {}
0
426,605
int pn_ssl_domain_set_protocols(pn_ssl_domain_t *domain, const char *protocols) { static const struct { const char *name; const long option; } protocol_options[] = { {"TLSv1", SSL_OP_NO_TLSv1}, {"TLSv1.1", SSL_OP_NO_TLSv1_1}, {"TLSv1.2", SSL_OP_NO_TLSv1_2}, #ifdef SSL_OP_NO_TLSv1_3 {"TLS...
0
234,055
void VideoCaptureManager::OnDeviceLaunchAborted() { EmitLogMessage("Launching device has been aborted.", 1); device_start_request_queue_.pop_front(); ProcessDeviceStartRequestQueue(); }
0
364,130
void rfbScheduleCopyRect(rfbScreenInfoPtr screen,int x1,int y1,int x2,int y2,int dx,int dy) { sraRegionPtr region = sraRgnCreateRect(x1,y1,x2,y2); rfbScheduleCopyRegion(screen,region,dx,dy); sraRgnDestroy(region); }
0
271,844
//! Compute Haar multiscale wavelet transform \newinstance. CImg<Tfloat> get_haar(const bool invert=false, const unsigned int nb_scales=1) const { CImg<Tfloat> res; if (nb_scales==1) { // Single scale transform if (_width>1) get_haar('x',invert,1).move_to(res); if (_height>1) { if (r...
0
172,774
bool deleteFile(const String& path) { String filename = path; return !!DeleteFileW(filename.charactersWithNullTermination()); }
0
32,614
TEST_P(DownstreamProtocolIntegrationTest, MissingHeadersLocalReplyWithBody) { useAccessLog("%RESPONSE_CODE_DETAILS%"); config_helper_.prependFilter("{ name: invalid-header-filter, typed_config: { \"@type\": " "type.googleapis.com/google.protobuf.Empty } }"); initialize(); codec_cl...
0
378,510
static int Adapter_run(AdapterObject *self, PyObject *object) { PyObject *vars = NULL; PyObject *start = NULL; PyObject *args = NULL; PyObject *iterator = NULL; PyObject *close = NULL; const char *msg = NULL; int length = 0; #if defined(MOD_WSGI_WITH_DAEMONS) if (wsgi_inactivity_timeou...
0
265,516
static void ParaNdis_RemoveDriverOKStatus(PPARANDIS_ADAPTER pContext ) { VirtIODeviceRemoveStatus(pContext->IODevice, VIRTIO_CONFIG_S_DRIVER_OK); KeMemoryBarrier(); pContext->bDeviceInitialized = FALSE; }
0
442,247
applyLut (const unsigned short lut[USHORT_RANGE], unsigned short data[/*nData*/], int nData) { for (int i = 0; i < nData; ++i) data[i] = lut[data[i]]; }
0
503,979
static void *_sqlite_open(char *host __attribute__((unused)), char *port __attribute__((unused)), int usessl __attribute__((unused)), const char *user __attribute__((unused)), const char *password __attribute__((unused)), const char *database, const sasl_utils_t *utils) { int rc; sqlite...
0
156,316
test_asnprintf () { test_function (asnprintf); }
0
480,771
static int kgdb_io_ready(int print_wait) { if (!dbg_io_ops) return 0; if (kgdb_connected) return 1; if (atomic_read(&kgdb_setting_breakpoint)) return 1; if (print_wait) { #ifdef CONFIG_KGDB_KDB if (!dbg_kdb_mode) pr_crit("waiting... or $3#33 for KDB\n"); #else pr_crit("Waiting for remote debugger\n"); ...
0
57,022
nghttp2_stream *nghttp2_session_find_stream(nghttp2_session *session, int32_t stream_id) { if (stream_id == 0) { return &session->root; } return nghttp2_session_get_stream_raw(session, stream_id); }
0
193,225
png_read_init_3(png_structpp ptr_ptr, png_const_charp user_png_ver, png_size_t png_struct_size) { #ifdef PNG_SETJMP_SUPPORTED jmp_buf tmp_jmp; /* to save current jump buffer */ #endif int i = 0; png_structp png_ptr=*ptr_ptr; if (png_ptr == NULL) return; do { if (user_png_ver == ...
0
181,054
ofpact_is_set_or_move_action(const struct ofpact *a) { switch (a->type) { case OFPACT_SET_FIELD: case OFPACT_REG_MOVE: case OFPACT_SET_ETH_DST: case OFPACT_SET_ETH_SRC: case OFPACT_SET_IP_DSCP: case OFPACT_SET_IP_ECN: case OFPACT_SET_IP_TTL: case OFPACT_SET_IPV4_DST: case OFPACT_...
0
431,131
static Status _extractRoleDocumentElements(const BSONObj& roleObject, BSONElement* roleNameElement, BSONElement* roleSourceElement) { *roleNameElement = roleObject[ROLE_NAME_FIELD_NAME]; *roleSourceElement = roleObject[ROLE_DB...
0
458,439
handle_alg_ctl(struct conntrack *ct, const struct conn_lookup_ctx *ctx, struct dp_packet *pkt, enum ct_alg_ctl_type ct_alg_ctl, struct conn *conn, long long now, bool nat) { /* ALG control packet handling with expectation creation. */ if (OVS_UNLIKELY(alg_helpers[ct_alg_ctl] && con...
0
419,674
static int get_process_ns(pid_t pid, const char *namespace, ino_t *ns) { const char *p; struct stat stbuf; _cleanup_close_ int proc_ns_dir_fd; p = procfs_file_alloca(pid, "ns"); proc_ns_dir_fd = open(p, O_DIRECTORY | O_CLOEXEC | O_RDONLY); if (proc_ns_dir_fd < 0) ...
0
478,377
CImg<T>& set_matrix_at(const CImg<t>& mat, const unsigned int x=0, const unsigned int y=0, const unsigned int z=0) { return set_vector_at(mat,x,y,z); }
0
349,635
main (int argc, char *argv[]) { int ret; g_test_init (&argc, &argv, NULL); g_test_bug_base ("http://bugzilla.gnome.org/"); g_setenv ("GSETTINGS_BACKEND", "memory", TRUE); g_setenv ("GIO_USE_TLS", BACKEND, TRUE); g_assert_true (g_ascii_strcasecmp (G_OBJECT_TYPE_NAME (g_tls_backend_get_default ()),...
1
486,764
void KrecipesView::translate() { button0->setTitle( i18n( "Find/Edit Recipes" ) ); button1->setTitle( i18n( "Shopping List" ) ); button2->setTitle( i18n( "Ingredients" ) ); button3->setTitle( i18n( "Properties" ) ); button4->setTitle( i18n( "Units" ) ); button9->setTitle( i18n( "Preparation Methods" ) ); button5...
0
58,775
crm_initiate_client_tls_handshake(void *session_data, int timeout_ms) { int rc = 0; int pollrc = 0; time_t start = time(NULL); gnutls_session *session = session_data; do { rc = gnutls_handshake(*session); if (rc == GNUTLS_E_INTERRUPTED || rc == GNUTLS_E_AGAIN) { pollrc =...
0
239,673
GDataEntry* GDataDirectoryService::FindEntryByPathSync( const FilePath& file_path) { if (file_path == root_->GetFilePath()) return root_.get(); std::vector<FilePath::StringType> components; file_path.GetComponents(&components); GDataDirectory* current_dir = root_.get(); for (size_t i = 1; i < compon...
0
456,457
static inline int vt_unbind(struct con_driver *con) { return 0; }
0
517,792
Field *find_field_in_table_sef(TABLE *table, const char *name) { Field **field_ptr; if (table->s->name_hash.records) { field_ptr= (Field**)my_hash_search(&table->s->name_hash,(uchar*) name, strlen(name)); if (field_ptr) { /* field_ptr points to fiel...
0
390,440
X509::X509(const char* i, size_t iSz, const char* s, size_t sSz, const char* b, int bSz, const char* a, int aSz, int issPos, int issLen, int subPos, int subLen) : issuer_(i, iSz, issPos, issLen), subject_(s, sSz, subPos, subLen), beforeDate_(b, bSz), afterDate_(a, aSz) {}
0
70,000
qboolean CL_ConnectedToRemoteServer( void ) { return (qboolean)( com_sv_running && !com_sv_running->integer && cls.state >= CA_CONNECTED && !clc.demoplaying ); }
0
160,071
int MDSDaemon::_handle_command( const cmdmap_t &cmdmap, MCommand *m, bufferlist *outbl, std::string *outs, Context **run_later, bool *need_reply) { assert(outbl != NULL); assert(outs != NULL); class SuicideLater : public Context { MDSDaemon *mds; public: explicit SuicideLat...
0
470,057
h2_rx_priority(struct worker *wrk, struct h2_sess *h2, struct h2_req *r2) { CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC); ASSERT_RXTHR(h2); CHECK_OBJ_ORNULL(r2, H2_REQ_MAGIC); return (0); }
0
305,342
TfLiteStatus EvalQuantizedInt8(TfLiteContext* context, TfLiteNode* node, const OpData& data, const TfLiteEvalTensor* input, const TfLiteEvalTensor* filter, const TfLiteEvalTensor* bias, ...
0
271,012
static int ipcget_new(struct ipc_namespace *ns, struct ipc_ids *ids, const struct ipc_ops *ops, struct ipc_params *params) { int err; down_write(&ids->rwsem); err = ops->getnew(ns, params); up_write(&ids->rwsem); return err; }
0
504,976
rsvg_filter_primitive_gaussian_blur_free (RsvgNode * self) { RsvgFilterPrimitiveGaussianBlur *upself; upself = (RsvgFilterPrimitiveGaussianBlur *) self; g_string_free (upself->super.result, TRUE); g_string_free (upself->super.in, TRUE); _rsvg_node_free (self); }
0
59,609
PackLinuxElf64::check_pt_load(Elf64_Phdr const *const phdr) { u64_t filesz = get_te64(&phdr->p_filesz); u64_t offset = get_te64(&phdr->p_offset), offend = filesz + offset; u64_t vaddr = get_te64(&phdr->p_vaddr); u64_t paddr = get_te64(&phdr->p_paddr); u64_t align = get_te64(&phdr->p_align); ...
0
107,479
void print_event_filter(struct trace_event_file *file, struct trace_seq *s) { struct event_filter *filter = event_filter(file); if (filter && filter->filter_string) trace_seq_printf(s, "%s\n", filter->filter_string); else trace_seq_puts(s, "none\n"); }
0
103,757
static inline int check_target(struct arpt_entry *e, const char *name) { struct xt_entry_target *t = arpt_get_target(e); struct xt_tgchk_param par = { .table = name, .entryinfo = e, .target = t->u.kernel.target, .targinfo = t->data, .hook_mask = e->comefrom, .family = NFPROTO_ARP, }; return ...
0
510,565
void item_init(void) { item_user_lock_init(); uuid_short_init(); }
0
47,704
void socketRegisterEvents(Socket *socket, OsEvent *event, uint_t eventMask) { //Valid socket handle? if(socket != NULL) { //Get exclusive access osAcquireMutex(&netMutex); //An user event may have been previously registered... if(socket->userEvent != NULL) { socket->even...
0
314,457
void LauncherView::LayoutToIdealBounds() { IdealBounds ideal_bounds; CalculateIdealBounds(&ideal_bounds); if (bounds_animator_->IsAnimating()) AnimateToIdealBounds(); else views::ViewModelUtils::SetViewBoundsToIdealBounds(*view_model_); overflow_button_->SetBoundsRect(ideal_bounds.overflow_bounds); ...
0
476,456
static void rtsx_usb_ms_handle_req(struct work_struct *work) { struct rtsx_usb_ms *host = container_of(work, struct rtsx_usb_ms, handle_req); struct rtsx_ucr *ucr = host->ucr; struct memstick_host *msh = host->msh; int rc; if (!host->req) { pm_runtime_get_sync(ms_dev(host)); do { rc = memstick_next_req(...
0
393,920
ext_t_1_wml_10(tvbuff_t *tvb, guint32 value, guint32 str_tbl) { char *str = wmem_strdup_printf(wmem_packet_scope(), "Variable substitution - unescaped: '%s'", tvb_get_const_stringz(tvb, str_tbl + value, NULL)); return str; }
0
148,234
prepare_viminfo_registers(void) { y_read_regs = ALLOC_CLEAR_MULT(yankreg_T, NUM_REGISTERS); }
0
446,353
virDomainGraphicsSupportsRenderNode(const virDomainGraphicsDef *graphics) { bool ret = false; if (graphics->type == VIR_DOMAIN_GRAPHICS_TYPE_SPICE || graphics->type == VIR_DOMAIN_GRAPHICS_TYPE_EGL_HEADLESS) ret = true; return ret; }
0
124,311
void kgdb_arch_late(void) { int i, cpu; struct perf_event_attr attr; struct perf_event **pevent; /* * Pre-allocate the hw breakpoint structions in the non-atomic * portion of kgdb because this operation requires mutexs to * complete. */ hw_breakpoint_init(&attr); attr.bp_addr = (unsigned long)kgdb_arch_i...
0
403,095
std::string print_entry(bdecode_node const& e , bool single_line, int indent) { char indent_str[200]; using std::memset; memset(indent_str, ' ', 200); indent_str[0] = ','; indent_str[1] = '\n'; indent_str[199] = 0; if (indent < 197 && indent >= 0) indent_str[indent+2] = 0; std::string ret; switch ...
0
378,670
static ssize_t vfswrap_pwrite(vfs_handle_struct *handle, files_struct *fsp, const void *data, size_t n, off_t offset) { ssize_t result; #if defined(HAVE_PWRITE) || defined(HAVE_PRWITE64) START_PROFILE_BYTES(syscall_pwrite, n); result = sys_pwrite(fsp->fh->fd, data, n, offset); END_PROFILE(syscall_pwrite); if ...
0
52,526
void kvm_arch_pre_destroy_vm(struct kvm *kvm) { kvm_mmu_pre_destroy_vm(kvm); }
0
249,148
DevToolsWindow::~DevToolsWindow() { content::DevToolsManager::GetInstance()->ClientHostClosing( frontend_host_.get()); UpdateBrowserToolbar(); DevToolsWindows* instances = &g_instances.Get(); DevToolsWindows::iterator it( std::find(instances->begin(), instances->end(), this)); DCHECK(it != instan...
0
424,644
static int _php_mb_regex_globals_ctor(zend_mb_regex_globals *pglobals) { pglobals->default_mbctype = ONIG_ENCODING_UTF8; pglobals->current_mbctype = ONIG_ENCODING_UTF8; ZVAL_UNDEF(&pglobals->search_str); pglobals->search_re = (php_mb_regex_t*)NULL; pglobals->search_pos = 0; pglobals->search_regs = (OnigRegion*)NU...
0
425,661
CpuMpPeimInit ( IN EFI_PEI_FILE_HANDLE FileHandle, IN CONST EFI_PEI_SERVICES **PeiServices ) { EFI_STATUS Status; // // For the sake of special initialization needing to be done right after // memory discovery. // Status = PeiServicesNotifyPpi (&mPostMemNotifyList[0]);...
0
176,917
ui::EventDispatchDetails MockInputMethod::DispatchKeyEvent(ui::KeyEvent* key) { #if defined(OS_MACOSX) if (key->is_char()) return DispatchKeyEventPostIME(key); #endif if (key->is_char() && key->HasNativeEvent()) { key->SetHandled(); return ui::EventDispatchDetails(); } ui::EventDispatchDetails dis...
0
336,571
static void lsi_command_complete(SCSIBus *bus, int reason, uint32_t tag, uint32_t arg) { LSIState *s = DO_UPCAST(LSIState, dev.qdev, bus->qbus.parent); int out; out = (s->sstat1 & PHASE_MASK) == PHASE_DO; if (reason == SCSI_REASON_DONE) { DPRINTF("Comman...
1
468,300
subject_iface_init (PolkitSubjectIface *subject_iface) { subject_iface->hash = polkit_system_bus_name_hash; subject_iface->equal = polkit_system_bus_name_equal; subject_iface->to_string = polkit_system_bus_name_to_string; subject_iface->exists = polkit_system_bus_name_exists; subje...
0
12,373
void MojoVideoEncodeAccelerator::Encode(const scoped_refptr<VideoFrame>& frame, bool force_keyframe) { DVLOG(2) << __func__ << " tstamp=" << frame->timestamp(); DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_); DCHECK_EQ(PIXEL_FORMAT_I420, frame->format()); DCHECK_EQ(Vi...
1
490,049
static int asn1_encode_se_info(sc_context_t *ctx, struct sc_pkcs15_sec_env_info **se, size_t se_num, unsigned char **buf, size_t *bufsize, int depth) { unsigned char *ptr = NULL, *out = NULL, *p; size_t ptrlen = 0, outlen = 0, idx; int ret; for (idx=0; idx < se_num; idx++) { struct sc_asn1_entry asn1_se[2]...
0
81,088
int git_path_cmp( const char *name1, size_t len1, int isdir1, const char *name2, size_t len2, int isdir2, int (*compare)(const char *, const char *, size_t)) { unsigned char c1, c2; size_t len = len1 < len2 ? len1 : len2; int cmp; cmp = compare(name1, name2, len); if (cmp) return cmp; c1 = name1[len]; c2 ...
0
22,055
static int cirrus_bitblt_common_patterncopy ( CirrusVGAState * s ) { uint32_t patternsize ; bool videosrc = ! s -> cirrus_srccounter ; if ( videosrc ) { switch ( s -> vga . get_bpp ( & s -> vga ) ) { case 8 : patternsize = 64 ; break ; case 15 : case 16 : patternsize = 128 ; break ; case 24 : case 32 : default...
0
7,099
bool all_tests () { mu_run_test (test_r_str_newf); mu_run_test (test_r_str_replace_char_once); mu_run_test (test_r_str_replace_char); mu_run_test (test_r_str_replace); mu_run_test (test_r_str_bits64); mu_run_test (test_r_str_rwx); mu_run_test (test_r_str_rwx_i); mu_run_test (test_r_str_bool); mu_run_test (test...
1
463
static ossl_inline void sk_ ## t1 ## _pop_free ( STACK_OF ( t1 ) * sk , sk_ ## t1 ## _freefunc freefunc ) { OPENSSL_sk_pop_free ( ( OPENSSL_STACK * ) sk , ( OPENSSL_sk_freefunc ) freefunc ) ; } static ossl_inline int sk_ ## t1 ## _insert ( STACK_OF ( t1 ) * sk , t2 * ptr , int idx ) { return OPENSSL_sk_insert ( ( O...
1
115,645
static int crypto_report_shash(struct sk_buff *skb, struct crypto_alg *alg) { struct crypto_stat_hash rhash; memset(&rhash, 0, sizeof(rhash)); strscpy(rhash.type, "shash", sizeof(rhash.type)); rhash.stat_hash_cnt = atomic64_read(&alg->stats.hash.hash_cnt); rhash.stat_hash_tlen = atomic64_read(&alg->stats.hash....
0
442,651
static inline int hci_proto_disconn_ind(struct hci_conn *conn) { if (conn->type != ACL_LINK && conn->type != LE_LINK) return HCI_ERROR_REMOTE_USER_TERM; return l2cap_disconn_ind(conn); }
0
91,515
static void pipe_destruct(struct sock *sk) { struct pep_sock *pn = pep_sk(sk); skb_queue_purge(&sk->sk_receive_queue); skb_queue_purge(&pn->ctrlreq_queue); }
0