| /netbsd-src/lib/libc/gen/ |
| H A D | nlist_aout.c | 99 int nent; in __fdnlist_aout() local 143 nent = 0; in __fdnlist_aout() 149 ++nent; in __fdnlist_aout() 154 scoreboard = malloc((size_t)nent); in __fdnlist_aout() 156 scoreboard = alloca((size_t)nent); in __fdnlist_aout() 160 (void)memset(scoreboard, 0, (size_t)nent); in __fdnlist_aout() 182 if (--nent <= 0) in __fdnlist_aout() 191 return (nent); in __fdnlist_aout()
|
| H A D | nlist_elf32.c | 97 int nent; in ELFNAMEEND() local 154 nent = 0; in ELFNAMEEND() 214 nent++; in ELFNAMEEND() 219 return nent; in ELFNAMEEND() 278 nent = 0; in ELFNAMEEND() 284 ++nent; in ELFNAMEEND() 327 if (--nent <= 0) in ELFNAMEEND() 335 rv = nent; in ELFNAMEEND()
|
| H A D | nlist_ecoff.c | 76 int rv, nent; in __fdnlist_ecoff() local 140 nent = 0; in __fdnlist_ecoff() 146 ++nent; in __fdnlist_ecoff() 171 if (--nent <= 0) in __fdnlist_ecoff() 179 rv = nent; in __fdnlist_ecoff()
|
| H A D | nlist_coff.c | 90 int rv, nent; in __fdnlist_coff() local 139 nent = 0; in __fdnlist_coff() 145 ++nent; in __fdnlist_coff() 180 if (--nent <= 0) in __fdnlist_coff() 188 rv = nent; in __fdnlist_coff()
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/gr/ |
| H A D | nouveau_nvkm_engine_gr_gk20a.c | 49 int nent; in gk20a_gr_av_to_init() local 57 nent = (blob.size / sizeof(struct gk20a_fw_av)); in gk20a_gr_av_to_init() 58 pack = vzalloc((sizeof(*pack) * 2) + (sizeof(*init) * (nent + 1))); in gk20a_gr_av_to_init() 67 for (i = 0; i < nent; i++) { in gk20a_gr_av_to_init() 99 int nent; in gk20a_gr_aiv_to_init() local 107 nent = (blob.size / sizeof(struct gk20a_fw_aiv)); in gk20a_gr_aiv_to_init() 108 pack = vzalloc((sizeof(*pack) * 2) + (sizeof(*init) * (nent + 1))); in gk20a_gr_aiv_to_init() 117 for (i = 0; i < nent; i++) { in gk20a_gr_aiv_to_init() 145 int nent; in gk20a_gr_av_to_method() local 153 nent = (blob.size / sizeof(struct gk20a_fw_av)); in gk20a_gr_av_to_method() [all …]
|
| /netbsd-src/sys/kern/ |
| H A D | sys_aio.c | 812 syscallarg(int) nent; in sys___aio_suspend50() 817 int error, nent; in sys___aio_suspend50() 819 nent = SCARG(uap, nent); in sys___aio_suspend50() 820 if (nent <= 0 || nent > aio_listio_max) in sys___aio_suspend50() 831 list = kmem_alloc(nent * sizeof(*list), KM_SLEEP); in sys___aio_suspend50() 832 error = copyin(SCARG(uap, list), list, nent * sizeof(*list)); in sys___aio_suspend50() 835 error = aio_suspend1(l, list, nent, SCARG(uap, timeout) ? &ts : NULL); in sys___aio_suspend50() 837 kmem_free(list, nent * sizeo 813 int error, nent; sys___aio_suspend50() local 838 aio_suspend1(struct lwp * l,struct aiocb ** aiocbp_list,int nent,struct timespec * ts) aio_suspend1() argument 932 int i, error, errcnt, mode, nent; sys_lio_listio() local [all...] |
| H A D | subr_kcov.c | 185 kcov_allocbuf(kcov_t *kd, uint64_t nent) in kcov_allocbuf() argument 190 if (nent < 2 || nent > KCOV_BUF_MAX_ENTRIES) in kcov_allocbuf() 195 size = roundup(nent * KCOV_ENTRY_SIZE, PAGE_SIZE); in kcov_allocbuf() 196 kd->bufnent = nent - 1; in kcov_allocbuf()
|
| /netbsd-src/sys/compat/common/ |
| H A D | kern_time_50.c | 358 int error, nent; in compat_50_sys_aio_suspend() local 360 nent = SCARG(uap, nent); in compat_50_sys_aio_suspend() 361 if (nent <= 0 || nent > aio_listio_max) in compat_50_sys_aio_suspend() 372 list = kmem_alloc(nent * sizeof(*list), KM_SLEEP); in compat_50_sys_aio_suspend() 373 error = copyin(SCARG(uap, list), list, nent * sizeof(*list)); in compat_50_sys_aio_suspend() 376 error = aio_suspend1(l, list, nent, SCARG(uap, timeout) ? &ts : NULL); in compat_50_sys_aio_suspend() 378 kmem_free(list, nent * sizeof(*list)); in compat_50_sys_aio_suspend()
|
| /netbsd-src/external/gpl3/binutils/dist/opcodes/ |
| H A D | ia64-gen.c | 1790 struct disent *nent = add_dis_table_ent (curr_ent->disent, in insert_bit_table_ent() local 1793 curr_ent->disent = nent; in insert_bit_table_ent() 1847 struct bittree *nent = ent; in compact_distree() local 1850 while (IS_SKIP (nent)) in compact_distree() 1853 nent = nent->bits[2]; in compact_distree() 1860 ent->bits[0] = nent->bits[0]; in compact_distree() 1861 ent->bits[1] = nent->bits[1]; in compact_distree() 1862 ent->bits[2] = nent->bits[2]; in compact_distree() 1863 ent->disent = nent->disent; in compact_distree() 1866 while (next != nent) in compact_distree() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/opcodes/ |
| H A D | ia64-gen.c | 1797 struct disent *nent = add_dis_table_ent (curr_ent->disent, in insert_bit_table_ent() local 1800 curr_ent->disent = nent; in insert_bit_table_ent() 1854 struct bittree *nent = ent; in compact_distree() local 1857 while (IS_SKIP (nent)) in compact_distree() 1860 nent = nent->bits[2]; in compact_distree() 1867 ent->bits[0] = nent->bits[0]; in compact_distree() 1868 ent->bits[1] = nent->bits[1]; in compact_distree() 1869 ent->bits[2] = nent->bits[2]; in compact_distree() 1870 ent->disent = nent->disent; in compact_distree() 1873 while (next != nent) in compact_distree() [all …]
|
| /netbsd-src/usr.sbin/iopctl/ |
| H A D | iopctl.c | 245 int i, nent; in showlct() local 256 nent = ((le16toh(lct->tablesize) << 2) - in showlct() 265 for (i = 0; i < nent; i++, ent++) { in showlct() 287 if (i != nent - 1) in showlct() 406 int nent; in showtidmap() local 414 nent = iov.iov_len / sizeof(*it); in showtidmap() 417 for (; nent-- != 0; it++) in showtidmap()
|
| /netbsd-src/tests/fs/ffs/ |
| H A D | t_quota2_1.c | 70 #define DECL_TEST(nent, newops, name, descr, log) \ argument 77 nent, descr); \ 82 do_quota(tc, nent, newops, log); \
|
| H A D | t_quota2_remount.c | 102 #define DECL_TEST(nent, newops, name, descr, log) \ argument 113 do_quota(tc, nent, newops, log); \
|
| /netbsd-src/external/cddl/osnet/dist/tools/ctf/cvt/ |
| H A D | output.c | 246 Elf_Data *data, int nent, Elf_Data *strdata, in check_for_weak() argument 260 for (i = 0; i < nent; i++) { in check_for_weak() 349 int nent; in sort_iidescs() local 357 nent = 0; in sort_iidescs() 362 nent = shdr.sh_size / shdr.sh_entsize; in sort_iidescs() 368 iiburst = iiburst_new(td, nent); in sort_iidescs() 370 for (i = 0; i < nent; i++) { in sort_iidescs() 414 if (!check_for_weak(&sym, match.iim_file, data, nent, strdata, in sort_iidescs()
|
| /netbsd-src/lib/libc/compat/sys/ |
| H A D | compat_aio_suspend.c | 60 aio_suspend(const struct aiocb * const list[], int nent, in __weak_alias() 69 return __aio_suspend50(list, nent, tsp); in __weak_alias()
|
| /netbsd-src/sys/dev/onewire/ |
| H A D | onewire_subr.c | 106 const struct onewire_matchfam *fams, int nent) in onewire_matchbyfam() argument 111 for (i = 0, om = fams; i < nent; i++, om++) in onewire_matchbyfam()
|
| /netbsd-src/external/cddl/osnet/dist/uts/common/dtrace/ |
| H A D | fasttrap.c | 2478 ulong_t nent; in fasttrap_load() local 2499 nent = ddi_getprop(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS, in fasttrap_load() 2502 nent = tpoints_hash_size; in fasttrap_load() 2505 if (nent == 0 || nent > 0x1000000) in fasttrap_load() 2506 nent = FASTTRAP_TPOINTS_DEFAULT_SIZE; in fasttrap_load() 2508 tpoints_hash_size = nent; in fasttrap_load() 2510 if (ISP2(nent)) in fasttrap_load() 2511 fasttrap_tpoints.fth_nent = nent; in fasttrap_load() 2513 fasttrap_tpoints.fth_nent = 1 << fasttrap_highbit(nent); in fasttrap_load() 2527 nent = FASTTRAP_PROVIDERS_DEFAULT_SIZE; in fasttrap_load() [all …]
|
| /netbsd-src/sys/dev/i2o/ |
| H A D | iopsp.c | 225 u_int tid, nent, i, targ, lun, size, rv, bptid; in iopsp_reconfig() local 257 nent = iop->sc_nlctent; in iopsp_reconfig() 258 for (le = iop->sc_lct->entry; nent != 0; nent--, le++) in iopsp_reconfig() 266 nent = iop->sc_nlctent; in iopsp_reconfig() 267 for (i = 0, le = iop->sc_lct->entry; i < nent; i++, le++) { in iopsp_reconfig()
|
| /netbsd-src/sys/arch/x86/acpi/ |
| H A D | acpi_machdep.c | 130 sizeof(*ct) * info->cfg.nent); in acpi_md_OsGetRootPointer() 132 for (i = 0; i < info->cfg.nent; i++) { in acpi_md_OsGetRootPointer() 143 for (i = 0; i < info->cfg.nent; i++) { in acpi_md_OsGetRootPointer() 154 AcpiOsUnmapMemory(ct, sizeof(*ct) * info->cfg.nent); in acpi_md_OsGetRootPointer()
|
| /netbsd-src/usr.sbin/puffs/mount_psshfs/ |
| H A D | subr.c | 270 size_t nent; in sftp_readdir() local 278 nent = psn->dentnext; in sftp_readdir() 362 testd = lookup(olddir, nent, psn->dir[idx].entryname); in sftp_readdir() 406 freedircache(olddir, nent); in sftp_readdir()
|
| /netbsd-src/external/gpl2/mkhybrid/dist/ |
| H A D | multi.c | 317 int *, nent) in FDECL2() argument 350 *nent = 0; in FDECL2() 359 (*nent)++; in FDECL2() 367 rtn = (struct directory_entry **) e_malloc(*nent * sizeof(*rtn)); in FDECL2() 519 for(pnt = rtn, i = 0; i <*nent; i++, pnt++) in FDECL2()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/include/sanitizer/ |
| H A D | netbsd_syscall_hooks.h | 2212 #define __sanitizer_syscall_pre_compat_50_aio_suspend(list, nent, timeout) \ argument 2214 (long long)(list), (long long)(nent), (long long)(timeout)) 2215 #define __sanitizer_syscall_post_compat_50_aio_suspend(res, list, nent, \ argument 2218 res, (long long)(list), (long long)(nent), (long long)(timeout)) 2223 #define __sanitizer_syscall_pre_lio_listio(mode, list, nent, sig) \ argument 2226 (long long)(nent), (long long)(sig)) 2227 #define __sanitizer_syscall_post_lio_listio(res, mode, list, nent, sig) \ argument 2229 res, (long long)(mode), (long long)(list), (long long)(nent), \ 2431 #define __sanitizer_syscall_pre___aio_suspend50(list, nent, timeout) \ argument 2433 (long long)(list), (long long)(nent), (long long)(timeout)) [all …]
|
| /netbsd-src/sys/external/bsd/compiler_rt/dist/include/sanitizer/ |
| H A D | netbsd_syscall_hooks.h | 2184 #define __sanitizer_syscall_pre_compat_50_aio_suspend(list, nent, timeout) \ argument 2186 (long long)(list), (long long)(nent), (long long)(timeout)) 2187 #define __sanitizer_syscall_post_compat_50_aio_suspend(res, list, nent, \ argument 2190 res, (long long)(list), (long long)(nent), (long long)(timeout)) 2195 #define __sanitizer_syscall_pre_lio_listio(mode, list, nent, sig) \ argument 2198 (long long)(nent), (long long)(sig)) 2199 #define __sanitizer_syscall_post_lio_listio(res, mode, list, nent, sig) \ argument 2201 res, (long long)(mode), (long long)(list), (long long)(nent), \ 2403 #define __sanitizer_syscall_pre___aio_suspend50(list, nent, timeout) \ argument 2405 (long long)(list), (long long)(nent), (long long)(timeout)) [all …]
|
| /netbsd-src/external/gpl3/gcc/dist/libsanitizer/include/sanitizer/ |
| H A D | netbsd_syscall_hooks.h | 2212 #define __sanitizer_syscall_pre_compat_50_aio_suspend(list, nent, timeout) \ argument 2214 (long long)(list), (long long)(nent), (long long)(timeout)) 2215 #define __sanitizer_syscall_post_compat_50_aio_suspend(res, list, nent, \ argument 2218 res, (long long)(list), (long long)(nent), (long long)(timeout)) 2223 #define __sanitizer_syscall_pre_lio_listio(mode, list, nent, sig) \ argument 2226 (long long)(nent), (long long)(sig)) 2227 #define __sanitizer_syscall_post_lio_listio(res, mode, list, nent, sig) \ argument 2229 res, (long long)(mode), (long long)(list), (long long)(nent), \ 2431 #define __sanitizer_syscall_pre___aio_suspend50(list, nent, timeout) \ argument 2433 (long long)(list), (long long)(nent), (long long)(timeout)) [all …]
|
| /netbsd-src/lib/libpthread/ |
| H A D | pthread_cancelstub.c | 170 __aio_suspend50(const struct aiocb * const list[], int nent, in __aio_suspend50() argument 178 retval = _sys___aio_suspend50(list, nent, timeout); in __aio_suspend50()
|