Searched refs:max_gs (Results 1 - 12 of 12) sorted by relevance
/linux-4.1.27/drivers/infiniband/hw/mlx4/ |
H A D | srq.c | 98 srq->msrq.max_gs = init_attr->attr.max_sge; mlx4_ib_create_srq() 102 srq->msrq.max_gs * mlx4_ib_create_srq() 267 srq_attr->max_sge = srq->msrq.max_gs; mlx4_ib_query_srq() 330 if (unlikely(wr->num_sge > srq->msrq.max_gs)) { mlx4_ib_post_srq_recv() 354 if (i < srq->msrq.max_gs) { mlx4_ib_post_srq_recv()
|
H A D | qp.c | 389 qp->rq.wqe_cnt = qp->rq.max_gs = 0; set_rq_size() 396 qp->rq.max_gs = roundup_pow_of_two(max(1U, cap->max_recv_sge)); set_rq_size() 397 qp->rq.wqe_shift = ilog2(qp->rq.max_gs * sizeof (struct mlx4_wqe_data_seg)); set_rq_size() 403 cap->max_recv_sge = qp->rq.max_gs; set_rq_size() 407 cap->max_recv_sge = min(qp->rq.max_gs, set_rq_size() 504 qp->sq.max_gs = (min(dev->dev->caps.max_sq_desc_sz, set_kernel_sq_size() 521 cap->max_send_sge = min(qp->sq.max_gs, set_kernel_sq_size() 2607 wr->num_sge > qp->sq.max_gs - (halign >> 4))) build_lso_seg() 2680 if (unlikely(wr->num_sge > qp->sq.max_gs)) { mlx4_ib_post_send() 2962 int max_gs; mlx4_ib_post_recv() local 2966 max_gs = qp->rq.max_gs; mlx4_ib_post_recv() 2985 if (unlikely(wr->num_sge > qp->rq.max_gs)) { mlx4_ib_post_recv() 3005 max_gs--; mlx4_ib_post_recv() 3011 if (i < max_gs) { mlx4_ib_post_recv() 3181 qp_attr->cap.max_recv_sge = qp->rq.max_gs; mlx4_ib_query_qp() 3185 qp_attr->cap.max_send_sge = qp->sq.max_gs; mlx4_ib_query_qp()
|
H A D | mlx4_ib.h | 158 int max_gs; member in struct:mlx4_ib_wq
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
H A D | srq.c | 265 srq->msrq.max_gs = init_attr->attr.max_sge; mlx5_ib_create_srq() 268 srq->msrq.max_gs * sizeof(struct mlx5_wqe_data_seg); mlx5_ib_create_srq() 275 mlx5_ib_dbg(dev, "desc_size 0x%x, req wr 0x%x, srq size 0x%x, max_gs 0x%x, max_avail_gather 0x%x\n", mlx5_ib_create_srq() 276 desc_size, init_attr->attr.max_wr, srq->msrq.max, srq->msrq.max_gs, mlx5_ib_create_srq() 387 srq_attr->max_sge = srq->msrq.max_gs; mlx5_ib_query_srq() 440 if (unlikely(wr->num_sge > srq->msrq.max_gs)) { mlx5_ib_post_srq_recv()
|
H A D | qp.c | 233 qp->rq.max_gs = 0; set_rq_size() 240 qp->rq.max_gs = (1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) - qp->wq_sig; set_rq_size() 256 qp->rq.max_gs = (1 << qp->rq.wqe_shift) / sizeof(struct mlx5_wqe_data_seg) - qp->wq_sig; set_rq_size() 367 qp->sq.max_gs = attr->cap.max_send_sge; calc_sq_size() 2624 if (unlikely(num_sge > qp->sq.max_gs)) { mlx5_ib_post_send() 2918 if (unlikely(wr->num_sge > qp->rq.max_gs)) { mlx5_ib_post_recv() 2931 if (i < qp->rq.max_gs) { mlx5_ib_post_recv() 2939 set_sig_seg(sig, (qp->rq.max_gs + 1) << 2); mlx5_ib_post_recv() 3101 qp_attr->cap.max_recv_sge = qp->rq.max_gs; mlx5_ib_query_qp() 3105 qp_attr->cap.max_send_sge = qp->sq.max_gs; mlx5_ib_query_qp()
|
H A D | mlx5_ib.h | 136 int max_gs; member in struct:mlx5_ib_wq
|
/linux-4.1.27/drivers/infiniband/hw/mthca/ |
H A D | mthca_srq.c | 212 srq->max_gs = attr->max_sge; mthca_alloc_srq() 222 srq->max_gs * sizeof (struct mthca_data_seg))); mthca_alloc_srq() 290 attr->max_sge = srq->max_gs; mthca_alloc_srq() 414 srq_attr->max_sge = srq->max_gs; mthca_query_srq() 514 if (unlikely(wr->num_sge > srq->max_gs)) { mthca_tavor_post_srq_recv() 526 if (i < srq->max_gs) mthca_tavor_post_srq_recv() 607 if (unlikely(wr->num_sge > srq->max_gs)) { mthca_arbel_post_srq_recv() 618 if (i < srq->max_gs) mthca_arbel_post_srq_recv()
|
H A D | mthca_qp.c | 500 qp_attr->cap.max_send_sge = qp->sq.max_gs; mthca_query_qp() 501 qp_attr->cap.max_recv_sge = qp->rq.max_gs; mthca_query_qp() 955 qp->sq.max_gs = min_t(int, dev->limits.max_sg, mthca_adjust_qp_caps() 957 qp->rq.max_gs = min_t(int, dev->limits.max_sg, mthca_adjust_qp_caps() 965 * rq.max_gs and sq.max_gs must all be assigned. 978 qp->rq.max_gs * sizeof (struct mthca_data_seg); mthca_alloc_wqe_buf() 987 size = qp->sq.max_gs * sizeof (struct mthca_data_seg); mthca_alloc_wqe_buf() 1195 qp->rq.max_gs * sizeof (struct mthca_data_seg)) / 16; mthca_alloc_qp_common() 1260 qp->rq.max_gs = cap->max_recv_sge; mthca_set_qp_size() 1261 qp->sq.max_gs = max_t(int, cap->max_send_sge, mthca_set_qp_size() 1729 if (wr->num_sge > qp->sq.max_gs) { mthca_tavor_post_send() 1855 if (unlikely(wr->num_sge > qp->rq.max_gs)) { mthca_tavor_post_receive() 2070 if (wr->num_sge > qp->sq.max_gs) { mthca_arbel_post_send() 2191 if (unlikely(wr->num_sge > qp->rq.max_gs)) { mthca_arbel_post_receive() 2202 if (i < qp->rq.max_gs) mthca_arbel_post_receive()
|
H A D | mthca_provider.h | 228 int max_gs; member in struct:mthca_srq 254 int max_gs; member in struct:mthca_wq
|
H A D | mthca_provider.c | 620 init_attr->cap.max_send_sge = qp->sq.max_gs; mthca_create_qp() 621 init_attr->cap.max_recv_sge = qp->rq.max_gs; mthca_create_qp()
|
/linux-4.1.27/include/linux/mlx5/ |
H A D | driver.h | 401 int max_gs; member in struct:mlx5_core_srq
|
/linux-4.1.27/include/linux/mlx4/ |
H A D | device.h | 732 int max_gs; member in struct:mlx4_srq
|
Completed in 270 milliseconds