/illumos-gate/usr/src/uts/sun4v/io/ |
H A D | ds_snmp.c | 367 int i, ndx; in ds_snmp_get_minor() local 371 for (ndx = 0; ndx < DS_MINOR_POOL_SZ; ndx++) { in ds_snmp_get_minor() 372 val = ds_snmp_minor_pool[ndx]; in ds_snmp_get_minor() 379 minor = ndx * DS_BITS_IN_UINT64 + i + 1; in ds_snmp_get_minor() 394 int i, ndx; in ds_snmp_rel_minor() local 396 ndx = (minor - 1) / DS_BITS_IN_UINT64; in ds_snmp_rel_minor() 399 ASSERT(ndx < DS_MINOR_POOL_SZ); in ds_snmp_rel_minor() 404 ds_snmp_minor_pool[ndx] &= ~((uint64_t)1 << i); in ds_snmp_rel_minor() 413 int i, ndx; in ds_snmp_is_open() local 415 ndx = (minor - 1) / DS_BITS_IN_UINT64; in ds_snmp_is_open() [all …]
|
/illumos-gate/usr/src/cmd/sgs/librtld/common/ |
H A D | relocate.c | 310 Word *ndx; in count_reloc() local 320 ndx)) { in count_reloc() 321 if (*ndx == rsymndx) { in count_reloc() 431 Half ndx; local 489 for (ndx = 1; _icache->c_flags != FLG_C_END; ndx++, 500 ircache = &icache[ndx]; 501 orcache = &ocache[ndx];
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | util.c | 129 Dbg_util_call_array(Rt_map *lmp, void *addr, int ndx, Word shtype) in Dbg_util_call_array() argument 144 dbg_print(lml, MSG_INTL(MSG_UTL_ARRAY), str, ndx, EC_NATPTR(addr), in Dbg_util_call_array() 205 int ndx, int flag) in Dbg_util_edge_in() argument 228 dbg_print(lml, MSG_INTL(MSG_UTL_EDGE_START), ndx, NAME(dlmp)); in Dbg_util_edge_in() 230 dbg_print(lml, MSG_INTL(MSG_UTL_EDGE_IN), ndx, NAME(dlmp), in Dbg_util_edge_in() 249 Dbg_util_collect(Rt_map *lmp, int ndx, int flag) in Dbg_util_collect() argument 268 dbg_print(lml, MSG_INTL(MSG_UTL_COLLECT), ndx, NAME(lmp), str); in Dbg_util_collect()
|
H A D | entry.c | 80 Aliste ndx; in Dbg_ent_print() local 88 for (APLIST_TRAVERSE(alp, ndx, enp)) { in Dbg_ent_print() 89 dbg_print(lml, MSG_INTL(MSG_ECR_DESC), EC_WORD(ndx)); in Dbg_ent_print()
|
H A D | dynamic.c | 44 Elf_dyn_entry(Lm_list *lml, Dyn *dyn, int ndx, const char *name, in Elf_dyn_entry() argument 50 (void) snprintf(index, sizeof (index), MSG_ORIG(MSG_FMT_INDEX), ndx); in Elf_dyn_entry()
|
/illumos-gate/usr/src/lib/libdtrace/common/ |
H A D | dt_aggregate.c | 787 int ndx = i + keypos; in dt_aggregate_keycmp() local 789 if (ndx >= nrecs) in dt_aggregate_keycmp() 790 ndx = ndx - nrecs + 1; in dt_aggregate_keycmp() 1712 int ndx = i + sortpos; in dtrace_aggregate_walk_joined() local 1714 if (ndx >= naggvars) in dtrace_aggregate_walk_joined() 1715 ndx -= naggvars; in dtrace_aggregate_walk_joined() 1717 aggvar = aggvars[ndx]; in dtrace_aggregate_walk_joined() 1761 int ndx; in dtrace_aggregate_walk_joined() local 2070 int ndx = j - sortpos; in dtrace_aggregate_walk_joined() local 2072 if (ndx < 0) in dtrace_aggregate_walk_joined() [all …]
|
/illumos-gate/usr/src/uts/common/io/comstar/port/qlt/ |
H A D | qlt_dma.c | 89 int ndx, i; in qlt_dmem_init() local 116 ndx = (int)(bsize / sizeof (void *)); in qlt_dmem_init() 122 ((ndx - 1) * (int)sizeof (qlt_dmem_bucket_t)), KM_SLEEP); in qlt_dmem_init() 123 for (i = 0; i < (ndx - 1); i++) { in qlt_dmem_init() 134 for (ndx = 0; (p = qlt->dmem_buckets[ndx]) != NULL; ndx++) { in qlt_dmem_init() 211 if (--ndx >= 0) { in qlt_dmem_init() 212 p = qlt->dmem_buckets[ndx]; in qlt_dmem_init() 267 int ndx; in qlt_dmem_fini() local 269 for (ndx = 0; (p = qlt->dmem_buckets[ndx]) != NULL; ndx++) { in qlt_dmem_fini()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | ehdr.c | 284 const char *ndx, *value; in print_ehdr() local 301 ndx = value = NULL; in print_ehdr() 351 if (ndx == NULL) in print_ehdr() 356 MSG_ORIG(MSG_FMT_BKTSTR), ndx); in print_ehdr() 1366 elfedit_atoui_t ndx; in cpl_e_ident() local 1392 ELFEDIT_CONST_EI, &ndx) == 0) in cpl_e_ident() 1394 switch (ndx) { in cpl_e_ident() 1473 Word ndx; in cpl_e_shstrndx() local 1483 for (ndx = 0; ndx < num_opt; ndx++) { in cpl_e_shstrndx() 1500 for (ndx = 0; ndx < obj_state->os_shnum; ndx++) { in cpl_e_shstrndx() [all …]
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | version.c | 494 int ndx = vdp->vd_ndx; in vers_index() local 496 vip[ndx].vi_name = vdp->vd_name; in vers_index() 497 vip[ndx].vi_desc = vdp; in vers_index() 504 vip[ndx].vi_flags |= FLG_VER_AVAIL; in vers_index() 513 vip[ndx].vi_flags |= VER_FLG_WEAK; in vers_index() 526 vip[ndx].vi_flags |= FLG_VER_REFER; in vers_index() 652 Half ndx = vdf->vd_ndx; in ld_vers_def_process() local 660 if (ndx > ifl->ifl_vercnt) in ld_vers_def_process() 661 ifl->ifl_vercnt = ndx; in ld_vers_def_process() 672 ivdp->vd_ndx = ndx; in ld_vers_def_process() [all …]
|
H A D | update.c | 103 Word ndx, cmp_ndx; in dynsort_dupwarn() local 112 for (ndx = 1; ndx < n; ndx++) { in dynsort_dupwarn() 126 cmp_ndx = ndx; in dynsort_dupwarn() 482 int ndx; in update_osym() local 484 for (ndx = 0; ndx < ofl->ofl_regsymsno; ndx++) { in update_osym() 1344 int ndx = sdp->sd_symndx; in update_osym() local 1376 syminfo[ndx].si_flags |= in update_osym() 1379 syminfo[ndx].si_flags |= in update_osym() 2553 int ndx; in update_odynamic() local 2555 for (ndx = 0; ndx < ofl->ofl_regsymsno; ndx++) { in update_odynamic() [all …]
|
H A D | support.c | 254 Shdr **oshdr, Word ndx, Elf_Scn *scn, Elf *elf) in ld_sup_input_section() argument 281 (*flp->fl_fptr)(sname, &nshdr, ndx, data, elf, &flags); in ld_sup_input_section() 292 ehdr->e_ident[EI_OSABI], ehdr->e_machine, ndx, in ld_sup_input_section() 301 ld_sup_section(Ofl_desc *ofl, const char *scn, Shdr *shdr, Word ndx, in ld_sup_section() argument 310 (*flp->fl_fptr)(scn, shdr, ndx, data, elf); in ld_sup_section()
|
/illumos-gate/usr/src/cmd/sendmail/db/db/ |
H A D | db_dispatch.c | 148 __db_add_recovery(dbenv, func, ndx) in __db_add_recovery() argument 151 u_int32_t ndx; 159 if (ndx >= dispatch_size) { 169 dispatch_table[ndx] = func;
|
/illumos-gate/usr/src/cmd/sgs/rtld/common/ |
H A D | elf.c | 799 Dyninfo *dip = &DYNINFO(ilmp)[ndx]; 1356 while (ndx) { 1357 sym = symtabptr + ndx; 1365 hashoff = ndx + buckets + 2; 1366 if ((ndx = chainptr[ndx]) != 0) 1400 ndx, VERSYM(ilmp)[ndx])); 1461 sip += ndx; 1632 int ndx; local 1655 for (ndx = 0; ndx < (int)ehdr->e_phnum; ndx++, 2462 ulong_t ndx, cnt, base, _value; local [all …]
|
H A D | config_elf.c | 429 Word bkt, ndx; in elf_config_ent() local 434 ndx = config->c_hashtbl[2 + bkt]; in elf_config_ent() 436 while (ndx) { in elf_config_ent() 437 obj = config->c_objtbl + ndx; in elf_config_ent() 442 ndx = config->c_hashchain[ndx]; in elf_config_ent()
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | fake_shdr.c | 1127 size_t ndx; in fake_shdr_cache() local 1155 for (ndx = 0; ndx < fstate.phnum; ndx++) { in fake_shdr_cache() 1160 if (fstate.phdr[ndx].p_filesz == 0) in fake_shdr_cache() 1164 switch (fstate.phdr[ndx].p_type) { in fake_shdr_cache() 1203 sinfo->vaddr = fstate.phdr[ndx].p_vaddr; in fake_shdr_cache() 1445 ndx = sinfo_n; in fake_shdr_cache() 1446 for (sinfo = secarr; ndx-- > 0; sinfo++) in fake_shdr_cache() 1472 ndx = sinfo_n; in fake_shdr_cache() 1506 ndx = 1; in fake_shdr_cache() 1513 _cache->c_ndx = ndx++; in fake_shdr_cache() [all …]
|
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/ |
H A D | syms.c | 40 symtab_getsym(sym_tbl_t *symtab, int ndx, GElf_Sym *dst) in symtab_getsym() argument 43 if (ndx >= symtab->st_symn_aux) { in symtab_getsym() 45 ndx - symtab->st_symn_aux, dst)); in symtab_getsym() 49 return (gelf_getsym(symtab->st_syms_aux, ndx, dst)); in symtab_getsym()
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | umount.c | 665 int ndx; in make_mntarray() local 684 for (ndx = 0, mp = mntll; mp; mp = mp->link) { in make_mntarray() 692 mpp[ndx++] = mp; in make_mntarray() 694 mpp[ndx] = NULL; in make_mntarray() 695 listlength = ndx; in make_mntarray() 703 for (ndx = 0; count--; ) { in make_mntarray() 735 mpp[ndx++] = mp; in make_mntarray() 737 mpp[ndx] = NULL; in make_mntarray() 738 listlength = ndx; in make_mntarray()
|
/illumos-gate/usr/src/cmd/sgs/link_audit/common/ |
H A D | truss.c | 209 uint_t ndx; in la_symbind64() local 211 for (ndx = 0; (str = spec_sym[ndx]) != NULL; ndx++) { in la_symbind64()
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | acom.c | 76 int ndx; in update_comment() local 93 ndx = data->d_off + data->d_size; in update_comment() 118 shdr.sh_name = ndx; in update_comment()
|
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibdma/ |
H A D | ibdma.c | 406 int ndx; in ibdma_hca_init() local 460 for (ndx = 0; ndx < hca->ih_nports; ndx++) { in ibdma_hca_init() 461 port = &hca->ih_port[ndx]; in ibdma_hca_init() 464 port->ip_ibmf_reg.ir_port_num = ndx + 1; in ibdma_hca_init() 487 ndx+1, IBT_PORT_SET_DEVMGT, 0); in ibdma_hca_init() 505 int ndx; in ibdma_hca_fini() local 533 for (ndx = 0; ndx < hca->ih_nports; ndx++) { in ibdma_hca_fini() 534 port = &hca->ih_port[ndx]; in ibdma_hca_fini() 538 ndx+1, IBT_PORT_RESET_DEVMGT, 0); in ibdma_hca_fini()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | leaky.c | 408 leak_ndx_t ndx; in leaky_do_grep_ptr() local 417 if ((ndx = leaky_search(loc)) == -1) { in leaky_do_grep_ptr() 422 lkmp = &lk_mtab[ndx]; in leaky_do_grep_ptr() 453 leak_ndx_t ndx; in leaky_lookup_marked() local 456 if ((ndx = leaky_search(loc)) == -1) in leaky_lookup_marked() 459 lkmp = &lk_mtab[ndx]; in leaky_lookup_marked() 471 size_t ndx; in leaky_add_leak() local 494 ndx = total % LK_BUFCTLHSIZE; in leaky_add_leak() 496 if ((lkb = lk_bufctl[ndx]) == NULL) { in leaky_add_leak() 498 lk_bufctl[ndx] = nlkb; in leaky_add_leak()
|
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/ |
H A D | eib_mac.c | 224 int ndx; in eib_mac_stop() local 232 for (ndx = EIB_MAX_VNICS - 1; ndx >= 0; ndx--) { in eib_mac_stop() 233 if ((vnic = ss->ei_vnic[ndx]) != NULL) in eib_mac_stop()
|
/illumos-gate/usr/src/cmd/sendmail/db/hash/ |
H A D | hash_dup.c | 563 __ham_move_offpage(dbc, pagep, ndx, pgno) in __ham_move_offpage() argument 566 u_int32_t ndx; 589 old_dbt.data = P_ENTRY(pagep, ndx); 590 old_dbt.size = LEN_HITEM(pagep, hcp->hdr->pagesize, ndx); 593 PGNO(pagep), (u_int32_t)ndx, &LSN(pagep), -1, 598 LEN_HITEM(pagep, hcp->hdr->pagesize, ndx) - HOFFDUP_SIZE; 603 memmove(src + shrink, src, pagep->inp[ndx] - HOFFSET(pagep)); 607 for (i = ndx; i < NUM_ENT(pagep); i++) 612 memcpy(P_ENTRY(pagep, ndx), &od, HOFFDUP_SIZE);
|
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/ |
H A D | elfwrap.c | 71 size_t ndx, cnt; in input() local 80 for (ndx = 1; argc; argc--, argv++, ndx++) { in input() 97 outsec.os_ndx = ndx; in input() 168 ndx++, stdsecs = &StdSecs[cnt]) { in input() 176 outsec.os_ndx = ndx; in input()
|
/illumos-gate/usr/src/cmd/sgs/common/ |
H A D | alist.c | 254 Aliste ndx = ((*lpp) == NULL) ? 0 : (*lpp)->al_nitems; in alist_append() local 256 return (alist_insert(lpp, datap, size, init_arritems, ndx)); in alist_append() 262 Aliste ndx = ((*lpp) == NULL) ? 0 : (*lpp)->apl_nitems; in aplist_append() local 264 return (aplist_insert(lpp, ptr, init_arritems, ndx)); in aplist_append()
|