/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | handles.c | 49 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 D | drd_rcm.c | 150 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 D | bnxe_rx.c | 110 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 D | bnxe_lock.c | 39 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 D | bnxe_tx.c | 228 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 D | alist.c | 158 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 D | fpga_defs.h | 237 #define MAC_REG_ADDR(idx, reg) (MAC_REG_BASE + (idx) * 128 + (reg)) argument 239 #define MAC_REG_IDLO(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_LO) argument 240 #define MAC_REG_IDHI(idx) MAC_REG_ADDR(idx, A_GMAC_MACID_HI) argument 241 #define MAC_REG_CSR(idx) MAC_REG_ADDR(idx, A_GMAC_CSR) argument 242 #define MAC_REG_IFS(idx) MAC_REG_ADDR(idx, A_GMAC_IFS) argument 244 #define MAC_REG_LINKDLY(idx) MAC_REG_ADDR(idx, A_GMAC_LNK_DLY) argument 245 #define MAC_REG_PAUSETIME(idx) MAC_REG_ADDR(idx, A_GMAC_PAUSETIME) argument 246 #define MAC_REG_CASTLO(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_LO) argument 247 #define MAC_REG_MCASTHI(idx) MAC_REG_ADDR(idx, A_GMAC_MCAST_HI) argument 250 #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 D | ses_ses.c | 178 (((uchar_t *)(inp))[idx+1]), idx += 2 187 (((uchar_t *)(inp))[idx+2]), idx += 3 198 (((uchar_t *)(inp))[idx+3]), idx += 4 205 #define skip8(idx) idx += 1 argument 206 #define skip16(idx) idx += 2 argument 207 #define skip24(idx) idx += 3 argument 208 #define skip32(idx) idx += 4 argument 728 int idx, i; in ses_decode() local 762 idx += 4; in ses_decode() 830 idx += 4; in ses_encode() [all …]
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | dr_mem.c | 475 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 D | dr_cpu.c | 438 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 D | lm_power.c | 71 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 D | dyn_insert.c | 17 int DynInsert(obj, idx, els_in, num) in DynInsert() argument 20 int idx, num; 25 if (idx < 0 || idx > obj->num_el) { 28 idx, obj->num_el); 41 (obj->num_el-idx)*obj->el_size, obj->array, 42 obj->el_size*idx, obj->el_size*(idx+num)); 48 obj->array + obj->el_size*idx, 49 (obj->num_el-idx)*obj->el_size); 51 bcopy(obj->array + obj->el_size*idx, 52 obj->array + obj->el_size*(idx + num), [all …]
|
H A D | dyn_delete.c | 24 int DynDelete(obj, idx) in DynDelete() argument 26 int idx; 28 if (idx < 0) { 34 if (idx >= obj->num_el) { 41 if (idx == obj->num_el-1) { 57 (idx+1)*obj->el_size, idx*obj->el_size); 60 memmove(obj->array + idx*obj->el_size, 61 obj->array + (idx+1)*obj->el_size, 62 obj->el_size*(obj->num_el - idx)); 65 obj->array + idx*obj->el_size, [all …]
|
/illumos-gate/usr/src/lib/libumem/common/ |
H A D | umem_fork.c | 40 int idx; in umem_lockup_cache() local 43 for (idx = 0; idx < ncpus; idx++) in umem_lockup_cache() 44 (void) mutex_lock(&cp->cache_cpu[idx].cc_lock); in umem_lockup_cache() 53 int idx; in umem_release_cache() local 59 for (idx = 0; idx < ncpus; idx++) in umem_release_cache() 66 int idx; in umem_lockup_log_header() local 69 for (idx = 0; idx < umem_max_ncpus; idx++) in umem_lockup_log_header() 70 (void) mutex_lock(&lhp->lh_cpu[idx].clh_lock); in umem_lockup_log_header() 78 int idx; in umem_release_log_header() local 84 for (idx = 0; idx < umem_max_ncpus; idx++) in umem_release_log_header() [all …]
|
/illumos-gate/usr/src/cmd/svr4pkg/libinst/ |
H A D | findscripts.c | 47 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 D | findstack.c | 271 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 D | test_main.c | 47 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/uts/common/fs/zfs/ |
H A D | btree.c | 139 uint32_t idx) in zfs_btree_verify_poison_at() argument 204 min = idx + 1; in zfs_btree_find_in_buf() 206 max = idx; in zfs_btree_find_in_buf() 328 *where = idx; in zfs_btree_find() 479 bt_shift_leaf(tree, leaf, idx, hdr->bth_count - idx, n, in bt_grow_leaf() 487 bt_shift_leaf(tree, leaf, fn + idx, hdr->bth_count - idx, in bt_grow_leaf() 923 VERIFY3P(zfs_btree_prev(tree, &idx, &idx), !=, NULL); in zfs_btree_bulk_finish() 928 VERIFY3P(zfs_btree_prev(tree, &idx, &idx), !=, NULL); in zfs_btree_bulk_finish() 1415 uint32_t idx; in zfs_btree_remove_from_node() local 1416 for (idx = 0; idx <= hdr->bth_count; idx++) { in zfs_btree_remove_from_node() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_whatis.c | 374 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 D | prtvtoc.c | 255 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 D | lapi.c | 56 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 D | lua.h | 143 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/test/bhyve-tests/tests/inst_emul/ |
H A D | payload_cpuid.c | 29 uint32_t idx; member 43 .idx = 0, 48 .idx = 1, 54 .idx = 0, 59 .idx = 2, 76 .idx = 2, 81 .idx = 1, 86 .idx = 0xffff, 98 .idx = 0, 103 .idx = 1, [all …]
|
/illumos-gate/usr/src/uts/sparc/v9/syscall/ |
H A D | install_utrap.c | 42 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 D | av1394_cmp.c | 357 idx = AV1394_OPCR0_IDX; in av1394_ioctl_plug_init_local() 361 idx = AV1394_IPCR0_IDX; in av1394_ioctl_plug_init_local() 366 for (; idx <= max_idx; idx++) { in av1394_ioctl_plug_init_local() 439 cmp->cmp_pcr[idx] = pcr; in av1394_pcr_init() 445 cmp->cmp_pcr[idx] = NULL; in av1394_pcr_init() 461 cmp->cmp_pcr[idx] = NULL; in av1394_pcr_fini() 550 if ((idx >= 0) && (idx < NELEM(cmp->cmp_pcr))) { in av1394_pcr_ph2pcr() 574 return ((idx - 1) % 32); in av1394_pcr_idx2num() 583 return (idx % 32 == 0); in av1394_pcr_idx_is_mpr() 612 int idx; /* PCR index */ in av1394_pcr_recv_read_request() local [all …]
|