Home
last modified time | relevance | path

Searched refs:scsi_sg_count (Results 1 – 74 of 74) sorted by relevance

/linux-4.4.14/drivers/scsi/
Dscsi_lib_dma.c26 if (scsi_sg_count(cmd)) { in scsi_dma_map()
29 nseg = dma_map_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_dma_map()
44 if (scsi_sg_count(cmd)) { in scsi_dma_unmap()
47 dma_unmap_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_dma_unmap()
Deata.c1617 if (!scsi_sg_count(SCpnt)) { in map_dma()
1622 count = pci_map_sg(ha->pdev, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in map_dma()
1633 scsi_sg_count(SCpnt) * in map_dma()
1636 cpp->data_len = H2DEV((scsi_sg_count(SCpnt) * sizeof(struct sg_list))); in map_dma()
1653 if (scsi_sg_count(SCpnt)) in unmap_dma()
1654 pci_unmap_sg(ha->pdev, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in unmap_dma()
1680 if (scsi_sg_count(SCpnt)) in sync_dma()
1682 scsi_sg_count(SCpnt), pci_dir); in sync_dma()
Dfdomain.c1431 scsi_sg_count(SCpnt), in fdomain_16x0_queue_lck()
1442 if (scsi_sg_count(current_SC)) { in fdomain_16x0_queue_lck()
1446 current_SC->SCp.buffers_residual = scsi_sg_count(current_SC) - 1; in fdomain_16x0_queue_lck()
1498 scsi_sg_count(SCpnt), in DEF_SCSI_QCMD()
Dmac53c94.c81 scsi_sg_count(cmd), scsi_bufflen(cmd), scsi_sglist(cmd)); in mac53c94_queue_lck()
267 && (scsi_sg_count(cmd) > 0 || scsi_bufflen(cmd))) { in mac53c94_interrupt()
D3w-9xxx.c222 return scsi_sg_count(cmd) != 1 || in twa_command_mapped()
1347 if ((scsi_sg_count(cmd) <= 1) && (full_command_packet->command.newcommand.status == 0)) { in twa_interrupt()
1848 if (scsi_sg_count(srb)) { in DEF_SCSI_QCMD()
1871 …gl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[re… in DEF_SCSI_QCMD()
1901 tw_dev->sgl_entries = scsi_sg_count(tw_dev->srb[request_id]); in DEF_SCSI_QCMD()
1925 if (scsi_sg_count(cmd) == 1) { in twa_scsiop_execute_scsi_complete()
DNCR53c406a.c879 scsi_for_each_sg(current_SC, sg, scsi_sg_count(current_SC), i) { in NCR53c406a_intr()
900 scsi_for_each_sg(current_SC, sg, scsi_sg_count(current_SC), i) { in NCR53c406a_intr()
Dsym53c416.c421 sg, scsi_sg_count(current_command), i) { in sym53c416_intr_handle()
444 sg, scsi_sg_count(current_command), i) { in sym53c416_intr_handle()
Ddc395x.c1011 cmd->bufflen, scsi_sglist(cmd), scsi_sg_count(cmd), in build_srb()
1023 reqlen, scsi_sglist(cmd), scsi_sg_count(cmd), in build_srb()
2148 diff && scsi_sg_count(srb->cmd)) in data_out_phase0()
2438 if (scsi_sg_count(srb->cmd)) { /* with S/G */ in data_io_transfer()
3273 if (scsi_sg_count(cmd) && dir != PCI_DMA_NONE) { in pci_unmap_srb()
3281 scsi_sg_count(cmd), scsi_bufflen(cmd)); in pci_unmap_srb()
3323 srb, scsi_sg_count(cmd), srb->sg_index, srb->sg_count, in srb_done()
3453 if (dir != PCI_DMA_NONE && scsi_sg_count(cmd)) in srb_done()
3455 scsi_sg_count(cmd), dir); in srb_done()
3469 base = scsi_kmap_atomic_sg(sg, scsi_sg_count(cmd), &offset, &len); in srb_done()
D3w-sas.c339 if (scsi_sg_count(srb)) { in twl_scsiop_execute_scsi()
348 …gl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[re… in twl_scsiop_execute_scsi()
364 tw_dev->sgl_entries = scsi_sg_count(srb); in twl_scsiop_execute_scsi()
1219 if ((scsi_sg_count(cmd) <= 1) && (full_command_packet->command.newcommand.status == 0)) { in twl_interrupt()
Dultrastor.c689 max = scsi_sg_count(SCpnt); in build_sg_list()
739 if (scsi_sg_count(SCpnt)) { in ultrastor_queuecommand_lck()
Dqlogicfas408.c314 scsi_for_each_sg(cmd, sg, scsi_sg_count(cmd), i) { in ql_pcmd()
Dxen-scsifront.c386 scsi_for_each_sg(sc, sg, scsi_sg_count(sc), i) in map_data_for_request()
439 scsi_for_each_sg(sc, sg, scsi_sg_count(sc), i) { in map_data_for_request()
Dmvumi.c210 unsigned int sgnum = scsi_sg_count(scmd); in mvumi_make_sgl()
1354 if (scsi_sg_count(scmd)) { in mvumi_complete_cmd()
1357 scsi_sg_count(scmd), in mvumi_complete_cmd()
2174 if (scsi_sg_count(scmd)) { in mvumi_timed_out()
2177 scsi_sg_count(scmd), in mvumi_timed_out()
Du14-34f.c1140 cpp->use_sg = scsi_sg_count(SCpnt); in map_dma()
1186 if (scsi_sg_count(SCpnt)) in sync_dma()
1188 scsi_sg_count(SCpnt), pci_dir); in sync_dma()
Dvmw_pvscsi.c366 count = scsi_sg_count(cmd); in pvscsi_map_buffers()
399 unsigned count = scsi_sg_count(cmd); in pvscsi_unmap_buffers()
Dqlogicpti.c899 scsi_sg_count(Cmnd), in load_cmd()
1179 scsi_sglist(Cmnd), scsi_sg_count(Cmnd), in qlogicpti_intr_handler()
Dsr.c454 int i, size = 0, sg_count = scsi_sg_count(SCpnt); in sr_init_command()
Dppa.c746 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in ppa_engine()
Dimm.c831 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in imm_engine()
Deata_pio.c373 cmd->SCp.buffers_residual = scsi_sg_count(cmd); in eata_pio_queue_lck()
Daha1542.c402 sg_count = scsi_sg_count(cmd); in aha1542_queuecommand()
D53c700.c1256 scsi_for_each_sg(SCp, sg, scsi_sg_count(SCp) + 1, i) { in process_script_interrupt()
1834 if(!scsi_sg_count(SCp) && !scsi_bufflen(SCp) && in NCR_700_queuecommand_lck()
Dstorvsc_drv.c1447 sg_count = scsi_sg_count(scmnd); in storvsc_queuecommand()
Dwd7000.c1108 nseg = scsi_sg_count(SCpnt); in wd7000_queuecommand_lck()
Dvirtio_scsi.c538 BUG_ON(scsi_sg_count(sc) > shost->sg_tablesize); in virtscsi_queuecommand()
Dgdth.c2281 u16 cpcount,i, max_sg = scsi_sg_count(scp); in gdth_copy_internal_data()
2520 sgcnt = pci_map_sg(ha->pdev, scsi_sglist(scp), scsi_sg_count(scp), in gdth_fill_cache_cmd()
2695 sgcnt = pci_map_sg(ha->pdev, scsi_sglist(scp), scsi_sg_count(scp), in gdth_fill_raw_cmd()
3317 pci_unmap_sg(ha->pdev, scsi_sglist(scp), scsi_sg_count(scp), in gdth_sync_event()
Dhpsa.c2439 cp->Header.SGList = scsi_sg_count(cmd); in complete_scsi_command()
4186 BUG_ON(scsi_sg_count(cmd) > h->maxsgentries); in hpsa_scatter_gather()
4205 last_sg = scsi_sg_count(cmd) - 1; in hpsa_scatter_gather()
4307 if (scsi_sg_count(cmd) > h->ioaccel_maxsg) { in hpsa_scsi_ioaccel1_queue_command()
4465 BUG_ON(scsi_sg_count(cmd) > h->maxsgentries); in hpsa_scsi_ioaccel2_queue_command()
Din2000.c373 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in in2000_queuecommand_lck()
Dwd33c93.c412 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in wd33c93_queuecommand_lck()
DNCR5380.c289 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in initialize_SCp()
D3w-xxxx.c1755 tw_dev->sgl_entries = scsi_sg_count(tw_dev->srb[request_id]); in tw_scsiop_read_write()
Datari_NCR5380.c463 cmd->SCp.buffers_residual = scsi_sg_count(cmd) - 1; in initialize_SCp()
Dmesh.c421 scsi_sg_count(cmd), scsi_sglist(cmd), scsi_bufflen(cmd)); in mesh_start_cmd()
Dnsp32.c920 scsi_sg_count(SCpnt), scsi_sglist(SCpnt), scsi_bufflen(SCpnt)); in nsp32_queuecommand_lck()
Dscsi_debug.c2718 BUG_ON(scsi_sg_count(SCpnt) == 0); in prot_verify_write()
2724 sg_miter_start(&diter, scsi_sglist(SCpnt), scsi_sg_count(SCpnt), in prot_verify_write()
Desp_scsi.c378 spriv->u.num_sg = esp->ops->map_sg(esp, sg, scsi_sg_count(cmd), dir); in esp_map_dma()
Dips.c1573 scsi_for_each_sg(SC, sg, scsi_sg_count(SC), i) in ips_make_passthru()
3192 for (; sg_dma_index < scsi_sg_count(scb->scsi_cmd); in ips_done()
Dinitio.c2750 if (scsi_sg_count(cmnd)) { in i91u_unmap_scb()
Daha152x.c962 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; in aha152x_internal_queue()
Dmegaraid.c1742 if (scsi_sg_count(cmd) == 1 && !adapter->has_64bit_addr) { in mega_build_sglist()
Dqla1280.c4049 printk(" seg_cnt =%d\n", scsi_sg_count(cmd)); in __qla1280_print_scsi_cmd()
Dncr53c8xx.c7650 int use_sg = scsi_sg_count(cmd); in ncr_scatter()
/linux-4.4.14/include/scsi/
Dscsi_cmnd.h171 static inline unsigned scsi_sg_count(struct scsi_cmnd *cmd) in scsi_sg_count() function
219 return sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_from_buffer()
226 return sg_copy_to_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_to_buffer()
/linux-4.4.14/drivers/scsi/arm/
Dscsi.h90 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; in init_SCp()
101 unsigned i, sg_count = scsi_sg_count(SCpnt); in init_SCp()
/linux-4.4.14/include/trace/events/
Dscsi.h227 __entry->data_sglen = scsi_sg_count(cmd);
271 __entry->data_sglen = scsi_sg_count(cmd);
316 __entry->data_sglen = scsi_sg_count(cmd);
/linux-4.4.14/arch/ia64/hp/sim/
Dsimscsi.c133 scsi_for_each_sg(sc, sl, scsi_sg_count(sc), i) { in simscsi_sg_readwrite()
139 scsi_sg_count(sc) - i, sl->length); in simscsi_sg_readwrite()
/linux-4.4.14/drivers/staging/unisys/visorhba/
Dvisorhba_main.c499 if (scsi_sg_count(scsicmd) > MAX_PHYS_INFO) { in visorhba_queue_command_lck()
508 for_each_sg(sglist, sg, scsi_sg_count(scsicmd), i) { in visorhba_queue_command_lck()
512 cmdrsp->scsi.guest_phys_entries = scsi_sg_count(scsicmd); in visorhba_queue_command_lck()
820 if (scsi_sg_count(scsicmd) == 0) { in do_scsi_nolinuxstat()
827 for (i = 0; i < scsi_sg_count(scsicmd); i++) { in do_scsi_nolinuxstat()
/linux-4.4.14/drivers/usb/storage/
Dprotocol.c141 unsigned int nents = scsi_sg_count(srb); in usb_stor_access_xfer_buf()
Dshuttle_usbat.c1320 scsi_bufflen(srb), scsi_sg_count(srb), 1); in usbat_hp8200e_handle_read10()
1613 len, scsi_sg_count(srb), 10); in usbat_hp8200e_transport()
1680 scsi_sg_count(srb)); in usbat_hp8200e_transport()
Dtransport.c470 scsi_sg_count(srb), scsi_bufflen(srb), in usb_stor_bulk_srb()
/linux-4.4.14/drivers/usb/image/
Dmicrotek.c484 scsi_sg_count(context->srb) > 1 ? in mts_command_done()
499 scsi_sg_count(context->srb)); in mts_do_sg()
512 context->fragment + 1 == scsi_sg_count(context->srb) ? in mts_do_sg()
/linux-4.4.14/drivers/scsi/pcmcia/
Dsym53c500_cs.c430 scsi_for_each_sg(curSC, sg, scsi_sg_count(curSC), i) { in SYM53C500_intr()
449 scsi_for_each_sg(curSC, sg, scsi_sg_count(curSC), i) { in SYM53C500_intr()
Dnsp_cs.c199 scsi_bufflen(SCpnt), scsi_sg_count(SCpnt)); in nsp_queuecommand_lck()
243 SCpnt->SCp.buffers_residual = scsi_sg_count(SCpnt) - 1; in nsp_queuecommand_lck()
/linux-4.4.14/drivers/infiniband/ulp/iser/
Diser_initiator.c396 if (scsi_sg_count(sc)) { /* using a scatter list */ in iser_send_command()
398 data_buf->size = scsi_sg_count(sc); in iser_send_command()
/linux-4.4.14/drivers/scsi/qla2xxx/
Dqla_iocb.c362 if (scsi_sg_count(cmd)) { in qla2x00_start_scsi()
364 scsi_sg_count(cmd), cmd->sc_data_direction); in qla2x00_start_scsi()
1469 if (scsi_sg_count(cmd)) { in qla24xx_start_scsi()
1471 scsi_sg_count(cmd), cmd->sc_data_direction); in qla24xx_start_scsi()
1633 if (scsi_sg_count(cmd)) { in qla24xx_dif_start_scsi()
1635 scsi_sg_count(cmd), cmd->sc_data_direction); in qla24xx_dif_start_scsi()
2272 if (scsi_sg_count(cmd)) { in qla82xx_start_scsi()
2274 scsi_sg_count(cmd), cmd->sc_data_direction); in qla82xx_start_scsi()
Dqla_mr.c3111 if (scsi_sg_count(cmd)) { in qlafx00_start_scsi()
3113 scsi_sg_count(cmd), cmd->sc_data_direction); in qlafx00_start_scsi()
/linux-4.4.14/drivers/staging/rts5208/
Drtsx_transport.c49 if (scsi_sg_count(srb) == 0) { in rtsx_stor_access_xfer_buf()
78 while (cnt < buflen && *index < scsi_sg_count(srb)) { in rtsx_stor_access_xfer_buf()
Dxd.c1682 scsi_sg_count(chip->srb), in xd_read_multiple_pages()
1899 scsi_sg_count(chip->srb), in xd_write_multiple_pages()
2001 scsi_sg_count(srb)); in xd_rw()
2163 if (scsi_sg_count(srb) == 0) in xd_rw()
Dms.c3055 WAIT_INT, mode_2k, scsi_sg_count(srb),
3473 512, scsi_sg_count(chip->srb),
3499 if (scsi_sg_count(chip->srb) == 0)
3664 512, scsi_sg_count(chip->srb),
3721 if (scsi_sg_count(chip->srb) == 0)
3995 if (scsi_sg_count(srb) == 0)
Dsd.c3949 scsi_bufflen(srb), scsi_sg_count(srb),
4646 scsi_bufflen(srb), scsi_sg_count(srb),
4967 scsi_bufflen(srb), scsi_sg_count(srb),
Drtsx_scsi.c1654 scsi_sg_count(srb), srb->sc_data_direction, 1000); in dma_access_ring_buffer()
/linux-4.4.14/drivers/ata/
Dlibata-scsi.c764 qc->n_elem = scsi_sg_count(cmd); in ata_scsi_qc_new()
1845 ata_sg_init(qc, scsi_sglist(cmd), scsi_sg_count(cmd)); in ata_scsi_translate()
1910 sg_copy_to_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in ata_scsi_rbuf_get()
1931 sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in ata_scsi_rbuf_put()
3157 if (!scsi_sg_count(scmd)) in ata_scsi_write_same_xlat()
3283 if (!scsi_sg_count(scmd) || scsi_sglist(scmd)->length < len) in ata_scsi_mode_select_xlat()
/linux-4.4.14/drivers/scsi/bnx2fc/
Dbnx2fc_io.c1601 scsi_sg_count(sc), sc->sc_data_direction); in bnx2fc_map_sg()
1632 if (scsi_sg_count(sc)) { in bnx2fc_build_bd_list_from_sg()
1656 if (io_req->bd_tbl->bd_valid && sc && scsi_sg_count(sc)) { in bnx2fc_unmap_sg_list()
1658 scsi_sg_count(sc), sc->sc_data_direction); in bnx2fc_unmap_sg_list()
/linux-4.4.14/drivers/scsi/lpfc/
Dlpfc_scsi.c1167 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s3()
1176 scsi_sg_count(scsi_cmnd), datadir); in lpfc_scsi_prep_dma_buf_s3()
2716 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s3()
2725 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s3()
3244 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s4()
3369 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s4()
3378 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s4()
4229 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_cmnd()
/linux-4.4.14/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c115 (start_bd_idx > scsi_sg_count(cmd->scsi_cmd))) { in bnx2i_setup_write_cmd_bd_info()
122 scsi_sg_count(cmd->scsi_cmd)); in bnx2i_setup_write_cmd_bd_info()
155 BUG_ON(scsi_sg_count(sc) > ISCSI_MAX_BDS_PER_CMD); in bnx2i_map_scsi_sg()
/linux-4.4.14/drivers/scsi/libfc/
Dfc_fcp.c312 scsi_sg_count(fsp->cmd))) in fc_fcp_ddp_setup()
492 nents = scsi_sg_count(sc); in fc_fcp_recv_data()
/linux-4.4.14/drivers/scsi/libsas/
Dsas_scsi_host.c171 task->num_scatter = scsi_sg_count(cmd); in sas_create_task()
/linux-4.4.14/drivers/target/loopback/
Dtcm_loop.c169 scsi_sglist(sc), scsi_sg_count(sc), in tcm_loop_submission_work()
/linux-4.4.14/drivers/scsi/megaraid/
Dmegaraid_mbox.c1436 scsi_sg_count(scb->scp), in mbox_post_cmd()
2202 scsi_sg_count(scb->scp), in megaraid_mbox_sync_scb()
/linux-4.4.14/drivers/firewire/
Dsbp2.c1486 if (scsi_sg_count(cmd) && sbp2_map_scatterlist(orb, device, lu) < 0) in sbp2_scsi_queuecommand()
/linux-4.4.14/drivers/block/
Dcciss_scsi.c1366 BUG_ON(scsi_sg_count(cmd) > h->maxsgentries); in cciss_scatter_gather()
/linux-4.4.14/drivers/infiniband/ulp/srp/
Dib_srp.c1096 ib_dma_unmap_sg(ibdev, scsi_sglist(scmnd), scsi_sg_count(scmnd), in srp_unmap_data()
1573 nents = scsi_sg_count(scmnd); in srp_map_data()
/linux-4.4.14/drivers/scsi/cxlflash/
Dmain.c573 ncount = scsi_sg_count(scp); in cxlflash_queuecommand()
/linux-4.4.14/drivers/scsi/arcmsr/
Darcmsr_hba.c2234 use_sg = scsi_sg_count(cmd); in arcmsr_iop_message_xfer()