Searched refs:nent (Results 1 - 25 of 43) sorted by last modified time

12

/freebsd-11-stable/sys/dev/mlx5/mlx5_core/
H A Dmlx5_main.c641 int nent; local
647 nent = MLX5_COMP_EQ_SIZE;
652 i + MLX5_EQ_VEC_COMP_BASE, nent, 0,
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/mlx4/mlx4_core/
H A Dmlx4.h392 int nent; member in struct:mlx4_eq
/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
H A Dmlx5_ib.h391 int nent; member in struct:mlx5_ib_cq_buf
/freebsd-11-stable/sys/dev/mlx5/
H A Ddriver.h399 int nent; member in struct:mlx5_eq
1030 int nent, u64 mask, struct mlx5_uar *uar);
/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/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/llvm-project/compiler-rt/include/sanitizer/
H A Dnetbsd_syscall_hooks.h2185 #define __sanitizer_syscall_pre_compat_50_aio_suspend(list, nent, timeout) \
2187 (long long)(list), (long long)(nent), (long long)(timeout))
2188 #define __sanitizer_syscall_post_compat_50_aio_suspend(res, list, nent, \
2191 res, (long long)(list), (long long)(nent), (long long)(timeout))
2196 #define __sanitizer_syscall_pre_lio_listio(mode, list, nent, sig) \
2199 (long long)(nent), (long long)(sig))
2200 #define __sanitizer_syscall_post_lio_listio(res, mode, list, nent, sig) \
2202 res, (long long)(mode), (long long)(list), (long long)(nent), \
2404 #define __sanitizer_syscall_pre___aio_suspend50(list, nent, timeout) \
2406 (long long)(list), (long long)(nent), (lon
[all...]
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/
H A Dmlx4_ib_cq.c101 static int mlx4_ib_alloc_cq_buf(struct mlx4_ib_dev *dev, struct mlx4_ib_cq_buf *buf, int nent) argument
105 err = mlx4_buf_alloc(dev->dev, nent * dev->dev->caps.cqe_size,
127 mlx4_buf_free(dev->dev, nent * buf->entry_size, &buf->buf);
/freebsd-11-stable/sys/dev/mlx4/
H A Ddevice.h1120 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt,
/freebsd-11-stable/sys/compat/freebsd32/
H A Dfreebsd32_systrace_args.c1341 iarg[2] = p->nent; /* int */
1559 iarg[1] = p->nent; /* int */
H A Dfreebsd32_proto.h259 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; member in struct:freebsd32_lio_listio_args
293 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; member in struct:freebsd32_aio_suspend_args
1051 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; member in struct:freebsd6_freebsd32_lio_listio_args
/freebsd-11-stable/sys/sys/
H A Dsysproto.h744 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; member in struct:lio_listio_args
842 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; member in struct:aio_suspend_args
2471 char nent_l_[PADL_(int)]; int nent; char nent_r_[PADR_(int)]; member in struct:freebsd6_lio_listio_args
/freebsd-11-stable/sys/dev/mthca/
H A Dmthca_provider.h115 int nent; member in struct:mthca_eq
H A Dmthca_provider.c657 int nent; local
695 for (nent = 1; nent <= entries; nent <<= 1)
698 err = mthca_init_cq(to_mdev(ibdev), nent,
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_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_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_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,
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)
/freebsd-11-stable/contrib/ofed/libmlx5/
H A Dmlx5.h601 struct mlx5_buf *buf, int nent, int cqe_sz);
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/contrib/ofed/libmlx4/
H A Dverbs.c382 int nent; local
384 for (nent = 1; nent < req; nent <<= 1)
387 return nent;
H A Dmlx4.h390 int mlx4_alloc_cq_buf(struct mlx4_device *dev, struct mlx4_buf *buf, int nent,

Completed in 430 milliseconds

12