Home
last modified time | relevance | path

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

/Linux-v6.1/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()
/Linux-v6.1/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()
3451 wr->wr.num_sge > qp->sq.max_gs - (halign >> 4))) in build_lso_seg()
3543 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in _mlx4_ib_post_send()
3813 int max_gs; in _mlx4_ib_post_recv() local
[all …]
Dmlx4_ib.h167 int max_gs; member
/Linux-v6.1/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()
4966 qp_attr->cap.max_recv_sge = qp->rq.max_gs; in mlx5_ib_query_qp()
4970 qp_attr->cap.max_send_sge = qp->sq.max_gs; in mlx5_ib_query_qp()
Dmlx5_ib.h352 int max_gs; member
/Linux-v6.1/drivers/infiniband/hw/hns/
Dhns_roce_qp.c435 hr_qp->rq.max_gs = 0; in set_rq_size()
459 hr_qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge) + in set_rq_size()
463 hr_qp->rq.max_gs); in set_rq_size()
474 cap->max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in set_rq_size()
483 return qp->sq.max_gs; in get_wqe_ext_sge_cnt()
485 if (qp->sq.max_gs > HNS_ROCE_SGE_IN_WQE) in get_wqe_ext_sge_cnt()
486 return qp->sq.max_gs - HNS_ROCE_SGE_IN_WQE; in get_wqe_ext_sge_cnt()
499 hr_qp->sq.max_gs = max(1U, cap->max_send_sge); in set_ext_sge_param()
640 cap->max_send_sge = hr_qp->sq.max_gs; in set_kernel_sq_size()
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.h330 u32 max_gs; member
435 int max_gs; member
Dhns_roce_hw_v2.c195 unsigned int ext_sge_sz = qp->sq.max_gs * HNS_ROCE_SGE_SIZE; in fill_ext_sge_inl_data()
731 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in hns_roce_v2_post_send()
733 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()
4307 hr_reg_write(context, QPC_RQWS, ilog2(hr_qp->rq.max_gs)); in modify_qp_reset_to_init()
5399 qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in hns_roce_v2_query_qp()
5403 qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; in hns_roce_v2_query_qp()
5622 srq->max_gs <= 0 ? 0 : fls(srq->max_gs - 1)); in hns_roce_v2_write_srqc()
5710 attr->max_sge = srq->max_gs - srq->rsv_sge; in hns_roce_v2_query_srq()
/Linux-v6.1/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma.h171 int max_gs; member
/Linux-v6.1/include/linux/mlx4/
Ddevice.h768 int max_gs; member