/titanic_41/usr/src/cmd/lvm/rpc.metamedd/ |
H A D | med_hash.c | 86 (*cp)->bp[i].nent = 0; in init_cache() 130 if (bp->nent >= bp->nalloc) { in add_cache() 164 bp->itempp[bp->nent] = itemp; in add_cache() 165 bp->nent++; in add_cache() 182 for (i = 0; i < bp->nent; i++) in lookup_cache() 200 cp->bp[*bidx].nent == 0); (*bidx)++) in first_item() 203 if (*bidx < cp->hsz && cp->bp[*bidx].nent > 0) { in first_item() 225 if ((*iidx + 1) < cp->bp[*bidx].nent) { in next_item() 230 cp->bp[*bidx].nent == 0); in next_item() 233 if (*bidx < cp->hsz && cp->bp[*bidx].nent > 0) { in next_item() [all …]
|
H A D | med_hash.h | 50 int nent; member
|
/titanic_41/usr/src/lib/libc/port/aio/ |
H A D | posix_aio.c | 123 int nent, struct sigevent *_RESTRICT_KYWD sigevp) in lio_listio() argument 142 if (nent <= 0 || nent > aio_list_max) { in lio_listio() 159 for (i = 0; i < nent; i++) { in lio_listio() 182 error = (int)_kaio(AIOLIO, mode, list, nent, sigevp); in lio_listio() 227 head->lio_nent = head->lio_refcnt = nent; in lio_listio() 233 for (i = 0; i < nent; i++) { in lio_listio() 285 if ((nent - aio_ufs) > 0) in lio_listio() 286 (void) _kaio(AIOLIOWAIT, mode, list, nent, sigevp); in lio_listio() 306 for (i = 0; i < nent; i++) { in lio_listio() 341 __aio_suspend(void **list, int nent, const timespec_t *timo, int largefile) in __aio_suspend() argument [all …]
|
/titanic_41/usr/src/lib/libc/port/gen/ |
H A D | event_port.c | 140 port_sendn(int ports[], int errors[], uint_t nent, int events, void *user) in port_sendn() argument 146 if (nent <= PORT_MAX_LIST) { in port_sendn() 148 (uintptr_t)ports, (uintptr_t)errors, nent, events, in port_sendn() 155 for (offset = 0; offset < nent; ) { in port_sendn() 156 lnent = nent - offset; in port_sendn() 157 if (nent - offset > PORT_MAX_LIST) in port_sendn() 160 lnent = nent - offset; in port_sendn()
|
/titanic_41/usr/src/cmd/mdb/tools/setdynflag/common/ |
H A D | setdynflag.c | 92 int fd, secidx, nent, i; in set_flag() local 114 nent = shdr.sh_size / shdr.sh_entsize; in set_flag() 115 for (i = 0; i < nent; i++) { in set_flag() 129 if (i == nent) { in set_flag()
|
/titanic_41/usr/src/cmd/mdb/tools/findfp/common/ |
H A D | findsym.c | 43 int symtabidx, nent, i; in findelfsym() local 53 nent = shdr.sh_size / shdr.sh_entsize; in findelfsym() 55 for (i = 0; i < nent; i++) { in findelfsym()
|
/titanic_41/usr/src/cmd/fs.d/pcfs/fstyp/ |
H A D | fstyp.c | 134 static boolean_t dir_find_label(fstyp_pcfs_t *h, struct pcdir *d, int nent); 359 int nent, resid; in get_label_16() local 375 nent = secsize / sizeof (struct pcdir); in get_label_16() 376 if (nent > resid) { in get_label_16() 377 nent = resid; in get_label_16() 379 if (dir_find_label(h, (struct pcdir *)buf, nent)) { in get_label_16() 383 resid -= nent; in get_label_16() 401 int nent; in get_label_32() local 419 nent = clustersize / sizeof (struct pcdir); in get_label_32() 420 if (dir_find_label(h, (struct pcdir *)buf, nent)) { in get_label_32() [all …]
|
/titanic_41/usr/src/lib/libpkg/common/ |
H A D | nhash.c | 122 if (bp->nent >= bp->nalloc) { in add_cache() 155 bp->itempp[bp->nent] = itemp; in add_cache() 156 bp->nent++; in add_cache() 176 for (i = 0; i < bp->nent; i++) { in lookup_cache()
|
H A D | ncgrpw.c | 417 int nent = 0; /* Number of entries in the member list. */ in dup_gr_ent() local 449 for (tp = grp->gr_mem; *tp; nent++, tp++); in dup_gr_ent() 452 memp = malloc(sizeof (char **)* (nent+1)); in dup_gr_ent() 457 (sizeof (char **)* (nent+1)), in dup_gr_ent() 468 for (nent = 0, tp = grp->gr_mem; *tp; tp++) { in dup_gr_ent() 469 if ((memp[nent++] = strdup(*tp)) == NULL) { in dup_gr_ent() 486 memp[nent++] = '\0'; in dup_gr_ent()
|
H A D | nhash.h | 49 int nent; member
|
/titanic_41/usr/src/uts/common/os/ |
H A D | aio.c | 608 aiowaitn(void *uiocb, uint_t nent, uint_t *nwait, timespec_t *timout) in aiowaitn() argument 625 if (aiop == NULL || nent == 0 || nent > _AIO_LISTIO_MAX) in aiowaitn() 641 waitcnt = nent; in aiowaitn() 649 iocbsz = (sizeof (aiocb_t *) * nent); in aiowaitn() 652 iocbsz = (sizeof (caddr32_t) * nent); in aiowaitn() 726 cnt += aio_reqlist_concat(aiop, &reqlist, nent - cnt); in aiowaitn() 895 int nent, in aiosuspend() argument 921 if (aiop == NULL || nent <= 0 || nent > _AIO_LISTIO_MAX) in aiosuspend() 947 ssize = (sizeof (aiocb_t *) * nent); in aiosuspend() 950 ssize = (sizeof (caddr32_t) * nent); in aiosuspend() [all …]
|
/titanic_41/usr/src/uts/common/fs/portfs/ |
H A D | port.c | 975 port_sendn(int ports[], int errors[], uint_t nent, int events, void *user, in port_sendn() argument 988 if (nent == 0 || nent > port_max_list) in port_sendn() 991 plist = kmem_alloc(nent * sizeof (int), KM_SLEEP); in port_sendn() 992 if (copyin((void *)ports, plist, nent * sizeof (int))) { in port_sendn() 993 kmem_free(plist, nent * sizeof (int)); in port_sendn() 1006 for (count = 0; count < nent; count++) { in port_sendn() 1009 elist = port_errorn(elist, nent, EBADF, count); in port_sendn() 1017 elist = port_errorn(elist, nent, EBADFD, count); in port_sendn() 1026 elist = port_errorn(elist, nent, error, count); in port_sendn() 1043 if (copyout(elist, (void *)errors, nent * sizeof (int))) in port_sendn() [all …]
|
/titanic_41/usr/src/cmd/ps/ |
H A D | ucbps.c | 153 int nent; in ucbmain() local 349 nent = 0; /* no active entries yet */ in ucbmain() 495 if (nent >= entsize) { in ucbmain() 504 if ((psent[nent].psinfo = malloc(sizeof (psinfo_t))) in ucbmain() 509 *psent[nent].psinfo = info; in ucbmain() 511 psent[nent].psargs = NULL; in ucbmain() 513 if ((psent[nent].psargs = malloc(strlen(psargs)+1)) in ucbmain() 518 (void) strcpy(psent[nent].psargs, psargs); in ucbmain() 520 psent[nent].found = found; in ucbmain() 521 nent++; in ucbmain() [all …]
|
H A D | ps.c | 92 size_t nent; /* number of active entries */ member 2114 if (tbl->size == tbl->nent) { /* reallocate the table entries */ in add_ugentry() 2119 entp = &tbl->ent[tbl->nent++]; in add_ugentry() 2129 int n = uhead->nent; in uconv() 2161 uhead->nent = fnd; /* in case it changed */ in uconv() 2169 int n = ghead->nent; in gconv() 2200 ghead->nent = fnd; /* in case it changed */ in gconv() 2211 int n = ughead->nent; in ugfind()
|
/titanic_41/usr/src/tools/ctf/cvt/ |
H A D | output.c | 236 Elf_Data *data, int nent, Elf_Data *strdata, in check_for_weak() argument 248 for (i = 0; i < nent; i++) { in check_for_weak() 337 int nent; in sort_iidescs() local 349 nent = shdr.sh_size / shdr.sh_entsize; in sort_iidescs() 354 iiburst = iiburst_new(td, nent); in sort_iidescs() 356 for (i = 0; i < nent; i++) { in sort_iidescs() 398 if (!check_for_weak(&sym, match.iim_file, data, nent, strdata, in sort_iidescs()
|
/titanic_41/usr/src/uts/common/dtrace/ |
H A D | fasttrap.c | 2129 ulong_t nent; in fasttrap_attach() local 2163 nent = ddi_getprop(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS, in fasttrap_attach() 2166 if (nent == 0 || nent > 0x1000000) in fasttrap_attach() 2167 nent = FASTTRAP_TPOINTS_DEFAULT_SIZE; in fasttrap_attach() 2169 if (ISP2(nent)) in fasttrap_attach() 2170 fasttrap_tpoints.fth_nent = nent; in fasttrap_attach() 2172 fasttrap_tpoints.fth_nent = 1 << fasttrap_highbit(nent); in fasttrap_attach() 2181 nent = FASTTRAP_PROVIDERS_DEFAULT_SIZE; in fasttrap_attach() 2182 if (ISP2(nent)) in fasttrap_attach() 2183 fasttrap_provs.fth_nent = nent; in fasttrap_attach() [all …]
|
/titanic_41/usr/src/ucbcmd/ls/ |
H A D | ls.c | 265 size_t nent = 20; in getdir() local 285 fp = *pfp0 = (struct afile *)calloc(nent, sizeof (struct afile)); in getdir() 286 *pfplast = *pfp0 + nent; in getdir() 301 2 * nent * sizeof (struct afile)); in getdir() 306 fp = *pfp0 + nent; in getdir() 307 *pfplast = fp + nent; in getdir() 308 nent *= 2; in getdir()
|
/titanic_41/usr/src/cmd/pbind/ |
H A D | pbind.c | 245 int nent, size; in do_lwps() local 264 nent = header.pr_nent; in do_lwps() 265 size = header.pr_entsize * nent; in do_lwps() 284 for (i = 0; i < nent; i++, ptr += header.pr_entsize) { in do_lwps()
|
/titanic_41/usr/src/cmd/fs.d/udfs/fsdb/ |
H A D | fsdb.c | 736 verify_dent(uint32_t i_addr, uint32_t nent) in verify_dent() argument 754 if (ent == nent) { in verify_dent() 765 print_dent(uint32_t i_addr, uint32_t nent) in print_dent() argument 775 if (verify_dent(i_addr, nent) == 0) { in print_dent() 778 if (ent == nent) { in print_dent() 800 int32_t i, d, nent; in get_blkno() local 835 nent = SWAP_32(fe->fe_len_adesc) / elen; in get_blkno() 836 de = malloc(nent * sizeof (struct ext)); in get_blkno() 843 de_count = nent; in get_blkno() 844 for (d = 0, i = 0; i < nent; i++) { in get_blkno()
|
/titanic_41/usr/src/uts/sun4/io/ |
H A D | trapstat.c | 1500 int nent; in trapstat_make_traptab() local 1538 for (nent = 0; nent < TSTAT_TOTAL_NENT; nent++) { in trapstat_make_traptab() 1539 if (tstat_enabled[nent]) { in trapstat_make_traptab() 1581 int nent; in trapstat_make_traptab() local 1661 for (nent = 0; nent < TSTAT_TOTAL_NENT; nent++) { in trapstat_make_traptab() 1670 nent < TSTAT_TLB_NENT) && tstat_enabled[nent]) { in trapstat_make_traptab()
|
/titanic_41/usr/src/cmd/backup/restore/ |
H A D | utilities.c | 796 ap->nent = 20; 797 ap->base = (struct afile *)calloc((unsigned)ap->nent, 811 if (fp == ap->head + ap->nent) { 813 (size_t)(2 * ap->nent * (size_t)sizeof (*(ap->base)))); 820 fp = ap->head + ap->nent; 821 ap->nent *= 2;
|
/titanic_41/usr/src/cmd/mdb/intel/modules/generic_cpu/ |
H A D | gcpu.c | 602 uint_t nent, i; in gcpu_mptwalk_init() local 612 sym.st_size != sizeof (uint_t) || mdb_vread(&nent, sizeof (uint_t), in gcpu_mptwalk_init() 620 mw->mw_tracenent = nent; in gcpu_mptwalk_init() 621 mw->mw_tracesz = nent * sizeof (gcpu_poll_trace_t); in gcpu_mptwalk_init()
|
/titanic_41/usr/src/cmd/psrset/ |
H A D | psrset.c | 575 int nent, size; in do_lwps() local 594 nent = header.pr_nent; in do_lwps() 595 size = header.pr_entsize * nent; in do_lwps() 614 for (i = 0; i < nent; i++, ptr += header.pr_entsize) { in do_lwps()
|
/titanic_41/usr/src/cmd/prstat/ |
H A D | prstat.c | 903 long nlwps, nent, i; in prstat_scandir() local 955 nent = header.pr_nent; in prstat_scandir() 956 entsz = header.pr_entsize * nent; in prstat_scandir() 967 for (i = 0; i < nent; i++, ptr += header.pr_entsize) { in prstat_scandir() 1029 nent = header.pr_nent; in prstat_scandir() 1030 entsz = header.pr_entsize * nent; in prstat_scandir() 1040 for (i = 1, ptr = buf + header.pr_entsize; i < nent; in prstat_scandir()
|
/titanic_41/usr/src/cmd/plockstat/ |
H A D | plockstat.c | 736 uint_t nent = 0; in chewrec() local 738 process_aggregate, &nent) != 0) in chewrec()
|