Home
last modified time | relevance | path

Searched refs:nent (Results 1 – 25 of 48) sorted by relevance

12

/freebsd/stand/libsa/
H A Dgpt.c238 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 Dnlist.c127 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 Dvfs_aio.c2022 if (uap->nent < 0 || uap->nent > max_aio_queue_per_proc) in sys_aio_suspend()
2242 if (nent < 0 || nent > max_aio_queue_per_proc) in kern_lio_listio()
2382 nent = uap->nent; in freebsd6_lio_listio()
2383 if (nent < 0 || nent > max_aio_queue_per_proc) in freebsd6_lio_listio()
2419 nent = uap->nent; in sys_lio_listio()
2420 if (nent < 0 || nent > max_aio_queue_per_proc) in sys_lio_listio()
2943 if (uap->nent < 0 || uap->nent > max_aio_queue_per_proc) in freebsd32_aio_suspend()
3084 nent = uap->nent; in freebsd6_freebsd32_lio_listio()
3085 if (nent < 0 || nent > max_aio_queue_per_proc) in freebsd6_freebsd32_lio_listio()
3130 nent = uap->nent; in freebsd32_lio_listio()
[all …]
/freebsd/contrib/netbsd-tests/fs/ffs/
H A Dt_quota2_1.c70 #define DECL_TEST(nent, newops, name, descr, log) \ argument
77 nent, descr); \
82 do_quota(tc, nent, newops, log); \
H A Dt_quota2_remount.c102 #define DECL_TEST(nent, newops, name, descr, log) \ argument
113 do_quota(tc, nent, newops, log); \
/freebsd/lib/librt/
H A Daio.c60 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 Dmlx5_eq.c106 struct mlx5_eqe *eqe = get_eqe(eq, eq->cons_index & (eq->nent - 1)); in next_eqe_sw()
108 return ((eqe->owner & 1) ^ !!(eq->cons_index & eq->nent)) ? NULL : eqe; in next_eqe_sw()
418 for (i = 0; i < eq->nent; i++) { in init_eq_buf()
425 int nent, u64 mask) in mlx5_create_map_eq() argument
435 eq->nent = roundup_pow_of_two(nent + MLX5_NUM_SPARE_EQE); in mlx5_create_map_eq()
437 err = mlx5_buf_alloc(dev, eq->nent * MLX5_EQE_SIZE, 2 * PAGE_SIZE, in mlx5_create_map_eq()
459 MLX5_SET(eqc, eqc, log_eq_size, ilog2(eq->nent)); in mlx5_create_map_eq()
/freebsd/sys/dev/mthca/
H A Dmthca_eq.c184 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 Dmthca_allocator.c160 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 Dmthca_cq.c353 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 Dmthca_dev.h424 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 Dmthca_cmd.c659 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 Dmthca_provider.c607 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 Dmthca_provider.h115 int nent; member
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c240 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 Dfasttrap.c2397 ulong_t nent; in fasttrap_load() local
2421 nent = tpoints_hash_size; in fasttrap_load()
2424 if (nent == 0 || nent > 0x1000000) 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()
2447 if (ISP2(nent)) in fasttrap_load()
2448 fasttrap_provs.fth_nent = nent; in fasttrap_load()
2482 nent = FASTTRAP_PROCS_DEFAULT_SIZE; in fasttrap_load()
2483 if (ISP2(nent)) in fasttrap_load()
[all …]
/freebsd/usr.sbin/efibootmgr/
H A Defibootmgr.c330 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 Dmlx4_eq.c110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size; in get_eqe()
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()
972 npages = PAGE_ALIGN(eq->nent * dev->caps.eqe_size) / PAGE_SIZE; in mlx4_create_eq()
[all …]
H A Dmlx4_cq.c237 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 Dmlx5_ib_cq.c74 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 Dargo.h133 uint32_t nent; member
/freebsd/contrib/ofed/libmlx4/
H A Dverbs.c382 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 Dcq.c810 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 Dcq.c1424 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 Dplockstat.c754 uint_t nent = 0; in chewrec() local
756 process_aggregate, &nent) != 0) in chewrec()

12