Home
last modified time | relevance | path

Searched refs:max_sg (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/infiniband/hw/vmw_pvrdma/
H A Dpvrdma_qp.c141 qp->rq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_recv_sge)); in pvrdma_set_rq_size()
145 req_cap->max_recv_sge = qp->rq.max_sg; in pvrdma_set_rq_size()
149 qp->rq.max_sg); in pvrdma_set_rq_size()
166 qp->sq.max_sg = roundup_pow_of_two(max(1U, req_cap->max_send_sge)); in pvrdma_set_sq_size()
170 req_cap->max_send_sge = qp->sq.max_sg; in pvrdma_set_sq_size()
174 qp->sq.max_sg); in pvrdma_set_sq_size()
704 if (unlikely(wr->num_sge > qp->sq.max_sg || wr->num_sge < 0)) { in pvrdma_post_send()
904 if (unlikely(wr->num_sge > qp->rq.max_sg || in pvrdma_post_recv()
H A Dpvrdma.h156 int max_sg; member
/linux/drivers/infiniband/hw/mthca/
H A Dmthca_srq.c645 return dev->limits.max_sg; in mthca_max_srq_sge()
661 return min_t(int, dev->limits.max_sg, in mthca_max_srq_sge()
H A Dmthca_cmd.h154 int max_sg; member
H A Dmthca_provider.c92 props->max_send_sge = mdev->limits.max_sg; in mthca_query_device()
93 props->max_recv_sge = mdev->limits.max_sg; in mthca_query_device()
94 props->max_sge_rd = mdev->limits.max_sg; in mthca_query_device()
H A Dmthca_qp.c975 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()
1260 cap->max_send_sge > dev->limits.max_sg || in mthca_set_qp_size()
1261 cap->max_recv_sge > dev->limits.max_sg || in mthca_set_qp_size()
1269 if (qp->transport == MLX && cap->max_send_sge + 2 > dev->limits.max_sg) in mthca_set_qp_size()
H A Dmthca_main.c207 mdev->limits.max_sg = min_t(int, dev_lim->max_sg, in mthca_dev_lim()
H A Dmthca_cmd.c1134 dev_lim->max_sg = field; in mthca_QUERY_DEV_LIM()
1179 dev_lim->max_sg = min_t(int, field, dev_lim->max_sg); in mthca_QUERY_DEV_LIM()
H A Dmthca_dev.h142 int max_sg; member
/linux/drivers/scsi/
H A Dmvumi.c2390 unsigned int max_sg = (mhba->ib_max_size - in mvumi_io_attach() local
2396 host->sg_tablesize = mhba->max_sge > max_sg ? max_sg : mhba->max_sge; in mvumi_io_attach()
H A Dst.c3871 static struct st_buffer *new_tape_buffer(int max_sg) in new_tape_buffer() argument
3881 tb->use_sg = max_sg; in new_tape_buffer()
3884 tb->reserved_pages = kcalloc(max_sg, sizeof(struct page *), in new_tape_buffer()