Home
last modified time | relevance | path

Searched refs:rq_size (Results 1 – 25 of 34) sorted by relevance

12

/linux-6.6.21/drivers/infiniband/hw/irdma/
Dpuda.c127 rsrc->rx_wqe_idx = ((rsrc->rx_wqe_idx + 1) % rsrc->rq_size); in irdma_puda_replenish_rq()
649 u32 sq_size, rq_size; in irdma_puda_qp_create() local
653 rq_size = rsrc->rq_size * IRDMA_QP_WQE_MIN_SIZE; in irdma_puda_qp_create()
654 rsrc->qpmem.size = ALIGN((sq_size + rq_size + (IRDMA_SHADOW_AREA_SIZE << 3) + IRDMA_QP_CTX_SIZE), in irdma_puda_qp_create()
665 qp->hw_rq_size = irdma_get_encoded_wqe_size(rsrc->rq_size, IRDMA_QUEUE_TYPE_SQ_RQ); in irdma_puda_qp_create()
675 ukqp->shadow_area = ukqp->rq_base[rsrc->rq_size].elem; in irdma_puda_qp_create()
677 qp->shadow_area_pa = qp->rq_pa + rq_size; in irdma_puda_qp_create()
685 ukqp->rq_size = rsrc->rq_size; in irdma_puda_qp_create()
689 IRDMA_RING_INIT(ukqp->rq_ring, ukqp->rq_size); in irdma_puda_qp_create()
1013 rqwridsize = info->rq_size * 8; in irdma_puda_create_rsrc()
[all …]
Duser.h328 u32 rq_size; member
374 u32 rq_size; member
410 int irdma_get_rqdepth(struct irdma_uk_attrs *uk_attrs, u32 rq_size, u8 shift,
Dpuda.h91 u32 rq_size; member
114 u32 rq_size; member
Duk.c1288 int irdma_get_rqdepth(struct irdma_uk_attrs *uk_attrs, u32 rq_size, u8 shift, in irdma_get_rqdepth() argument
1293 *rqdepth = irdma_qp_round_up((rq_size << shift) + IRDMA_RQ_RSVD); in irdma_get_rqdepth()
1404 status = irdma_get_rqdepth(ukinfo->uk_attrs, ukinfo->rq_size, in irdma_uk_calc_depth_shift_rq()
1454 qp->rq_size = info->rq_size; in irdma_uk_qp_init()
1458 IRDMA_RING_INIT(qp->rq_ring, qp->rq_size); in irdma_uk_qp_init()
/linux-6.6.21/drivers/scsi/
Dstex.c347 u16 rq_size; member
361 u16 rq_size; member
412 struct req_msg *req = hba->dma_mem + hba->req_head * hba->rq_size; in stex_alloc_req()
423 hba->req_head * hba->rq_size + sizeof(struct st_msg_header)); in stex_ss_alloc_req()
549 addr = hba->dma_handle + hba->req_head * hba->rq_size; in stex_ss_send_cmd()
1063 h->req_sz = cpu_to_le16(hba->rq_size); in stex_common_handshake()
1075 status_phys = hba->dma_handle + (hba->rq_count+1) * hba->rq_size; in stex_common_handshake()
1154 h->req_sz = cpu_to_le16(hba->rq_size); in stex_ss_handshake()
1545 .rq_size = 1048,
1558 .rq_size = 1048,
[all …]
/linux-6.6.21/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ctx.c270 size_t rq_size, rsp_size; in nx_fw_cmd_create_rx_ctx() local
280 rq_size = in nx_fw_cmd_create_rx_ctx()
285 addr = dma_alloc_coherent(&adapter->pdev->dev, rq_size, in nx_fw_cmd_create_rx_ctx()
350 cmd.req.arg3 = rq_size; in nx_fw_cmd_create_rx_ctx()
394 dma_free_coherent(&adapter->pdev->dev, rq_size, prq, hostrq_phys_addr); in nx_fw_cmd_create_rx_ctx()
424 size_t rq_size, rsp_size; in nx_fw_cmd_create_tx_ctx() local
433 rq_size = SIZEOF_HOSTRQ_TX(nx_hostrq_tx_ctx_t); in nx_fw_cmd_create_tx_ctx()
434 rq_addr = dma_alloc_coherent(&adapter->pdev->dev, rq_size, in nx_fw_cmd_create_tx_ctx()
476 cmd.req.arg3 = rq_size; in nx_fw_cmd_create_tx_ctx()
500 dma_free_coherent(&adapter->pdev->dev, rq_size, rq_addr, rq_phys_addr); in nx_fw_cmd_create_tx_ctx()
/linux-6.6.21/drivers/scsi/bnx2i/
Dbnx2i_init.c65 unsigned int rq_size = BNX2I_RQ_WQES_DEFAULT; variable
66 module_param(rq_size, int, 0664);
67 MODULE_PARM_DESC(rq_size, "Configure RQ size");
Dbnx2i.h796 extern unsigned int rq_size;
/linux-6.6.21/include/uapi/rdma/
Dcxgb4-abi.h83 __u32 rq_size; member
/linux-6.6.21/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ctx.c250 size_t rq_size, rsp_size; in qlcnic_82xx_fw_cmd_create_rx_ctx() local
260 rq_size = SIZEOF_HOSTRQ_RX(struct qlcnic_hostrq_rx_ctx, nrds_rings, in qlcnic_82xx_fw_cmd_create_rx_ctx()
265 addr = dma_alloc_coherent(&adapter->pdev->dev, rq_size, in qlcnic_82xx_fw_cmd_create_rx_ctx()
343 cmd.req.arg[3] = rq_size; in qlcnic_82xx_fw_cmd_create_rx_ctx()
387 dma_free_coherent(&adapter->pdev->dev, rq_size, prq, hostrq_phys_addr); in qlcnic_82xx_fw_cmd_create_rx_ctx()
426 size_t rq_size, rsp_size; in qlcnic_82xx_fw_cmd_create_tx_ctx() local
435 rq_size = SIZEOF_HOSTRQ_TX(struct qlcnic_hostrq_tx_ctx); in qlcnic_82xx_fw_cmd_create_tx_ctx()
436 rq_addr = dma_alloc_coherent(&adapter->pdev->dev, rq_size, in qlcnic_82xx_fw_cmd_create_tx_ctx()
489 cmd.req.arg[3] = rq_size; in qlcnic_82xx_fw_cmd_create_tx_ctx()
518 dma_free_coherent(&adapter->pdev->dev, rq_size, rq_addr, rq_phys_addr); in qlcnic_82xx_fw_cmd_create_tx_ctx()
/linux-6.6.21/drivers/infiniband/hw/erdma/
Derdma_verbs.c55 ilog2(qp->attrs.rq_size)) | in create_qp_cmd()
82 (qp->attrs.rq_size << RQE_SHIFT); in create_qp_cmd()
493 WARPPED_BUFSIZE(qp->attrs.rq_size << RQE_SHIFT), in free_kernel_qp()
515 kqp->rwr_tbl = vmalloc_array(qp->attrs.rq_size, sizeof(u64)); in init_kernel_qp()
525 size = (qp->attrs.rq_size << RQE_SHIFT) + ERDMA_EXTRA_BUFFER_SIZE; in init_kernel_qp()
532 kqp->rq_db_info = kqp->rq_buf + (qp->attrs.rq_size << RQE_SHIFT); in init_kernel_qp()
874 qp->attrs.rq_size * RQE_SIZE)) in init_user_qp()
887 qp->attrs.rq_size << RQE_SHIFT, 0, va + rq_offset, in init_user_qp()
957 qp->attrs.rq_size = roundup_pow_of_two(attrs->cap.max_recv_wr); in erdma_create_qp()
973 uresp.num_rqe = qp->attrs.rq_size; in erdma_create_qp()
[all …]
Derdma_cq.c155 depth = qp->attrs.rq_size; in erdma_poll_one_cqe()
Derdma_qp.c545 qp->attrs.rq_size, RQE_SHIFT); in erdma_post_recv_one()
563 qp->kern_qp.rwr_tbl[qp->kern_qp.rq_pi & (qp->attrs.rq_size - 1)] = in erdma_post_recv_one()
Derdma_verbs.h205 u32 rq_size; member
/linux-6.6.21/drivers/infiniband/ulp/srpt/
Dib_srpt.c1797 WARN_ON(ch->rq_size < 1); in srpt_create_ch_ib()
1805 ch->cq = ib_cq_pool_get(sdev->device, ch->rq_size + sq_size, -1, in srpt_create_ch_ib()
1810 ch->rq_size + sq_size, ret); in srpt_create_ch_ib()
1813 ch->cq_size = ch->rq_size + sq_size; in srpt_create_ch_ib()
1836 qp_init->cap.max_recv_wr = ch->rq_size; in srpt_create_ch_ib()
1874 for (i = 0; i < ch->rq_size; i++) in srpt_create_ch_ib()
2119 ch->sport->sdev, ch->rq_size, in srpt_release_channel_work()
2125 sdev, ch->rq_size, in srpt_release_channel_work()
2242 ch->rq_size = min(MAX_SRPT_RQ_SIZE, sdev->device->attrs.max_qp_wr); in srpt_cm_req_recv()
2254 srpt_alloc_ioctx_ring(ch->sport->sdev, ch->rq_size, in srpt_cm_req_recv()
[all …]
Dib_srpt.h309 int rq_size; member
/linux-6.6.21/drivers/infiniband/hw/efa/
Defa_verbs.c465 qp->rq_cpu_addr, qp->rq_size, in efa_destroy_qp()
468 qp->rq_size, DMA_TO_DEVICE); in efa_destroy_qp()
533 if (qp->rq_size) { in qp_mmap_entries_setup()
549 address, qp->rq_size, in qp_mmap_entries_setup()
555 resp->rq_mmap_size = qp->rq_size; in qp_mmap_entries_setup()
707 qp->rq_size = PAGE_ALIGN(create_qp_params.rq_ring_size_in_bytes); in efa_create_qp()
708 if (qp->rq_size) { in efa_create_qp()
710 qp->rq_size, DMA_TO_DEVICE); in efa_create_qp()
718 qp->rq_cpu_addr, qp->rq_size, &qp->rq_dma_addr); in efa_create_qp()
766 if (qp->rq_size) in efa_create_qp()
[all …]
Defa.h105 size_t rq_size; member
/linux-6.6.21/drivers/infiniband/sw/siw/
Dsiw_verbs.c409 qp->attrs.rq_size = 0; in siw_create_qp()
423 qp->attrs.rq_size = num_rqe; in siw_create_qp()
521 qp_attr->cap.max_recv_wr = qp->attrs.rq_size; in siw_query_qp()
1004 if (qp->srq || qp->attrs.rq_size == 0) { in siw_post_receive()
1064 u32 idx = qp->rq_put % qp->attrs.rq_size; in siw_post_receive()
Dsiw_qp.c1299 while (qp->attrs.rq_size) { in siw_rq_flush()
1301 &qp->recvq[qp->rq_get % qp->attrs.rq_size]; in siw_rq_flush()
Dsiw.h262 u32 rq_size; member
/linux-6.6.21/drivers/vfio/pci/mlx5/
Dcmd.c1293 u64 rq_size) in mlx5vf_alloc_qp_recv_resources() argument
1295 unsigned int npages = DIV_ROUND_UP_ULL(rq_size, PAGE_SIZE); in mlx5vf_alloc_qp_recv_resources()
1372 u64 rq_size = SZ_2M; in mlx5vf_start_page_tracker() local
1399 max_recv_wr = DIV_ROUND_UP_ULL(rq_size, max_msg_size); in mlx5vf_start_page_tracker()
1423 rq_size); in mlx5vf_start_page_tracker()
/linux-6.6.21/block/
Dblk-mq.c3419 size_t rq_size, left; in blk_mq_alloc_rqs() local
3430 rq_size = round_up(sizeof(struct request) + set->cmd_size, in blk_mq_alloc_rqs()
3432 left = rq_size * depth; in blk_mq_alloc_rqs()
3451 if (order_to_size(this_order) < rq_size) in blk_mq_alloc_rqs()
3467 entries_per_page = order_to_size(this_order) / rq_size; in blk_mq_alloc_rqs()
3469 left -= to_do * rq_size; in blk_mq_alloc_rqs()
3479 p += rq_size; in blk_mq_alloc_rqs()
/linux-6.6.21/drivers/net/ethernet/microsoft/mana/
Dmana_en.c2162 u32 cq_size, rq_size; in mana_create_rxq() local
2188 err = mana_alloc_rx_wqe(apc, rxq, &rq_size, &cq_size); in mana_create_rxq()
2192 rq_size = PAGE_ALIGN(rq_size); in mana_create_rxq()
2199 spec.queue_size = rq_size; in mana_create_rxq()
/linux-6.6.21/drivers/infiniband/hw/bnxt_re/
Droce_hsi.h476 __le32 rq_size; member
661 __le32 rq_size; member
807 __le32 rq_size; member
1730 __le32 rq_size; member

12