Home
last modified time | relevance | path

Searched refs:sg_cnt (Results 1 – 25 of 63) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/infiniband/core/
Drw.c92 u32 sg_cnt, u32 offset) in rdma_rw_init_one_mr() argument
96 u32 nents = min(sg_cnt, pages_per_mr); in rdma_rw_init_one_mr()
124 u8 port_num, struct scatterlist *sg, u32 sg_cnt, u32 offset, in rdma_rw_init_mr_wrs() argument
132 ctx->nr_ops = DIV_ROUND_UP(sg_cnt, pages_per_mr); in rdma_rw_init_mr_wrs()
141 u32 nents = min(sg_cnt, pages_per_mr); in rdma_rw_init_mr_wrs()
143 ret = rdma_rw_init_one_mr(qp, port_num, reg, sg, sg_cnt, in rdma_rw_init_mr_wrs()
173 sg_cnt -= nents; in rdma_rw_init_mr_wrs()
195 struct scatterlist *sg, u32 sg_cnt, u32 offset, in rdma_rw_init_map_wrs() argument
203 ctx->nr_ops = DIV_ROUND_UP(sg_cnt, max_sge); in rdma_rw_init_map_wrs()
205 ctx->map.sges = sge = kcalloc(sg_cnt, sizeof(*sge), GFP_KERNEL); in rdma_rw_init_map_wrs()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dqla_bsg.c48 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_bsg_sp_free()
53 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_bsg_sp_free()
56 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_bsg_sp_free()
59 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_bsg_sp_free()
194 bsg_job->reply_payload.sg_cnt, ha->fcp_prio_cfg, in qla24xx_proc_fcp_prio_cfg_cmd()
221 bsg_job->request_payload.sg_cnt, ha->fcp_prio_cfg, in qla24xx_proc_fcp_prio_cfg_cmd()
298 if (bsg_job->request_payload.sg_cnt > 1 || in qla2x00_process_els()
299 bsg_job->reply_payload.sg_cnt > 1) { in qla2x00_process_els()
303 bsg_job->request_payload.sg_cnt, in qla2x00_process_els()
304 bsg_job->reply_payload.sg_cnt); in qla2x00_process_els()
[all …]
/kernel/linux/linux-5.10/include/rdma/
Drw.h46 struct scatterlist *sg, u32 sg_cnt, u32 sg_offset,
49 struct scatterlist *sg, u32 sg_cnt,
53 u8 port_num, struct scatterlist *sg, u32 sg_cnt,
58 u8 port_num, struct scatterlist *sg, u32 sg_cnt,
/kernel/linux/linux-5.10/drivers/scsi/snic/
Dsnic_fwint.h108 __le16 sg_cnt; member
115 u16 sg_cnt, ulong ctx) in snic_io_hdr_enc() argument
122 hdr->sg_cnt = cpu_to_le16(sg_cnt); in snic_io_hdr_enc()
194 __le16 sg_cnt; member
268 __le16 sg_cnt; /* Number of SG Elements */ member
Dsnic_io.c234 snic_req_init(struct snic *snic, int sg_cnt) in snic_req_init() argument
239 typ = (sg_cnt <= SNIC_REQ_CACHE_DFLT_SGL) ? in snic_req_init()
260 if (sg_cnt == 0) in snic_req_init()
263 rqi->req_len += (sg_cnt * sizeof(struct snic_sg_desc)); in snic_req_init()
265 if (sg_cnt > atomic64_read(&snic->s_stats.io.max_sgl)) in snic_req_init()
266 atomic64_set(&snic->s_stats.io.max_sgl, sg_cnt); in snic_req_init()
268 SNIC_BUG_ON(sg_cnt > SNIC_MAX_SG_DESC_CNT); in snic_req_init()
269 atomic64_inc(&snic->s_stats.io.sgl_cnt[sg_cnt - 1]); in snic_req_init()
545 fn, line, req->hdr.cmnd_id, req->hdr.sg_cnt, req->hdr.status, in snic_dump_desc()
Dsnic_res.h30 u32 data_len, u16 sg_cnt, ulong sgl_addr, in snic_icmnd_init() argument
33 snic_io_hdr_enc(&req->hdr, SNIC_REQ_ICMND, 0, cmnd_id, host_id, sg_cnt, in snic_icmnd_init()
Dsnic_io.h110 snic_req_init(struct snic *, int sg_cnt);
Dsnic_scsi.c166 int sg_cnt) in snic_queue_icmnd_req() argument
176 if (sg_cnt) { in snic_queue_icmnd_req()
180 for_each_sg(scsi_sglist(sc), sg, sg_cnt, i) { in snic_queue_icmnd_req()
218 sg_cnt, in snic_queue_icmnd_req()
245 int sg_cnt = 0; in snic_issue_scsi_req() local
254 sg_cnt = scsi_dma_map(sc); in snic_issue_scsi_req()
255 if (sg_cnt < 0) { in snic_issue_scsi_req()
257 sc->cmnd[0], sg_cnt, CMD_STATE(sc)); in snic_issue_scsi_req()
265 rqi = snic_req_init(snic, sg_cnt); in snic_issue_scsi_req()
284 ret = snic_queue_icmnd_req(snic, rqi, sc, sg_cnt); in snic_issue_scsi_req()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/rtrs/
Drtrs-clt.c396 if (req->sg_cnt) { in complete_rdma_req()
438 req->sg_cnt, req->dir); in complete_rdma_req()
885 struct scatterlist *sg, size_t sg_cnt, in rtrs_clt_init_req() argument
896 req->sg_cnt = sg_cnt; in rtrs_clt_init_req()
917 struct scatterlist *sg, size_t sg_cnt, in rtrs_clt_get_req() argument
924 sg, sg_cnt, data_len, dir); in rtrs_clt_get_req()
941 fail_req->sglist, fail_req->sg_cnt, in rtrs_clt_get_copy_req()
958 for_each_sg(req->sglist, sg, req->sg_cnt, i) { in rtrs_post_rdma_write_sg()
967 num_sge = 1 + req->sg_cnt; in rtrs_post_rdma_write_sg()
1002 if (req->sg_cnt) { in rtrs_clt_write_req()
[all …]
Drtrs-srv.c239 size_t sg_cnt; in rdma_write_sg() local
247 sg_cnt = le16_to_cpu(id->rd_msg->sg_cnt); in rdma_write_sg()
249 if (unlikely(sg_cnt != 1)) in rdma_write_sg()
389 size_t sg_cnt; in send_io_resp_imm() local
393 sg_cnt = le16_to_cpu(rd_msg->sg_cnt); in send_io_resp_imm()
396 if (likely(sg_cnt)) { in send_io_resp_imm()
553 if (status || id->dir == WRITE || !id->rd_msg->sg_cnt) in rtrs_srv_resp_rdma()
820 rsp->sg_cnt = cpu_to_le16(sess->mrs_num); in process_info_req()
999 if (unlikely(msg->sg_cnt != 1 && msg->sg_cnt != 0)) { in process_read()
Drtrs-pri.h242 __le16 sg_cnt; member
270 __le16 sg_cnt; member
Drtrs.h112 struct scatterlist *sg, unsigned int sg_cnt);
/kernel/linux/linux-5.10/drivers/staging/rts5208/
Drtsx_transport.c323 int sg_cnt, i, resid; in rtsx_transfer_sglist_adma_partial() local
358 sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial()
371 for (i = *index; i < sg_cnt; i++) { in rtsx_transfer_sglist_adma_partial()
397 if ((i == sg_cnt - 1) || !resid) in rtsx_transfer_sglist_adma_partial()
527 int sg_cnt, j; in rtsx_transfer_sglist_adma() local
530 sg_cnt = buf_cnt % (HOST_SG_TBL_BUF_LEN / 8); in rtsx_transfer_sglist_adma()
532 sg_cnt = HOST_SG_TBL_BUF_LEN / 8; in rtsx_transfer_sglist_adma()
535 for (j = 0; j < sg_cnt; j++) { in rtsx_transfer_sglist_adma()
544 if (j == (sg_cnt - 1)) in rtsx_transfer_sglist_adma()
585 sg_ptr += sg_cnt; in rtsx_transfer_sglist_adma()
/kernel/linux/linux-5.10/drivers/nvme/target/
Dio-cmd-bdev.c228 int sg_cnt = req->sg_cnt; in nvmet_bdev_execute_rw() local
241 if (!req->sg_cnt) { in nvmet_bdev_execute_rw()
265 bio = bio_alloc(GFP_KERNEL, min(sg_cnt, BIO_MAX_PAGES)); in nvmet_bdev_execute_rw()
278 for_each_sg(req->sg, sg, req->sg_cnt, i) { in nvmet_bdev_execute_rw()
292 bio = bio_alloc(GFP_KERNEL, min(sg_cnt, BIO_MAX_PAGES)); in nvmet_bdev_execute_rw()
302 sg_cnt--; in nvmet_bdev_execute_rw()
Dio-cmd-file.c148 ssize_t nr_bvec = req->sg_cnt; in nvmet_file_execute_io()
167 for_each_sg(req->sg, sg, req->sg_cnt, i) { in nvmet_file_execute_io()
245 ssize_t nr_bvec = req->sg_cnt; in nvmet_file_execute_rw()
250 if (!req->sg_cnt || !nr_bvec) { in nvmet_file_execute_rw()
Dpassthru.c195 if (req->sg_cnt > BIO_MAX_PAGES) in nvmet_passthru_map_sg()
203 bio = bio_alloc(GFP_KERNEL, req->sg_cnt); in nvmet_passthru_map_sg()
207 for_each_sg(req->sg, sg, req->sg_cnt, i) { in nvmet_passthru_map_sg()
253 if (req->sg_cnt) { in nvmet_passthru_execute_cmd()
/kernel/linux/linux-5.10/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dbcmsdh.c334 struct mmc_command *mc, int sg_cnt, int req_sz, in mmc_submit_one() argument
341 md->sg_len = sg_cnt; in mmc_submit_one()
381 unsigned int req_sz, func_blk_sz, sg_cnt, sg_data_sz, pkt_offset; in brcmf_sdiod_sglist_rw() local
445 sg_cnt = 0; in brcmf_sdiod_sglist_rw()
458 sg_cnt++; in brcmf_sdiod_sglist_rw()
463 if (req_sz >= max_req_sz || sg_cnt >= max_seg_cnt) { in brcmf_sdiod_sglist_rw()
465 sg_cnt, req_sz, func_blk_sz, in brcmf_sdiod_sglist_rw()
470 sg_cnt = 0; in brcmf_sdiod_sglist_rw()
475 if (sg_cnt) in brcmf_sdiod_sglist_rw()
477 sg_cnt, req_sz, func_blk_sz, in brcmf_sdiod_sglist_rw()
/kernel/linux/linux-5.10/drivers/scsi/smartpqi/
Dsmartpqi_sas_transport.c485 job->reply_payload.sg_cnt, &parameters->request, in pqi_build_csmi_smp_passthru_buffer()
496 job->reply_payload.sg_cnt, &smp_buf->parameters.response, in pqi_build_sas_smp_handler_reply()
533 if (job->request_payload.sg_cnt > 1 || job->reply_payload.sg_cnt > 1) { in pqi_sas_smp_handler()
/kernel/linux/linux-5.10/drivers/i2c/busses/
Di2c-qup.c221 unsigned int sg_cnt; member
669 ret = qup_sg_set_buf(&qup->brx.sg[qup->brx.sg_cnt++], in qup_i2c_bam_make_desc()
676 ret = qup_sg_set_buf(&qup->brx.sg[qup->brx.sg_cnt++], in qup_i2c_bam_make_desc()
686 ret = qup_sg_set_buf(&qup->btx.sg[qup->btx.sg_cnt++], in qup_i2c_bam_make_desc()
700 ret = qup_sg_set_buf(&qup->btx.sg[qup->btx.sg_cnt++], in qup_i2c_bam_make_desc()
707 ret = qup_sg_set_buf(&qup->btx.sg[qup->btx.sg_cnt++], in qup_i2c_bam_make_desc()
728 u32 tx_cnt = qup->btx.sg_cnt, rx_cnt = qup->brx.sg_cnt; in qup_i2c_bam_schedule_desc()
831 qup->btx.sg_cnt = 0; in qup_i2c_bam_clear_tag_buffers()
832 qup->brx.sg_cnt = 0; in qup_i2c_bam_clear_tag_buffers()
881 if (qup->btx.sg_cnt > qup->max_xfer_sg_len || in qup_i2c_bam_xfer()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/ufs/
Dufs_bsg.c71 job->request_payload.sg_cnt, descp, in ufs_bsg_alloc_desc_buffer()
149 job->request_payload.sg_cnt, in ufs_bsg_request()
/kernel/linux/linux-5.10/include/linux/
Dbsg-lib.h25 int sg_cnt; member
Dnvme-fc-driver.h218 int sg_cnt; member
688 int sg_cnt; member
/kernel/linux/linux-5.10/drivers/scsi/qla4xxx/
Dql4_bsg.c63 bsg_job->reply_payload.sg_cnt, in qla4xxx_read_flash()
123 bsg_job->request_payload.sg_cnt, flash, length); in qla4xxx_update_flash()
187 bsg_job->reply_payload.sg_cnt, in qla4xxx_get_acb_state()
258 bsg_job->reply_payload.sg_cnt, in qla4xxx_read_nvram()
322 bsg_job->request_payload.sg_cnt, nvram, len); in qla4xxx_update_nvram()
436 bsg_job->reply_payload.sg_cnt, in qla4xxx_bsg_get_acb()
/kernel/linux/linux-5.10/drivers/scsi/libsas/
Dsas_host_smp.c242 job->request_payload.sg_cnt, req_data, in sas_smp_host_handler()
344 job->reply_payload.sg_cnt, resp_data, in sas_smp_host_handler()
/kernel/linux/linux-5.10/drivers/target/tcm_fc/
Dtcm_fc.h118 u32 sg_cnt; /* No. of item in scatterlist */ member

123