Home
last modified time | relevance | path

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

12

/drivers/scsi/qla2xxx/
Dqla_bsg.c42 bsg_job->request_payload.sg_cnt, DMA_TO_DEVICE); in qla2x00_bsg_sp_free()
47 bsg_job->reply_payload.sg_cnt, DMA_FROM_DEVICE); in qla2x00_bsg_sp_free()
50 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()
184 bsg_job->reply_payload.sg_cnt, ha->fcp_prio_cfg, in qla24xx_proc_fcp_prio_cfg_cmd()
211 bsg_job->request_payload.sg_cnt, ha->fcp_prio_cfg, in qla24xx_proc_fcp_prio_cfg_cmd()
287 if (bsg_job->request_payload.sg_cnt > 1 || in qla2x00_process_els()
288 bsg_job->reply_payload.sg_cnt > 1) { in qla2x00_process_els()
292 bsg_job->request_payload.sg_cnt, in qla2x00_process_els()
293 bsg_job->reply_payload.sg_cnt); in qla2x00_process_els()
[all …]
Dqla_iocb.c2208 els_iocb->tx_dsd_count = cpu_to_le16(bsg_job->request_payload.sg_cnt); in qla24xx_els_iocb()
2211 els_iocb->rx_dsd_count = cpu_to_le16(bsg_job->reply_payload.sg_cnt); in qla24xx_els_iocb()
2266 cpu_to_le16(bsg_job->request_payload.sg_cnt); in qla2x00_ct_iocb()
2268 cpu_to_le16(bsg_job->request_payload.sg_cnt + 1); in qla2x00_ct_iocb()
2289 tot_dsds = bsg_job->reply_payload.sg_cnt; in qla2x00_ct_iocb()
2344 cpu_to_le16(bsg_job->request_payload.sg_cnt); in qla24xx_ct_iocb()
2347 cpu_to_le16(bsg_job->reply_payload.sg_cnt); in qla24xx_ct_iocb()
2362 tot_dsds = bsg_job->reply_payload.sg_cnt; in qla24xx_ct_iocb()
2846 cmd_pkt->wr_dseg_count = cpu_to_le16(bsg_job->request_payload.sg_cnt); in qla25xx_build_bidir_iocb()
2847 cmd_pkt->rd_dseg_count = cpu_to_le16(bsg_job->reply_payload.sg_cnt); in qla25xx_build_bidir_iocb()
[all …]
Dqla_target.c1795 BUG_ON(cmd->sg_cnt == 0); in qlt_pci_map_calc_cnt()
1799 cmd->sg_cnt, cmd->dma_data_direction); in qlt_pci_map_calc_cnt()
1847 0, prm->cmd->sg_cnt); in qlt_pci_map_calc_cnt()
1858 pci_unmap_sg(ha->pdev, cmd->sg, cmd->sg_cnt, cmd->dma_data_direction); in qlt_unmap_sg()
2233 if (qlt_has_data(cmd) && (cmd->sg_cnt > 1) && in qlt_check_srr_debug()
2239 leave = qlt_srr_random() % cmd->sg_cnt; in qlt_check_srr_debug()
2248 cmd->bufflen, cmd->sg_cnt); in qlt_check_srr_debug()
2251 cmd->sg_cnt = leave; in qlt_check_srr_debug()
2693 1 : 0, cmd->bufflen, cmd->sg_cnt, cmd->dma_data_direction, in qlt_xmit_response()
4577 cmd, cmd->sg, cmd->sg_cnt, cmd->dma_data_direction); in qlt_set_data_offset()
[all …]
Dtcm_qla2xxx.c384 cmd->sg_cnt = se_cmd->t_data_nents; in tcm_qla2xxx_write_pending()
586 cmd->sg_cnt = se_cmd->t_data_nents; in tcm_qla2xxx_queue_data_in()
610 cmd->sg_cnt = 0; in tcm_qla2xxx_queue_status()
/drivers/infiniband/core/
Drw.c70 u32 sg_cnt, u32 offset) in rdma_rw_init_one_mr() argument
73 u32 nents = min(sg_cnt, pages_per_mr); in rdma_rw_init_one_mr()
108 u8 port_num, struct scatterlist *sg, u32 sg_cnt, u32 offset, in rdma_rw_init_mr_wrs() argument
115 ctx->nr_ops = (sg_cnt + pages_per_mr - 1) / pages_per_mr; in rdma_rw_init_mr_wrs()
124 u32 nents = min(sg_cnt, pages_per_mr); in rdma_rw_init_mr_wrs()
126 ret = rdma_rw_init_one_mr(qp, port_num, reg, sg, sg_cnt, in rdma_rw_init_mr_wrs()
156 sg_cnt -= nents; in rdma_rw_init_mr_wrs()
178 struct scatterlist *sg, u32 sg_cnt, u32 offset, in rdma_rw_init_map_wrs() argument
187 ctx->nr_ops = DIV_ROUND_UP(sg_cnt, max_sge); in rdma_rw_init_map_wrs()
189 ctx->map.sges = sge = kcalloc(sg_cnt, sizeof(*sge), GFP_KERNEL); in rdma_rw_init_map_wrs()
[all …]
/drivers/nvme/target/
Dio-cmd.c47 int sg_cnt = req->sg_cnt; in nvmet_execute_rw() local
54 if (!req->sg_cnt) { in nvmet_execute_rw()
79 for_each_sg(req->sg, sg, req->sg_cnt, i) { in nvmet_execute_rw()
84 bio = bio_alloc(GFP_KERNEL, min(sg_cnt, BIO_MAX_PAGES)); in nvmet_execute_rw()
94 sg_cnt--; in nvmet_execute_rw()
Drdma.c483 rsp->req.sg_cnt, nvmet_data_dir(&rsp->req)); in nvmet_rdma_release_rsp()
487 nvmet_rdma_free_sgl(rsp->req.sg, rsp->req.sg_cnt); in nvmet_rdma_release_rsp()
566 rsp->req.sg_cnt, nvmet_data_dir(&rsp->req)); in nvmet_rdma_read_data_done()
588 rsp->req.sg_cnt = 1; in nvmet_rdma_use_inline_sg()
628 status = nvmet_rdma_alloc_sgl(&rsp->req.sg, &rsp->req.sg_cnt, in nvmet_rdma_map_sgl_keyed()
634 rsp->req.sg, rsp->req.sg_cnt, 0, addr, key, in nvmet_rdma_map_sgl_keyed()
Dcore.c45 if (sg_pcopy_from_buffer(req->sg, req->sg_cnt, buf, len, off) != len) in nvmet_copy_to_sgl()
52 if (sg_pcopy_to_buffer(req->sg, req->sg_cnt, buf, len, off) != len) in nvmet_copy_from_sgl()
485 req->sg_cnt = 0; in nvmet_req_init()
Dloop.c192 iod->req.sg_cnt = blk_rq_map_sg(req->q, req, iod->sg_table.sgl); in nvme_loop_queue_rq()
193 BUG_ON(iod->req.sg_cnt > req->nr_phys_segments); in nvme_loop_queue_rq()
Dnvmet.h222 int sg_cnt; member
/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.c233 snic_req_init(struct snic *snic, int sg_cnt) in snic_req_init() argument
238 typ = (sg_cnt <= SNIC_REQ_CACHE_DFLT_SGL) ? in snic_req_init()
259 if (sg_cnt == 0) in snic_req_init()
262 rqi->req_len += (sg_cnt * sizeof(struct snic_sg_desc)); in snic_req_init()
264 if (sg_cnt > atomic64_read(&snic->s_stats.io.max_sgl)) in snic_req_init()
265 atomic64_set(&snic->s_stats.io.max_sgl, sg_cnt); in snic_req_init()
267 SNIC_BUG_ON(sg_cnt > SNIC_MAX_SG_DESC_CNT); in snic_req_init()
268 atomic64_inc(&snic->s_stats.io.sgl_cnt[sg_cnt - 1]); in snic_req_init()
544 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_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()
219 sg_cnt, in snic_queue_icmnd_req()
246 int sg_cnt = 0; in snic_issue_scsi_req() local
255 sg_cnt = scsi_dma_map(sc); in snic_issue_scsi_req()
256 if (sg_cnt < 0) { in snic_issue_scsi_req()
258 sc->cmnd[0], sg_cnt, CMD_STATE(sc)); in snic_issue_scsi_req()
266 rqi = snic_req_init(snic, sg_cnt); in snic_issue_scsi_req()
285 ret = snic_queue_icmnd_req(snic, rqi, sc, sg_cnt); in snic_issue_scsi_req()
[all …]
Dsnic_io.h110 snic_req_init(struct snic *, int sg_cnt);
Dsnic_disc.c68 req->u.rpt_tgts.sg_cnt = cpu_to_le16(1); in snic_report_tgt_init()
/drivers/staging/rts5208/
Drtsx_transport.c336 int sg_cnt, i, resid; in rtsx_transfer_sglist_adma_partial() local
371 sg_cnt = dma_map_sg(&rtsx->pci->dev, sg, num_sg, dma_dir); in rtsx_transfer_sglist_adma_partial()
384 for (i = *index; i < sg_cnt; i++) { in rtsx_transfer_sglist_adma_partial()
409 if ((i == (sg_cnt - 1)) || !resid) in rtsx_transfer_sglist_adma_partial()
541 int sg_cnt, j; in rtsx_transfer_sglist_adma() local
544 sg_cnt = buf_cnt % (HOST_SG_TBL_BUF_LEN / 8); in rtsx_transfer_sglist_adma()
546 sg_cnt = HOST_SG_TBL_BUF_LEN / 8; in rtsx_transfer_sglist_adma()
549 for (j = 0; j < sg_cnt; j++) { in rtsx_transfer_sglist_adma()
557 if (j == (sg_cnt - 1)) in rtsx_transfer_sglist_adma()
600 sg_ptr += sg_cnt; in rtsx_transfer_sglist_adma()
/drivers/scsi/qla4xxx/
Dql4_bsg.c64 bsg_job->reply_payload.sg_cnt, in qla4xxx_read_flash()
124 bsg_job->request_payload.sg_cnt, flash, length); in qla4xxx_update_flash()
188 bsg_job->reply_payload.sg_cnt, in qla4xxx_get_acb_state()
259 bsg_job->reply_payload.sg_cnt, in qla4xxx_read_nvram()
323 bsg_job->request_payload.sg_cnt, nvram, len); in qla4xxx_update_nvram()
437 bsg_job->reply_payload.sg_cnt, in qla4xxx_bsg_get_acb()
/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dbcmsdh.c511 unsigned int req_sz, func_blk_sz, sg_cnt, sg_data_sz, pkt_offset; in brcmf_sdiod_sglist_rw() local
579 sg_cnt = 0; in brcmf_sdiod_sglist_rw()
592 sg_cnt++; in brcmf_sdiod_sglist_rw()
601 if (req_sz >= max_req_sz || sg_cnt >= max_seg_cnt) in brcmf_sdiod_sglist_rw()
604 seg_sz -= sg_cnt; in brcmf_sdiod_sglist_rw()
613 mmc_dat.sg_len = sg_cnt; in brcmf_sdiod_sglist_rw()
/drivers/target/tcm_fc/
Dtcm_fc.h127 u32 sg_cnt; /* No. of item in scatterlist */ member
/drivers/mmc/host/
Dwmt-sdmmc.c574 int sg_cnt; in wmt_mci_request() local
623 sg_cnt = dma_map_sg(mmc_dev(mmc), req->data->sg, in wmt_mci_request()
629 sg_cnt = dma_map_sg(mmc_dev(mmc), req->data->sg, in wmt_mci_request()
639 for_each_sg(req->data->sg, sg, sg_cnt, i) { in wmt_mci_request()
/drivers/scsi/bfa/
Dbfad_im.c1229 int sg_cnt = 0; in bfad_im_queuecommand_lck() local
1248 sg_cnt = scsi_dma_map(cmnd); in bfad_im_queuecommand_lck()
1249 if (sg_cnt < 0) in bfad_im_queuecommand_lck()
1271 itnim->bfa_itnim, sg_cnt); in bfad_im_queuecommand_lck()
/drivers/infiniband/ulp/srpt/
Dib_srpt.c807 unsigned *sg_cnt) in srpt_alloc_rw_ctxs() argument
855 *sg_cnt += ctx->nents; in srpt_alloc_rw_ctxs()
925 struct scatterlist **sg, unsigned *sg_cnt, u64 *data_len) in srpt_get_desc_tbl() argument
952 return srpt_alloc_rw_ctxs(ioctx, db, 1, sg, sg_cnt); in srpt_get_desc_tbl()
972 sg, sg_cnt); in srpt_get_desc_tbl()
1336 unsigned sg_cnt = 0; in srpt_handle_cmd() local
1363 rc = srpt_get_desc_tbl(send_ioctx, srp_cmd, &dir, &sg, &sg_cnt, in srpt_handle_cmd()
1377 sg, sg_cnt, NULL, 0, NULL, 0); in srpt_handle_cmd()
/drivers/scsi/lpfc/
Dlpfc_bsg.c235 sg_miter_start(&miter, bsg_buffers->sg_list, bsg_buffers->sg_cnt, in lpfc_bsg_copy_data()
614 job->reply_payload.sg_cnt, in lpfc_bsg_rport_els_cmp()
713 job->request_payload.sg_cnt, in lpfc_bsg_rport_els()
1336 job->request_payload.sg_cnt, in lpfc_bsg_hba_get_event()
3077 job->request_payload.sg_cnt, in lpfc_bsg_diag_loopback_run()
3242 job->reply_payload.sg_cnt, in lpfc_bsg_diag_loopback_run()
3370 job->reply_payload.sg_cnt, in lpfc_bsg_issue_mbox_cmpl()
3564 job->reply_payload.sg_cnt, in lpfc_bsg_issue_mbox_ext_handle_job()
4312 job->reply_payload.sg_cnt, in lpfc_bsg_read_ebuf_get()
4364 job->request_payload.sg_cnt, in lpfc_bsg_write_ebuf_set()
[all …]
/drivers/scsi/libfc/
Dfc_lport.c1983 job->request_payload.sg_cnt, in fc_lport_els_request()
2005 info->nents = job->reply_payload.sg_cnt; in fc_lport_els_request()
2044 job->request_payload.sg_cnt, in fc_lport_ct_request()
2066 info->nents = job->reply_payload.sg_cnt; in fc_lport_ct_request()

12