Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/infiniband/hw/vmw_pvrdma/
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()
912 if (unlikely(wr->num_sge > qp->rq.max_sg || in pvrdma_post_recv()
Dpvrdma.h156 int max_sg; member
/linux-6.1.9/drivers/infiniband/hw/mthca/
Dmthca_cmd.h154 int max_sg; member
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()
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()
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()
Dmthca_main.c207 mdev->limits.max_sg = min_t(int, dev_lim->max_sg, in mthca_dev_lim()
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()
Dmthca_dev.h142 int max_sg; member
/linux-6.1.9/drivers/scsi/
Dmvumi.c2390 unsigned int max_sg = (mhba->ib_max_size + 4 - in mvumi_io_attach() local
2396 host->sg_tablesize = mhba->max_sge > max_sg ? max_sg : mhba->max_sge; in mvumi_io_attach()
Dst.c3869 static struct st_buffer *new_tape_buffer(int max_sg) in new_tape_buffer() argument
3879 tb->use_sg = max_sg; in new_tape_buffer()
3882 tb->reserved_pages = kcalloc(max_sg, sizeof(struct page *), in new_tape_buffer()