Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/infiniband/hw/mlx5/
Dcq.c668 int cqe_size) in alloc_cq_frag_buf() argument
671 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf()
672 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf()
676 nent * cqe_size, in alloc_cq_frag_buf()
684 buf->cqe_size = cqe_size; in alloc_cq_frag_buf()
714 int *cqe_size, int *index, int *inlen) in create_cq_user() argument
739 if ((ucmd.cqe_size != 64 && ucmd.cqe_size != 128) || in create_cq_user()
743 *cqe_size = ucmd.cqe_size; in create_cq_user()
747 entries * ucmd.cqe_size, IB_ACCESS_LOCAL_WRITE); in create_cq_user()
769 ucmd.buf_addr, entries * ucmd.cqe_size, in create_cq_user()
[all …]
Dmlx5_ib.h534 int cqe_size; member
558 int cqe_size; member
/linux-6.1.9/drivers/infiniband/hw/hns/
Dhns_roce_cq.c207 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()
Dhns_roce_restrack.c29 if (rdma_nl_put_driver_u32(msg, "cqe_size", hr_cq->cqe_size)) in hns_roce_fill_res_cq_entry()
/linux-6.1.9/include/uapi/rdma/
Dhns-abi.h42 __u32 cqe_size; member
98 __u32 cqe_size; member
Dmlx5-abi.h289 __u32 cqe_size; member
305 __u16 cqe_size; member
Dmlx4-abi.h71 __u32 cqe_size; member
/linux-6.1.9/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()
318 array_size(entries, cqe_size)) ? in mlx4_init_user_cqes()
330 int cqe_size) in mlx4_init_kernel_cqes() argument
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()
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.c453 cqe = mlx4_en_get_cqe(buf, index, priv->cqe_size) + factor; in mlx4_en_process_tx_cq()
506 cqe = mlx4_en_get_cqe(buf, index, priv->cqe_size) + factor; in mlx4_en_process_tx_cq()
Den_rx.c692 cqe = mlx4_en_get_cqe(cq->buf, index, priv->cqe_size) + factor; in mlx4_en_process_rx_cq()
907 cqe = mlx4_en_get_cqe(cq->buf, index, priv->cqe_size) + factor; in mlx4_en_process_rx_cq()
Dmlx4_en.h568 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()
/linux-6.1.9/net/ethtool/
Drings.c97 (kr->cqe_size && in rings_fill_reply()
98 (nla_put_u32(skb, ETHTOOL_A_RINGS_CQE_SIZE, kr->cqe_size))) || in rings_fill_reply()
196 ethnl_update_u32(&kernel_ringparam.cqe_size, in ethnl_set_rings()
/linux-6.1.9/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()
/linux-6.1.9/drivers/vfio/pci/mlx5/
Dcmd.c595 int cqe_size) in alloc_cq_frag_buf() argument
598 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf()
599 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf()
602 err = mlx5_frag_buf_alloc_node(mdev, nent * cqe_size, frag_buf, in alloc_cq_frag_buf()
608 buf->cqe_size = cqe_size; in alloc_cq_frag_buf()
621 cqe64 = buf->cqe_size == 64 ? cqe : cqe + 64; in init_cq_frag_buf()
689 int cqe_size = cache_line_size() == 128 ? 128 : 64; in mlx5vf_create_cq() local
706 cq->mcq.cqe_sz = cqe_size; in mlx5vf_create_cq()
707 err = alloc_cq_frag_buf(mdev, &cq->buf, ncqe, cqe_size); in mlx5vf_create_cq()
Dcmd.h47 int cqe_size; member
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_txrx.h128 u16 cqe_size; member
Dotx2_ethtool.c375 kernel_ring->cqe_size = pfvf->hw.xqe_size; in otx2_get_ringparam()
386 u32 xqe_size = kernel_ring->cqe_size; in otx2_set_ringparam()
/linux-6.1.9/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()
/linux-6.1.9/drivers/infiniband/hw/ocrdma/
Docrdma_hw.c1786 u32 hw_pages, cqe_size, page_size, cqe_count; in ocrdma_mbx_create_cq() local
1799 cqe_size = OCRDMA_DPP_CQE_SIZE; in ocrdma_mbx_create_cq()
1804 cqe_size = sizeof(struct ocrdma_cqe); in ocrdma_mbx_create_cq()
1808 cq->len = roundup(max_hw_cqe * cqe_size, OCRDMA_MIN_Q_PAGE_SIZE); in ocrdma_mbx_create_cq()
1828 cqe_count = cq->len / cqe_size; in ocrdma_mbx_create_cq()
1857 cmd->cmd.pdid_cqecnt = (cq->len / cqe_size); in ocrdma_mbx_create_cq()
1859 cmd->cmd.pdid_cqecnt = (cq->len / cqe_size) - 1; in ocrdma_mbx_create_cq()
/linux-6.1.9/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()
/linux-6.1.9/include/linux/
Dethtool.h81 u32 cqe_size; member

12