/openbmc/linux/drivers/infiniband/hw/hns/ |
H A D | hns_roce_srq.c | 176 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 D | hns_roce_restrack.c | 71 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 D | hns_roce_qp.c | 450 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 D | hns_roce_hw_v2.c | 927 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 D | hns_roce_device.h | 338 u32 wqe_cnt; /* WQE num */ member 444 u32 wqe_cnt; member
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | qp.c | 445 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 D | srq.h | 21 u32 wqe_cnt; member
|
H A D | wr.h | 59 idx = (sq->cur_post + (wqe_sz >> 2)) & (sq->wqe_cnt - 1); in handle_post_send_edge()
|
H A D | cq.c | 197 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 D | wr.c | 716 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 D | mem.c | 118 idx = qp->sq.cur_post & (qp->sq.wqe_cnt - 1); in post_send_nop()
|
H A D | mlx5_ib.h | 380 int wqe_cnt; member
|
/openbmc/linux/drivers/infiniband/hw/mlx4/ |
H A D | qp.c | 349 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 D | cq.c | 621 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 D | mlx4_ib.h | 166 int wqe_cnt; member
|
/openbmc/linux/drivers/infiniband/hw/vmw_pvrdma/ |
H A D | pvrdma_qp.c | 140 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 D | pvrdma.h | 154 int wqe_cnt; member 169 int wqe_cnt; member
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
H A D | dr_send.c | 197 (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 D | dr_types.h | 1424 unsigned int wqe_cnt; member 1430 unsigned int wqe_cnt; member
|
/openbmc/linux/drivers/vfio/pci/mlx5/ |
H A D | cmd.h | 141 unsigned int wqe_cnt; member
|
H A D | cmd.c | 1038 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 D | mthca_srq.c | 56 __be16 wqe_cnt; member 68 __be16 wqe_cnt; member
|
/openbmc/linux/include/net/mana/ |
H A D | gdma.h | 94 u64 wqe_cnt : 8; member
|
/openbmc/linux/drivers/infiniband/hw/bnxt_re/ |
H A D | qplib_fp.h | 293 u64 wqe_cnt; member
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mlx4.h | 378 __be16 wqe_cnt; member
|