Home
last modified time | relevance | path

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

12

/freebsd-12.1/lib/libc/gen/
H A Dnlist.c114 int nent; in __aout_fdnlist() local
167 nent = 0; in __aout_fdnlist()
173 ++nent; in __aout_fdnlist()
190 if (--nent <= 0) in __aout_fdnlist()
196 return (nent); in __aout_fdnlist()
240 int nent = -1; in __elf_fdnlist() local
317 nent = 0; in __elf_fdnlist()
323 ++nent; in __elf_fdnlist()
331 nent = -1; in __elf_fdnlist()
353 if (--nent <= 0) in __elf_fdnlist()
[all …]
/freebsd-12.1/stand/libsa/
H A Dgpt.c237 int entries_per_sec, nent, part; in gptbootconv() local
241 for (nent = 0, slba = hdr->hdr_lba_table; in gptbootconv()
243 slba++, nent += entries_per_sec) { in gptbootconv()
246 ent = &table[nent + part]; in gptbootconv()
260 bcopy(&table[nent], secbuf, DEV_BSIZE); in gptbootconv()
283 int part, nent; in gptread_table() local
291 nent = 0; in gptread_table()
300 bcopy(ent, &table[nent], sizeof(table[nent])); in gptread_table()
301 if (++nent >= hdr->hdr_entries) in gptread_table()
304 if (nent >= hdr->hdr_entries) in gptread_table()
[all …]
/freebsd-12.1/sys/kern/
H A Dvfs_aio.c1930 if (uap->nent < 0 || uap->nent > max_aio_queue_per_proc) in sys_aio_suspend()
2136 if (nent < 0 || nent > max_aio_queue_per_proc) in kern_lio_listio()
2275 nent = uap->nent; in freebsd6_lio_listio()
2276 if (nent < 0 || nent > max_aio_queue_per_proc) in freebsd6_lio_listio()
2312 nent = uap->nent; in sys_lio_listio()
2313 if (nent < 0 || nent > max_aio_queue_per_proc) in sys_lio_listio()
2783 if (uap->nent < 0 || uap->nent > max_aio_queue_per_proc) in freebsd32_aio_suspend()
2908 nent = uap->nent; in freebsd6_freebsd32_lio_listio()
2909 if (nent < 0 || nent > max_aio_queue_per_proc) in freebsd6_freebsd32_lio_listio()
2954 nent = uap->nent; in freebsd32_lio_listio()
[all …]
/freebsd-12.1/contrib/binutils/opcodes/
H A Dia64-gen.c1856 while (IS_SKIP (nent))
1859 nent = nent->bits[2];
1878 free (nent);
1978 nent = nent->bits[0];
2564 nent->name = sent;
2565 nent->parent = parent;
2568 *ptr = nent;
2569 nent->is_terminal = 0;
2697 nent->name = name;
2698 nent->opcode = opc;
[all …]
/freebsd-12.1/lib/librt/
H A Daio.c59 extern int __sys_lio_listio(int mode, struct aiocb * const list[], int nent,
209 __lio_listio(int mode, struct aiocb * const list[], int nent, in __lio_listio() argument
217 return (__sys_lio_listio(mode, list, nent, sig)); in __lio_listio()
222 ret = __sys_lio_listio(mode, list, nent, sig); in __lio_listio()
/freebsd-12.1/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-12.1/sys/dev/mlx5/mlx5_core/
H A Dmlx5_eq.c105 struct mlx5_eqe *eqe = get_eqe(eq, eq->cons_index & (eq->nent - 1)); in next_eqe_sw()
107 return ((eqe->owner & 1) ^ !!(eq->cons_index & eq->nent)) ? NULL : eqe; in next_eqe_sw()
411 for (i = 0; i < eq->nent; i++) { in init_eq_buf()
418 int nent, u64 mask, struct mlx5_uar *uar) in mlx5_create_map_eq() argument
428 eq->nent = roundup_pow_of_two(nent + MLX5_NUM_SPARE_EQE); in mlx5_create_map_eq()
430 err = mlx5_buf_alloc(dev, eq->nent * MLX5_EQE_SIZE, 2 * PAGE_SIZE, in mlx5_create_map_eq()
452 MLX5_SET(eqc, eqc, log_eq_size, ilog2(eq->nent)); in mlx5_create_map_eq()
/freebsd-12.1/usr.sbin/efibootmgr/
H A Defibootmgr.c287 struct entry *nent; in read_vars() local
302 nent = malloc(sizeof(struct entry)); in read_vars()
303 nent->name = strdup(next_name); in read_vars()
305 ret = efi_get_variable(*guid, next_name, &nent->data, in read_vars()
306 &nent->size, &nent->attrs); in read_vars()
309 nent->guid = *guid; in read_vars()
310 nent->idx = strtoul(&next_name[4], NULL, 16); in read_vars()
311 LIST_INSERT_HEAD(&efivars, nent, entries); in read_vars()
/freebsd-12.1/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.c661 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()
701 if (++nent == MTHCA_MAILBOX_SIZE / 16) { in mthca_map_cmd()
702 err = mthca_cmd(dev, mailbox->dma, nent, 0, op, in mthca_map_cmd()
706 nent = 0; in mthca_map_cmd()
711 if (nent) in mthca_map_cmd()
712 err = mthca_cmd(dev, mailbox->dma, nent, 0, op, in mthca_map_cmd()
H A Dmthca_provider.h115 int nent; member
H A Dmthca_provider.c657 int nent; in mthca_create_cq() local
695 for (nent = 1; nent <= entries; nent <<= 1) in mthca_create_cq()
698 err = mthca_init_cq(to_mdev(ibdev), nent, in mthca_create_cq()
/freebsd-12.1/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-12.1/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Dfasttrap.c2395 ulong_t nent; in fasttrap_load() local
2419 nent = tpoints_hash_size; in fasttrap_load()
2422 if (nent == 0 || nent > 0x1000000) in fasttrap_load()
2425 tpoints_hash_size = nent; in fasttrap_load()
2427 if (ISP2(nent)) in fasttrap_load()
2428 fasttrap_tpoints.fth_nent = nent; in fasttrap_load()
2445 if (ISP2(nent)) in fasttrap_load()
2446 fasttrap_provs.fth_nent = nent; in fasttrap_load()
2480 nent = FASTTRAP_PROCS_DEFAULT_SIZE; in fasttrap_load()
2481 if (ISP2(nent)) in fasttrap_load()
[all …]
/freebsd-12.1/sys/dev/mlx4/mlx4_core/
H A Dmlx4_eq.c110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size; in get_eqe()
771 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int()
774 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int()
796 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int()
798 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int()
808 eq->cons_index, eqe->owner, eq->nent, in mlx4_eq_int()
811 !!(eq->cons_index & eq->nent) ? "HW" : "SW"); in mlx4_eq_int()
957 static int mlx4_create_eq(struct mlx4_dev *dev, int nent, in mlx4_create_eq() argument
971 eq->nent = roundup_pow_of_two(max(nent, 2)); in mlx4_create_eq()
975 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-12.1/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_cq.c72 static u8 sw_ownership_bit(int n, int nent) in sw_ownership_bit() argument
74 return (n & nent) ? 1 : 0; in sw_ownership_bit()
727 int nent, int cqe_size) in alloc_cq_buf() argument
731 err = mlx5_buf_alloc(dev->mdev, nent * cqe_size, in alloc_cq_buf()
737 buf->nent = nent; in alloc_cq_buf()
830 for (i = 0; i < buf->nent; i++) { in init_cq_buf()
1215 (i + 1) & (cq->resize_buf->nent), in copy_resize_cqes()
1218 sw_own = sw_ownership_bit(i + 1, cq->resize_buf->nent); in copy_resize_cqes()
/freebsd-12.1/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-12.1/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-12.1/cddl/contrib/opensolaris/cmd/plockstat/
H A Dplockstat.c754 uint_t nent = 0; in chewrec() local
756 process_aggregate, &nent) != 0) in chewrec()

12