/linux-6.12.1/drivers/infiniband/hw/mlx5/ |
D | cq.c | 674 int cqe_size) in alloc_cq_frag_buf() argument 677 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf() 678 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf() 682 nent * cqe_size, in alloc_cq_frag_buf() 690 buf->cqe_size = cqe_size; in alloc_cq_frag_buf() 720 int *cqe_size, int *index, int *inlen, in create_cq_user() argument 746 if ((ucmd.cqe_size != 64 && ucmd.cqe_size != 128) || in create_cq_user() 750 *cqe_size = ucmd.cqe_size; in create_cq_user() 754 entries * ucmd.cqe_size, IB_ACCESS_LOCAL_WRITE); in create_cq_user() 776 ucmd.buf_addr, entries * ucmd.cqe_size, in create_cq_user() [all …]
|
D | mlx5_ib.h | 552 int cqe_size; member 576 int cqe_size; member
|
/linux-6.12.1/drivers/infiniband/hw/hns/ |
D | hns_roce_cq.c | 206 buf_attr.region[0].size = hr_cq->cq_depth * hr_cq->cqe_size; in alloc_cq_buf() 335 hr_cq->cqe_size = hr_dev->caps.cqe_sz; in set_cqe_size() 339 if (udata->inlen >= offsetofend(typeof(*ucmd), cqe_size)) { in set_cqe_size() 340 if (ucmd->cqe_size != HNS_ROCE_V2_CQE_SIZE && in set_cqe_size() 341 ucmd->cqe_size != HNS_ROCE_V3_CQE_SIZE) { in set_cqe_size() 343 "invalid cqe size %u.\n", ucmd->cqe_size); in set_cqe_size() 347 hr_cq->cqe_size = ucmd->cqe_size; in set_cqe_size() 349 hr_cq->cqe_size = HNS_ROCE_V2_CQE_SIZE; in set_cqe_size()
|
D | hns_roce_restrack.c | 27 if (rdma_nl_put_driver_u32(msg, "cqe_size", hr_cq->cqe_size)) in hns_roce_fill_res_cq_entry()
|
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/ |
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() 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()
|
D | fw.h | 203 u16 cqe_size; /* For use only when CQE stride feature enabled */ member
|
D | en_cq.c | 62 cq->buf_size = cq->size * mdev->dev->caps.cqe_size; in mlx4_en_create_cq()
|
D | en_tx.c | 457 cqe = mlx4_en_get_cqe(buf, index, priv->cqe_size) + factor; in mlx4_en_process_tx_cq() 510 cqe = mlx4_en_get_cqe(buf, index, priv->cqe_size) + factor; in mlx4_en_process_tx_cq()
|
D | en_rx.c | 744 cqe = mlx4_en_get_cqe(cq->buf, index, priv->cqe_size) + factor; in mlx4_en_process_rx_cq() 963 cqe = mlx4_en_get_cqe(cq->buf, index, priv->cqe_size) + factor; in mlx4_en_process_rx_cq()
|
D | mlx4_en.h | 580 int cqe_size; member
|
/linux-6.12.1/include/uapi/rdma/ |
D | hns-abi.h | 42 __u32 cqe_size; member 132 __u32 cqe_size; member
|
D | mlx5-abi.h | 291 __u32 cqe_size; member 307 __u16 cqe_size; member
|
D | mlx4-abi.h | 71 __u32 cqe_size; member
|
/linux-6.12.1/net/ethtool/ |
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() 217 ethnl_update_u32(&kernel_ringparam.cqe_size, in ethnl_set_rings()
|
/linux-6.12.1/drivers/infiniband/hw/mlx4/ |
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() 359 int cqe_size = cq->buf.entry_size; in mlx4_ib_cq_resize_copy_cqes() local 360 int cqe_inc = cqe_size == 64 ? 1 : 0; in mlx4_ib_cq_resize_copy_cqes() 369 memcpy(new_cqe, get_cqe(cq, i & cq->ibcq.cqe), cqe_size); in mlx4_ib_cq_resize_copy_cqes()
|
/linux-6.12.1/drivers/vfio/pci/mlx5/ |
D | cmd.c | 993 int cqe_size) in alloc_cq_frag_buf() argument 996 u8 log_wq_stride = 6 + (cqe_size == 128 ? 1 : 0); in alloc_cq_frag_buf() 997 u8 log_wq_sz = ilog2(cqe_size); in alloc_cq_frag_buf() 1000 err = mlx5_frag_buf_alloc_node(mdev, nent * cqe_size, frag_buf, in alloc_cq_frag_buf() 1006 buf->cqe_size = cqe_size; in alloc_cq_frag_buf() 1019 cqe64 = buf->cqe_size == 64 ? cqe : cqe + 64; in init_cq_frag_buf() 1095 int cqe_size = cache_line_size() == 128 ? 128 : 64; in mlx5vf_create_cq() local 1112 cq->mcq.cqe_sz = cqe_size; in mlx5vf_create_cq() 1113 err = alloc_cq_frag_buf(mdev, &cq->buf, ncqe, cqe_size); in mlx5vf_create_cq()
|
D | cmd.h | 122 int cqe_size; member
|
/linux-6.12.1/drivers/ufs/core/ |
D | ufs-mcq.c | 235 size_t utrdl_size, cqe_size; in ufshcd_mcq_memory_alloc() local 251 cqe_size = sizeof(struct cq_entry) * hwq->max_entries; in ufshcd_mcq_memory_alloc() 252 hwq->cqe_base_addr = dmam_alloc_coherent(hba->dev, cqe_size, in ufshcd_mcq_memory_alloc()
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_txrx.h | 135 u16 cqe_size; member
|
D | otx2_ethtool.c | 389 kernel_ring->cqe_size = pfvf->hw.xqe_size; in otx2_get_ringparam() 400 u32 xqe_size = kernel_ring->cqe_size; in otx2_set_ringparam()
|
/linux-6.12.1/drivers/net/ethernet/huawei/hinic/ |
D | hinic_hw_qp.c | 320 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.12.1/drivers/infiniband/hw/ocrdma/ |
D | ocrdma_hw.c | 1786 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.12.1/drivers/scsi/bnx2i/ |
D | bnx2i.h | 661 u32 cqe_size; member
|
D | bnx2i_hwi.c | 171 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.12.1/include/linux/ |
D | ethtool.h | 87 u32 cqe_size; member
|