/linux-6.3-rc2/drivers/scsi/qla2xxx/ |
A D | qla_bsg.c | 1025 uint32_t sg_cnt; in qla84xx_updatefw() local 1039 if (!sg_cnt) { in qla84xx_updatefw() 1045 if (sg_cnt != bsg_job->request_payload.sg_cnt) { in qla84xx_updatefw() 1049 bsg_job->request_payload.sg_cnt, sg_cnt); in qla84xx_updatefw() 1136 uint32_t sg_cnt; in qla84xx_mgmt_cmd() local 1162 if (!sg_cnt) { in qla84xx_mgmt_cmd() 1171 if (sg_cnt != bsg_job->reply_payload.sg_cnt) { in qla84xx_mgmt_cmd() 1175 bsg_job->reply_payload.sg_cnt, sg_cnt); in qla84xx_mgmt_cmd() 1213 if (!sg_cnt) { in qla84xx_mgmt_cmd() 1222 if (sg_cnt != bsg_job->request_payload.sg_cnt) { in qla84xx_mgmt_cmd() [all …]
|
/linux-6.3-rc2/drivers/infiniband/core/ |
A D | rw.c | 93 u32 sg_cnt, u32 offset) in rdma_rw_init_one_mr() argument 97 u32 nents = min(sg_cnt, pages_per_mr); in rdma_rw_init_one_mr() 174 sg_cnt -= nents; in rdma_rw_init_mr_wrs() 216 u32 nr_sge = min(sg_cnt, max_sge); in rdma_rw_init_map_wrs() 234 sg_cnt--; in rdma_rw_init_map_wrs() 299 .orig_nents = sg_cnt, in rdma_rw_ctx_init() 306 sg_cnt = sgt.nents; in rdma_rw_ctx_init() 319 sg_cnt--; in rdma_rw_ctx_init() 323 if (WARN_ON_ONCE(sg_cnt == 0)) in rdma_rw_ctx_init() 329 } else if (sg_cnt > 1) { in rdma_rw_ctx_init() [all …]
|
/linux-6.3-rc2/drivers/ufs/core/ |
A D | ufs_bsg.c | 58 job->request_payload.sg_cnt, descp, in ufs_bsg_alloc_desc_buffer() 75 int sg_cnt = 0; in ufs_bsg_exec_advanced_rpmb_req() local 109 if (!payload || !payload->payload_len || !payload->sg_cnt) in ufs_bsg_exec_advanced_rpmb_req() 112 sg_cnt = dma_map_sg(hba->host->dma_dev, payload->sg_list, payload->sg_cnt, dir); in ufs_bsg_exec_advanced_rpmb_req() 113 if (unlikely(!sg_cnt)) in ufs_bsg_exec_advanced_rpmb_req() 121 &rpmb_reply->ehs_rsp, sg_cnt, sg_list, dir); in ufs_bsg_exec_advanced_rpmb_req() 124 dma_unmap_sg(hba->host->dma_dev, payload->sg_list, payload->sg_cnt, dir); in ufs_bsg_exec_advanced_rpmb_req() 168 job->request_payload.sg_cnt, in ufs_bsg_request()
|
/linux-6.3-rc2/include/rdma/ |
A D | rw.h | 46 struct scatterlist *sg, u32 sg_cnt, u32 sg_offset, 49 u32 port_num, struct scatterlist *sg, u32 sg_cnt, 53 u32 port_num, struct scatterlist *sg, u32 sg_cnt, 58 u32 port_num, struct scatterlist *sg, u32 sg_cnt,
|
/linux-6.3-rc2/drivers/scsi/snic/ |
A D | snic_fwint.h | 94 __le16 sg_cnt; member 101 u16 sg_cnt, ulong ctx) in snic_io_hdr_enc() argument 108 hdr->sg_cnt = cpu_to_le16(sg_cnt); in snic_io_hdr_enc() 180 __le16 sg_cnt; member 254 __le16 sg_cnt; /* Number of SG Elements */ member
|
A D | snic_io.c | 220 snic_req_init(struct snic *snic, int sg_cnt) in snic_req_init() argument 225 typ = (sg_cnt <= SNIC_REQ_CACHE_DFLT_SGL) ? in snic_req_init() 246 if (sg_cnt == 0) in snic_req_init() 249 rqi->req_len += (sg_cnt * sizeof(struct snic_sg_desc)); in snic_req_init() 251 if (sg_cnt > atomic64_read(&snic->s_stats.io.max_sgl)) in snic_req_init() 252 atomic64_set(&snic->s_stats.io.max_sgl, sg_cnt); in snic_req_init() 254 SNIC_BUG_ON(sg_cnt > SNIC_MAX_SG_DESC_CNT); in snic_req_init() 255 atomic64_inc(&snic->s_stats.io.sgl_cnt[sg_cnt - 1]); in snic_req_init() 531 fn, line, req->hdr.cmnd_id, req->hdr.sg_cnt, req->hdr.status, in snic_dump_desc()
|
A D | snic_res.h | 16 u32 data_len, u16 sg_cnt, ulong sgl_addr, in snic_icmnd_init() argument 19 snic_io_hdr_enc(&req->hdr, SNIC_REQ_ICMND, 0, cmnd_id, host_id, sg_cnt, in snic_icmnd_init()
|
A D | snic_io.h | 96 snic_req_init(struct snic *, int sg_cnt);
|
A D | snic_scsi.c | 152 int sg_cnt) in snic_queue_icmnd_req() argument 162 if (sg_cnt) { in snic_queue_icmnd_req() 166 for_each_sg(scsi_sglist(sc), sg, sg_cnt, i) { in snic_queue_icmnd_req() 204 sg_cnt, in snic_queue_icmnd_req() 231 int sg_cnt = 0; in snic_issue_scsi_req() local 240 sg_cnt = scsi_dma_map(sc); in snic_issue_scsi_req() 241 if (sg_cnt < 0) { in snic_issue_scsi_req() 243 sc->cmnd[0], sg_cnt, CMD_STATE(sc)); in snic_issue_scsi_req() 251 rqi = snic_req_init(snic, sg_cnt); in snic_issue_scsi_req() 270 ret = snic_queue_icmnd_req(snic, rqi, sc, sg_cnt); in snic_issue_scsi_req() [all …]
|
/linux-6.3-rc2/drivers/staging/rts5208/ |
A D | rtsx_transport.c | 321 int sg_cnt, i, resid; in rtsx_transfer_sglist_adma_partial() local 356 sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial() 369 for (i = *index; i < sg_cnt; i++) { in rtsx_transfer_sglist_adma_partial() 395 if ((i == sg_cnt - 1) || !resid) in rtsx_transfer_sglist_adma_partial() 525 int sg_cnt, j; in rtsx_transfer_sglist_adma() local 528 sg_cnt = buf_cnt % (HOST_SG_TBL_BUF_LEN / 8); in rtsx_transfer_sglist_adma() 530 sg_cnt = HOST_SG_TBL_BUF_LEN / 8; in rtsx_transfer_sglist_adma() 533 for (j = 0; j < sg_cnt; j++) { in rtsx_transfer_sglist_adma() 542 if (j == (sg_cnt - 1)) in rtsx_transfer_sglist_adma() 583 sg_ptr += sg_cnt; in rtsx_transfer_sglist_adma()
|
/linux-6.3-rc2/drivers/nvme/target/ |
A D | io-cmd-bdev.c | 243 unsigned int sg_cnt = req->sg_cnt; in nvmet_bdev_execute_rw() local 257 if (!req->sg_cnt) { in nvmet_bdev_execute_rw() 282 bio = bio_alloc(req->ns->bdev, bio_max_segs(sg_cnt), opf, in nvmet_bdev_execute_rw() 294 for_each_sg(req->sg, sg, req->sg_cnt, i) { in nvmet_bdev_execute_rw() 308 bio = bio_alloc(req->ns->bdev, bio_max_segs(sg_cnt), in nvmet_bdev_execute_rw() 317 sg_cnt--; in nvmet_bdev_execute_rw()
|
A D | io-cmd-file.c | 122 ssize_t nr_bvec = req->sg_cnt; in nvmet_file_execute_io() 141 for_each_sg(req->sg, sg, req->sg_cnt, i) { in nvmet_file_execute_io() 220 ssize_t nr_bvec = req->sg_cnt; in nvmet_file_execute_rw() 225 if (!req->sg_cnt || !nr_bvec) { in nvmet_file_execute_rw()
|
A D | passthru.c | 266 if (req->sg_cnt > BIO_MAX_VECS) in nvmet_passthru_map_sg() 274 bio = bio_alloc(NULL, bio_max_segs(req->sg_cnt), req_op(rq), in nvmet_passthru_map_sg() 279 for_each_sg(req->sg, sg, req->sg_cnt, i) { in nvmet_passthru_map_sg() 287 blk_rq_bio_prep(rq, bio, req->sg_cnt); in nvmet_passthru_map_sg() 329 if (req->sg_cnt) { in nvmet_passthru_execute_cmd()
|
A D | zns.c | 544 int sg_cnt; in nvmet_bdev_execute_zone_append() local 550 if (!req->sg_cnt) { in nvmet_bdev_execute_zone_append() 572 bio = bio_alloc(req->ns->bdev, req->sg_cnt, opf, GFP_KERNEL); in nvmet_bdev_execute_zone_append() 581 for_each_sg(req->sg, sg, req->sg_cnt, sg_cnt) { in nvmet_bdev_execute_zone_append()
|
/linux-6.3-rc2/drivers/infiniband/ulp/rtrs/ |
A D | rtrs-clt.c | 391 if (req->sg_cnt) { in complete_rdma_req() 436 req->sg_cnt, req->dir); in complete_rdma_req() 958 req->sg_cnt = sg_cnt; in rtrs_clt_init_req() 1096 if (req->sg_cnt) { in rtrs_clt_write_req() 1160 if (req->sg_cnt) in rtrs_clt_write_req() 1191 if (req->sg_cnt) { in rtrs_clt_read_req() 1236 msg->sg_cnt = 0; in rtrs_clt_read_req() 1267 if (req->sg_cnt) in rtrs_clt_read_req() 2413 sg_cnt = le16_to_cpu(msg->sg_cnt); in process_info_rsp() 2414 if (!sg_cnt || (clt_path->queue_depth % sg_cnt)) { in process_info_rsp() [all …]
|
A D | rtrs-srv.c | 202 size_t sg_cnt; in rdma_write_sg() local 210 sg_cnt = le16_to_cpu(id->rd_msg->sg_cnt); in rdma_write_sg() 212 if (sg_cnt != 1) in rdma_write_sg() 351 size_t sg_cnt; in send_io_resp_imm() local 355 sg_cnt = le16_to_cpu(rd_msg->sg_cnt); in send_io_resp_imm() 358 if (sg_cnt) { in send_io_resp_imm() 516 if (status || id->dir == WRITE || !id->rd_msg->sg_cnt) in rtrs_srv_resp_rdma() 823 rsp->sg_cnt = cpu_to_le16(srv_path->mrs_num); in process_info_req() 1003 if (msg->sg_cnt != 1 && msg->sg_cnt != 0) { in process_read()
|
A D | rtrs-pri.h | 245 __le16 sg_cnt; member 273 __le16 sg_cnt; member
|
/linux-6.3-rc2/drivers/net/wireless/broadcom/brcm80211/brcmfmac/ |
A D | bcmsdh.c | 335 struct mmc_command *mc, int sg_cnt, int req_sz, in mmc_submit_one() argument 342 md->sg_len = sg_cnt; in mmc_submit_one() 382 unsigned int req_sz, func_blk_sz, sg_cnt, sg_data_sz, pkt_offset; in brcmf_sdiod_sglist_rw() local 446 sg_cnt = 0; in brcmf_sdiod_sglist_rw() 459 sg_cnt++; in brcmf_sdiod_sglist_rw() 464 if (req_sz >= max_req_sz || sg_cnt >= max_seg_cnt) { in brcmf_sdiod_sglist_rw() 466 sg_cnt, req_sz, func_blk_sz, in brcmf_sdiod_sglist_rw() 471 sg_cnt = 0; in brcmf_sdiod_sglist_rw() 476 if (sg_cnt) in brcmf_sdiod_sglist_rw() 478 sg_cnt, req_sz, func_blk_sz, in brcmf_sdiod_sglist_rw()
|
/linux-6.3-rc2/drivers/scsi/smartpqi/ |
A D | smartpqi_sas_transport.c | 495 job->reply_payload.sg_cnt, ¶meters->request, in pqi_build_csmi_smp_passthru_buffer() 506 job->reply_payload.sg_cnt, &smp_buf->parameters.response, in pqi_build_sas_smp_handler_reply() 543 if (job->request_payload.sg_cnt > 1 || job->reply_payload.sg_cnt > 1) { in pqi_sas_smp_handler()
|
/linux-6.3-rc2/drivers/i2c/busses/ |
A D | i2c-qup.c | 221 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 …]
|
/linux-6.3-rc2/drivers/scsi/mpi3mr/ |
A D | mpi3mr_app.c | 161 job->request_payload.sg_cnt, in mpi3mr_enable_logdata() 192 job->request_payload.sg_cnt, in mpi3mr_get_logdata() 227 job->request_payload.sg_cnt, in mpi3mr_bsg_pel_enable() 317 job->request_payload.sg_cnt, in mpi3mr_get_all_tgt_info() 354 job->request_payload.sg_cnt, in mpi3mr_get_all_tgt_info() 379 job->request_payload.sg_cnt, in mpi3mr_get_change_count() 412 job->request_payload.sg_cnt, in mpi3mr_bsg_adp_reset() 482 job->request_payload.sg_cnt, in mpi3mr_bsg_populate_adpinfo() 1003 job->request_payload.sg_cnt, in mpi3mr_bsg_process_mpt_cmds() 1380 job->reply_payload.sg_cnt, in mpi3mr_bsg_process_mpt_cmds()
|
/linux-6.3-rc2/include/linux/ |
A D | bsg-lib.h | 25 int sg_cnt; member
|
A D | nvme-fc-driver.h | 219 int sg_cnt; member 700 int sg_cnt; member
|
/linux-6.3-rc2/drivers/scsi/qla4xxx/ |
A D | ql4_bsg.c | 63 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()
|
/linux-6.3-rc2/drivers/scsi/libsas/ |
A D | sas_host_smp.c | 242 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()
|