/Linux-v6.1/drivers/infiniband/hw/mthca/ |
D | mthca_srq.c | 220 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()
|
D | mthca_provider.h | 210 int max_gs; member 236 int max_gs; member
|
D | mthca_qp.c | 507 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 …]
|
D | mthca_provider.c | 545 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/ |
D | srq.c | 101 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()
|
D | qp.c | 314 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 …]
|
D | mlx4_ib.h | 167 int max_gs; member
|
/Linux-v6.1/drivers/infiniband/hw/mlx5/ |
D | srq.c | 219 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()
|
D | srq.h | 45 size_t max_gs; member
|
D | wr.c | 1091 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()
|
D | qp.c | 363 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()
|
D | mlx5_ib.h | 352 int max_gs; member
|
/Linux-v6.1/drivers/infiniband/hw/hns/ |
D | hns_roce_qp.c | 435 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()
|
D | hns_roce_srq.c | 228 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()
|
D | hns_roce_restrack.c | 94 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()
|
D | hns_roce_device.h | 330 u32 max_gs; member 435 int max_gs; member
|
D | hns_roce_hw_v2.c | 195 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/ |
D | pvrdma.h | 171 int max_gs; member
|
/Linux-v6.1/include/linux/mlx4/ |
D | device.h | 768 int max_gs; member
|