Home
last modified time | relevance | path

Searched refs:idx (Results 1 – 25 of 753) sorted by relevance

12345678910>>...31

/illumos-gate/usr/src/boot/efi/libefi/
H A Dhandles.c49 int idx, unit; in efi_register_handles() local
51 idx = nentries; in efi_register_handles()
55 for (unit = 0; idx < nentries; idx++, unit++) { in efi_register_handles()
61 entry[idx].dev = sw; in efi_register_handles()
70 int idx; in efi_find_handle() local
72 for (idx = 0; idx < nentries; idx++) { in efi_find_handle()
85 int idx; in efi_handle_lookup() local
87 for (idx = 0; idx < nentries; idx++) { in efi_handle_lookup()
88 if (entry[idx].handle != h && entry[idx].alias != h) in efi_handle_lookup()
105 int idx; in efi_handle_update_dev() local
[all …]
/illumos-gate/usr/src/cmd/drd/
H A Ddrd_rcm.c150 for (idx = 0; idx < nrsrc; idx++) in drd_rcm_cpu_config_request()
211 for (idx = 0; idx < nrsrc; idx++) { in drd_rcm_cpu_unconfig_request()
307 for (idx = 0; idx < nrsrc; idx++) { in drd_rcm_add_cpu_notify()
332 for (idx = 0; idx < newncpus; idx++) { in drd_rcm_add_cpu_notify()
387 for (idx = 0; idx < nrsrc; idx++) { in drd_rcm_del_cpu_request()
442 for (idx = 0; idx < nrsrc; idx++) { in drd_rcm_del_cpu_request()
707 for (idx = 0; idx < cidx; idx++) { in drd_rcm_del_cpu_notify()
855 for (idx = 0; idx < nrsrc; idx++) { in cpu_rsrcstr_to_rsrc()
908 for (idx = 0; idx < len; idx++) { in is_cpu_in_list()
969 for (idx = 0; idx < nrsrc; idx++) { in dump_cpu_rsrc_list()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/
H A Dbnxe_rx.c110 BNXE_LOCK_EXIT_RX(pUM, idx); in BnxeRxPostBuffers()
145 int idx = pRxPkt->idx; in BnxeRxPktFree() local
207 int i, idx, cnt=0, tot=0; in BnxeWaitForPacketsFromClient() local
298 pRxQ = &pUM->rxq[idx]; in BnxeRxRingProcess()
436 pRxPkt->idx = idx; in BnxeRxRingProcess()
600 BnxeRxRingDump(pUM, idx); in BnxeRxPktsAbortIdx()
611 int idx; in BnxeRxPktsAbort() local
709 int idx; in BnxeRxPktsInitPostBuffers() local
752 pUM->rxq[idx].rxLowWater = pLM->params.l2_rx_desc_cnt[LM_CHAIN_IDX_CLI(pLM, idx)]; in BnxeRxPktsInitIdx()
805 int idx; in BnxeRxPktsInit() local
[all …]
H A Dbnxe_lock.c39 void BNXE_LOCK_ENTER_INTR (um_device_t * pUM, int idx) { mutex_enter(&pUM->intrMutex[idx]… in BNXE_LOCK_ENTER_INTR() argument
40 void BNXE_LOCK_EXIT_INTR (um_device_t * pUM, int idx) { mutex_exit(&pUM->intrMutex[idx])… in BNXE_LOCK_EXIT_INTR() argument
41 … BNXE_LOCK_ENTER_INTR_FLIP (um_device_t * pUM, int idx) { mutex_enter(&pUM->intrFlipMutex[idx in BNXE_LOCK_ENTER_INTR_FLIP() argument
42 … BNXE_LOCK_EXIT_INTR_FLIP (um_device_t * pUM, int idx) { mutex_exit(&pUM->intrFlipMutex[idx]… in BNXE_LOCK_EXIT_INTR_FLIP() argument
43 void BNXE_LOCK_ENTER_TX (um_device_t * pUM, int idx) { mutex_enter(&pUM->txq[idx].txMut… in BNXE_LOCK_ENTER_TX() argument
44 void BNXE_LOCK_EXIT_TX (um_device_t * pUM, int idx) { mutex_exit(&pUM->txq[idx].txMute… in BNXE_LOCK_EXIT_TX() argument
45 void BNXE_LOCK_ENTER_FREETX (um_device_t * pUM, int idx) { mutex_enter(&pUM->txq[idx].freeT… in BNXE_LOCK_ENTER_FREETX() argument
46 void BNXE_LOCK_EXIT_FREETX (um_device_t * pUM, int idx) { mutex_exit(&pUM->txq[idx].freeTx… in BNXE_LOCK_EXIT_FREETX() argument
47 void BNXE_LOCK_ENTER_RX (um_device_t * pUM, int idx) { mutex_enter(&pUM->rxq[idx].rxMut… in BNXE_LOCK_ENTER_RX() argument
48 void BNXE_LOCK_EXIT_RX (um_device_t * pUM, int idx) { mutex_exit(&pUM->rxq[idx].rxMute… in BNXE_LOCK_EXIT_RX() argument
[all …]
H A Dbnxe_tx.c228 BNXE_LOCK_ENTER_TX(pUM, idx); in BnxeTxRingProcess()
250 BNXE_LOCK_EXIT_TX(pUM, idx); in BnxeTxRingProcess()
286 if (idx == FCOE_CID(pLM)) in BnxeTxRingProcess()
910 if (idx == FCOE_CID(pLM)) in BnxeTxSendMblk()
1020 BNXE_LOCK_EXIT_TX(pUM, idx); in BnxeTxSendMblk()
1057 BNXE_LOCK_EXIT_TX(pUM, idx); in BnxeTxPktsAbortIdx()
1066 int idx; in BnxeTxPktsAbort() local
1197 pTxQ = &pUM->txq[idx]; in BnxeTxPktsInitIdx()
1282 int idx, rc; in BnxeTxPktsInit() local
1321 pTxQ = &pUM->txq[idx]; in BnxeTxPktsFiniIdx()
[all …]
/illumos-gate/usr/src/cmd/sgs/common/
H A Dalist.c158 if (idx < lp->al_nitems) in alist_insert()
175 Aliste idx; in alist_insert_by_offset() local
179 idx = 0; in alist_insert_by_offset()
302 Aliste idx = *idxp; in alist_delete() local
328 Aliste idx; in alist_delete_by_offset() local
340 Aliste idx = *idxp; in aplist_delete() local
352 (void) memmove(&lp->apl_data[idx], &lp->apl_data[idx + 1], in aplist_delete()
377 size_t idx; in aplist_delete_value() local
383 for (idx = 0; idx < lp->apl_nitems; idx++) in aplist_delete_value()
424 size_t idx; in aplist_test() local
[all …]
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dfpga_defs.h239 #define MAC_REG_ADDR(idx, reg) (MAC_REG_BASE + (idx) * 128 + (reg)) argument
241 #define MAC_REG_IDLO(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_LO) argument
242 #define MAC_REG_IDHI(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_HI) argument
243 #define MAC_REG_CSR(idx) MAC_REG_ADDR(idx, A_GMAC_CSR) argument
244 #define MAC_REG_IFS(idx) MAC_REG_ADDR(idx, A_GMAC_IFS) argument
246 #define MAC_REG_LINKDLY(idx) MAC_REG_ADDR(idx, A_GMAC_LNK_DLY) argument
247 #define MAC_REG_PAUSETIME(idx) MAC_REG_ADDR(idx, A_GMAC_PAUSETIME) argument
248 #define MAC_REG_CASTLO(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_LO) argument
249 #define MAC_REG_MCASTHI(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_HI) argument
252 #define MAC_REG_RMCNT(idx) MAC_REG_ADDR(idx, A_GMAC_RMT_CNT) argument
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/targets/
H A Dses_ses.c179 (((uchar_t *)(inp))[idx+1]), idx += 2
188 (((uchar_t *)(inp))[idx+2]), idx += 3
199 (((uchar_t *)(inp))[idx+3]), idx += 4
206 #define skip8(idx) idx += 1 argument
207 #define skip16(idx) idx += 2 argument
208 #define skip24(idx) idx += 3 argument
209 #define skip32(idx) idx += 4 argument
729 int idx, i; in ses_decode() local
763 idx += 4; in ses_decode()
831 idx += 4; in ses_encode()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Ddr_mem.c475 for (idx = 0; idx < count; idx++) { in dr_mem_list_wrk()
513 for (idx = 0; idx < count; idx++) { in dr_mem_list_wrk()
593 for (idx = 0; idx < nrsrc; idx++) { in dr_mem_res_array_init()
594 res[idx].addr = rsrc[idx].res_mem_addr; in dr_mem_res_array_init()
632 for (idx = 0; idx < nres; idx++) { in dr_mem_res_array_fini()
673 for (idx = 0; idx < nstat; idx++) { in dr_mem_pack_response()
698 for (idx = 0; idx < nstat; idx++) { in dr_mem_pack_response()
699 resp_stat[idx].addr = res[idx].addr; in dr_mem_pack_response()
700 resp_stat[idx].size = res[idx].size; in dr_mem_pack_response()
805 for (idx = 0; idx < req->msg_arg; idx++) in dr_mem_list_query()
[all …]
H A Ddr_cpu.c438 for (idx = 0; idx < count; idx++) in dr_cpu_list_wrk()
487 for (idx = 0; idx < count; idx++) { in dr_cpu_list_wrk()
566 for (idx = 0; idx < nrsrc; idx++) { in dr_cpu_res_array_init()
606 for (idx = 0; idx < nres; idx++) { in dr_cpu_res_array_fini()
654 for (idx = 0; idx < nstat; idx++) { in dr_cpu_pack_response()
681 for (idx = 0; idx < nstat; idx++) { in dr_cpu_pack_response()
736 for (idx = 0; idx < req->num_records; idx++) { in dr_cpu_check_cpus()
988 for (idx = 0; idx < req->num_records; idx++) { in dr_cpu_list_status()
996 stat[idx].cpuid = cpuids[idx]; in dr_cpu_list_status()
1023 for (idx = 0; idx < req->num_records; idx++) { in dr_cpu_list_status()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/
H A Dlm_power.c71 for(idx = 0; idx < LM_MAX_NWUF_CNT; idx++) in init_nwuf_57710()
184 for(idx = 0; idx < LM_MAX_NWUF_CNT; idx++) in init_nwuf_57710()
205 for(idx = 0; idx < LM_MAX_NWUF_CNT; idx++) in init_nwuf_57710()
369 for(idx = 0; idx < 1000; idx++) in set_d0_power_state()
510 for(idx = 0; idx < LM_MAX_NWUF_CNT; idx++) in find_nwuf()
572 for(idx = 0; idx < LM_MAX_NWUF_CNT; idx++) in lm_add_nwuf()
631 for( idx = 0 ; idx < nwuf->size*8 ; idx++ ) in lm_add_nwuf()
638 if( ( 0!= idx ) && 0 == ( idx % 32 ) ) in lm_add_nwuf()
644 for( idx = 0 ; idx < nwuf->size*8 ; idx++ ) in lm_add_nwuf()
651 if( ( 0!= idx ) && 0 == ( idx % 32 ) ) in lm_add_nwuf()
[all …]
/illumos-gate/usr/src/lib/krb5/dyn/
H A Ddyn_insert.c19 int DynInsert(obj, idx, els_in, num) in DynInsert() argument
22 int idx, num;
27 if (idx < 0 || idx > obj->num_el) {
30 idx, obj->num_el);
43 (obj->num_el-idx)*obj->el_size, obj->array,
44 obj->el_size*idx, obj->el_size*(idx+num));
50 obj->array + obj->el_size*idx,
51 (obj->num_el-idx)*obj->el_size);
53 bcopy(obj->array + obj->el_size*idx,
54 obj->array + obj->el_size*(idx + num),
[all …]
H A Ddyn_delete.c26 int DynDelete(obj, idx) in DynDelete() argument
28 int idx;
30 if (idx < 0) {
36 if (idx >= obj->num_el) {
43 if (idx == obj->num_el-1) {
59 (idx+1)*obj->el_size, idx*obj->el_size);
62 memmove(obj->array + idx*obj->el_size,
63 obj->array + (idx+1)*obj->el_size,
64 obj->el_size*(obj->num_el - idx));
67 obj->array + idx*obj->el_size,
[all …]
/illumos-gate/usr/src/lib/libumem/common/
H A Dumem_fork.c42 int idx; in umem_lockup_cache() local
45 for (idx = 0; idx < ncpus; idx++) in umem_lockup_cache()
46 (void) mutex_lock(&cp->cache_cpu[idx].cc_lock); in umem_lockup_cache()
55 int idx; in umem_release_cache() local
61 for (idx = 0; idx < ncpus; idx++) in umem_release_cache()
68 int idx; in umem_lockup_log_header() local
71 for (idx = 0; idx < umem_max_ncpus; idx++) in umem_lockup_log_header()
72 (void) mutex_lock(&lhp->lh_cpu[idx].clh_lock); in umem_lockup_log_header()
80 int idx; in umem_release_log_header() local
86 for (idx = 0; idx < umem_max_ncpus; idx++) in umem_release_log_header()
[all …]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dfindscripts.c47 extern char *cl_nam(int idx);
53 cl_iscript(int idx) in cl_iscript() argument
55 if (cl_Classes && idx >= 0 && idx < cl_NClasses) in cl_iscript()
67 cl_deliscript(int idx) in cl_deliscript() argument
69 if (cl_Classes && idx >= 0 && idx < cl_NClasses) in cl_deliscript()
70 if (cl_Classes[idx]->inst_script) { in cl_deliscript()
71 free(cl_Classes[idx]->inst_script); in cl_deliscript()
72 cl_Classes[idx]->inst_script = NULL; in cl_deliscript()
84 cl_rscript(int idx) in cl_rscript() argument
86 if (cl_Classes && idx >= 0 && idx < cl_NClasses) in cl_rscript()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dfindstack.c271 for (idx = 0; idx < depth; idx++) { in stacks_entry_comp_impl()
340 for (idx = 0; idx < STACKS_HSIZE; idx++) { in stacks_cleanup()
359 for (idx = 0; idx < stacks_array_size; idx++) { in stacks_cleanup()
413 for (idx = 0; idx < depth; idx++) in stacks_thread_cb()
414 nsep->se_stack[idx] = fsip->fsi_stack[idx]; in stacks_thread_cb()
443 for (idx = 0; idx < tlist->pipe_len; idx++) { in stacks_run_tlist()
503 for (idx = 0; idx < STACKS_HSIZE; idx++) { in stacks_run()
546 for (idx = 0; idx < sep->se_depth; idx++) in stacks_has_caller()
558 for (idx = 0; idx < sep->se_depth; idx++) { in stacks_has_module()
768 for (idx = 0; idx < stacks_array_size; idx++) { in stacks()
[all …]
/illumos-gate/usr/src/cmd/smbsrv/test-msgbuf/
H A Dtest_main.c47 int idx; in hexdump() local
53 idx = 0; in hexdump()
55 if ((idx & 15) == 0) { in hexdump()
56 printf("%04X: ", idx); in hexdump()
65 idx++; in hexdump()
66 if ((idx & 3) == 0) { in hexdump()
70 if ((idx & 15) == 0) { in hexdump()
76 if ((idx & 15) != 0) { in hexdump()
79 while ((idx & 15) != 0) { in hexdump()
80 if ((idx & 3) == 0) in hexdump()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_whatis.c374 int idx; in whatis_init() local
376 for (idx = 0; idx < NBUILTINS; idx++) { in whatis_init()
377 whatis_cb_start[idx] = &builtin_whatis[idx]; in whatis_init()
378 whatis_cb_start[idx]->wcb_index = idx; in whatis_init()
464 int idx; in mdb_whatis_unregister_module() local
469 for (idx = 0; idx < whatis_cb_count; idx++) { in mdb_whatis_unregister_module()
531 for (idx = 0; idx < whatis_cb_count; idx++) { in cmd_whatis()
571 for (idx = 0; idx < w.w_naddrs; idx++) in cmd_whatis()
578 for (idx = 0; idx < whatis_cb_count; idx++) { in cmd_whatis()
607 for (idx = 0; idx < w.w_naddrs; idx++) { in cmd_whatis()
[all …]
/illumos-gate/usr/src/cmd/prtvtoc/
H A Dprtvtoc.c255 for (unsigned idx = 0; idx < V_NUMPAR; ++idx) in getmntpt() local
387 int idx = 0; in prtvtoc() local
424 idx = (idx == 0); in prtvtoc()
466 ushort_t idx; in putfree() local
475 for (idx = 0; idx < vtoc->v_nparts; ++idx) { in putfree()
476 if (vtoc->v_part[idx].p_size == 0 && idx != 2) in putfree()
495 for (idx = 0; idx < efi->efi_nparts; ++idx) { in putfree64()
496 if (efi->efi_parts[idx].p_size == 0 && idx != 2) in putfree64()
587 for (idx = 0; idx < vtoc->v_nparts; ++idx) { in puttable()
611 for (uint_t idx = 0; idx < efi->efi_nparts; idx++) { in puttable64() local
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlapi.c56 if (idx > 0) { in index2addr()
63 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr()
64 return L->top + idx; in index2addr()
69 idx = LUA_REGISTRYINDEX - idx; in index2addr()
75 return (idx <= func->nupvalues) ? &func->upvalue[idx-1] : NONVALIDVALUE; in index2addr()
153 return (idx > 0 || ispseudo(idx)) in lua_absindex()
154 ? idx in lua_absindex()
167 if (idx >= 0) { in lua_settop()
184 p = index2addr(L, idx); in lua_remove()
196 p = index2addr(L, idx); in lua_insert()
[all …]
H A Dlua.h143 LUA_API int (lua_absindex) (lua_State *L, int idx);
145 LUA_API void (lua_settop) (lua_State *L, int idx);
146 LUA_API void (lua_pushvalue) (lua_State *L, int idx);
147 LUA_API void (lua_remove) (lua_State *L, int idx);
148 LUA_API void (lua_insert) (lua_State *L, int idx);
149 LUA_API void (lua_replace) (lua_State *L, int idx);
223 LUA_API void (lua_gettable) (lua_State *L, int idx);
225 LUA_API void (lua_rawget) (lua_State *L, int idx);
240 LUA_API void (lua_rawset) (lua_State *L, int idx);
302 LUA_API int (lua_next) (lua_State *L, int idx);
[all …]
/illumos-gate/usr/src/uts/sparc/v9/syscall/
H A Dinstall_utrap.c42 int idx; in install_utrap() local
57 idx = UTRAP_V8P_FP_DISABLED; in install_utrap()
99 ov = p->p_utraps[idx]; in install_utrap()
154 int idx; in sparc_utrap_install() local
161 idx = UT_ILLTRAP_INSTRUCTION; in sparc_utrap_install()
172 idx = UT_FP_DISABLED; in sparc_utrap_install()
178 idx = UT_TAG_OVERFLOW; in sparc_utrap_install()
181 idx = UT_DIVISION_BY_ZERO; in sparc_utrap_install()
187 idx = UT_PRIVILEGED_ACTION; in sparc_utrap_install()
205 idx = type; in sparc_utrap_install()
[all …]
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_cmp.c375 idx = AV1394_OPCR0_IDX; in av1394_ioctl_plug_init_local()
379 idx = AV1394_IPCR0_IDX; in av1394_ioctl_plug_init_local()
384 for (; idx <= max_idx; idx++) { in av1394_ioctl_plug_init_local()
457 cmp->cmp_pcr[idx] = pcr; in av1394_pcr_init()
463 cmp->cmp_pcr[idx] = NULL; in av1394_pcr_init()
479 cmp->cmp_pcr[idx] = NULL; in av1394_pcr_fini()
580 if ((idx >= 0) && (idx < NELEM(cmp->cmp_pcr))) { in av1394_pcr_ph2pcr()
604 return ((idx - 1) % 32); in av1394_pcr_idx2num()
613 return (idx % 32 == 0); in av1394_pcr_idx_is_mpr()
642 int idx; /* PCR index */ in av1394_pcr_recv_read_request() local
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Dbtree.c183 min = idx + 1; in zfs_btree_find_in_buf()
185 max = idx; in zfs_btree_find_in_buf()
262 *where = idx; in zfs_btree_find()
285 *where = idx; in zfs_btree_find()
304 *where = idx; in zfs_btree_find()
850 VERIFY3P(zfs_btree_prev(tree, &idx, &idx), !=, NULL); in zfs_btree_bulk_finish()
855 VERIFY3P(zfs_btree_prev(tree, &idx, &idx), !=, NULL); in zfs_btree_bulk_finish()
1340 uint64_t idx; in zfs_btree_remove_from_node() local
1341 for (idx = 0; idx <= hdr->bth_count; idx++) { in zfs_btree_remove_from_node()
1357 bt_shift_core_left(tree, node, idx, hdr->bth_count - idx, in zfs_btree_remove_from_node()
[all …]
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/
H A Decore_common.h27 #define BIT_VEC64_SET_BIT(vec64, idx) \ argument
28 __BIT_VEC64_SET_BIT((vec64)[(idx) >> BIT_VEC64_ELEM_SHIFT], \
29 (idx) & BIT_VEC64_ELEM_MASK)
31 #define BIT_VEC64_CLEAR_BIT(vec64, idx) \ argument
32 __BIT_VEC64_CLEAR_BIT((vec64)[(idx) >> BIT_VEC64_ELEM_SHIFT], \
33 (idx) & BIT_VEC64_ELEM_MASK)
35 #define BIT_VEC64_TEST_BIT(vec64, idx) \ argument
36 (((vec64)[(idx) >> BIT_VEC64_ELEM_SHIFT] >> \
37 ((idx) & BIT_VEC64_ELEM_MASK)) & 0x1)
41 #define BIT_VEC64_ONES_MASK(idx) \ argument
[all …]

12345678910>>...31