Home
last modified time | relevance | path

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

/linux-6.6.21/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-6.6.21/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.c349 qp->rq.wqe_cnt = qp->rq.max_gs = 0; in set_rq_size()
361 qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge)); in set_rq_size()
362 wqe_size = qp->rq.max_gs * sizeof(struct mlx4_wqe_data_seg); in set_rq_size()
369 cap->max_recv_sge = qp->rq.max_gs; in set_rq_size()
373 cap->max_recv_sge = min(qp->rq.max_gs, in set_rq_size()
419 qp->sq.max_gs = in set_kernel_sq_size()
437 cap->max_send_sge = min(qp->sq.max_gs, in set_kernel_sq_size()
3490 wr->wr.num_sge > qp->sq.max_gs - (halign >> 4))) in build_lso_seg()
3582 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in _mlx4_ib_post_send()
3852 int max_gs; in _mlx4_ib_post_recv() local
[all …]
Dmlx4_ib.h168 int max_gs; member
/linux-6.6.21/drivers/infiniband/hw/hns/
Dhns_roce_qp.c451 hr_qp->rq.max_gs = 0; in set_rq_size()
474 hr_qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge) + in set_rq_size()
478 hr_qp->rq.max_gs); in set_rq_size()
483 cap->max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in set_rq_size()
571 hr_qp->sq.max_gs = max(1U, (hr_qp->sq.ext_sge_cnt + std_sge_num)); in set_ext_sge_param()
572 hr_qp->sq.max_gs = min(hr_qp->sq.max_gs, hr_dev->caps.max_sq_sg); in set_ext_sge_param()
576 hr_qp->sq.max_gs = max(1U, cap->max_send_sge); in set_ext_sge_param()
577 hr_qp->sq.max_gs = min(hr_qp->sq.max_gs, hr_dev->caps.max_sq_sg); in set_ext_sge_param()
578 hr_qp->sq.ext_sge_cnt = hr_qp->sq.max_gs; in set_ext_sge_param()
639 cap->max_send_sge = hr_qp->sq.max_gs; in set_user_sq_size()
[all …]
Dhns_roce_restrack.c74 if (rdma_nl_put_driver_u32_hex(msg, "sq_max_gs", hr_qp->sq.max_gs)) in hns_roce_fill_res_qp_entry()
80 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_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_device.h333 u32 max_gs; member
439 int max_gs; member
Dhns_roce_hw_v2.c723 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in hns_roce_v2_post_send()
725 wr->num_sge, qp->sq.max_gs); in hns_roce_v2_post_send()
833 max_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in hns_roce_v2_post_recv()
967 max_sge = srq->max_gs - srq->rsv_sge; in hns_roce_v2_post_srq_recv()
4252 hr_reg_write(context, QPC_RQWS, ilog2(hr_qp->rq.max_gs)); in modify_qp_reset_to_init()
5386 qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in hns_roce_v2_query_qp()
5390 qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; in hns_roce_v2_query_qp()
5609 srq->max_gs <= 0 ? 0 : fls(srq->max_gs - 1)); in hns_roce_v2_write_srqc()
5697 attr->max_sge = srq->max_gs - srq->rsv_sge; in hns_roce_v2_query_srq()
/linux-6.6.21/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.c444 qp->rq.max_gs = 0; in set_rq_size()
461 qp->rq.max_gs = in set_rq_size()
483 qp->rq.max_gs = in set_rq_size()
625 qp->sq.max_gs = get_send_sge(attr, wqe_size); in calc_sq_size()
626 if (qp->sq.max_gs < attr->cap.max_send_sge) in calc_sq_size()
629 attr->cap.max_send_sge = qp->sq.max_gs; in calc_sq_size()
5103 qp_attr->cap.max_recv_sge = qp->rq.max_gs; in mlx5_ib_query_qp()
5107 qp_attr->cap.max_send_sge = qp->sq.max_gs; in mlx5_ib_query_qp()
Dmlx5_ib.h369 int max_gs; member
/linux-6.6.21/drivers/infiniband/hw/vmw_pvrdma/
Dpvrdma.h171 int max_gs; member
/linux-6.6.21/include/linux/mlx4/
Ddevice.h769 int max_gs; member