/freebsd-11-stable/sys/dev/mlx5/mlx5_core/ |
H A D | mlx5_main.c | 641 int nent; local 647 nent = MLX5_COMP_EQ_SIZE; 652 i + MLX5_EQ_VEC_COMP_BASE, nent, 0,
|
H A D | mlx5_eq.c | 107 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 D | mlx4.h | 392 int nent; member in struct:mlx4_eq
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_ib/ |
H A D | mlx5_ib_cq.c | 72 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 D | mlx5_ib.h | 391 int nent; member in struct:mlx5_ib_cq_buf
|
/freebsd-11-stable/sys/dev/mlx5/ |
H A D | driver.h | 399 int nent; member in struct:mlx5_eq 1030 int nent, u64 mask, struct mlx5_uar *uar);
|
/freebsd-11-stable/sys/kern/ |
H A D | vfs_aio.c | 1936 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 D | efibootmgr.c | 310 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 D | netbsd_syscall_hooks.h | 2185 #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 D | mlx4_ib_cq.c | 101 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 D | device.h | 1120 int mlx4_cq_alloc(struct mlx4_dev *dev, int nent, struct mlx4_mtt *mtt,
|
/freebsd-11-stable/sys/compat/freebsd32/ |
H A D | freebsd32_systrace_args.c | 1341 iarg[2] = p->nent; /* int */ 1559 iarg[1] = p->nent; /* int */
|
H A D | freebsd32_proto.h | 259 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 D | sysproto.h | 744 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 D | mthca_provider.h | 115 int nent; member in struct:mthca_eq
|
H A D | mthca_provider.c | 657 int nent; local 695 for (nent = 1; nent <= entries; nent <<= 1) 698 err = mthca_init_cq(to_mdev(ibdev), nent,
|
H A D | mthca_eq.c | 184 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 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_cq.c | 353 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 D | mthca_cmd.c | 661 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 D | mthca_allocator.c | 160 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 D | mlx5.h | 601 struct mlx5_buf *buf, int nent, int cqe_sz);
|
H A D | cq.c | 1424 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 D | verbs.c | 382 int nent; local 384 for (nent = 1; nent < req; nent <<= 1) 387 return nent;
|
H A D | mlx4.h | 390 int mlx4_alloc_cq_buf(struct mlx4_device *dev, struct mlx4_buf *buf, int nent,
|