Home
last modified time | relevance | path

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

123

/Linux-v4.19/drivers/scsi/
Dscsi_lib_dma.c27 if (scsi_sg_count(cmd)) { in scsi_dma_map()
30 nseg = dma_map_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_dma_map()
45 if (scsi_sg_count(cmd)) { in scsi_dma_unmap()
48 dma_unmap_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_dma_unmap()
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.c219 return scsi_sg_count(cmd) != 1 || in twa_command_mapped()
1345 if ((scsi_sg_count(cmd) <= 1) && (full_command_packet->command.newcommand.status == 0)) { in twa_interrupt()
1846 if (scsi_sg_count(srb)) { in DEF_SCSI_QCMD()
1869 …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()
1899 tw_dev->sgl_entries = scsi_sg_count(tw_dev->srb[request_id]); in DEF_SCSI_QCMD()
1923 if (scsi_sg_count(cmd) == 1) { in twa_scsiop_execute_scsi_complete()
Ddc395x.c1008 cmd->bufflen, scsi_sglist(cmd), scsi_sg_count(cmd), in build_srb()
1020 reqlen, scsi_sglist(cmd), scsi_sg_count(cmd), in build_srb()
2145 diff && scsi_sg_count(srb->cmd)) in data_out_phase0()
2435 if (scsi_sg_count(srb->cmd)) { /* with S/G */ in data_io_transfer()
3270 if (scsi_sg_count(cmd) && dir != PCI_DMA_NONE) { in pci_unmap_srb()
3278 scsi_sg_count(cmd), scsi_bufflen(cmd)); in pci_unmap_srb()
3320 srb, scsi_sg_count(cmd), srb->sg_index, srb->sg_count, in srb_done()
3450 if (dir != PCI_DMA_NONE && scsi_sg_count(cmd)) in srb_done()
3452 scsi_sg_count(cmd), dir); in srb_done()
3466 base = scsi_kmap_atomic_sg(sg, scsi_sg_count(cmd), &offset, &len); in srb_done()
D3w-sas.c335 if (scsi_sg_count(srb)) { in twl_scsiop_execute_scsi()
344 …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()
360 tw_dev->sgl_entries = scsi_sg_count(srb); in twl_scsiop_execute_scsi()
1213 if ((scsi_sg_count(cmd) <= 1) && (full_command_packet->command.newcommand.status == 0)) { in twl_interrupt()
Dqlogicfas408.c314 scsi_for_each_sg(cmd, sg, scsi_sg_count(cmd), i) { in ql_pcmd()
Dxen-scsifront.c409 scsi_for_each_sg(sc, sg, scsi_sg_count(sc), i) in map_data_for_request()
462 scsi_for_each_sg(sc, sg, scsi_sg_count(sc), i) { in map_data_for_request()
Dsd_zbc.c179 sg_miter_start(&miter, scsi_sglist(scmd), scsi_sg_count(scmd), in sd_zbc_report_zones_complete()
/Linux-v4.19/include/scsi/
Dscsi_cmnd.h184 static inline unsigned scsi_sg_count(struct scsi_cmnd *cmd) in scsi_sg_count() function
232 return sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_from_buffer()
239 return sg_copy_to_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_to_buffer()
/Linux-v4.19/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-v4.19/include/trace/events/
Dscsi.h226 __entry->data_sglen = scsi_sg_count(cmd);
270 __entry->data_sglen = scsi_sg_count(cmd);
315 __entry->data_sglen = scsi_sg_count(cmd);
/Linux-v4.19/arch/ia64/hp/sim/
Dsimscsi.c134 scsi_for_each_sg(sc, sl, scsi_sg_count(sc), i) { in simscsi_sg_readwrite()
140 scsi_sg_count(sc) - i, sl->length); in simscsi_sg_readwrite()
/Linux-v4.19/drivers/staging/unisys/visorhba/
Dvisorhba_main.c549 if (scsi_sg_count(scsicmd) > MAX_PHYS_INFO) in visorhba_queue_command_lck()
556 for_each_sg(sglist, sg, scsi_sg_count(scsicmd), i) { in visorhba_queue_command_lck()
560 cmdrsp->scsi.guest_phys_entries = scsi_sg_count(scsicmd); in visorhba_queue_command_lck()
880 if (scsi_sg_count(scsicmd) == 0) { in do_scsi_nolinuxstat()
888 for (i = 0; i < scsi_sg_count(scsicmd); i++) { in do_scsi_nolinuxstat()
/Linux-v4.19/drivers/usb/storage/
Dprotocol.c128 unsigned int nents = scsi_sg_count(srb); in usb_stor_access_xfer_buf()
Dshuttle_usbat.c1309 scsi_bufflen(srb), scsi_sg_count(srb), 1); in usbat_hp8200e_handle_read10()
1603 len, scsi_sg_count(srb), 10); in usbat_hp8200e_transport()
1670 scsi_sg_count(srb)); in usbat_hp8200e_transport()
/Linux-v4.19/drivers/usb/image/
Dmicrotek.c481 scsi_sg_count(context->srb) > 1 ? in mts_command_done()
496 scsi_sg_count(context->srb)); in mts_do_sg()
509 context->fragment + 1 == scsi_sg_count(context->srb) ? in mts_do_sg()
/Linux-v4.19/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()
1455 if (scsi_sg_count(cmd)) { in qla24xx_start_scsi()
1457 scsi_sg_count(cmd), cmd->sc_data_direction); in qla24xx_start_scsi()
1616 if (scsi_sg_count(cmd)) { in qla24xx_dif_start_scsi()
1618 scsi_sg_count(cmd), cmd->sc_data_direction); in qla24xx_dif_start_scsi()
1808 if (scsi_sg_count(cmd)) { in qla2xxx_start_scsi_mq()
1810 scsi_sg_count(cmd), cmd->sc_data_direction); in qla2xxx_start_scsi_mq()
1983 if (scsi_sg_count(cmd)) { in qla2xxx_dif_start_scsi_mq()
1985 scsi_sg_count(cmd), cmd->sc_data_direction); in qla2xxx_dif_start_scsi_mq()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/drivers/ata/
Dlibata-scsi.c869 qc->n_elem = scsi_sg_count(cmd); in ata_scsi_qc_new()
2006 ata_sg_init(qc, scsi_sglist(cmd), scsi_sg_count(cmd)); in ata_scsi_translate()
2077 sg_copy_to_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in ata_scsi_rbuf_get()
2098 sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in ata_scsi_rbuf_put()
2866 sg_copy_to_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), buf, 4); in atapi_fixup_inquiry()
2871 sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), buf, 4); in atapi_fixup_inquiry()
3428 r = sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), buf, len); in ata_format_dsm_trim_descr()
3496 if (!scsi_sg_count(scmd)) in ata_scsi_write_same_xlat()
3634 sg_miter_start(&miter, scsi_sglist(scmd), scsi_sg_count(scmd), in ata_scsi_report_zones_complete()
4013 if (!scsi_sg_count(scmd) || scsi_sglist(scmd)->length < len) in ata_scsi_mode_select_xlat()
/Linux-v4.19/drivers/staging/rts5208/
Drtsx_transport.c54 if (scsi_sg_count(srb) == 0) { in rtsx_stor_access_xfer_buf()
86 while (cnt < buflen && *index < scsi_sg_count(srb)) { in rtsx_stor_access_xfer_buf()
Dxd.c1621 scsi_sg_count(chip->srb), in xd_read_multiple_pages()
1824 scsi_sg_count(chip->srb), in xd_write_multiple_pages()
1922 scsi_sg_count(srb)); in xd_rw()
2070 if (scsi_sg_count(srb) == 0) in xd_rw()
/Linux-v4.19/drivers/infiniband/ulp/iser/
Diser_initiator.c390 if (scsi_sg_count(sc)) { /* using a scatter list */ in iser_send_command()
392 data_buf->size = scsi_sg_count(sc); in iser_send_command()
/Linux-v4.19/drivers/scsi/qedf/
Dqedf_io.c471 scsi_sg_count(sc), sc->sc_data_direction); in qedf_map_sg()
548 if (scsi_sg_count(sc)) { in qedf_build_bd_list_from_sg()
835 io_log->sg_count = scsi_sg_count(sc_cmd); in qedf_trace_io()
1085 if (io_req->bd_tbl->bd_valid && sc && scsi_sg_count(sc)) { in qedf_unmap_sg_list()
1087 scsi_sg_count(sc), sc->sc_data_direction); in qedf_unmap_sg_list()
/Linux-v4.19/drivers/scsi/bnx2fc/
Dbnx2fc_io.c1632 scsi_sg_count(sc), sc->sc_data_direction); in bnx2fc_map_sg()
1663 if (scsi_sg_count(sc)) { in bnx2fc_build_bd_list_from_sg()
1687 if (io_req->bd_tbl->bd_valid && sc && scsi_sg_count(sc)) { in bnx2fc_unmap_sg_list()
1689 scsi_sg_count(sc), sc->sc_data_direction); in bnx2fc_unmap_sg_list()
/Linux-v4.19/drivers/scsi/lpfc/
Dlpfc_scsi.c1189 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s3()
1198 scsi_sg_count(scsi_cmnd), datadir); in lpfc_scsi_prep_dma_buf_s3()
2741 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s3()
2750 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s3()
3269 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s4()
3409 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s4()
3418 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s4()
4249 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_cmnd()

123