Home
last modified time | relevance | path

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

/drivers/infiniband/hw/hns/
Dhns_roce_qp.c289 hr_qp->rq.max_gs = 0; in hns_roce_set_rq_size()
311 hr_qp->rq.max_gs = roundup_pow_of_two(max_cnt); in hns_roce_set_rq_size()
318 * hr_qp->rq.max_gs); in hns_roce_set_rq_size()
322 cap->max_recv_sge = hr_qp->rq.max_gs; in hns_roce_set_rq_size()
374 hr_qp->sq.max_gs = roundup_pow_of_two(max_cnt); in hns_roce_set_user_sq_size()
376 hr_qp->sq.max_gs = max_cnt; in hns_roce_set_user_sq_size()
378 if (hr_qp->sq.max_gs > 2) in hns_roce_set_user_sq_size()
380 (hr_qp->sq.max_gs - 2)); in hns_roce_set_user_sq_size()
382 if ((hr_qp->sq.max_gs > 2) && (hr_dev->pci_dev->revision == 0x20)) { in hns_roce_set_user_sq_size()
526 if (hr_qp->sq.max_gs > 2) { in set_extend_sge_param()
[all …]
Dhns_roce_srq.c381 srq->max_gs = srq_init_attr->attr.max_sge; in hns_roce_create_srq()
383 srq_desc_size = roundup_pow_of_two(max(16, 16 * srq->max_gs)); in hns_roce_create_srq()
Dhns_roce_hw_v2.c282 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in hns_roce_v2_post_send()
284 wr->num_sge, qp->sq.max_gs); in hns_roce_v2_post_send()
648 if (unlikely(wr->num_sge > hr_qp->rq.max_gs)) { in hns_roce_v2_post_recv()
650 wr->num_sge, hr_qp->rq.max_gs); in hns_roce_v2_post_recv()
665 if (i < hr_qp->rq.max_gs) { in hns_roce_v2_post_recv()
3229 hr_qp->sq.max_gs > in set_qpc_wqe_cnt()
3284 V2_QPC_BYTE_20_RQWS_S, ilog2(hr_qp->rq.max_gs)); in modify_qp_reset_to_init()
3741 hr_qp->sq.max_gs > HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE) ? in modify_qp_init_to_rtr()
3965 hr_qp->sq.max_gs > HNS_ROCE_V2_UC_RC_SGE_NUM_IN_WQE) ? in modify_qp_rtr_to_rts()
3971 ((ibqp->qp_type == IB_QPT_GSI) || hr_qp->sq.max_gs > in modify_qp_rtr_to_rts()
[all …]
Dhns_roce_hw_v1.c99 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in hns_roce_v1_post_send()
101 wr->num_sge, qp->sq.max_gs); in hns_roce_v1_post_send()
376 if (unlikely(wr->num_sge > hr_qp->rq.max_gs)) { in hns_roce_v1_post_recv()
378 wr->num_sge, hr_qp->rq.max_gs); in hns_roce_v1_post_recv()
3442 qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs; in hns_roce_v1_q_sqp()
3444 qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; in hns_roce_v1_q_sqp()
3578 qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs; in hns_roce_v1_q_qp()
3582 qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; in hns_roce_v1_q_qp()
Dhns_roce_device.h430 int max_gs; member
527 int max_gs; member
/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.h228 int max_gs; member
254 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()
972 qp->sq.max_gs = min_t(int, dev->limits.max_sg, in mthca_adjust_qp_caps()
974 qp->rq.max_gs = min_t(int, dev->limits.max_sg, in mthca_adjust_qp_caps()
996 qp->rq.max_gs * sizeof (struct mthca_data_seg); in mthca_alloc_wqe_buf()
1005 size = qp->sq.max_gs * sizeof (struct mthca_data_seg); in mthca_alloc_wqe_buf()
1214 qp->rq.max_gs * sizeof (struct mthca_data_seg)) / 16; in mthca_alloc_qp_common()
1279 qp->rq.max_gs = cap->max_recv_sge; in mthca_set_qp_size()
1280 qp->sq.max_gs = max_t(int, cap->max_send_sge, in mthca_set_qp_size()
1750 if (wr->num_sge > qp->sq.max_gs) { in mthca_tavor_post_send()
[all …]
Dmthca_provider.c574 init_attr->cap.max_send_sge = qp->sq.max_gs; in mthca_create_qp()
575 init_attr->cap.max_recv_sge = qp->rq.max_gs; in mthca_create_qp()
/drivers/infiniband/hw/mlx4/
Dsrq.c97 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx4_ib_create_srq()
101 srq->msrq.max_gs * in mlx4_ib_create_srq()
257 srq_attr->max_sge = srq->msrq.max_gs; in mlx4_ib_query_srq()
321 if (unlikely(wr->num_sge > srq->msrq.max_gs)) { in mlx4_ib_post_srq_recv()
345 if (i < srq->msrq.max_gs) { in mlx4_ib_post_srq_recv()
Dqp.c340 qp->rq.wqe_cnt = qp->rq.max_gs = 0; in set_rq_size()
352 qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge)); in set_rq_size()
353 wqe_size = qp->rq.max_gs * sizeof(struct mlx4_wqe_data_seg); in set_rq_size()
360 cap->max_recv_sge = qp->rq.max_gs; in set_rq_size()
364 cap->max_recv_sge = min(qp->rq.max_gs, in set_rq_size()
410 qp->sq.max_gs = in set_kernel_sq_size()
428 cap->max_send_sge = min(qp->sq.max_gs, in set_kernel_sq_size()
3493 wr->wr.num_sge > qp->sq.max_gs - (halign >> 4))) in build_lso_seg()
3585 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in _mlx4_ib_post_send()
3856 int max_gs; in _mlx4_ib_post_recv() local
[all …]
Dmlx4_ib.h172 int max_gs; member
/drivers/infiniband/hw/mlx5/
Dsrq.c240 srq->msrq.max_gs = init_attr->attr.max_sge; in mlx5_ib_create_srq()
243 srq->msrq.max_gs * sizeof(struct mlx5_wqe_data_seg); in mlx5_ib_create_srq()
244 if (desc_size == 0 || srq->msrq.max_gs > desc_size) in mlx5_ib_create_srq()
379 srq_attr->max_sge = srq->msrq.max_gs; in mlx5_ib_query_srq()
442 if (unlikely(wr->num_sge > srq->msrq.max_gs)) { in mlx5_ib_post_srq_recv()
Dsrq.h44 size_t max_gs; member
Dqp.c341 qp->rq.max_gs = 0; in set_rq_size()
354 qp->rq.max_gs = (1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) - qp->wq_sig; in set_rq_size()
371 qp->rq.max_gs = (1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) - qp->wq_sig; in set_rq_size()
510 qp->sq.max_gs = get_send_sge(attr, wqe_size); in calc_sq_size()
511 if (qp->sq.max_gs < attr->cap.max_send_sge) in calc_sq_size()
514 attr->cap.max_send_sge = qp->sq.max_gs; in calc_sq_size()
5013 if (unlikely(num_sge > qp->sq.max_gs)) { in _mlx5_ib_post_send()
5391 if (unlikely(wr->num_sge > qp->rq.max_gs)) { in _mlx5_ib_post_recv()
5404 if (i < qp->rq.max_gs) { in _mlx5_ib_post_recv()
5412 set_sig_seg(sig, (qp->rq.max_gs + 1) << 2); in _mlx5_ib_post_recv()
[all …]
Dmlx5_ib.h280 int max_gs; member
/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma.h171 int max_gs; member