Home
last modified time | relevance | path

Searched refs:max_gs (Results 1 – 18 of 18) sorted by relevance

/drivers/infiniband/hw/mthca/
Dmthca_srq.c220 srq->max_gs = attr->max_sge; in mthca_alloc_srq()
230 srq->max_gs * sizeof (struct mthca_data_seg))); in mthca_alloc_srq()
298 attr->max_sge = srq->max_gs; in mthca_alloc_srq()
422 srq_attr->max_sge = srq->max_gs; in mthca_query_srq()
522 if (unlikely(wr->num_sge > srq->max_gs)) { in mthca_tavor_post_srq_recv()
534 if (i < srq->max_gs) in mthca_tavor_post_srq_recv()
609 if (unlikely(wr->num_sge > srq->max_gs)) { in mthca_arbel_post_srq_recv()
620 if (i < srq->max_gs) in mthca_arbel_post_srq_recv()
Dmthca_provider.h210 int max_gs; member
236 int max_gs; member
Dmthca_qp.c507 qp_attr->cap.max_send_sge = qp->sq.max_gs; in mthca_query_qp()
508 qp_attr->cap.max_recv_sge = qp->rq.max_gs; in mthca_query_qp()
975 qp->sq.max_gs = min_t(int, dev->limits.max_sg, in mthca_adjust_qp_caps()
977 qp->rq.max_gs = min_t(int, dev->limits.max_sg, in mthca_adjust_qp_caps()
999 qp->rq.max_gs * sizeof (struct mthca_data_seg); in mthca_alloc_wqe_buf()
1008 size = qp->sq.max_gs * sizeof (struct mthca_data_seg); in mthca_alloc_wqe_buf()
1217 qp->rq.max_gs * sizeof (struct mthca_data_seg)) / 16; in mthca_alloc_qp_common()
1282 qp->rq.max_gs = cap->max_recv_sge; in mthca_set_qp_size()
1283 qp->sq.max_gs = max_t(int, cap->max_send_sge, in mthca_set_qp_size()
1752 if (wr->num_sge > qp->sq.max_gs) { in mthca_tavor_post_send()
[all …]
Dmthca_provider.c545 init_attr->cap.max_send_sge = qp->sq.max_gs; in mthca_create_qp()
546 init_attr->cap.max_recv_sge = qp->rq.max_gs; in mthca_create_qp()
/drivers/infiniband/hw/mlx4/
Dsrq.c101 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx4_ib_create_srq()
105 srq->msrq.max_gs * in mlx4_ib_create_srq()
263 srq_attr->max_sge = srq->msrq.max_gs; in mlx4_ib_query_srq()
327 if (unlikely(wr->num_sge > srq->msrq.max_gs)) { in mlx4_ib_post_srq_recv()
351 if (i < srq->msrq.max_gs) { in mlx4_ib_post_srq_recv()
Dqp.c314 qp->rq.wqe_cnt = qp->rq.max_gs = 0; in set_rq_size()
326 qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge)); in set_rq_size()
327 wqe_size = qp->rq.max_gs * sizeof(struct mlx4_wqe_data_seg); in set_rq_size()
334 cap->max_recv_sge = qp->rq.max_gs; in set_rq_size()
338 cap->max_recv_sge = min(qp->rq.max_gs, in set_rq_size()
384 qp->sq.max_gs = in set_kernel_sq_size()
402 cap->max_send_sge = min(qp->sq.max_gs, in set_kernel_sq_size()
3455 wr->wr.num_sge > qp->sq.max_gs - (halign >> 4))) in build_lso_seg()
3547 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in _mlx4_ib_post_send()
3817 int max_gs; in _mlx4_ib_post_recv() local
[all …]
Dmlx4_ib.h167 int max_gs; member
/drivers/infiniband/hw/hns/
Dhns_roce_qp.c451 hr_qp->rq.max_gs = 0; in set_rq_size()
475 hr_qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge) + in set_rq_size()
479 hr_qp->rq.max_gs); in set_rq_size()
490 cap->max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in set_rq_size()
578 hr_qp->sq.max_gs = max(1U, (hr_qp->sq.ext_sge_cnt + std_sge_num)); in set_ext_sge_param()
579 hr_qp->sq.max_gs = min(hr_qp->sq.max_gs, hr_dev->caps.max_sq_sg); in set_ext_sge_param()
583 hr_qp->sq.max_gs = max(1U, cap->max_send_sge); in set_ext_sge_param()
584 hr_qp->sq.max_gs = min(hr_qp->sq.max_gs, hr_dev->caps.max_sq_sg); in set_ext_sge_param()
585 hr_qp->sq.ext_sge_cnt = hr_qp->sq.max_gs; in set_ext_sge_param()
646 cap->max_send_sge = hr_qp->sq.max_gs; in set_user_sq_size()
[all …]
Dhns_roce_srq.c228 srq->max_gs))); in alloc_srq_wqe_buf()
308 srq->max_gs = roundup_pow_of_two(attr->max_sge + srq->rsv_sge); in set_srq_basic_param()
311 attr->max_sge = srq->max_gs - srq->rsv_sge; in set_srq_basic_param()
Dhns_roce_restrack.c94 if (rdma_nl_put_driver_u32_hex(msg, "sq_max_gs", hr_qp->sq.max_gs)) in hns_roce_fill_res_qp_entry()
100 if (rdma_nl_put_driver_u32_hex(msg, "rq_max_gs", hr_qp->rq.max_gs)) in hns_roce_fill_res_qp_entry()
Dhns_roce_device.h332 u32 max_gs; member
438 int max_gs; member
Dhns_roce_hw_v2.c730 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in hns_roce_v2_post_send()
732 wr->num_sge, qp->sq.max_gs); in hns_roce_v2_post_send()
863 max_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in hns_roce_v2_post_recv()
997 max_sge = srq->max_gs - srq->rsv_sge; in hns_roce_v2_post_srq_recv()
4429 hr_reg_write(context, QPC_RQWS, ilog2(hr_qp->rq.max_gs)); in modify_qp_reset_to_init()
5543 qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in hns_roce_v2_query_qp()
5547 qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; in hns_roce_v2_query_qp()
5766 srq->max_gs <= 0 ? 0 : fls(srq->max_gs - 1)); in hns_roce_v2_write_srqc()
5854 attr->max_sge = srq->max_gs - srq->rsv_sge; in hns_roce_v2_query_srq()
/drivers/infiniband/hw/mlx5/
Dsrq.c219 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx5_ib_create_srq()
222 srq->msrq.max_gs * sizeof(struct mlx5_wqe_data_seg); in mlx5_ib_create_srq()
223 if (desc_size == 0 || srq->msrq.max_gs > desc_size) in mlx5_ib_create_srq()
364 srq_attr->max_sge = srq->msrq.max_gs; in mlx5_ib_query_srq()
424 if (unlikely(wr->num_sge > srq->msrq.max_gs)) { in mlx5_ib_post_srq_recv()
Dsrq.h45 size_t max_gs; member
Dwr.c1091 if (unlikely(num_sge > qp->sq.max_gs)) { in mlx5_ib_post_send()
1201 static void set_sig_seg(struct mlx5_rwqe_sig *sig, int max_gs) in set_sig_seg() argument
1203 sig->signature = calc_sig(sig, (max_gs + 1) << 2); in set_sig_seg()
1240 if (unlikely(wr->num_sge > qp->rq.max_gs)) { in mlx5_ib_post_recv()
1253 if (i < qp->rq.max_gs) { in mlx5_ib_post_recv()
1261 set_sig_seg(sig, qp->rq.max_gs); in mlx5_ib_post_recv()
Dqp.c363 qp->rq.max_gs = 0; in set_rq_size()
380 qp->rq.max_gs = in set_rq_size()
402 qp->rq.max_gs = in set_rq_size()
544 qp->sq.max_gs = get_send_sge(attr, wqe_size); in calc_sq_size()
545 if (qp->sq.max_gs < attr->cap.max_send_sge) in calc_sq_size()
548 attr->cap.max_send_sge = qp->sq.max_gs; in calc_sq_size()
5017 qp_attr->cap.max_recv_sge = qp->rq.max_gs; in mlx5_ib_query_qp()
5021 qp_attr->cap.max_send_sge = qp->sq.max_gs; in mlx5_ib_query_qp()
Dmlx5_ib.h363 int max_gs; member
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma.h171 int max_gs; member