Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/scsi/
H A 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()
H A Dfdomain.c226 virt = scsi_kmap_atomic_sg(scsi_sglist(cmd), scsi_sg_count(cmd), in fdomain_read_data()
253 virt = scsi_kmap_atomic_sg(scsi_sglist(cmd), scsi_sg_count(cmd), in fdomain_write_data()
H A Dmac53c94.c81 scsi_sg_count(cmd), scsi_bufflen(cmd), scsi_sglist(cmd)); in mac53c94_queue_lck()
266 && (scsi_sg_count(cmd) > 0 || scsi_bufflen(cmd))) { in mac53c94_interrupt()
H A D3w-9xxx.c223 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()
1844 if (scsi_sg_count(srb)) { in DEF_SCSI_QCMD()
1867 …command_packet->sgl_entries__lunh = TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->s… in DEF_SCSI_QCMD()
1897 tw_dev->sgl_entries = scsi_sg_count(tw_dev->srb[request_id]); in DEF_SCSI_QCMD()
1921 if (scsi_sg_count(cmd) == 1) { in twa_scsiop_execute_scsi_complete()
H A D3w-sas.c336 if (scsi_sg_count(srb)) { in twl_scsiop_execute_scsi()
345 …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()
361 tw_dev->sgl_entries = scsi_sg_count(srb); in twl_scsiop_execute_scsi()
1214 if ((scsi_sg_count(cmd) <= 1) && (full_command_packet->command.newcommand.status == 0)) { in twl_interrupt()
H A Ddc395x.c893 cmd->bufflen, scsi_sglist(cmd), scsi_sg_count(cmd), in build_srb()
905 reqlen, scsi_sglist(cmd), scsi_sg_count(cmd), in build_srb()
1990 diff && scsi_sg_count(srb->cmd)) in data_out_phase0()
2280 if (scsi_sg_count(srb->cmd)) { /* with S/G */ in data_io_transfer()
3112 if (scsi_sg_count(cmd) && dir != DMA_NONE) { in pci_unmap_srb()
3119 scsi_sg_count(cmd), scsi_bufflen(cmd)); in pci_unmap_srb()
3161 srb, scsi_sg_count(cmd), srb->sg_index, srb->sg_count, in srb_done()
3293 base = scsi_kmap_atomic_sg(sg, scsi_sg_count(cmd), &offset, &len); in srb_done()
H A Dqlogicfas408.c321 scsi_for_each_sg(cmd, sg, scsi_sg_count(cmd), i) { in ql_pcmd()
H A Dxen-scsifront.c487 scsi_for_each_sg(sc, sg, scsi_sg_count(sc), i) in map_data_for_request()
540 scsi_for_each_sg(sc, sg, scsi_sg_count(sc), i) { in map_data_for_request()
/openbmc/linux/drivers/scsi/arm/
H A Darm_scsi.h98 scsi_pointer->buffers_residual = scsi_sg_count(SCpnt) - 1; in init_SCp()
109 unsigned i, sg_count = scsi_sg_count(SCpnt); in init_SCp()
/openbmc/linux/include/scsi/
H A Dscsi_cmnd.h181 static inline unsigned scsi_sg_count(struct scsi_cmnd *cmd) in scsi_sg_count() function
212 return sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_from_buffer()
219 return sg_copy_to_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in scsi_sg_copy_to_buffer()
/openbmc/linux/include/trace/events/
H A Dscsi.h186 __entry->data_sglen = scsi_sg_count(cmd);
234 __entry->data_sglen = scsi_sg_count(cmd);
289 __entry->data_sglen = scsi_sg_count(cmd);
/openbmc/linux/drivers/usb/storage/
H A Dprotocol.c128 unsigned int nents = scsi_sg_count(srb); in usb_stor_access_xfer_buf()
H A Dshuttle_usbat.c1310 scsi_bufflen(srb), scsi_sg_count(srb), 1); in usbat_hp8200e_handle_read10()
1604 len, scsi_sg_count(srb), 10); in usbat_hp8200e_transport()
1671 scsi_sg_count(srb)); in usbat_hp8200e_transport()
/openbmc/linux/drivers/ata/
H A Dlibata-scsi.c771 qc->n_elem = scsi_sg_count(cmd); in ata_scsi_qc_new()
1778 ata_sg_init(qc, scsi_sglist(cmd), scsi_sg_count(cmd)); in ata_scsi_translate()
1851 sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), in ata_scsi_rbuf_fill()
2651 sg_copy_to_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), buf, 4); in atapi_fixup_inquiry()
2656 sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), buf, 4); in atapi_fixup_inquiry()
3223 r = sg_copy_from_buffer(scsi_sglist(cmd), scsi_sg_count(cmd), buf, len); in ata_format_dsm_trim_descr()
3291 if (!scsi_sg_count(scmd)) in ata_scsi_write_same_xlat()
3453 sg_miter_start(&miter, scsi_sglist(scmd), scsi_sg_count(scmd), in ata_scsi_report_zones_complete()
3894 if (!scsi_sg_count(scmd) || scsi_sglist(scmd)->length < len) in ata_scsi_mode_select_xlat()
3901 if (!sg_copy_to_buffer(scsi_sglist(scmd), scsi_sg_count(scmd), in ata_scsi_mode_select_xlat()
/openbmc/linux/drivers/scsi/qla2xxx/
H A Dqla_iocb.c368 if (scsi_sg_count(cmd)) { in qla2x00_start_scsi()
370 scsi_sg_count(cmd), cmd->sc_data_direction); in qla2x00_start_scsi()
1581 if (scsi_sg_count(cmd)) { in qla24xx_start_scsi()
1583 scsi_sg_count(cmd), cmd->sc_data_direction); in qla24xx_start_scsi()
1748 if (scsi_sg_count(cmd)) { in qla24xx_dif_start_scsi()
1750 scsi_sg_count(cmd), cmd->sc_data_direction); in qla24xx_dif_start_scsi()
1948 if (scsi_sg_count(cmd)) { in qla2xxx_start_scsi_mq()
1950 scsi_sg_count(cmd), cmd->sc_data_direction); in qla2xxx_start_scsi_mq()
2130 if (scsi_sg_count(cmd)) { in qla2xxx_dif_start_scsi_mq()
2132 scsi_sg_count(cmd), cmd->sc_data_direction); in qla2xxx_dif_start_scsi_mq()
[all …]
/openbmc/linux/drivers/usb/image/
H A Dmicrotek.c485 scsi_sg_count(context->srb) > 1 ? in mts_command_done()
499 scsi_sg_count(context->srb)); in mts_do_sg()
/openbmc/linux/drivers/scsi/qedf/
H A Dqedf_io.c487 scsi_sg_count(sc), sc->sc_data_direction); in qedf_map_sg()
534 if (scsi_sg_count(sc)) { in qedf_build_bd_list_from_sg()
821 io_log->sg_count = scsi_sg_count(sc_cmd); in qedf_trace_io()
943 num_sgs = scsi_sg_count(sc_cmd); in qedf_queuecommand()
944 if (scsi_sg_count(sc_cmd) > QEDF_MAX_BDS_PER_CMD) { in qedf_queuecommand()
1110 if (io_req->bd_tbl->bd_valid && sc && scsi_sg_count(sc)) { in qedf_unmap_sg_list()
1112 scsi_sg_count(sc), sc->sc_data_direction); in qedf_unmap_sg_list()
/openbmc/linux/drivers/scsi/pcmcia/
H A Dsym53c500_cs.c428 scsi_for_each_sg(curSC, sg, scsi_sg_count(curSC), i) { in SYM53C500_intr()
447 scsi_for_each_sg(curSC, sg, scsi_sg_count(curSC), i) { in SYM53C500_intr()
/openbmc/linux/drivers/staging/rts5208/
H A Drtsx_transport.c42 if (scsi_sg_count(srb) == 0) { in rtsx_stor_access_xfer_buf()
74 while (cnt < buflen && *index < scsi_sg_count(srb)) { in rtsx_stor_access_xfer_buf()
H A Dxd.c1547 scsi_sg_count(chip->srb), in xd_read_multiple_pages()
1745 scsi_sg_count(chip->srb), in xd_write_multiple_pages()
1839 scsi_sg_count(srb)); in xd_rw()
1986 if (scsi_sg_count(srb) == 0) in xd_rw()
H A Dms.c2711 WAIT_INT, mode_2k, scsi_sg_count(srb),
3092 scsi_sg_count(chip->srb),
3116 if (scsi_sg_count(chip->srb) == 0)
3261 scsi_sg_count(chip->srb),
3308 if (scsi_sg_count(chip->srb) == 0)
3567 if (scsi_sg_count(srb) == 0)
/openbmc/linux/drivers/scsi/bnx2fc/
H A Dbnx2fc_io.c1660 WARN_ON(scsi_sg_count(sc) > BNX2FC_MAX_BDS_PER_CMD); in bnx2fc_map_sg()
1666 scsi_sg_count(sc), sc->sc_data_direction); in bnx2fc_map_sg()
1697 if (scsi_sg_count(sc)) { in bnx2fc_build_bd_list_from_sg()
1731 if (io_req->bd_tbl->bd_valid && sc && scsi_sg_count(sc)) { in bnx2fc_unmap_sg_list()
1733 scsi_sg_count(sc), sc->sc_data_direction); in bnx2fc_unmap_sg_list()
/openbmc/linux/drivers/infiniband/ulp/iser/
H A Diser_initiator.c367 if (scsi_sg_count(sc)) { /* using a scatter list */ in iser_send_command()
369 data_buf->size = scsi_sg_count(sc); in iser_send_command()
/openbmc/linux/drivers/scsi/lpfc/
H A Dlpfc_scsi.c824 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s3()
833 scsi_sg_count(scsi_cmnd), datadir); in lpfc_scsi_prep_dma_buf_s3()
2507 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s3()
2516 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s3()
3064 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_dma_buf_s4()
3303 if (scsi_sg_count(scsi_cmnd)) { in lpfc_bg_scsi_prep_dma_buf_s4()
3312 scsi_sg_count(scsi_cmnd), datadir); in lpfc_bg_scsi_prep_dma_buf_s4()
4291 (scsi_sg_count(cmd))) { in lpfc_fcp_io_cmd_wqe_cmpl()
4616 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_cmnd_buf_s3()
4696 if (scsi_sg_count(scsi_cmnd)) { in lpfc_scsi_prep_cmnd_buf_s4()
[all …]
/openbmc/linux/drivers/scsi/bnx2i/
H A 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()

123