/linux/drivers/scsi/qla2xxx/ |
A D | qla_bsg.c | 1023 uint32_t sg_cnt; in qla84xx_updatefw() local 1037 if (!sg_cnt) { in qla84xx_updatefw() 1043 if (sg_cnt != bsg_job->request_payload.sg_cnt) { in qla84xx_updatefw() 1047 bsg_job->request_payload.sg_cnt, sg_cnt); in qla84xx_updatefw() 1134 uint32_t sg_cnt; in qla84xx_mgmt_cmd() local 1160 if (!sg_cnt) { in qla84xx_mgmt_cmd() 1169 if (sg_cnt != bsg_job->reply_payload.sg_cnt) { in qla84xx_mgmt_cmd() 1173 bsg_job->reply_payload.sg_cnt, sg_cnt); in qla84xx_mgmt_cmd() 1211 if (!sg_cnt) { in qla84xx_mgmt_cmd() 1220 if (sg_cnt != bsg_job->request_payload.sg_cnt) { in qla84xx_mgmt_cmd() [all …]
|
/linux/drivers/infiniband/core/ |
A D | rw.c | 92 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() 173 sg_cnt -= nents; in rdma_rw_init_mr_wrs() 215 u32 nr_sge = min(sg_cnt, max_sge); in rdma_rw_init_map_wrs() 233 sg_cnt--; in rdma_rw_init_map_wrs() 325 .orig_nents = sg_cnt, in rdma_rw_ctx_init() 332 sg_cnt = sgt.nents; in rdma_rw_ctx_init() 345 sg_cnt--; in rdma_rw_ctx_init() 349 if (WARN_ON_ONCE(sg_cnt == 0)) in rdma_rw_ctx_init() 355 } else if (sg_cnt > 1) { in rdma_rw_ctx_init() [all …]
|
/linux/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/drivers/scsi/snic/ |
A D | snic_fwint.h | 108 __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
|
A D | snic_io.c | 234 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()
|
A D | snic_res.h | 30 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()
|
A D | snic_scsi.c | 166 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 …]
|
A D | snic_io.h | 110 snic_req_init(struct snic *, int sg_cnt);
|
/linux/drivers/infiniband/ulp/rtrs/ |
A D | rtrs-clt.c | 392 if (req->sg_cnt) { in complete_rdma_req() 958 req->sg_cnt = sg_cnt; in rtrs_clt_init_req() 1067 if (nr < req->sg_cnt) in rtrs_map_sg_fr() 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() 2400 sg_cnt = le16_to_cpu(msg->sg_cnt); in process_info_rsp() 2401 if (!sg_cnt || (sess->queue_depth % sg_cnt)) { in process_info_rsp() [all …]
|
A D | rtrs-srv.c | 208 size_t sg_cnt; in rdma_write_sg() local 216 sg_cnt = le16_to_cpu(id->rd_msg->sg_cnt); in rdma_write_sg() 218 if (sg_cnt != 1) in rdma_write_sg() 357 size_t sg_cnt; in send_io_resp_imm() local 361 sg_cnt = le16_to_cpu(rd_msg->sg_cnt); in send_io_resp_imm() 364 if (sg_cnt) { in send_io_resp_imm() 520 if (status || id->dir == WRITE || !id->rd_msg->sg_cnt) in rtrs_srv_resp_rdma() 833 rsp->sg_cnt = cpu_to_le16(sess->mrs_num); in process_info_req() 1012 if (msg->sg_cnt != 1 && msg->sg_cnt != 0) { in process_read()
|
A D | rtrs-pri.h | 248 __le16 sg_cnt; member 276 __le16 sg_cnt; member
|
/linux/drivers/staging/rts5208/ |
A D | rtsx_transport.c | 323 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()
|
/linux/drivers/nvme/target/ |
A D | io-cmd-bdev.c | 235 unsigned int sg_cnt = req->sg_cnt; in nvmet_bdev_execute_rw() local 248 if (!req->sg_cnt) { in nvmet_bdev_execute_rw() 272 bio = bio_alloc(GFP_KERNEL, bio_max_segs(sg_cnt)); in nvmet_bdev_execute_rw() 285 for_each_sg(req->sg, sg, req->sg_cnt, i) { in nvmet_bdev_execute_rw() 299 bio = bio_alloc(GFP_KERNEL, bio_max_segs(sg_cnt)); in nvmet_bdev_execute_rw() 309 sg_cnt--; in nvmet_bdev_execute_rw()
|
A D | passthru.c | 204 if (req->sg_cnt > BIO_MAX_VECS) in nvmet_passthru_map_sg() 211 bio = bio_alloc(GFP_KERNEL, bio_max_segs(req->sg_cnt)); in nvmet_passthru_map_sg() 216 for_each_sg(req->sg, sg, req->sg_cnt, i) { in nvmet_passthru_map_sg() 224 blk_rq_bio_prep(rq, bio, req->sg_cnt); in nvmet_passthru_map_sg() 265 if (req->sg_cnt) { in nvmet_passthru_execute_cmd()
|
A D | io-cmd-file.c | 148 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()
|
A D | zns.c | 529 int sg_cnt; in nvmet_bdev_execute_zone_append() local 535 if (!req->sg_cnt) { in nvmet_bdev_execute_zone_append() 556 bio = bio_alloc(GFP_KERNEL, req->sg_cnt); in nvmet_bdev_execute_zone_append() 567 for_each_sg(req->sg, sg, req->sg_cnt, sg_cnt) { in nvmet_bdev_execute_zone_append()
|
A D | core.c | 92 if (sg_pcopy_from_buffer(req->sg, req->sg_cnt, buf, len, off) != len) { in nvmet_copy_to_sgl() 101 if (sg_pcopy_to_buffer(req->sg, req->sg_cnt, buf, len, off) != len) { in nvmet_copy_from_sgl() 110 if (sg_zero_buffer(req->sg, req->sg_cnt, len, off) != len) { in nvmet_zero_sgl() 915 req->sg_cnt = 0; in nvmet_req_init() 1011 req->sg = pci_p2pmem_alloc_sgl(p2p_dev, &req->sg_cnt, in nvmet_req_alloc_p2pmem_sgls() 1048 &req->sg_cnt); in nvmet_req_alloc_sgls() 1082 req->sg_cnt = 0; in nvmet_req_free_sgls()
|
/linux/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/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/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/drivers/scsi/ufs/ |
A D | ufs_bsg.c | 71 job->request_payload.sg_cnt, descp, in ufs_bsg_alloc_desc_buffer() 149 job->request_payload.sg_cnt, in ufs_bsg_request()
|
/linux/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/include/linux/ |
A D | nvme-fc-driver.h | 219 int sg_cnt; member 691 int sg_cnt; member
|
A D | bsg-lib.h | 26 int sg_cnt; member
|
/linux/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()
|