Home
last modified time | relevance | path

Searched refs:cidx (Results 1 – 24 of 24) sorted by relevance

/netbsd-src/sys/kern/
H A Dsubr_spldebug.c72 u_int cidx; in spldebug_lower() local
80 cidx = cpu_index(curcpu()); in spldebug_lower()
82 KASSERT(cidx < maxcpus); in spldebug_lower()
84 splraise_depth[cidx] = 0; in spldebug_lower()
85 spllowered_to[cidx] = ipl; in spldebug_lower()
87 spllowered_from[cidx][0] = return_address(0); in spldebug_lower()
88 spllowered_from[cidx][1] = return_address(1); in spldebug_lower()
96 u_int cidx; in spldebug_raise() local
105 cidx = cpu_index(curcpu()); in spldebug_raise()
107 KASSERT(cidx < maxcpus); in spldebug_raise()
[all …]
/netbsd-src/lib/lua/sqlite/
H A Dsqlite.c276 int cidx; in stmt_column_name() local
279 cidx = (int)luaL_checkinteger(L, 2) - 1; in stmt_column_name()
281 lua_pushstring(L, sqlite3_column_name(*stmt, cidx)); in stmt_column_name()
299 int cidx; in stmt_column() local
302 cidx = (int)luaL_checkinteger(L, 2) - 1; in stmt_column()
304 switch (sqlite3_column_type(*stmt, cidx)) { in stmt_column()
306 lua_pushinteger(L, sqlite3_column_int(*stmt, cidx)); in stmt_column()
309 lua_pushnumber(L, sqlite3_column_double(*stmt, cidx)); in stmt_column()
313 cidx)); in stmt_column()
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_socket.c388 size_t clen, cidx = 0, cspace; in copyin32_msg_control() local
416 if (__predict_false(cidx + cspace > clen)) { in copyin32_msg_control()
420 nclen = cidx + cspace; in copyin32_msg_control()
431 if (cidx <= MLEN) { in copyin32_msg_control()
433 memcpy(nc, control, cidx); in copyin32_msg_control()
434 memset(nc + cidx, 0, nclen - cidx); in copyin32_msg_control()
443 cmsg = (void *)&control[cidx]; in copyin32_msg_control()
456 cidx += CMSG_ALIGN(cmsg->cmsg_len); in copyin32_msg_control()
460 if (cidx > MLEN) { in copyin32_msg_control()
465 mp->msg_controllen = ctl_mbuf->m_len = CMSG_ALIGN(cidx); in copyin32_msg_control()
/netbsd-src/sys/dev/ic/
H A Dbcmgenet.c473 sc->sc_tx.cidx = sc->sc_tx.pidx = 0; in genet_set_txthresh()
506 sc->sc_rx.cidx = sc->sc_rx.pidx = 0; in genet_init_rings()
710 total = (pidx - sc->sc_rx.cidx) & 0xffff; in genet_rxintr()
714 index = sc->sc_rx.cidx % RX_DESC_COUNT; in genet_rxintr()
785 sc->sc_rx.cidx = (sc->sc_rx.cidx + 1) & 0xffff; in genet_txintr()
786 WR4(sc, GENET_RX_DMA_CONS_INDEX(qid), sc->sc_rx.cidx); in genet_txintr()
797 int cidx, i, pkts = 0; in genet_txintr()
799 cidx = RD4(sc, GENET_TX_DMA_CONS_INDEX(qid)) & 0xffff; in genet_txintr()
800 i = sc->sc_tx.cidx in genet_txintr()
774 int cidx, i, pkts = 0; genet_txintr() local
[all...]
H A Dbcmgenetvar.h54 uint32_t cidx, pidx; member
/netbsd-src/sys/uvm/
H A Duvm_pglist.c121 paddr_t cidx = 0; /* XXX: GCC */ in uvm_pglistalloc_c_ps() local
188 if (uvm_physseg_find(candidate, &cidx) != psi) in uvm_pglistalloc_c_ps()
190 if (cidx != candidate - uvm_physseg_get_start(psi)) in uvm_pglistalloc_c_ps()
192 if (uvm_physseg_find(candidate + num - 1, &cidx) != psi) in uvm_pglistalloc_c_ps()
194 if (cidx != candidate - uvm_physseg_get_start(psi) + num - 1) in uvm_pglistalloc_c_ps()
573 paddr_t cidx = 0; in uvm_pglistalloc_s_ps() local
574 const uvm_physseg_t bank = uvm_physseg_find(candidate, &cidx); in uvm_pglistalloc_s_ps()
578 KDASSERTMSG(cidx == candidate - uvm_physseg_get_start(psi), in uvm_pglistalloc_s_ps()
580 candidate, cidx, (paddr_t)candidate - uvm_physseg_get_start(psi)); in uvm_pglistalloc_s_ps()
/netbsd-src/sys/dev/pci/cxgb/
H A Dcxgb_sge.c531 u_int cidx = q->cidx; in free_rx_bufs() local
534 struct rx_sw_desc *d = &q->sdesc[cidx]; in free_rx_bufs()
544 if (++cidx == q->size) in free_rx_bufs()
545 cidx = 0; in free_rx_bufs()
1642 unsigned int cidx = q->cidx; in free_tx_desc() local
1647 "reclaiming %u Tx descriptors at cidx %u", n, cidx); in free_tx_desc()
1649 d = &q->sdesc[cidx]; in free_tx_desc()
1652 DPRINTF("cidx=%d d=%p\n", cidx, d); in free_tx_desc()
1659 if (m_get_priority(d->m) == cidx) { in free_tx_desc()
1664 printf("pri=%d cidx=%d\n", (int)m_get_priority(d->m), cidx); in free_tx_desc()
[all …]
H A Dcxgb_adapter.h192 uint32_t cidx; member
230 uint32_t cidx; member
256 uint32_t cidx; member
H A Dcxgb_common.h742 unsigned int cidx);
745 unsigned int cong_thres, int gen, unsigned int cidx);
748 unsigned int fl_thres, int gen, unsigned int cidx);
H A Dcxgb_t3_hw.c1903 * @cidx: consumer pointer
1912 unsigned int cidx) in t3_sge_init_ecntxt() argument
1922 t3_write_reg(adapter, A_SG_CONTEXT_DATA0, V_EC_INDEX(cidx) | in t3_sge_init_ecntxt()
1946 * @cidx: consumer pointer
1954 unsigned int cong_thres, int gen, unsigned int cidx) in t3_sge_init_flcntxt() argument
1966 V_FL_INDEX_LO(cidx & M_FL_INDEX_LO)); in t3_sge_init_flcntxt()
1968 V_FL_GEN(gen) | V_FL_INDEX_HI(cidx >> 12) | in t3_sge_init_flcntxt()
1985 * @cidx: consumer pointer
1993 unsigned int fl_thres, int gen, unsigned int cidx) in t3_sge_init_rspcntxt() argument
2004 V_CQ_INDEX(cidx)); in t3_sge_init_rspcntxt()
[all...]
/netbsd-src/external/bsd/top/dist/
H A Ddisplay.c531 summary_format(int x, int y, int *numbers, const char **names, int *cidx) in summary_format() argument
556 if (cidx != NULL) in summary_format()
559 color = color_test(*cidx++, num); in summary_format()
594 summary_format_memory(int x, int y, long *numbers, const char **names, int *cidx) in summary_format_memory() argument
623 color = color_test(*cidx++, num); in summary_format_memory()
1190 int *cidx; in i_cpustates() local
1206 cidx = cpustate_cidx; in i_cpustates()
1223 color = color_test(*cidx++, value/10); in i_cpustates()
1256 int *cidx; in u_cpustates() local
1274 cidx = cpustate_cidx; in u_cpustates()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/gas/
H A Dmacro.c538 size_t cidx; in do_formals() local
617 cidx = idx; in do_formals()
619 if (idx != cidx && idx >= in->len) in do_formals()
621 idx = cidx; in do_formals()
728 size_t cidx; in define_macro() local
734 cidx = sb_skip_white (idx, in); in define_macro()
735 idx = sb_skip_comma (cidx, in); in define_macro()
736 if (idx == cidx || idx < in->len) in define_macro()
739 idx = cidx; in define_macro()
/netbsd-src/external/gpl3/binutils/dist/gas/
H A Dmacro.c517 size_t cidx; in do_formals() local
593 cidx = idx; in do_formals()
595 if (idx != cidx && idx >= in->len) in do_formals()
597 idx = cidx; in do_formals()
696 size_t cidx; in define_macro() local
702 cidx = sb_skip_white (idx, in); in define_macro()
703 idx = sb_skip_comma (cidx, in); in define_macro()
704 if (idx == cidx || idx < in->len) in define_macro()
707 idx = cidx; in define_macro()
/netbsd-src/sys/rump/librump/rumpkern/
H A Dintr.c204 unsigned int cidx; in sithread_cpu_bouncer() local
220 cidx = sip - si->si_entry; in sithread_cpu_bouncer()
221 ci = cpu_lookup(cidx); in sithread_cpu_bouncer()
/netbsd-src/sys/compat/linux/common/
H A Dlinux_socket.c513 size_t clen, cidx = 0, cspace; in linux_sys_sendmsg() local
573 if (__predict_false(cidx + cspace > clen)) { in linux_sys_sendmsg()
577 nclen = cidx + cspace; in linux_sys_sendmsg()
588 if (cidx <= MLEN) in linux_sys_sendmsg()
590 memcpy(nc, control, cidx); in linux_sys_sendmsg()
596 cmsg = (void *)&control[cidx]; in linux_sys_sendmsg()
613 cidx += cspace; in linux_sys_sendmsg()
617 if (cidx > MLEN) { in linux_sys_sendmsg()
622 ctl_mbuf->m_len = cidx; in linux_sys_sendmsg()
/netbsd-src/sys/dev/
H A Dcgd.c1529 u_int cidx, i; in cgd_cpu() local
1536 for (i=0, cidx = cw->cw_last+1; i<maxcpus; ++i, ++cidx) { in cgd_cpu()
1537 if (cidx >= maxcpus) in cgd_cpu()
1538 cidx = 0; in cgd_cpu()
1539 ci = cpu_lookup(cidx); in cgd_cpu()
1541 cw->cw_last = cidx; in cgd_cpu()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/rt/
H A Dminfo.d600 size_t cidx; in sortCtorsOld() local
653 ctors[cidx++] = curmod; in sortCtorsOld()
687 ctors[cidx++] = _modules[m]; in sortCtorsOld()
693 … ctors = (cast(immutable(ModuleInfo)**).realloc(ctors.ptr, cidx * size_t.sizeof))[0 .. cidx]; in sortCtorsOld()
/netbsd-src/external/gpl3/gcc.old/dist/libphobos/libdruntime/rt/
H A Dminfo.d600 size_t cidx; in sortCtorsOld() local
653 ctors[cidx++] = curmod; in sortCtorsOld()
687 ctors[cidx++] = _modules[m]; in sortCtorsOld()
693 … ctors = (cast(immutable(ModuleInfo)**).realloc(ctors.ptr, cidx * size_t.sizeof))[0 .. cidx]; in sortCtorsOld()
/netbsd-src/sys/dev/iscsi/
H A Discsi_rcv.c145 int cidx; in ccb_from_itt() local
150 cidx = itt & 0xff; in ccb_from_itt()
151 if (cidx >= CCBS_PER_SESSION) in ccb_from_itt()
154 ccb = &conn->c_session->s_ccb[cidx]; in ccb_from_itt()
/netbsd-src/crypto/external/bsd/openssl/dist/crypto/x509/
H A Dx509_vfy.c1266 int cidx = ctx->error_depth; in crl_akid_check() local
1269 if (cidx != sk_X509_num(ctx->chain) - 1) in crl_akid_check()
1270 cidx++; in crl_akid_check()
1272 crl_issuer = sk_X509_value(ctx->chain, cidx); in crl_akid_check()
1282 for (cidx++; cidx < sk_X509_num(ctx->chain); cidx++) { in crl_akid_check()
1283 crl_issuer = sk_X509_value(ctx->chain, cidx); in crl_akid_check()
/netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/x509/
H A Dx509_vfy.c1246 int cidx = ctx->error_depth; in crl_akid_check() local
1249 if (cidx != sk_X509_num(ctx->chain) - 1) in crl_akid_check()
1250 cidx++; in crl_akid_check()
1252 crl_issuer = sk_X509_value(ctx->chain, cidx); in crl_akid_check()
1262 for (cidx++; cidx < sk_X509_num(ctx->chain); cidx++) { in crl_akid_check()
1263 crl_issuer = sk_X509_value(ctx->chain, cidx); in crl_akid_check()
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/
H A Dt1_lib.c1029 size_t sent_sigslen, i, cidx; in tls12_check_peer_sigalg() local
1062 if (!ssl_cert_lookup_by_nid(EVP_PKEY_id(pkey), &cidx) in tls12_check_peer_sigalg()
1063 || lu->sig_idx != (int)cidx) { in tls12_check_peer_sigalg()
/netbsd-src/external/gpl3/binutils/dist/gas/config/
H A Dtc-arc.c1622 allocate_tok (expressionS *tok, int ntok, int cidx) in allocate_tok() argument
1627 if (cidx > ntok) in allocate_tok()
1632 if (cidx == ntok) in allocate_tok()
1634 return allocate_tok (tok, ntok - 1, cidx); in allocate_tok()
/netbsd-src/external/gpl3/binutils.old/dist/gas/config/
H A Dtc-arc.c1611 allocate_tok (expressionS *tok, int ntok, int cidx) in allocate_tok() argument
1616 if (cidx > ntok) in allocate_tok()
1621 if (cidx == ntok) in allocate_tok()
1623 return allocate_tok (tok, ntok - 1, cidx); in allocate_tok()