/freebsd/stand/libsa/ |
H A D | gpt.c | 238 int entries_per_sec, nent, part; in gptbootconv() local 242 for (nent = 0, slba = hdr->hdr_lba_table; in gptbootconv() 244 slba++, nent += entries_per_sec) { in gptbootconv() 247 ent = &table[nent + part]; in gptbootconv() 261 bcopy(&table[nent], secbuf, DEV_BSIZE); in gptbootconv() 287 int part, nent; in gptread_table() local 295 nent = 0; in gptread_table() 304 bcopy(ent, &table[nent], sizeof(table[nent])); in gptread_table() 305 if (++nent >= hdr->hdr_entries) in gptread_table() 308 if (nent >= hdr->hdr_entries) in gptread_table() [all …]
|
/freebsd/lib/libc/gen/ |
H A D | nlist.c | 127 int nent = -1; in __elf_fdnlist() local 204 nent = 0; in __elf_fdnlist() 210 ++nent; in __elf_fdnlist() 218 nent = -1; in __elf_fdnlist() 222 while (symsize > 0 && nent > 0) { in __elf_fdnlist() 227 for (s = sbuf; cc > 0 && nent > 0; ++s, cc -= sizeof(*s)) { in __elf_fdnlist() 240 if (--nent <= 0) in __elf_fdnlist() 253 return (nent); in __elf_fdnlist()
|
/freebsd/sys/kern/ |
H A D | vfs_aio.c | 1995 if (uap->nent < 0 || uap->nent > max_aio_queue_per_proc) in sys_aio_suspend() 2006 ujoblist = malloc(uap->nent * sizeof(ujoblist[0]), M_AIO, M_WAITOK); in sys_aio_suspend() 2007 error = copyin(uap->aiocbp, ujoblist, uap->nent * sizeof(ujoblist[0])); in sys_aio_suspend() 2009 error = kern_aio_suspend(td, uap->nent, ujoblist, tsp); in sys_aio_suspend() 2200 struct aiocb **acb_list, int nent, struct sigevent *sig, in kern_lio_listio() argument 2215 if (nent < 0 || nent > max_aio_queue_per_proc) in kern_lio_listio() 2283 for (i = 0; i < nent; i++) { in kern_lio_listio() 2350 int error, nent; in freebsd6_lio_listio() local 2355 nent = uap->nent; in freebsd6_lio_listio() 2356 if (nent < 0 || nent > max_aio_queue_per_proc) in freebsd6_lio_listio() [all …]
|
/freebsd/contrib/netbsd-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); \
|
/freebsd/lib/librt/ |
H A D | aio.c | 60 extern int __sys_lio_listio(int mode, struct aiocb * const list[], int nent, 224 __lio_listio(int mode, struct aiocb * const list[], int nent, in __lio_listio() argument 232 return (__sys_lio_listio(mode, list, nent, sig)); in __lio_listio() 237 ret = __sys_lio_listio(mode, list, nent, sig); in __lio_listio()
|
/freebsd/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_eq.c | 107 struct mlx5_eqe *eqe = get_eqe(eq, eq->cons_index & (eq->nent - 1)); in next_eqe_sw() 109 return ((eqe->owner & 1) ^ !!(eq->cons_index & eq->nent)) ? NULL : eqe; in next_eqe_sw() 425 for (i = 0; i < eq->nent; i++) { in init_eq_buf() 432 int nent, u64 mask) in mlx5_create_map_eq() argument 442 eq->nent = roundup_pow_of_two(nent + MLX5_NUM_SPARE_EQE); in mlx5_create_map_eq() 444 err = mlx5_buf_alloc(dev, eq->nent * MLX5_EQE_SIZE, 2 * PAGE_SIZE, in mlx5_create_map_eq() 466 MLX5_SET(eqc, eqc, log_eq_size, ilog2(eq->nent)); in mlx5_create_map_eq()
|
/freebsd/sys/dev/mthca/ |
H A D | mthca_eq.c | 184 mthca_write64(MTHCA_EQ_DB_SET_CI | eq->eqn, ci & (eq->nent - 1), in tavor_set_eq_ci() 230 unsigned long off = (entry & (eq->nent - 1)) * MTHCA_EQ_ENTRY_SIZE; in get_eqe() 466 int nent, in mthca_create_eq() argument 479 eq->nent = roundup_pow_of_two(max(nent, 2)); in mthca_create_eq() 480 npages = ALIGN(eq->nent * MTHCA_EQ_ENTRY_SIZE, PAGE_SIZE) / PAGE_SIZE; in mthca_create_eq() 511 for (i = 0; i < eq->nent; ++i) in mthca_create_eq() 535 eq_context->logsize_usrpage = cpu_to_be32((ffs(eq->nent) - 1) << 24); in mthca_create_eq() 560 eq->eqn, eq->nent); in mthca_create_eq() 593 int npages = (eq->nent * MTHCA_EQ_ENTRY_SIZE + PAGE_SIZE - 1) / in mthca_free_eq()
|
H A D | mthca_allocator.c | 160 int mthca_array_init(struct mthca_array *array, int nent) in mthca_array_init() argument 162 int npage = (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; in mthca_array_init() 177 void mthca_array_cleanup(struct mthca_array *array, int nent) in mthca_array_cleanup() argument 181 for (i = 0; i < (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; ++i) in mthca_array_cleanup()
|
H A D | mthca_cq.c | 353 int mthca_alloc_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int nent) in mthca_alloc_cq_buf() argument 358 ret = mthca_buf_alloc(dev, nent * MTHCA_CQ_ENTRY_SIZE, in mthca_alloc_cq_buf() 365 for (i = 0; i < nent; ++i) in mthca_alloc_cq_buf() 773 int mthca_init_cq(struct mthca_dev *dev, int nent, in mthca_init_cq() argument 781 cq->ibcq.cqe = nent - 1; in mthca_init_cq() 817 err = mthca_alloc_cq_buf(dev, &cq->buf, nent); in mthca_init_cq() 831 cq_context->logsize_usrpage = cpu_to_be32((ffs(nent) - 1) << 24); in mthca_init_cq()
|
H A D | mthca_dev.h | 424 int mthca_array_init(struct mthca_array *array, int nent); 425 void mthca_array_cleanup(struct mthca_array *array, int nent); 500 int mthca_init_cq(struct mthca_dev *dev, int nent, 511 int mthca_alloc_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int nent);
|
H A D | mthca_cmd.c | 659 int nent = 0; in mthca_map_cmd() local 691 pages[nent * 2] = cpu_to_be64(virt); in mthca_map_cmd() 695 pages[nent * 2 + 1] = in mthca_map_cmd() 703 if (++nent == MTHCA_MAILBOX_SIZE / 16) { in mthca_map_cmd() 704 err = mthca_cmd(dev, mailbox->dma, nent, 0, op, in mthca_map_cmd() 708 nent = 0; in mthca_map_cmd() 713 if (nent) in mthca_map_cmd() 714 err = mthca_cmd(dev, mailbox->dma, nent, 0, op, in mthca_map_cmd()
|
H A D | mthca_provider.c | 607 int nent; in mthca_create_cq() local 643 for (nent = 1; nent <= entries; nent <<= 1) in mthca_create_cq() 646 err = mthca_init_cq(to_mdev(ibdev), nent, context, in mthca_create_cq()
|
H A D | mthca_provider.h | 115 int nent; member
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | output.c | 240 Elf_Data *data, int nent, Elf_Data *strdata, in check_for_weak() argument 254 for (i = 0; i < nent; i++) { in check_for_weak() 343 int nent; in sort_iidescs() local 355 nent = shdr.sh_size / shdr.sh_entsize; in sort_iidescs() 360 iiburst = iiburst_new(td, nent); in sort_iidescs() 362 for (i = 0; i < nent; i++) { in sort_iidescs() 406 if (!check_for_weak(&sym, match.iim_file, data, nent, strdata, in sort_iidescs()
|
/freebsd/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
H A D | fasttrap.c | 2397 ulong_t nent; in fasttrap_load() local 2418 nent = ddi_getprop(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS, in fasttrap_load() 2421 nent = tpoints_hash_size; in fasttrap_load() 2424 if (nent == 0 || nent > 0x1000000) in fasttrap_load() 2425 nent = FASTTRAP_TPOINTS_DEFAULT_SIZE; in fasttrap_load() 2427 tpoints_hash_size = nent; in fasttrap_load() 2429 if (ISP2(nent)) in fasttrap_load() 2430 fasttrap_tpoints.fth_nent = nent; in fasttrap_load() 2432 fasttrap_tpoints.fth_nent = 1 << fasttrap_highbit(nent); in fasttrap_load() 2446 nent = FASTTRAP_PROVIDERS_DEFAULT_SIZE; in fasttrap_load() [all …]
|
/freebsd/usr.sbin/efibootmgr/ |
H A D | efibootmgr.c | 330 struct entry *nent; in read_vars() local 345 nent = malloc(sizeof(struct entry)); in read_vars() 346 nent->name = strdup(next_name); in read_vars() 348 ret = efi_get_variable(*guid, next_name, &nent->data, in read_vars() 349 &nent->size, &nent->attrs); in read_vars() 352 nent->guid = *guid; in read_vars() 353 nent->idx = strtoul(&next_name[4], NULL, 16); in read_vars() 354 LIST_INSERT_HEAD(&efivars, nent, entries); in read_vars()
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_eq.c | 110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size; in get_eqe() 124 return !!(eqe->owner & 0x80) ^ !!(eq->cons_index & eq->nent) ? NULL : eqe; in next_eqe_sw() 768 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int() 771 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int() 793 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int() 795 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int() 805 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int() 808 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int() 954 static int mlx4_create_eq(struct mlx4_dev *dev, int nent, in mlx4_create_eq() argument 968 eq->nent = roundup_pow_of_two(max(nent, 2)); in mlx4_create_eq() [all …]
|
H A D | mlx4_cq.c | 237 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, in mlx4_cq_alloc() argument 276 cpu_to_be32((ilog2(nent) << 24) | in mlx4_cq_alloc()
|
/freebsd/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_cq.c | 74 static u8 sw_ownership_bit(int n, int nent) in sw_ownership_bit() argument 76 return (n & nent) ? 1 : 0; in sw_ownership_bit() 730 int nent, int cqe_size) in alloc_cq_buf() argument 734 err = mlx5_buf_alloc(dev->mdev, nent * cqe_size, in alloc_cq_buf() 740 buf->nent = nent; in alloc_cq_buf() 846 for (i = 0; i < buf->nent; i++) { in init_cq_buf() 1214 (i + 1) & (cq->resize_buf->nent), in copy_resize_cqes() 1217 sw_own = sw_ownership_bit(i + 1, cq->resize_buf->nent); in copy_resize_cqes()
|
/freebsd/sys/contrib/xen/ |
H A D | argo.h | 133 uint32_t nent; member
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | verbs.c | 382 int nent; in align_queue_size() local 384 for (nent = 1; nent < req; nent <<= 1) in align_queue_size() 387 return nent; in align_queue_size()
|
H A D | cq.c | 810 int mlx4_alloc_cq_buf(struct mlx4_device *dev, struct mlx4_buf *buf, int nent, in mlx4_alloc_cq_buf() argument 813 if (mlx4_alloc_buf(buf, align(nent * entry_size, dev->page_size), in mlx4_alloc_cq_buf() 816 memset(buf->buf, 0, nent * entry_size); in mlx4_alloc_cq_buf()
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | cq.c | 1424 static uint8_t sw_ownership_bit(int n, int nent) in sw_ownership_bit() argument 1426 return (n & nent) ? 1 : 0; in sw_ownership_bit() 1482 struct mlx5_buf *buf, int nent, int cqe_sz) in mlx5_alloc_cq_buf() argument 1497 align(nent * cqe_sz, dev->page_size), in mlx5_alloc_cq_buf() 1505 memset(buf->buf, 0, nent * cqe_sz); in mlx5_alloc_cq_buf() 1507 for (i = 0; i < nent; ++i) { in mlx5_alloc_cq_buf()
|
/freebsd/cddl/contrib/opensolaris/cmd/plockstat/ |
H A D | plockstat.c | 754 uint_t nent = 0; in chewrec() local 756 process_aggregate, &nent) != 0) in chewrec()
|