Home
last modified time | relevance | path

Searched refs:wqe_cnt (Results 1 – 25 of 29) sorted by relevance

12

/openbmc/linux/drivers/infiniband/hw/hns/
H A Dhns_roce_srq.c176 buf_attr.region[0].size = to_hr_hem_entries_size(srq->wqe_cnt, in alloc_srq_idx()
191 idx_que->bitmap = bitmap_zalloc(srq->wqe_cnt, GFP_KERNEL); in alloc_srq_idx()
231 buf_attr.region[0].size = to_hr_hem_entries_size(srq->wqe_cnt, in alloc_srq_wqe_buf()
254 srq->wrid = kvmalloc_array(srq->wqe_cnt, sizeof(u64), GFP_KERNEL); in alloc_srq_wrid()
307 srq->wqe_cnt = roundup_pow_of_two(attr->max_wr); in set_srq_basic_param()
310 attr->max_wr = srq->wqe_cnt; in set_srq_basic_param()
H A Dhns_roce_restrack.c71 if (rdma_nl_put_driver_u32_hex(msg, "sq_wqe_cnt", hr_qp->sq.wqe_cnt)) in hns_roce_fill_res_qp_entry()
77 if (rdma_nl_put_driver_u32_hex(msg, "rq_wqe_cnt", hr_qp->rq.wqe_cnt)) in hns_roce_fill_res_qp_entry()
H A Dhns_roce_qp.c450 hr_qp->rq.wqe_cnt = 0; in set_rq_size()
480 hr_qp->rq.wqe_cnt = cnt; in set_rq_size()
640 hr_qp->sq.wqe_cnt = cnt; in set_user_sq_size()
657 buf_size = to_hr_hem_entries_size(hr_qp->sq.wqe_cnt, in set_wqe_buf_attr()
679 buf_size = to_hr_hem_entries_size(hr_qp->rq.wqe_cnt, in set_wqe_buf_attr()
717 hr_qp->sq.wqe_cnt = cnt; in set_kernel_sq_size()
979 sq_wrid = kcalloc(hr_qp->sq.wqe_cnt, sizeof(u64), GFP_KERNEL); in alloc_kernel_wrid()
985 if (hr_qp->rq.wqe_cnt) { in alloc_kernel_wrid()
986 rq_wrid = kcalloc(hr_qp->rq.wqe_cnt, sizeof(u64), GFP_KERNEL); in alloc_kernel_wrid()
1451 if (likely(cur + nreq < hr_wq->wqe_cnt)) in hns_roce_wq_overflow()
[all …]
H A Dhns_roce_hw_v2.c927 if (unlikely(pos == srq->wqe_cnt)) in get_srq_wqe_idx()
941 head = idx_que->head & (srq->wqe_cnt - 1); in fill_wqe_idx()
3919 (wq->wqe_cnt - 1); in hns_roce_v2_poll_one()
4348 if (hr_qp->rq.wqe_cnt && count < 1) { in config_qp_rq_buf()
4368 hr_qp->sq.wqe_cnt)); in config_qp_rq_buf()
4378 hr_qp->rq.wqe_cnt)); in config_qp_rq_buf()
5402 qp_attr->cap.max_recv_wr = hr_qp->rq.wqe_cnt; in hns_roce_v2_query_qp()
5406 qp_attr->cap.max_send_wr = hr_qp->sq.wqe_cnt; in hns_roce_v2_query_qp()
5630 srq->wqe_cnt)); in hns_roce_v2_write_srqc()
5661 if (srq_attr->srq_limit > srq->wqe_cnt) in hns_roce_v2_modify_srq()
[all …]
H A Dhns_roce_device.h338 u32 wqe_cnt; /* WQE num */ member
444 u32 wqe_cnt; member
/openbmc/linux/drivers/infiniband/hw/mlx5/
H A Dqp.c445 qp->rq.wqe_cnt = 0; in set_rq_size()
620 qp->sq.wqe_cnt, in calc_sq_size()
660 qp->sq.wqe_cnt, in set_user_buf_size()
1138 if (qp->rq.wqe_cnt) in _create_kernel_qp()
1142 if (qp->sq.wqe_cnt) { in _create_kernel_qp()
1585 if (!qp->sq.wqe_cnt && !qp->rq.wqe_cnt) in create_raw_packet_qp()
1587 if (qp->sq.wqe_cnt) { in create_raw_packet_qp()
1608 if (qp->rq.wqe_cnt) { in create_raw_packet_qp()
1655 if (!qp->sq.wqe_cnt) in create_raw_packet_qp()
2498 if (qp->sq.wqe_cnt) in create_kernel_qp()
[all …]
H A Dsrq.h21 u32 wqe_cnt; member
H A Dwr.h59 idx = (sq->cur_post + (wqe_sz >> 2)) & (sq->wqe_cnt - 1); in handle_post_send_edge()
H A Dcq.c197 wc->wr_id = wq->wrid[wq->tail & (wq->wqe_cnt - 1)]; in handle_responder()
347 idx = tail & (qp->sq.wqe_cnt - 1); in handle_atomics()
413 idx &= (wq->wqe_cnt - 1); in sw_comp()
504 idx = wqe_ctr & (wq->wqe_cnt - 1); in mlx5_poll_one()
536 idx = wqe_ctr & (wq->wqe_cnt - 1); in mlx5_poll_one()
549 wc->wr_id = wq->wrid[wq->tail & (wq->wqe_cnt - 1)]; in mlx5_poll_one()
H A Dwr.c716 idx = (idx + 1) & (qp->sq.wqe_cnt - 1); in dump_wqe()
732 *idx = qp->sq.cur_post & (qp->sq.wqe_cnt - 1); in mlx5r_begin_wqe()
783 (qp->sq.wqe_cnt - 1)) : in mlx5r_finish_wqe()
1231 ind = qp->rq.head & (qp->rq.wqe_cnt - 1); in mlx5_ib_post_recv()
1266 ind = (ind + 1) & (qp->rq.wqe_cnt - 1); in mlx5_ib_post_recv()
H A Dmem.c118 idx = qp->sq.cur_post & (qp->sq.wqe_cnt - 1); in post_send_nop()
H A Dmlx5_ib.h380 int wqe_cnt; member
/openbmc/linux/drivers/infiniband/hw/mlx4/
H A Dqp.c349 qp->rq.wqe_cnt = qp->rq.max_gs = 0; in set_rq_size()
426 (qp->sq.wqe_cnt << qp->sq.wqe_shift); in set_kernel_sq_size()
436 qp->sq.wqe_cnt - qp->sq_spare_wqes; in set_kernel_sq_size()
680 qp->sq.wqe_cnt = 1; in create_qp_rss()
916 qp->sq.wqe_cnt = 1; in create_rq()
1475 if (qp->rq.wqe_cnt) { in destroy_qp_common()
1491 if (qp->rq.wqe_cnt) in destroy_qp_common()
2210 if (qp->rq.wqe_cnt) in __mlx4_ib_modify_qp()
2215 if (qp->sq.wqe_cnt) in __mlx4_ib_modify_qp()
2435 if (qp->rq.wqe_cnt && in __mlx4_ib_modify_qp()
[all …]
H A Dcq.c621 wc->wr_id = wq->wrid[wq->tail & (wq->wqe_cnt - 1)]; in mlx4_ib_qp_sw_comp()
737 wc->wr_id = wq->wrid[wq->tail & (wq->wqe_cnt - 1)]; in mlx4_ib_poll_one()
751 tail = wq->tail & (wq->wqe_cnt - 1); in mlx4_ib_poll_one()
H A Dmlx4_ib.h166 int wqe_cnt; member
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_qp.c140 qp->rq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_recv_wr)); in pvrdma_set_rq_size()
144 req_cap->max_recv_wr = qp->rq.wqe_cnt; in pvrdma_set_rq_size()
150 qp->npages_recv = (qp->rq.wqe_cnt * qp->rq.wqe_size + PAGE_SIZE - 1) / in pvrdma_set_rq_size()
165 qp->sq.wqe_cnt = roundup_pow_of_two(max(1U, req_cap->max_send_wr)); in pvrdma_set_sq_size()
169 req_cap->max_send_wr = qp->sq.wqe_cnt; in pvrdma_set_sq_size()
177 (qp->sq.wqe_cnt * qp->sq.wqe_size + PAGE_SIZE - 1) / in pvrdma_set_sq_size()
696 qp->sq.ring, qp->sq.wqe_cnt, &tail))) { in pvrdma_post_send()
849 qp->sq.wqe_cnt); in pvrdma_post_send()
914 qp->rq.ring, qp->rq.wqe_cnt, &tail))) { in pvrdma_post_recv()
940 qp->rq.wqe_cnt); in pvrdma_post_recv()
H A Dpvrdma.h154 int wqe_cnt; member
169 int wqe_cnt; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/
H A Ddr_send.c197 (dr_cq->qp->sq.wqe_cnt - 1); in dr_parse_cqe()
203 (dr_cq->qp->sq.wqe_cnt - 1); in dr_parse_cqe()
270 dr_qp->rq.wqe_cnt = 256; in dr_create_rc_qp()
274 dr_qp->sq.wqe_cnt = roundup_pow_of_two(attr->max_send_wr); in dr_create_rc_qp()
277 MLX5_SET(qpc, temp_qpc, log_rq_size, ilog2(dr_qp->rq.wqe_cnt)); in dr_create_rc_qp()
278 MLX5_SET(qpc, temp_qpc, log_sq_size, ilog2(dr_qp->sq.wqe_cnt)); in dr_create_rc_qp()
286 dr_qp->sq.wqe_head = kcalloc(dr_qp->sq.wqe_cnt, in dr_create_rc_qp()
317 MLX5_SET(qpc, qpc, log_rq_size, ilog2(dr_qp->rq.wqe_cnt)); in dr_create_rc_qp()
319 MLX5_SET(qpc, qpc, log_sq_size, ilog2(dr_qp->sq.wqe_cnt)); in dr_create_rc_qp()
446 idx = dr_qp->sq.pc & (dr_qp->sq.wqe_cnt - 1); in dr_rdma_segments()
H A Ddr_types.h1424 unsigned int wqe_cnt; member
1430 unsigned int wqe_cnt; member
/openbmc/linux/drivers/vfio/pci/mlx5/
H A Dcmd.h141 unsigned int wqe_cnt; member
H A Dcmd.c1038 qp->rq.wqe_cnt = roundup_pow_of_two(max_recv_wr); in mlx5vf_create_rc_qp()
1040 log_rq_sz = ilog2(qp->rq.wqe_cnt); in mlx5vf_create_rc_qp()
1107 WARN_ON(qp->rq.pc - qp->rq.cc >= qp->rq.wqe_cnt); in mlx5vf_post_recv()
1108 ix = qp->rq.pc & (qp->rq.wqe_cnt - 1); in mlx5vf_post_recv()
1145 for (i = 0; i < qp->rq.wqe_cnt; i++) { in mlx5vf_activate_qp()
1508 ix = be16_to_cpu(cqe->wqe_counter) & (qp->rq.wqe_cnt - 1); in mlx5vf_rq_cqe()
/openbmc/linux/drivers/infiniband/hw/mthca/
H A Dmthca_srq.c56 __be16 wqe_cnt; member
68 __be16 wqe_cnt; member
/openbmc/linux/include/net/mana/
H A Dgdma.h94 u64 wqe_cnt : 8; member
/openbmc/linux/drivers/infiniband/hw/bnxt_re/
H A Dqplib_fp.h293 u64 wqe_cnt; member
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmlx4.h378 __be16 wqe_cnt; member

12