/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
H A D | cq.c | 661 int cqe_size) in alloc_cq_frag_buf() 664 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf() 665 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf() 669 nent * cqe_size, in alloc_cq_frag_buf() 677 buf->cqe_size = cqe_size; in alloc_cq_frag_buf() 707 int *cqe_size, int *index, int *inlen) in create_cq_user() 731 if ((ucmd.cqe_size != 64 && ucmd.cqe_size != 128) || in create_cq_user() 735 *cqe_size in create_cq_user() 658 alloc_cq_frag_buf(struct mlx5_ib_dev *dev, struct mlx5_ib_cq_buf *buf, int nent, int cqe_size) alloc_cq_frag_buf() argument 705 create_cq_user(struct mlx5_ib_dev *dev, struct ib_udata *udata, struct mlx5_ib_cq *cq, int entries, u32 **cqb, int *cqe_size, int *index, int *inlen) create_cq_user() argument 854 create_cq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq, int entries, int cqe_size, u32 **cqb, int *index, int *inlen) create_cq_kernel() argument 932 int cqe_size; mlx5_ib_create_cq() local 1127 resize_user(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq, int entries, struct ib_udata *udata, int *npas, int *page_shift, int *cqe_size) resize_user() argument 1164 resize_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq, int entries, int cqe_size) resize_kernel() argument 1252 int cqe_size; mlx5_ib_resize_cq() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx5/ |
H A D | cq.c | 671 int cqe_size) in alloc_cq_frag_buf() 674 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf() 675 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf() 679 nent * cqe_size, in alloc_cq_frag_buf() 687 buf->cqe_size = cqe_size; in alloc_cq_frag_buf() 717 int *cqe_size, int *index, int *inlen) in create_cq_user() 742 if ((ucmd.cqe_size != 64 && ucmd.cqe_size != 128) || in create_cq_user() 746 *cqe_size in create_cq_user() 668 alloc_cq_frag_buf(struct mlx5_ib_dev *dev, struct mlx5_ib_cq_buf *buf, int nent, int cqe_size) alloc_cq_frag_buf() argument 715 create_cq_user(struct mlx5_ib_dev *dev, struct ib_udata *udata, struct mlx5_ib_cq *cq, int entries, u32 **cqb, int *cqe_size, int *index, int *inlen) create_cq_user() argument 879 create_cq_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq, int entries, int cqe_size, u32 **cqb, int *index, int *inlen) create_cq_kernel() argument 957 int cqe_size; mlx5_ib_create_cq() local 1152 resize_user(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq, int entries, struct ib_udata *udata, int *cqe_size) resize_user() argument 1185 resize_kernel(struct mlx5_ib_dev *dev, struct mlx5_ib_cq *cq, int entries, int cqe_size) resize_kernel() argument 1274 int cqe_size; mlx5_ib_resize_cq() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/hns/ |
H A D | hns_roce_cq.c | 207 buf_attr.region[0].size = hr_cq->cq_depth * hr_cq->cqe_size; in alloc_cq_buf() 336 hr_cq->cqe_size = hr_dev->caps.cqe_sz; in set_cqe_size() 340 if (udata->inlen >= offsetofend(typeof(*ucmd), cqe_size)) { in set_cqe_size() 341 if (ucmd->cqe_size != HNS_ROCE_V2_CQE_SIZE && in set_cqe_size() 342 ucmd->cqe_size != HNS_ROCE_V3_CQE_SIZE) { in set_cqe_size() 344 "invalid cqe size %u.\n", ucmd->cqe_size); in set_cqe_size() 348 hr_cq->cqe_size = ucmd->cqe_size; in set_cqe_size() 350 hr_cq->cqe_size = HNS_ROCE_V2_CQE_SIZE; in set_cqe_size()
|
/kernel/linux/linux-5.10/include/uapi/rdma/ |
H A D | hns-abi.h | 42 __u32 cqe_size; member 78 __u32 cqe_size; member
|
H A D | mlx4-abi.h | 71 __u32 cqe_size; member
|
H A D | mlx5-abi.h | 278 __u32 cqe_size; member 294 __u16 cqe_size; member
|
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/ |
H A D | hns-abi.h | 25 __u32 cqe_size; member 55 __u32 cqe_size; member
|
H A D | mlx4-abi.h | 37 __u32 cqe_size; member
|
H A D | mlx5-abi.h | 200 __u32 cqe_size; member 214 __u16 cqe_size; member
|
/kernel/linux/patches/linux-6.6/prebuilts/usr/include/rdma/ |
H A D | hns-abi.h | 25 __u32 cqe_size; member 55 __u32 cqe_size; member
|
H A D | mlx4-abi.h | 37 __u32 cqe_size; member
|
H A D | mlx5-abi.h | 200 __u32 cqe_size; member 214 __u16 cqe_size; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/ |
H A D | cq.c | 290 static int mlx4_init_user_cqes(void *buf, int entries, int cqe_size) in mlx4_init_user_cqes() argument 292 int entries_per_copy = PAGE_SIZE / cqe_size; in mlx4_init_user_cqes() 317 err = copy_to_user((void __user *)buf, init_ents, entries * cqe_size) ? in mlx4_init_user_cqes() 329 int cqe_size) in mlx4_init_kernel_cqes() 334 memset(buf->direct.buf, 0xcc, entries * cqe_size); in mlx4_init_kernel_cqes() 394 dev->caps.cqe_size); in mlx4_cq_alloc() 399 dev->caps.cqe_size); in mlx4_cq_alloc() 327 mlx4_init_kernel_cqes(struct mlx4_buf *buf, int entries, int cqe_size) mlx4_init_kernel_cqes() argument
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx4/ |
H A D | cq.c | 290 static int mlx4_init_user_cqes(void *buf, int entries, int cqe_size) in mlx4_init_user_cqes() argument 292 int entries_per_copy = PAGE_SIZE / cqe_size; in mlx4_init_user_cqes() 318 array_size(entries, cqe_size)) ? in mlx4_init_user_cqes() 330 int cqe_size) in mlx4_init_kernel_cqes() 335 memset(buf->direct.buf, 0xcc, entries * cqe_size); in mlx4_init_kernel_cqes() 395 dev->caps.cqe_size); in mlx4_cq_alloc() 400 dev->caps.cqe_size); in mlx4_cq_alloc() 328 mlx4_init_kernel_cqes(struct mlx4_buf *buf, int entries, int cqe_size) mlx4_init_kernel_cqes() argument
|
/kernel/linux/linux-6.6/include/uapi/rdma/ |
H A D | hns-abi.h | 42 __u32 cqe_size; member 102 __u32 cqe_size; member
|
H A D | mlx4-abi.h | 71 __u32 cqe_size; member
|
H A D | mlx5-abi.h | 289 __u32 cqe_size; member 305 __u16 cqe_size; member
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
H A D | hns_roce_cq.c | 153 buf_attr.region[0].size = hr_cq->cq_depth * hr_cq->cqe_size; in alloc_cq_buf() 233 if (udata->inlen >= offsetofend(typeof(*ucmd), cqe_size)) in set_cqe_size() 234 hr_cq->cqe_size = ucmd->cqe_size; in set_cqe_size() 236 hr_cq->cqe_size = HNS_ROCE_V2_CQE_SIZE; in set_cqe_size() 238 hr_cq->cqe_size = hr_dev->caps.cqe_sz; in set_cqe_size()
|
/kernel/linux/linux-6.6/net/ethtool/ |
H A D | rings.c | 103 (kr->cqe_size && in rings_fill_reply() 104 (nla_put_u32(skb, ETHTOOL_A_RINGS_CQE_SIZE, kr->cqe_size))) || in rings_fill_reply() 205 ethnl_update_u32(&kernel_ringparam.cqe_size, in ethnl_set_rings()
|
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/rdma/ |
H A D | mlx5-abi.h | 182 __u32 cqe_size; member 193 __u16 cqe_size; member
|
H A D | mlx4-abi.h | 24 __u32 cqe_size; member
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
H A D | cq.c | 105 err = mlx4_buf_alloc(dev->dev, nent * dev->dev->caps.cqe_size, in mlx4_ib_alloc_cq_buf() 111 buf->entry_size = dev->dev->caps.cqe_size; in mlx4_ib_alloc_cq_buf() 143 int cqe_size = dev->dev->caps.cqe_size; in mlx4_ib_get_cq_umem() local 147 *umem = ib_umem_get(&dev->ib_dev, buf_addr, cqe * cqe_size, in mlx4_ib_get_cq_umem() 358 int cqe_size = cq->buf.entry_size; in mlx4_ib_cq_resize_copy_cqes() local 359 int cqe_inc = cqe_size == 64 ? 1 : 0; in mlx4_ib_cq_resize_copy_cqes() 368 memcpy(new_cqe, get_cqe(cq, i & cq->ibcq.cqe), cqe_size); in mlx4_ib_cq_resize_copy_cqes()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/mlx4/ |
H A D | cq.c | 105 err = mlx4_buf_alloc(dev->dev, nent * dev->dev->caps.cqe_size, in mlx4_ib_alloc_cq_buf() 111 buf->entry_size = dev->dev->caps.cqe_size; in mlx4_ib_alloc_cq_buf() 143 int cqe_size = dev->dev->caps.cqe_size; in mlx4_ib_get_cq_umem() local 147 *umem = ib_umem_get(&dev->ib_dev, buf_addr, cqe * cqe_size, in mlx4_ib_get_cq_umem() 358 int cqe_size = cq->buf.entry_size; in mlx4_ib_cq_resize_copy_cqes() local 359 int cqe_inc = cqe_size == 64 ? 1 : 0; in mlx4_ib_cq_resize_copy_cqes() 368 memcpy(new_cqe, get_cqe(cq, i & cq->ibcq.cqe), cqe_size); in mlx4_ib_cq_resize_copy_cqes()
|
/kernel/linux/linux-6.6/drivers/vfio/pci/mlx5/ |
H A D | cmd.c | 856 int cqe_size) in alloc_cq_frag_buf() 859 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf() 860 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf() 863 err = mlx5_frag_buf_alloc_node(mdev, nent * cqe_size, frag_buf, in alloc_cq_frag_buf() 869 buf->cqe_size = cqe_size; in alloc_cq_frag_buf() 882 cqe64 = buf->cqe_size == 64 ? cqe : cqe + 64; in init_cq_frag_buf() 950 int cqe_size = cache_line_size() == 128 ? 128 : 64; in mlx5vf_create_cq() local 967 cq->mcq.cqe_sz = cqe_size; in mlx5vf_create_cq() 968 err = alloc_cq_frag_buf(mdev, &cq->buf, ncqe, cqe_size); in mlx5vf_create_cq() 854 alloc_cq_frag_buf(struct mlx5_core_dev *mdev, struct mlx5_vhca_cq_buf *buf, int nent, int cqe_size) alloc_cq_frag_buf() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_txrx.h | 125 u16 cqe_size; member
|