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

12

/freebsd-11-stable/lib/libc/gen/
H A Dnlist.c114 int nent; local
167 nent = 0;
173 ++nent;
190 if (--nent <= 0)
196 return (nent);
240 int nent = -1; local
317 nent = 0;
323 ++nent;
331 nent = -1;
335 while (symsize > 0 && nent >
[all...]
/freebsd-11-stable/stand/libsa/
H A Dgpt.c237 int entries_per_sec, nent, part; local
241 for (nent = 0, slba = hdr->hdr_lba_table;
243 slba++, nent += entries_per_sec) {
246 ent = &table[nent + part];
260 bcopy(&table[nent], secbuf, DEV_BSIZE);
283 int part, nent; local
291 nent = 0;
300 bcopy(ent, &table[nent], sizeof(table[nent]));
301 if (++nent >
[all...]
/freebsd-11-stable/contrib/netbsd-tests/fs/ffs/
H A Dt_quota2_1.c70 #define DECL_TEST(nent, newops, name, descr, log) \
77 nent, descr); \
82 do_quota(tc, nent, newops, log); \
H A Dt_quota2_remount.c102 #define DECL_TEST(nent, newops, name, descr, log) \
113 do_quota(tc, nent, newops, log); \
/freebsd-11-stable/sys/kern/
H A Dvfs_aio.c1936 if (uap->nent < 0 || uap->nent > max_aio_queue_per_proc)
1947 ujoblist = malloc(uap->nent * sizeof(ujoblist[0]), M_AIOS, M_WAITOK);
1948 error = copyin(uap->aiocbp, ujoblist, uap->nent * sizeof(ujoblist[0]));
1950 error = kern_aio_suspend(td, uap->nent, ujoblist, tsp);
2128 struct aiocb **acb_list, int nent, struct sigevent *sig,
2143 if (nent < 0 || nent > max_aio_queue_per_proc)
2209 for (i = 0; i < nent; i++) {
2276 int error, nent; local
2127 kern_lio_listio(struct thread *td, int mode, struct aiocb * const *uacb_list, struct aiocb **acb_list, int nent, struct sigevent *sig, struct aiocb_ops *ops) argument
2313 int error, nent; local
2905 int error, i, nent; local
2951 int error, i, nent; local
[all...]
/freebsd-11-stable/lib/librt/
H A Daio.c62 extern int __sys_lio_listio(int mode, struct aiocb * const list[], int nent,
212 __lio_listio(int mode, struct aiocb * const list[], int nent, argument
220 return (__sys_lio_listio(mode, list, nent, sig));
225 ret = __sys_lio_listio(mode, list, nent, sig);
/freebsd-11-stable/usr.sbin/efibootmgr/
H A Defibootmgr.c310 struct entry *nent; local
325 nent = malloc(sizeof(struct entry));
326 nent->name = strdup(next_name);
328 ret = efi_get_variable(*guid, next_name, &nent->data,
329 &nent->size, &nent->attrs);
332 nent->guid = *guid;
333 nent->idx = strtoul(&next_name[4], NULL, 16);
334 LIST_INSERT_HEAD(&efivars, nent, entries);
/freebsd-11-stable/contrib/binutils/opcodes/
H A Dia64-gen.c1798 struct disent *nent = add_dis_table_ent (curr_ent->disent,
1801 curr_ent->disent = nent;
1863 struct bittree *nent = ent;
1866 while (IS_SKIP (nent))
1869 nent = nent->bits[2];
1876 ent->bits[0] = nent->bits[0];
1877 ent->bits[1] = nent->bits[1];
1878 ent->bits[2] = nent->bits[2];
1879 ent->disent = nent
1790 struct disent *nent = add_dis_table_ent (curr_ent->disent, local
1853 struct bittree *nent = ent; local
1964 struct bittree *nent = ent->bits[0]; local
2562 struct completer_entry *nent = tmalloc (struct completer_entry); local
2695 struct main_entry *nent = tmalloc (struct main_entry); local
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_eq.c107 struct mlx5_eqe *eqe = get_eqe(eq, eq->cons_index & (eq->nent - 1));
109 return ((eqe->owner & 1) ^ !!(eq->cons_index & eq->nent)) ? NULL : eqe;
416 for (i = 0; i < eq->nent; i++) {
423 int nent, u64 mask, struct mlx5_uar *uar)
433 eq->nent = roundup_pow_of_two(nent + MLX5_NUM_SPARE_EQE);
435 err = mlx5_buf_alloc(dev, eq->nent * MLX5_EQE_SIZE, 2 * PAGE_SIZE,
457 MLX5_SET(eqc, eqc, log_eq_size, ilog2(eq->nent));
422 mlx5_create_map_eq(struct mlx5_core_dev *dev, struct mlx5_eq *eq, u8 vecidx, int nent, u64 mask, struct mlx5_uar *uar) argument
/freebsd-11-stable/sys/dev/mthca/
H A Dmthca_allocator.c160 int mthca_array_init(struct mthca_array *array, int nent) argument
162 int npage = (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE;
177 void mthca_array_cleanup(struct mthca_array *array, int nent) argument
181 for (i = 0; i < (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; ++i)
H A Dmthca_eq.c184 mthca_write64(MTHCA_EQ_DB_SET_CI | eq->eqn, ci & (eq->nent - 1),
230 unsigned long off = (entry & (eq->nent - 1)) * MTHCA_EQ_ENTRY_SIZE;
466 int nent,
479 eq->nent = roundup_pow_of_two(max(nent, 2));
480 npages = ALIGN(eq->nent * MTHCA_EQ_ENTRY_SIZE, PAGE_SIZE) / PAGE_SIZE;
511 for (i = 0; i < eq->nent; ++i)
535 eq_context->logsize_usrpage = cpu_to_be32((ffs(eq->nent) - 1) << 24);
560 eq->eqn, eq->nent);
593 int npages = (eq->nent * MTHCA_EQ_ENTRY_SIZ
465 mthca_create_eq(struct mthca_dev *dev, int nent, u8 intr, struct mthca_eq *eq) argument
[all...]
H A Dmthca_cq.c353 int mthca_alloc_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int nent) argument
358 ret = mthca_buf_alloc(dev, nent * MTHCA_CQ_ENTRY_SIZE,
365 for (i = 0; i < nent; ++i)
773 int mthca_init_cq(struct mthca_dev *dev, int nent, argument
781 cq->ibcq.cqe = nent - 1;
817 err = mthca_alloc_cq_buf(dev, &cq->buf, nent);
831 cq_context->logsize_usrpage = cpu_to_be32((ffs(nent) - 1) << 24);
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_provider.h115 int nent; member in struct:mthca_eq
H A Dmthca_cmd.c661 int nent = 0; local
691 pages[nent * 2] = cpu_to_be64(virt);
695 pages[nent * 2 + 1] =
701 if (++nent == MTHCA_MAILBOX_SIZE / 16) {
702 err = mthca_cmd(dev, mailbox->dma, nent, 0, op,
706 nent = 0;
711 if (nent)
712 err = mthca_cmd(dev, mailbox->dma, nent, 0, op,
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c240 Elf_Data *data, int nent, Elf_Data *strdata,
254 for (i = 0; i < nent; i++) {
343 int nent; local
355 nent = shdr.sh_size / shdr.sh_entsize;
360 iiburst = iiburst_new(td, nent);
362 for (i = 0; i < nent; i++) {
406 if (!check_for_weak(&sym, match.iim_file, data, nent, strdata,
239 check_for_weak(GElf_Sym *weak, char const *weakfile, Elf_Data *data, int nent, Elf_Data *strdata, GElf_Sym *retsym, char **curfilep) argument
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/
H A Dmlx4_eq.c109 /* (entry & (eq->nent - 1)) gives us a cyclic array */
110 unsigned long offset = (entry & (eq->nent - 1)) * eqe_size;
124 return !!(eqe->owner & 0x80) ^ !!(eq->cons_index & eq->nent) ? NULL : eqe;
769 mlx4_warn(dev, "Unhandled event FATAL WARNING (%02x), subtype %02x on EQ %d at index %u. owner=%x, nent=0x%x, slave=%x, ownership=%s\n",
771 eq->cons_index, eqe->owner, eq->nent,
774 !!(eq->cons_index & eq->nent) ? "HW" : "SW");
794 "Unhandled recoverable error event detected: %02x(%02x) on EQ %d at index %u. owner=%x, nent=0x%x, ownership=%s\n",
796 eq->cons_index, eqe->owner, eq->nent,
798 !!(eq->cons_index & eq->nent) ? "HW" : "SW");
806 mlx4_warn(dev, "Unhandled event %02x(%02x) on EQ %d at index %u. owner=%x, nent
957 mlx4_create_eq(struct mlx4_dev *dev, int nent, u8 intr, struct mlx4_eq *eq) argument
[all...]
H A Dmlx4_cq.c237 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, argument
276 cpu_to_be32((ilog2(nent) << 24) |
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/dtrace/
H A Dfasttrap.c2480 ulong_t nent; local
2501 nent = ddi_getprop(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS,
2504 nent = tpoints_hash_size;
2507 if (nent == 0 || nent > 0x1000000)
2508 nent = FASTTRAP_TPOINTS_DEFAULT_SIZE;
2510 tpoints_hash_size = nent;
2512 if (ISP2(nent))
2513 fasttrap_tpoints.fth_nent = nent;
2515 fasttrap_tpoints.fth_nent = 1 << fasttrap_highbit(nent);
[all...]
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_cq.c72 static u8 sw_ownership_bit(int n, int nent) argument
74 return (n & nent) ? 1 : 0;
727 int nent, int cqe_size)
731 err = mlx5_buf_alloc(dev->mdev, nent * cqe_size,
737 buf->nent = nent;
830 for (i = 0; i < buf->nent; i++) {
1216 (i + 1) & (cq->resize_buf->nent),
1219 sw_own = sw_ownership_bit(i + 1, cq->resize_buf->nent);
726 alloc_cq_buf(struct mlx5_ib_dev *dev, struct mlx5_ib_cq_buf *buf, int nent, int cqe_size) argument
/freebsd-11-stable/cddl/contrib/opensolaris/cmd/plockstat/
H A Dplockstat.c754 uint_t nent = 0; local
756 process_aggregate, &nent) != 0)
/freebsd-11-stable/contrib/ofed/libcxgb4/
H A Dlibcxgb4.h194 void c4iw_init_cq_buf(struct c4iw_cq *cq, int nent);
/freebsd-11-stable/contrib/ofed/libmlx4/
H A Dverbs.c382 int nent; local
384 for (nent = 1; nent < req; nent <<= 1)
387 return nent;
/freebsd-11-stable/contrib/ofed/libmlx5/
H A Dcq.c1424 static uint8_t sw_ownership_bit(int n, int nent) argument
1426 return (n & nent) ? 1 : 0;
1482 struct mlx5_buf *buf, int nent, int cqe_sz)
1497 align(nent * cqe_sz, dev->page_size),
1505 memset(buf->buf, 0, nent * cqe_sz);
1507 for (i = 0; i < nent; ++i) {
1481 mlx5_alloc_cq_buf(struct mlx5_context *mctx, struct mlx5_cq *cq, struct mlx5_buf *buf, int nent, int cqe_sz) argument
/freebsd-11-stable/lib/libc/net/
H A Dname6.c771 struct policyqueue *ent, *nent; local
773 for (ent = TAILQ_FIRST(head); ent; ent = nent) {
774 nent = TAILQ_NEXT(ent, pc_entry);

Completed in 239 milliseconds

12