Home
last modified time | relevance | path

Searched refs:idx (Results 251 – 275 of 765) sorted by relevance

1...<<11121314151617181920>>...31

/illumos-gate/usr/src/lib/libdemangle/common/
H A Dcxx_util.c152 name_at(const name_t *n, size_t idx) in name_at() argument
155 VERIFY3U(idx, <, n->nm_len); in name_at()
156 return (&n->nm_items[n->nm_len - idx - 1]); in name_at()
446 sub_substitute(const sub_t *sub, size_t idx, name_t *n) in sub_substitute() argument
448 VERIFY3U(idx, <, sub->sub_len); in sub_substitute()
450 const name_t *src = &sub->sub_items[idx]; in sub_substitute()
569 templ_sub(const templ_t *tpl, size_t idx, name_t *n) in templ_sub() argument
573 return (sub_substitute(sub, idx, n)); in templ_sub()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/plugins/
H A Dpppoe.c250 int idx; in handle_ip_route_add() local
253 idx = 0; in handle_ip_route_add()
283 (void) slprintf(envname, sizeof (envname), RTE_STR, ++idx); in handle_ip_route_add()
318 int idx; in handle_pppoe_input() local
378 idx = 0; in handle_pppoe_input()
387 RTE_STR, ++idx); in handle_pppoe_input()
/illumos-gate/usr/src/uts/common/fs/zfs/
H A Drefcount.c313 avl_index_t idx; in zfs_refcount_held() local
323 ref = avl_find(&rc->rc_tree, &s, &idx); in zfs_refcount_held()
325 ref = avl_nearest(&rc->rc_tree, idx, AVL_AFTER); in zfs_refcount_held()
340 avl_index_t idx; in zfs_refcount_not_held() local
350 ref = avl_find(&rc->rc_tree, &s, &idx); in zfs_refcount_not_held()
352 ref = avl_nearest(&rc->rc_tree, idx, AVL_AFTER); in zfs_refcount_not_held()
H A Dzap.c255 uint64_t blk = idx >> (bs-3); in zap_table_store()
256 uint64_t off = idx & ((1<<(bs-3))-1); in zap_table_store()
266 uint64_t idx2 = idx * 2; in zap_table_store()
297 uint64_t blk = idx >> (bs-3); in zap_table_load()
298 uint64_t off = idx & ((1<<(bs-3))-1); in zap_table_load()
321 blk = (idx*2) >> (bs-3); in zap_table_load()
566 ASSERT3U(idx, <, in zap_idx_to_blk()
572 idx, valp)); in zap_idx_to_blk()
587 idx, blk, tx)); in zap_set_idx_to_blk()
964 uint64_t idx = ZAP_HASH_IDX(zn->zn_hash, in fzap_prefetch() local
[all …]
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_fhistory.c1004 ndmp_lbr_params_t *nlp, int idx, int stat) in ndmp_send_recovery_stat_v3() argument
1016 } else if (idx < 0) { in ndmp_send_recovery_stat_v3()
1017 NDMP_LOG(LOG_DEBUG, "idx(%d) < 0", idx); in ndmp_send_recovery_stat_v3()
1019 NDMP_LOG(LOG_DEBUG, "nlist[%d] == NULL", idx); in ndmp_send_recovery_stat_v3()
1046 int idx = (int)ll_idx; in ndmpd_path_restored_v3() local
1064 if (idx < 0 || idx >= nlp->nlp_nfiles) { in ndmpd_path_restored_v3()
1065 NDMP_LOG(LOG_DEBUG, "Invalid idx: %d", idx); in ndmpd_path_restored_v3()
1073 nlp->nlp_lastidx = idx; in ndmpd_path_restored_v3()
1076 (void) bm_setone(nlp->nlp_rsbm, (u_longlong_t)idx); in ndmpd_path_restored_v3()
1080 if (nlp->nlp_lastidx != idx) { in ndmpd_path_restored_v3()
[all …]
/illumos-gate/usr/src/uts/common/inet/ilb/
H A Dilb_nat.c204 uint32_t idx; in ilb_find_nat_src() local
208 ILB_NAT_SRC_HASH(idx, &nat_src->s6_addr32[3], &serv_addr->s6_addr32[3], in ilb_find_nat_src()
210 mutex_enter(&ilbs->ilbs_nat_src[idx].nsh_lock); in ilb_find_nat_src()
211 head = &ilbs->ilbs_nat_src[idx].nsh_head; in ilb_find_nat_src()
223 mutex_exit(&ilbs->ilbs_nat_src[idx].nsh_lock); in ilb_find_nat_src()
229 mutex_exit(&ilbs->ilbs_nat_src[idx].nsh_lock); in ilb_find_nat_src()
235 tmp->nse_nsh_lock = &ilbs->ilbs_nat_src[idx].nsh_lock; in ilb_find_nat_src()
248 mutex_exit(&ilbs->ilbs_nat_src[idx].nsh_lock); in ilb_find_nat_src()
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_wksids.c231 smb_wka_get_domain(int idx) in smb_wka_get_domain() argument
233 if ((idx >= 0) && (idx < SMB_WKA_NUM)) in smb_wka_get_domain()
234 return (wka_nbdomain[idx]); in smb_wka_get_domain()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dlocaltime.c1259 int year, i, idx, ridx; in posix_check_dst() local
1291 ridx = !idx; in posix_check_dst()
1300 return (idx); in posix_check_dst()
1319 int idx; in posix_daylight() local
1331 for (idx = 0; idx < 2; idx++) { in posix_daylight()
2099 int idx, ridx; in load_posix_transitions() local
2101 ridx = !idx; in load_posix_transitions()
2110 *typep++ = idx; in load_posix_transitions()
2508 tzname[idx] = (char *)name; in set_one_tzname()
2519 tzname[idx] = tzn->name; in set_one_tzname()
[all …]
H A Dgetopt_long.c308 const struct option *long_options, int *idx, int short_too, in parse_long_options() argument
437 if (idx) in parse_long_options()
438 *idx = match; in parse_long_options()
457 const struct option *long_options, int *idx, uint_t flags) in getopt_internal() argument
622 long_options, idx, short_too, flags); in getopt_internal()
667 idx, 0, flags); in getopt_internal()
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/
H A Dlm_vf.c1646 for (idx = 0; idx < pdev->params.fw_base_qzone_cnt; idx++) in lm_vf_pf_acquire_msg()
1648 pdev->params.fw_qzone_id[idx] = presp->resc.hw_qid[idx]; in lm_vf_pf_acquire_msg()
1649 IGU_VF_NDSB(pdev,idx) = presp->resc.hw_sbs[idx].hw_sb_id; in lm_vf_pf_acquire_msg()
1751 for (idx = 0; idx < pdev->params.fw_base_qzone_cnt; idx++) in lm_vf_pf_acquire_msg()
1753 pdev->params.fw_qzone_id[idx] = presp->resc.hw_qid[idx]; in lm_vf_pf_acquire_msg()
3318 for (idx = 0; idx < 3; idx++) { in lm_pf_cleanup_vf_after_flr()
3326 switch (idx) { in lm_pf_cleanup_vf_after_flr()
3358 … pdev->flr_stats.pbf_queue[idx], DEFAULT_WAIT_INTERVAL_MICSEC, (idx == 2) ? 4 : idx); in lm_pf_cleanup_vf_after_flr()
3366 for (idx = 0; idx < 3; idx++) { in lm_pf_cleanup_vf_after_flr()
3374 switch (idx) { in lm_pf_cleanup_vf_after_flr()
[all …]
/illumos-gate/usr/src/uts/common/io/usb/clients/ccid/
H A Dccid.c719 VERIFY3P(idx, ==, ip); in ccid_minor_idx_free()
741 idx->cmi_minor = id; in ccid_minor_idx_alloc()
765 ccid_minor_idx_t *idx; in ccid_minor_find_user() local
768 if (idx == NULL) { in ccid_minor_find_user()
772 return (idx); in ccid_minor_find_user()
3429 ccid_minor_idx_t *idx; in ccid_open() local
3452 if (idx == NULL) { in ccid_open()
3841 if (idx == NULL) { in ccid_write()
4199 if (idx == NULL) { in ccid_ioctl()
4235 if (idx == NULL) { in ccid_chpoll()
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxenbus_dev.c93 #define XENBUSDRV_MASK_READ_IDX(idx) ((idx) & (PAGESIZE - 1)) argument
443 int idx; in xenbusdrv_read() local
462 idx = XENBUSDRV_MASK_READ_IDX(xbs->read_cons); in xenbusdrv_read()
467 if (len > (sizeof (xbs->read_buffer) - idx)) in xenbusdrv_read()
468 len = sizeof (xbs->read_buffer) - idx; in xenbusdrv_read()
472 ret = uiomove(xbs->read_buffer + idx, len, UIO_READ, uiop); in xenbusdrv_read()
/illumos-gate/usr/src/uts/common/idmap/
H A Didmap_cache.c403 int idx = (rid & KIDMAP_HASH_MASK); in kidmap_cache_lookup_uidbysid() local
404 idmap_sid2pid_cache_t *sid2pid_hb = &cache->sid2pid_hash[idx]; in kidmap_cache_lookup_uidbysid()
435 int idx = (rid & KIDMAP_HASH_MASK); in kidmap_cache_lookup_gidbysid() local
436 idmap_sid2pid_cache_t *sid2pid_hb = &cache->sid2pid_hash[idx]; in kidmap_cache_lookup_gidbysid()
467 int idx = (rid & KIDMAP_HASH_MASK); in kidmap_cache_lookup_pidbysid() local
468 idmap_sid2pid_cache_t *sid2pid_hb = &cache->sid2pid_hash[idx]; in kidmap_cache_lookup_pidbysid()
507 int idx = (uid & KIDMAP_HASH_MASK); in kidmap_cache_lookup_sidbyuid() local
539 int idx = (gid & KIDMAP_HASH_MASK); in kidmap_cache_lookup_sidbygid() local
825 int idx = pid & KIDMAP_HASH_MASK; in kidmap_cache_add_sid2pid() local
830 &cache->uid2sid_hash[idx]; in kidmap_cache_add_sid2pid()
[all …]
/illumos-gate/usr/src/uts/common/vm/
H A Danon.h337 #define ANON_ARRAY_HASH(amp, idx)\ argument
338 ((((idx) + ((idx) >> ANON_ARRAY_SHIFT) +\
339 ((idx) >> (ANON_ARRAY_SHIFT << 1)) +\
340 ((idx) >> (ANON_ARRAY_SHIFT + (ANON_ARRAY_SHIFT << 1)))) ^\
/illumos-gate/usr/src/lib/pam_modules/authtok_check/
H A Dpacklib.c299 int idx; in FindPW() local
305 idx = string[0] & 0xff; in FindPW()
306 lwm = idx ? pwp->hwms[idx - 1] : 0; in FindPW()
307 hwm = pwp->hwms[idx]; in FindPW()
/illumos-gate/usr/src/tools/smatch/src/
H A Dtarget.h68 static inline unsigned long array_element_offset(unsigned long base_bits, int idx) in array_element_offset() argument
73 return base_bits * idx; in array_element_offset()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvlds.c229 index_t idx; in vlds_minor_get() local
234 if ((idx = bt_availbit(vlds_minor_bitmap, in vlds_minor_get()
246 BT_SET(vlds_minor_bitmap, idx); in vlds_minor_get()
248 return (idx); in vlds_minor_get()
252 vlds_minor_rele(index_t idx) in vlds_minor_rele() argument
256 BT_CLEAR(vlds_minor_bitmap, idx); in vlds_minor_rele()
1067 int idx; in vlds_mdeg_cb()
1082 for (idx = 0; idx < resp->added.nelem; idx++) { in vlds_mdeg_cb()
1084 node = resp->added.mdep[idx]; in vlds_mdeg_cb()
1099 for (idx = 0; idx < resp->removed.nelem; idx++) { in vlds_mdeg_cb()
[all …]
/illumos-gate/usr/src/uts/common/nfs/
H A Dnfs4_db_impl.h135 #define HASH(idx, key) (idx->dbi_hash(key) % idx->dbi_table->dbt_len) argument
/illumos-gate/usr/src/cmd/sgs/crle/common/
H A Dutil.c56 Aliste idx; in addenv() local
64 for (APLIST_TRAVERSE(crle->c_env, idx, env)) { in addenv()
104 Aliste idx; in addenv() local
111 for (APLIST_TRAVERSE(crle->c_env, idx, env)) { in addenv()
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_format.c332 int idx = *src++; in cnv_to_ulaw() local
333 idx >>= 10; in cnv_to_ulaw()
334 idx += G711_ULAW_MIDPOINT; in cnv_to_ulaw()
335 idx &= 0x3fff; /* safety precaution */ in cnv_to_ulaw()
336 *dst++ = _14linear2ulaw8[idx]; in cnv_to_ulaw()
349 int idx = *src++; in cnv_to_alaw() local
350 idx >>= 11; in cnv_to_alaw()
351 idx += G711_ALAW_MIDPOINT; in cnv_to_alaw()
352 idx &= 0x1fff; /* safety precaution */ in cnv_to_alaw()
353 *dst++ = _13linear2alaw8[idx]; in cnv_to_alaw()
/illumos-gate/usr/src/uts/common/disp/
H A Dsysdc.c671 int idx; in sysdc_update() local
704 for (idx = 0; idx < SYSDC_NLISTS; idx++) { in sysdc_update()
705 sysdc_list_t *sdl = &sysdc_active[idx]; in sysdc_update()
1216 int idx; in sysdc_init() local
1221 for (idx = 0; idx < SYSDC_NLISTS; idx++) { in sysdc_init()
1222 sysdc_active[idx].sdl_list = &sysdc_dummy; in sysdc_init()
/illumos-gate/usr/src/boot/i386/libi386/
H A Dvbe.c530 size_t idx, nentries; in vbe_find_mode_xydm() local
549 for (idx = 0; idx < nentries; idx++) { in vbe_find_mode_xydm()
550 mode = vbe_mode_list[idx]; in vbe_find_mode_xydm()
697 int nmodes, idx, nentries; in vbe_modelist() local
745 for (idx = 0; idx < nentries; idx++) { in vbe_modelist()
746 mode = vbe_mode_list[idx]; in vbe_modelist()
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dirp.c409 int idx = 0; in irs_irp_read_body() local
433 buffer[idx] = '\0'; in irs_irp_read_body()
438 if (linelen > (len - (idx + 1))) { in irs_irp_read_body()
449 memcpy(buffer + idx, line, linelen); in irs_irp_read_body()
450 idx += linelen; in irs_irp_read_body()
/illumos-gate/usr/src/boot/efi/loader/arch/amd64/
H A Dtrap.c115 prepare_exception(unsigned idx, uint64_t my_handler, in prepare_exception() argument
120 fw_idt_e = &((struct gate_descriptor *)fw_idt.rd_base)[idx]; in prepare_exception()
121 loader_idt_e = &((struct gate_descriptor *)loader_idt.rd_base)[idx]; in prepare_exception()
122 fw_intr_handlers[idx] = fw_idt_e->gd_looffset + in prepare_exception()
124 intercepted[idx] = 1; in prepare_exception()
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.c715 if (idx != MEM_EDC0 && idx != MEM_EDC1) { in t4_edc_err_read()
4475 int i, j, idx; in t4_cim_read_ma_la() local
5111 name[idx]); in mem_intr_handler()
5818 if (idx >= 0 && idx < rss_key_addr_cnt) { in t4_write_rss_key()
8370 if (idx) in t4_alloc_mac_filt()
11014 *wrptr = idx; in t4_cim_read_la()
11036 idx = (idx & 0xff0) + 0x10; in t4_cim_read_la()
11038 idx++; in t4_cim_read_la()
11076 idx = (idx + 1) & M_DBGLARPTR; in t4_tp_read_la()
11078 *wrptr = idx; in t4_tp_read_la()
[all …]

1...<<11121314151617181920>>...31