Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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()
712 if (unlikely(wr->num_sge > qp->sq.max_sg || wr->num_sge < 0)) { in pvrdma_post_send()
920 if (unlikely(wr->num_sge > qp->rq.max_sg || in pvrdma_post_recv()
Dpvrdma.h156 int max_sg; member
/kernel/linux/linux-5.10/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.c100 props->max_send_sge = mdev->limits.max_sg; in mthca_query_device()
101 props->max_recv_sge = mdev->limits.max_sg; in mthca_query_device()
102 props->max_sge_rd = mdev->limits.max_sg; in mthca_query_device()
Dmthca_qp.c972 qp->sq.max_gs = min_t(int, dev->limits.max_sg, in mthca_adjust_qp_caps()
974 qp->rq.max_gs = min_t(int, dev->limits.max_sg, in mthca_adjust_qp_caps()
1257 cap->max_send_sge > dev->limits.max_sg || in mthca_set_qp_size()
1258 cap->max_recv_sge > dev->limits.max_sg || in mthca_set_qp_size()
1266 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
/kernel/linux/linux-5.10/drivers/scsi/
Dgdth.c178 static u32 max_rq=0, max_index=0, max_sg=0; variable
1832 u16 cpcount,i, max_sg = scsi_sg_count(scp); in gdth_copy_internal_data() local
1841 scsi_for_each_sg(scp, sl, max_sg, i) { in gdth_copy_internal_data()
2092 if (max_sg < (u32)sgcnt) { in gdth_fill_cache_cmd()
2093 max_sg = (u32)sgcnt; in gdth_fill_cache_cmd()
2094 TRACE3(("GDT: max_sg = %d\n",max_sg)); in gdth_fill_cache_cmd()
2251 if (max_sg < sgcnt) { in gdth_fill_raw_cmd()
2252 max_sg = sgcnt; in gdth_fill_raw_cmd()
Dmvumi.c2393 unsigned int max_sg = (mhba->ib_max_size + 4 - in mvumi_io_attach() local
2399 host->sg_tablesize = mhba->max_sge > max_sg ? max_sg : mhba->max_sge; in mvumi_io_attach()
Dst.c3898 static struct st_buffer *new_tape_buffer(int need_dma, int max_sg) in new_tape_buffer() argument
3908 tb->use_sg = max_sg; in new_tape_buffer()
3912 tb->reserved_pages = kcalloc(max_sg, sizeof(struct page *), in new_tape_buffer()