/illumos-gate/usr/src/common/mdesc/ |
H A D | mdesc_findnodeprop.c | 39 int idx; in md_find_node_prop() local 46 idx = (int)node; in md_find_node_prop() 47 mdep = &(mdp->mdep[idx]); in md_find_node_prop() 51 idx++; in md_find_node_prop() 65 for (idx++, mdep++; MDE_TAG(mdep) != MDET_NODE_END; idx++, mdep++) { in md_find_node_prop() 68 return ((mde_cookie_t)idx); in md_find_node_prop()
|
H A D | mdesc_findname.c | 41 int idx, len; in md_find_name() local 52 for (idx = 0; idx < mdp->name_blk_size; idx += len) { in md_find_name() 55 p = &(mdp->namep[idx]); in md_find_name() 60 return ((mde_str_cookie_t)idx); in md_find_name()
|
/illumos-gate/usr/src/lib/libcustr/common/ |
H A D | custr.c | 91 size_t endidx = idx + len; in custr_remove() 97 if (endidx < idx || endidx < len) { in custr_remove() 123 size_t idx; in custr_rremove() local 130 idx = cus->cus_strlen - ridx - 1; in custr_rremove() 137 if (idx >= cus->cus_strlen) { in custr_trunc() 142 cus->cus_data[idx] = '\0'; in custr_trunc() 143 cus->cus_strlen = idx; in custr_trunc() 150 size_t idx; in custr_rtrunc() local 157 idx = cus->cus_strlen - ridx - 1; in custr_rtrunc() 158 cus->cus_data[idx] = '\0'; in custr_rtrunc() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | sset.h | 32 static inline void sset_add(struct sset *s, unsigned int idx) in sset_add() argument 34 unsigned int __idx = idx - s->off; in sset_add() 40 static inline bool sset_test(struct sset *s, unsigned int idx) in sset_test() argument 42 unsigned int __idx = idx - s->off; in sset_test() 48 static inline bool sset_testset(struct sset *s, unsigned int idx) in sset_testset() argument 50 if (sset_test(s, idx)) in sset_testset() 52 sset_add(s, idx); in sset_testset()
|
/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | mdeg.c | 214 int idx; in mdeg_alloc_clnt() local 223 for (idx = 0; idx < mdeg.maxclnts; idx++) { in mdeg_alloc_clnt() 275 int idx; in mdeg_get_client() local 281 if ((idx < 0) || (idx >= mdeg.maxclnts)) { in mdeg_get_client() 286 clnt = &mdeg.tbl[idx]; in mdeg_get_client() 516 int idx; in mdeg_notify_clients() local 543 for (idx = 0, nclnt = 0; idx < mdeg.maxclnts; idx++) { in mdeg_notify_clients() 653 int idx; in mdeg_find_start_node() local 669 for (idx = 0; idx < nnodes; idx++) { in mdeg_find_start_node() 912 int idx; in mdeg_dump_table() local [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_ioport.c | 138 VERIFY(idx < old_count); in vm_inout_remove_at() 141 if (idx > 0) { in vm_inout_remove_at() 142 bcopy(old_ents, new_ents, sizeof (ioport_entry_t) * idx); in vm_inout_remove_at() 145 if (idx < new_count) { in vm_inout_remove_at() 146 bcopy(&old_ents[idx + 1], &new_ents[idx], in vm_inout_remove_at() 147 sizeof (ioport_entry_t) * (new_count - idx)); in vm_inout_remove_at() 157 VERIFY(idx < new_count); in vm_inout_insert_space_at() 160 if (idx > 0) { in vm_inout_insert_space_at() 164 if (idx < new_count) { in vm_inout_insert_space_at() 165 bcopy(&old_ents[idx], &new_ents[idx + 1], in vm_inout_insert_space_at() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zfs_fm.c | 369 idx++; in shrink_ranges() 427 size_t idx; in range_total_size() local 429 for (idx = 0; idx < count; idx++) in range_total_size() 430 result += (r[idx].zr_end - r[idx].zr_start); in range_total_size() 450 size_t idx; in annotate_ecksum() local 497 for (idx = 0; idx < nui64s; idx++) { in annotate_ecksum() 498 if (good[idx] == bad[idx]) { in annotate_ecksum() 508 start = idx; in annotate_ecksum() 539 for (idx = start; idx < end; idx++) { in annotate_ecksum() 543 set = ((~good[idx]) & bad[idx]); in annotate_ecksum() [all …]
|
H A D | zfs_fuid.c | 140 uint64_t idx; in zfs_fuid_table_load() local 145 &idx) == 0); in zfs_fuid_table_load() 149 domnode->f_idx = idx; in zfs_fuid_table_load() 183 searchnode.f_idx = idx; in zfs_fuid_idx_domain() 454 fuid_domain->z_domidx = idx; in zfs_fuid_node_add() 468 fuid->z_domidx = idx; in zfs_fuid_node_add() 493 uint64_t idx; in zfs_fuid_create_cred() local 555 uint64_t idx = 0; in zfs_fuid_create() local 625 rid, idx, id, type); in zfs_fuid_create() 710 if (idx == 0) { in zfs_user_in_cred() [all …]
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/ |
H A D | bt_seq.c | 277 indx_t idx; local 353 idx = 0; 369 if (idx == 0) { 378 --idx; 383 ep->index = idx; 506 u_int idx; 826 indx_t idx; local 868 idx = 0; 873 while (!idx) { 884 idx--; [all …]
|
H A D | bt_put.c | 77 indx_t idx, nxtindex; local 163 idx = t->bt_cursor.pg.index; 175 idx = e->index; 213 data, dflags, nbytes, idx)) != RET_SUCCESS) 218 if (idx < (nxtindex = NEXTINDEX(h))) 219 memmove(h->linp + idx + 1, h->linp + idx, 220 (nxtindex - idx) * sizeof(indx_t)); 223 h->linp[idx] = h->upper -= nbytes; 235 if (idx == NEXTINDEX(h) - 1) { 237 t->bt_last.index = idx; [all …]
|
/illumos-gate/usr/src/lib/libipmi/common/ |
H A D | ipmi_hash.c | 173 ulong_t idx, nidx; in ipmi_hash_resize() local 192 for (idx = 0; idx < osize; idx++) { in ipmi_hash_resize() 193 while ((link = ihp->ih_buckets[idx]) != NULL) { in ipmi_hash_resize() 201 ihp->ih_buckets[idx] = link->ihl_next; in ipmi_hash_resize() 217 ulong_t idx = ihp->ih_compute(search) % ihp->ih_nbuckets; in ipmi_hash_lookup() local 220 for (hl = ihp->ih_buckets[idx]; hl != NULL; hl = hl->ihl_next) { in ipmi_hash_lookup() 256 ulong_t idx = ipmi_hash_compute(ihp, elem); in ipmi_hash_insert() local 260 link->ihl_next = ihp->ih_buckets[idx]; in ipmi_hash_insert() 261 ihp->ih_buckets[idx] = link; in ipmi_hash_insert() 272 ulong_t idx = ipmi_hash_compute(ihp, elem); in ipmi_hash_remove() local [all …]
|
/illumos-gate/usr/src/uts/common/io/aggr/ |
H A D | aggr_port.c | 605 if (port->lp_hwghs[idx] == NULL) in aggr_port_addmac() 606 idx = 0; in aggr_port_addmac() 612 if ((port->lp_hwghs[idx] != NULL) && in aggr_port_addmac() 687 if (port->lp_hwghs[idx] == NULL) in aggr_port_remmac() 688 idx = 0; in aggr_port_remmac() 708 if (port->lp_hwghs[idx] == NULL) in aggr_port_addvlan() 709 idx = 0; in aggr_port_addvlan() 717 if (port->lp_hwghs[idx] == NULL) in aggr_port_addvlan() 737 if (port->lp_hwghs[idx] == NULL) in aggr_port_remvlan() 738 idx = 0; in aggr_port_remvlan() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/pmcs/ |
H A D | pmcs.c | 78 for (idx = 0; idx < 8; idx++) { in print_sas_address() 741 for (idx = 0; idx < max_dev; idx++) { in display_targets() 957 for (idx = 0; idx < m.max_cmd; idx++, _wp += sizeof (pmcwork_t)) { in display_work() 968 for (idx = 0; idx < m.max_cmd; idx++) { in display_work() 982 sphead->idx = idx; in display_work() 989 newsp->idx = idx; in display_work() 1041 for (idx = 0; idx < m.max_cmd; idx++) { in display_work() 1108 for (idx = 0; idx < cdb_size; idx++) { in print_spcmd() 1795 for (idx = 0; idx < ss.ioq_depth; idx++) { in display_outbound_queues() 1923 for (idx = 0; idx < ss.ioq_depth; idx++) { in display_inbound_queues() [all …]
|
/illumos-gate/usr/src/lib/iconv_modules/common/ |
H A D | tab_lookup.c | 45 int idx, data_size; in _icv_iconv_lu() local 88 idx = bisearch(search_val, st, st->table_size); in _icv_iconv_lu() 90 fprintf(stderr, "Match idx: %d \n", idx); in _icv_iconv_lu() 93 if ( idx >= 0 ) { in _icv_iconv_lu() 97 match_val = st->table[idx].right_code; in _icv_iconv_lu() 141 idx = bisearch(search_val, st, st->table_size); in _icv_iconv_lu() 144 fprintf(stderr, "Match idx: %d \n", idx); in _icv_iconv_lu() 147 if ( idx >= 0 ) { in _icv_iconv_lu() 151 match_val = st->table[idx].left_code; in _icv_iconv_lu()
|
/illumos-gate/usr/src/uts/i86pc/io/amd_iommu/ |
H A D | amd_iommu_acpi.c | 467 uint16_t idx; in add_deventry_info() local 551 idx = 0; in add_deventry_info() 593 idx = 0; in add_deventry_info() 618 hash[idx] = acpi_ivhdp; in add_deventry_info() 696 uint16_t idx; in set_ivmd_info() local 722 idx = 0; in set_ivmd_info() 744 hash[idx] = acpi_ivmdp; in set_ivmd_info() 937 uint16_t idx; in dump_acpi_aliases() local 939 for (idx = 0; idx <= AMD_IOMMU_ACPI_INFO_HASH_SZ; idx++) { in dump_acpi_aliases() 954 uint16_t idx; in amd_iommu_lookup_ivhd() local [all …]
|
/illumos-gate/usr/src/uts/i86pc/io/fipe/ |
H A D | fipe_pm.c | 659 int idx; in fipe_ioat_trigger() local 662 for (idx = FIPE_IOAT_CMD_NUM; idx > 0; idx--) { in fipe_ioat_trigger() 781 for (idx = FIPE_IOAT_CMD_NUM; idx >= 0; idx--) { in fipe_ioat_alloc() 783 if (idx == 0 || idx == FIPE_IOAT_CMD_NUM) { in fipe_ioat_alloc() 791 cmds[idx] = cmds[idx + 1]; in fipe_ioat_alloc() 807 if (idx != 0) { in fipe_ioat_alloc() 839 for (idx = 0; idx <= FIPE_IOAT_CMD_NUM; idx++) { in fipe_ioat_alloc() 840 fipe_ioat_ctrl.ioat_cmds[idx] = cmds[idx]; in fipe_ioat_alloc() 856 for (idx = 1; idx <= FIPE_IOAT_CMD_NUM; idx++) { in fipe_ioat_alloc() 894 int idx = 0; in fipe_ioat_free() local [all …]
|
/illumos-gate/usr/src/uts/common/io/i40e/core/ |
H A D | i40e_hmc.c | 226 u32 idx) in i40e_remove_pd_bp() argument 236 sd_idx = idx / I40E_HMC_PD_CNT_IN_SD; in i40e_remove_pd_bp() 237 rel_pd_idx = idx % I40E_HMC_PD_CNT_IN_SD; in i40e_remove_pd_bp() 262 I40E_INVALIDATE_PF_HMC_PD(hw, sd_idx, idx); in i40e_remove_pd_bp() 281 u32 idx) in i40e_prep_remove_sd_bp() argument 287 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_prep_remove_sd_bp() 310 u32 idx, bool is_pf) in i40e_remove_sd_bp_new() argument 318 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_remove_sd_bp_new() 330 u32 idx) in i40e_prep_remove_pd_page() argument 335 sd_entry = &hmc_info->sd_table.sd_entry[idx]; in i40e_prep_remove_pd_page() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/pci/ |
H A D | pci_cb.c | 87 cb_enable_nintr(pci_t *pci_p, enum cb_nintr_index idx) in cb_enable_nintr() argument 90 ib_ino_t ino = IB_MONDO_TO_INO(pci_p->pci_inos[idx]); in cb_enable_nintr() 95 ASSERT(idx < CBNINTR_MAX); in cb_enable_nintr() 104 ASSERT(cb_p->cb_inos[idx] == 0); in cb_enable_nintr() 105 cb_p->cb_inos[idx] = ino; in cb_enable_nintr() 153 ib_ino_t ino = cb_p->cb_inos[idx]; in cb_disable_nintr() 154 ASSERT(idx < CBNINTR_MAX); in cb_disable_nintr() 160 cb_p->cb_inos[idx] = 0; in cb_disable_nintr() 165 cb_clear_nintr(cb_t *cb_p, enum cb_nintr_index idx) in cb_clear_nintr() argument 167 ib_ino_t ino = cb_p->cb_inos[idx]; in cb_clear_nintr() [all …]
|
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_isoch_recv.c | 170 int idx, cnt; in av1394_ir_recv() local 176 if ((idx < 0) || (idx >= icp->ic_nframes) || in av1394_ir_recv() 616 int idx; in av1394_ir_overflow() local 628 idx = irp->ir_last_empty; in av1394_ir_overflow() 646 irp->ir_overflow_idx = idx; in av1394_ir_overflow() 659 int idx, next_idx; in av1394_ir_overflow_resume() local 669 idx = irp->ir_overflow_idx; in av1394_ir_overflow_resume() 751 *idx = irp->ir_first_full; in av1394_ir_wait_frames() 767 int idx = irp->ir_read_idx; in av1394_ir_copyout() local 829 idx = (idx + 1) % icp->ic_nframes; in av1394_ir_copyout() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/cmd/readmmap/ |
H A D | readmmap.c | 53 size_t idx = 0; in main() local 97 idx = random() % size; in main() 98 map[idx] = 1; in main() 119 if (buf[idx] != 1) { in main() 122 idx, buf[idx]); in main() 127 (void) printf("good data from read: buf[%ud]=1\n", idx); in main()
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | lpad.c | 181 int idx; in lpad_alloc() local 198 for (idx = 0; idx < LPAD_POOL_SIZE; idx++) { in lpad_alloc() 200 LPAD_DBG("\tchecking lpad_pool[%d]\n", idx); in lpad_alloc() 202 if (lpad_pool[idx].inuse == 0) { in lpad_alloc() 203 LPAD_DBG("found empty lpad (%d)\n", idx); in lpad_alloc() 206 lpad_pool[idx].inuse = 1; in lpad_alloc() 208 return (&lpad_pool[idx]); in lpad_alloc()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/crypto/crc32/ |
H A D | crc.c | 180 register int idx; local 188 idx = (int) (data[i] ^ c); 189 idx &= 0xff; 191 c ^= (u_long) crc_table[idx]; 214 register int idx; local 223 idx = (int) (data[i] ^ c); 224 idx &= 0xff; 226 c ^= (u_long) crc_table[idx];
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | support.c | 145 Aliste idx; in ld_sup_start() local 147 for (ALIST_TRAVERSE(support[LDS_START].sup_funcs, idx, flp)) { in ld_sup_start() 158 Aliste idx; in ld_sup_atexit() local 172 Aliste idx; in ld_sup_open() local 174 for (ALIST_TRAVERSE(support[LDS_OPEN].sup_funcs, idx, flp)) { in ld_sup_open() 234 Aliste idx; in ld_sup_file() local 236 for (ALIST_TRAVERSE(support[LDS_FILE].sup_funcs, idx, flp)) { in ld_sup_file() 257 Aliste idx; in ld_sup_input_section() local 305 Aliste idx; in ld_sup_section() local 307 for (ALIST_TRAVERSE(support[LDS_SEC].sup_funcs, idx, flp)) { in ld_sup_section() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/svc.configd/ |
H A D | configd.c | 191 int idx; in request_log() local 231 for (idx = 0; idx < MIN(MAX_PTRS, cur.rl_num_ptrs); idx++) { in request_log() 232 if ((uintptr_t)cur.rl_ptrs[idx].rlp_data == node) { in request_log() 298 for (idx = 0; idx < MIN(MAX_PTRS, cur.rl_num_ptrs); idx++) { in request_log() 300 cur.rl_ptrs[idx].rlp_type, "RC_PTR_TYPE_", ""); in request_log() 302 cur.rl_ptrs[idx].rlp_id, cur.rl_ptrs[idx].rlp_ptr, in request_log() 303 cur.rl_ptrs[idx].rlp_data); in request_log() 384 uint_t idx; in request_log_walk_init() local 416 for (idx = 0; idx < log_size; idx++) { in request_log_walk_init() 417 uintptr_t addr = (uintptr_t)&base[idx]; in request_log_walk_init()
|
/illumos-gate/usr/src/uts/common/inet/ipf/ |
H A D | ip_frag.c | 233 u_int idx; local 273 idx = frag->ipfr_p; 274 idx += frag->ipfr_id; 283 idx *= 127; 284 idx %= IPFT_SIZE; 286 return idx; 305 u_int idx, off; local 360 table[idx] = fra; 497 u_int idx; local 550 if (f != table[idx]) { [all …]
|