Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/infiniband/hw/mthca/
A 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()
A Dmthca_provider.h210 int max_gs; member
236 int max_gs; member
A 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()
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()
1873 if (unlikely(wr->num_sge > qp->rq.max_gs)) { in mthca_tavor_post_receive()
2082 if (wr->num_sge > qp->sq.max_gs) { in mthca_arbel_post_send()
2197 if (unlikely(wr->num_sge > qp->rq.max_gs)) { in mthca_arbel_post_receive()
[all …]
A 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.3-rc2/drivers/infiniband/hw/mlx4/
A 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()
A Dqp.c349 qp->rq.wqe_cnt = qp->rq.max_gs = 0; 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()
3578 if (unlikely(wr->num_sge > qp->sq.max_gs)) { in _mlx4_ib_post_send()
3848 int max_gs; in _mlx4_ib_post_recv() local
3852 max_gs = qp->rq.max_gs; in _mlx4_ib_post_recv()
3892 max_gs--; in _mlx4_ib_post_recv()
3898 if (i < max_gs) { in _mlx4_ib_post_recv()
[all …]
A Dmlx4_ib.h167 int max_gs; member
/linux-6.3-rc2/drivers/infiniband/hw/hns/
A Dhns_roce_qp.c435 hr_qp->rq.max_gs = 0; in set_rq_size()
458 hr_qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge) + in set_rq_size()
462 hr_qp->rq.max_gs); in set_rq_size()
467 cap->max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in set_rq_size()
555 hr_qp->sq.max_gs = max(1U, (hr_qp->sq.ext_sge_cnt + std_sge_num)); in set_ext_sge_param()
556 hr_qp->sq.max_gs = min(hr_qp->sq.max_gs, hr_dev->caps.max_sq_sg); in set_ext_sge_param()
560 hr_qp->sq.max_gs = max(1U, cap->max_send_sge); in set_ext_sge_param()
561 hr_qp->sq.max_gs = min(hr_qp->sq.max_gs, hr_dev->caps.max_sq_sg); in set_ext_sge_param()
562 hr_qp->sq.ext_sge_cnt = hr_qp->sq.max_gs; in set_ext_sge_param()
623 cap->max_send_sge = hr_qp->sq.max_gs; in set_user_sq_size()
[all …]
A 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()
A 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()
A Dhns_roce_device.h332 u32 max_gs; member
438 int max_gs; member
A 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()
850 max_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in hns_roce_v2_post_recv()
984 max_sge = srq->max_gs - srq->rsv_sge; in hns_roce_v2_post_srq_recv()
4361 hr_reg_write(context, QPC_RQWS, ilog2(hr_qp->rq.max_gs)); in modify_qp_reset_to_init()
5475 qp_attr->cap.max_recv_sge = hr_qp->rq.max_gs - hr_qp->rq.rsv_sge; in hns_roce_v2_query_qp()
5479 qp_attr->cap.max_send_sge = hr_qp->sq.max_gs; in hns_roce_v2_query_qp()
5698 srq->max_gs <= 0 ? 0 : fls(srq->max_gs - 1)); in hns_roce_v2_write_srqc()
5786 attr->max_sge = srq->max_gs - srq->rsv_sge; in hns_roce_v2_query_srq()
/linux-6.3-rc2/drivers/infiniband/hw/mlx5/
A 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()
A Dsrq.h45 size_t max_gs; member
A 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()
A Dqp.c440 qp->rq.max_gs = 0; in set_rq_size()
457 qp->rq.max_gs = in set_rq_size()
479 qp->rq.max_gs = in set_rq_size()
621 qp->sq.max_gs = get_send_sge(attr, wqe_size); in calc_sq_size()
622 if (qp->sq.max_gs < attr->cap.max_send_sge) in calc_sq_size()
625 attr->cap.max_send_sge = qp->sq.max_gs; in calc_sq_size()
5065 qp_attr->cap.max_recv_sge = qp->rq.max_gs; in mlx5_ib_query_qp()
5069 qp_attr->cap.max_send_sge = qp->sq.max_gs; in mlx5_ib_query_qp()
A Dmlx5_ib.h356 int max_gs; member
/linux-6.3-rc2/drivers/infiniband/hw/vmw_pvrdma/
A Dpvrdma.h171 int max_gs; member
/linux-6.3-rc2/include/linux/mlx4/
A Ddevice.h768 int max_gs; member

Completed in 97 milliseconds