Home
last modified time | relevance | path

Searched refs:cqe_size (Results 1 – 25 of 35) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/
Dcq.c661 int cqe_size) in alloc_cq_frag_buf() argument
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() argument
731 if ((ucmd.cqe_size != 64 && ucmd.cqe_size != 128) || in create_cq_user()
735 *cqe_size = ucmd.cqe_size; in create_cq_user()
739 entries * ucmd.cqe_size, IB_ACCESS_LOCAL_WRITE); in create_cq_user()
752 ucmd.buf_addr, entries * ucmd.cqe_size, npages, page_shift, ncont); in create_cq_user()
[all …]
Dmlx5_ib.h461 int cqe_size; member
507 int cqe_size; member
/kernel/linux/linux-5.10/include/uapi/rdma/
Dhns-abi.h42 __u32 cqe_size; member
78 __u32 cqe_size; member
Dmlx5-abi.h278 __u32 cqe_size; member
294 __u16 cqe_size; member
Dmlx4-abi.h71 __u32 cqe_size; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/rdma/
Dhns-abi.h25 __u32 cqe_size; member
55 __u32 cqe_size; member
Dmlx5-abi.h200 __u32 cqe_size; member
214 __u16 cqe_size; member
Dmlx4-abi.h37 __u32 cqe_size; member
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dcq.c290 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() argument
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()
Dfw.h203 u16 cqe_size; /* For use only when CQE stride feature enabled */ member
Den_cq.c62 cq->buf_size = cq->size * mdev->dev->caps.cqe_size; in mlx4_en_create_cq()
Den_tx.c452 cqe = mlx4_en_get_cqe(buf, index, priv->cqe_size) + factor; in mlx4_en_process_tx_cq()
505 cqe = mlx4_en_get_cqe(buf, index, priv->cqe_size) + factor; in mlx4_en_process_tx_cq()
Den_rx.c693 cqe = mlx4_en_get_cqe(cq->buf, index, priv->cqe_size) + factor; in mlx4_en_process_rx_cq()
900 cqe = mlx4_en_get_cqe(cq->buf, index, priv->cqe_size) + factor; in mlx4_en_process_rx_cq()
Dmlx4_en.h585 int cqe_size; member
Dfw.c1944 dev->caps.cqe_size = 64; in mlx4_INIT_HCA()
1947 dev->caps.cqe_size = 32; in mlx4_INIT_HCA()
1954 dev->caps.cqe_size = cache_line_size(); in mlx4_INIT_HCA()
2178 param->cqe_size = 1 << ((byte_field & in mlx4_QUERY_HCA()
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/
Dhns_roce_cq.c153 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-5.10/drivers/infiniband/hw/mlx4/
Dcq.c105 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/patches/linux-4.19/prebuilts/usr/include/rdma/
Dmlx5-abi.h182 __u32 cqe_size; member
193 __u16 cqe_size; member
Dmlx4-abi.h24 __u32 cqe_size; member
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.h125 u16 cqe_size; member
Dotx2_common.c832 cq->cqe_size = pfvf->qset.xqe_size; in otx2_cq_init()
835 err = qmem_alloc(pfvf->dev, &cq->cqe, cq->cqe_cnt, cq->cqe_size); in otx2_cq_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_qp.c320 size_t cqe_dma_size, cqe_size; in alloc_rq_cqe() local
324 cqe_size = wq->q_depth * sizeof(*rq->cqe); in alloc_rq_cqe()
325 rq->cqe = vzalloc(cqe_size); in alloc_rq_cqe()
/kernel/linux/linux-5.10/drivers/infiniband/hw/ocrdma/
Docrdma_hw.c1790 u32 hw_pages, cqe_size, page_size, cqe_count; in ocrdma_mbx_create_cq() local
1803 cqe_size = OCRDMA_DPP_CQE_SIZE; in ocrdma_mbx_create_cq()
1808 cqe_size = sizeof(struct ocrdma_cqe); in ocrdma_mbx_create_cq()
1812 cq->len = roundup(max_hw_cqe * cqe_size, OCRDMA_MIN_Q_PAGE_SIZE); in ocrdma_mbx_create_cq()
1832 cqe_count = cq->len / cqe_size; in ocrdma_mbx_create_cq()
1861 cmd->cmd.pdid_cqecnt = (cq->len / cqe_size); in ocrdma_mbx_create_cq()
1863 cmd->cmd.pdid_cqecnt = (cq->len / cqe_size) - 1; in ocrdma_mbx_create_cq()
/kernel/linux/linux-5.10/drivers/scsi/bnx2i/
Dbnx2i.h661 u32 cqe_size; member
Dbnx2i_hwi.c171 if (cq_index > ep->qp.cqe_size * 2) in bnx2i_arm_cq_event_coalescing()
172 cq_index -= ep->qp.cqe_size * 2; in bnx2i_arm_cq_event_coalescing()
1123 ep->qp.cqe_size = hba->max_cqes; in bnx2i_alloc_qp_resc()
2063 if (qp->cqe_exp_seq_sn == (qp->cqe_size * 2 + 1)) in bnx2i_process_new_cqes()

12