sc_data_direction 2003 drivers/ata/libata-scsi.c 	if (cmd->sc_data_direction == DMA_FROM_DEVICE ||
sc_data_direction 2004 drivers/ata/libata-scsi.c 	    cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 2012 drivers/ata/libata-scsi.c 		qc->dma_dir = cmd->sc_data_direction;
sc_data_direction 2953 drivers/ata/libata-scsi.c 	int nodata = (scmd->sc_data_direction == DMA_NONE);
sc_data_direction 2963 drivers/ata/libata-scsi.c 	if (scmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 3022 drivers/ata/libata-scsi.c 		    (scmd->sc_data_direction != DMA_TO_DEVICE))
sc_data_direction 3302 drivers/ata/libata-scsi.c 	if (scmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  384 drivers/ata/sata_via.c 	    (qc->scsicmd->sc_data_direction == DMA_TO_DEVICE)) {
sc_data_direction 1463 drivers/firewire/sbp2.c 	if (cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  332 drivers/infiniband/ulp/iser/iscsi_iser.c 	if (task->sc->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1252 drivers/infiniband/ulp/srp/ib_srp.c 	    (scmnd->sc_data_direction != DMA_TO_DEVICE &&
sc_data_direction 1253 drivers/infiniband/ulp/srp/ib_srp.c 	     scmnd->sc_data_direction != DMA_FROM_DEVICE))
sc_data_direction 1280 drivers/infiniband/ulp/srp/ib_srp.c 			scmnd->sc_data_direction);
sc_data_direction 1818 drivers/infiniband/ulp/srp/ib_srp.c 	if (!scsi_sglist(scmnd) || scmnd->sc_data_direction == DMA_NONE)
sc_data_direction 1821 drivers/infiniband/ulp/srp/ib_srp.c 	if (scmnd->sc_data_direction != DMA_FROM_DEVICE &&
sc_data_direction 1822 drivers/infiniband/ulp/srp/ib_srp.c 	    scmnd->sc_data_direction != DMA_TO_DEVICE) {
sc_data_direction 1825 drivers/infiniband/ulp/srp/ib_srp.c 			     scmnd->sc_data_direction);
sc_data_direction 1836 drivers/infiniband/ulp/srp/ib_srp.c 	count = ib_dma_map_sg(ibdev, scat, nents, scmnd->sc_data_direction);
sc_data_direction 1843 drivers/infiniband/ulp/srp/ib_srp.c 	    scmnd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1965 drivers/infiniband/ulp/srp/ib_srp.c 	if (scmnd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1974 drivers/infiniband/ulp/srp/ib_srp.c 	if (scmnd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1355 drivers/message/fusion/mptscsih.c 	if (SCpnt->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 1358 drivers/message/fusion/mptscsih.c 	} else if (SCpnt->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  235 drivers/s390/scsi/zfcp_fc.h 	if (scsi->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  237 drivers/s390/scsi/zfcp_fc.h 	if (scsi->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 2231 drivers/s390/scsi/zfcp_fsf.c 		switch (scsi_cmnd->sc_data_direction) {
sc_data_direction 2292 drivers/s390/scsi/zfcp_fsf.c 	if (scsi_cmnd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1854 drivers/scsi/3w-9xxx.c 				if (srb->sc_data_direction == DMA_TO_DEVICE ||
sc_data_direction 1855 drivers/scsi/3w-9xxx.c 				    srb->sc_data_direction == DMA_BIDIRECTIONAL)
sc_data_direction 1927 drivers/scsi/3w-9xxx.c 	    (cmd->sc_data_direction == DMA_FROM_DEVICE ||
sc_data_direction 1928 drivers/scsi/3w-9xxx.c 	     cmd->sc_data_direction == DMA_BIDIRECTIONAL)) {
sc_data_direction  565 drivers/scsi/53c700.c 	if(SCp->sc_data_direction != DMA_NONE &&
sc_data_direction  566 drivers/scsi/53c700.c 	   SCp->sc_data_direction != DMA_BIDIRECTIONAL)
sc_data_direction 1822 drivers/scsi/53c700.c 	   SCp->sc_data_direction != DMA_NONE) {
sc_data_direction 1826 drivers/scsi/53c700.c 		printk("Has wrong data direction %d\n", SCp->sc_data_direction);
sc_data_direction 1828 drivers/scsi/53c700.c 		SCp->sc_data_direction = DMA_NONE;
sc_data_direction 1838 drivers/scsi/53c700.c 		switch(SCp->sc_data_direction) {
sc_data_direction 1859 drivers/scsi/53c700.c 	direction = SCp->sc_data_direction;
sc_data_direction 1482 drivers/scsi/aacraid/aachba.c 	switch(cmd->sc_data_direction){
sc_data_direction 1526 drivers/scsi/aacraid/aachba.c 	switch (cmd->sc_data_direction) {
sc_data_direction  592 drivers/scsi/aic7xxx/aic79xx_osm.h 	return (scb->io_ctx->sc_data_direction);
sc_data_direction  610 drivers/scsi/aic7xxx/aic7xxx_osm.h 	return (scb->io_ctx->sc_data_direction);
sc_data_direction 1773 drivers/scsi/arcmsr/arcmsr_hba.c 	if (pcmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  583 drivers/scsi/atari_scsi.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  825 drivers/scsi/atp870u.c 	if (workreq->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  905 drivers/scsi/atp870u.c 	if(workreq->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 4802 drivers/scsi/be2iscsi/be_main.c 	if (sc->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 2552 drivers/scsi/bfa/bfa_fcpim.c 	dmadir = cmnd->sc_data_direction;
sc_data_direction  517 drivers/scsi/bnx2fc/bnx2fc_els.c 		if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1471 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	if (sc_cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1688 drivers/scsi/bnx2fc/bnx2fc_hwi.c 	if (sc_cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1665 drivers/scsi/bnx2fc/bnx2fc_io.c 			      scsi_sg_count(sc), sc->sc_data_direction);
sc_data_direction 1732 drivers/scsi/bnx2fc/bnx2fc_io.c 		    scsi_sg_count(sc), sc->sc_data_direction);
sc_data_direction 2056 drivers/scsi/bnx2fc/bnx2fc_io.c 	if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 2060 drivers/scsi/bnx2fc/bnx2fc_io.c 	} else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  420 drivers/scsi/bnx2i/bnx2i_hwi.c 		if (ref_sc->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1255 drivers/scsi/bnx2i/bnx2i_iscsi.c 	if (sc->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1838 drivers/scsi/csiostor/csio_scsi.c 	ioreq->datadir		= cmnd->sc_data_direction;
sc_data_direction 1840 drivers/scsi/csiostor/csio_scsi.c 	if (cmnd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1843 drivers/scsi/csiostor/csio_scsi.c 	} else if (cmnd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 1439 drivers/scsi/cxgbi/libcxgbi.c 	if (sc && sc->sc_data_direction == DMA_FROM_DEVICE &&
sc_data_direction 1471 drivers/scsi/cxgbi/libcxgbi.c 	if (sc && sc->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 1905 drivers/scsi/cxgbi/libcxgbi.c 	      sc->sc_data_direction == DMA_TO_DEVICE)))
sc_data_direction  632 drivers/scsi/cxlflash/main.c 	if (scp->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  882 drivers/scsi/dc395x.c 	enum dma_data_direction dir = cmd->sc_data_direction;
sc_data_direction 3169 drivers/scsi/dc395x.c 	enum dma_data_direction dir = cmd->sc_data_direction;
sc_data_direction 3214 drivers/scsi/dc395x.c 	enum dma_data_direction dir = cmd->sc_data_direction;
sc_data_direction 3430 drivers/scsi/dc395x.c 			dir = p->sc_data_direction;
sc_data_direction 2216 drivers/scsi/dpt_i2o.c 		switch(cmd->sc_data_direction){
sc_data_direction  839 drivers/scsi/esas2r/esas2r_main.c 		if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  841 drivers/scsi/esas2r/esas2r_main.c 		else if (cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  376 drivers/scsi/esp_scsi.c 	if (cmd->sc_data_direction == DMA_NONE)
sc_data_direction  344 drivers/scsi/fdomain.c 		if (cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  382 drivers/scsi/fnic/fnic_scsi.c 	if (sc->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  384 drivers/scsi/fnic/fnic_scsi.c 	else if (sc->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1014 drivers/scsi/fnic/fnic_scsi.c 	if (sc->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 1017 drivers/scsi/fnic/fnic_scsi.c 	} else if (sc->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  677 drivers/scsi/g_NCR5380.c 	    cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  977 drivers/scsi/hisi_sas/hisi_sas_v1_hw.c 		switch (scsi_cmnd->sc_data_direction) {
sc_data_direction 1757 drivers/scsi/hisi_sas/hisi_sas_v2_hw.c 		switch (scsi_cmnd->sc_data_direction) {
sc_data_direction 1196 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 		switch (scsi_cmnd->sc_data_direction) {
sc_data_direction 4760 drivers/scsi/hpsa.c 		switch (cmd->sc_data_direction) {
sc_data_direction 4772 drivers/scsi/hpsa.c 			cmd->sc_data_direction);
sc_data_direction 4954 drivers/scsi/hpsa.c 		switch (cmd->sc_data_direction) {
sc_data_direction 4969 drivers/scsi/hpsa.c 				cmd->sc_data_direction);
sc_data_direction 5432 drivers/scsi/hpsa.c 	switch (cmd->sc_data_direction) {
sc_data_direction 5465 drivers/scsi/hpsa.c 			cmd->sc_data_direction);
sc_data_direction 1342 drivers/scsi/ibmvscsi/ibmvfc.c 	if (scmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  618 drivers/scsi/ibmvscsi/ibmvscsi.c 		if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  624 drivers/scsi/ibmvscsi/ibmvscsi.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  756 drivers/scsi/ibmvscsi/ibmvscsi.c 	switch (cmd->sc_data_direction) {
sc_data_direction  769 drivers/scsi/ibmvscsi/ibmvscsi.c 			    cmd->sc_data_direction);
sc_data_direction 5945 drivers/scsi/ipr.c 	if (scsi_cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 5948 drivers/scsi/ipr.c 	} else if (scsi_cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 5992 drivers/scsi/ipr.c 	if (scsi_cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 5998 drivers/scsi/ipr.c 	} else if (scsi_cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction  210 drivers/scsi/ips.c                          DMA_NONE == scb->scsi_cmd->sc_data_direction) ? \
sc_data_direction  212 drivers/scsi/ips.c                          scb->scsi_cmd->sc_data_direction)
sc_data_direction 1574 drivers/scsi/libfc/fc_fcp.c 		data_dir = fsp->cmd->sc_data_direction;
sc_data_direction 1918 drivers/scsi/libfc/fc_fcp.c 	if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 1922 drivers/scsi/libfc/fc_fcp.c 	} else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  361 drivers/scsi/libiscsi.c 	if (sc->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  408 drivers/scsi/libiscsi.c 		if (sc->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  431 drivers/scsi/libiscsi.c 			  sc->sc_data_direction == DMA_TO_DEVICE ?
sc_data_direction  740 drivers/scsi/libiscsi_tcp.c 		else if (task->sc->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1058 drivers/scsi/libiscsi_tcp.c 	if (task->sc->sc_data_direction != DMA_TO_DEVICE)
sc_data_direction  156 drivers/scsi/libsas/sas_scsi_host.c 	task->data_dir = cmd->sc_data_direction;
sc_data_direction  846 drivers/scsi/lpfc/lpfc_scsi.c 	int nseg, datadir = scsi_cmnd->sc_data_direction;
sc_data_direction 1569 drivers/scsi/lpfc/lpfc_scsi.c 	int datadir = sc->sc_data_direction;
sc_data_direction 1716 drivers/scsi/lpfc/lpfc_scsi.c 	int datadir = sc->sc_data_direction;
sc_data_direction 1996 drivers/scsi/lpfc/lpfc_scsi.c 	if (sc->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 2484 drivers/scsi/lpfc/lpfc_scsi.c 	if (sc->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 2526 drivers/scsi/lpfc/lpfc_scsi.c 	int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction;
sc_data_direction 2662 drivers/scsi/lpfc/lpfc_scsi.c 			     scsi_cmnd->sc_data_direction);
sc_data_direction 3264 drivers/scsi/lpfc/lpfc_scsi.c 	int datasegcnt, protsegcnt, datadir = scsi_cmnd->sc_data_direction;
sc_data_direction 3423 drivers/scsi/lpfc/lpfc_scsi.c 			     scsi_cmnd->sc_data_direction);
sc_data_direction 3534 drivers/scsi/lpfc/lpfc_scsi.c 	} else if ((cmnd->sc_data_direction == DMA_FROM_DEVICE) &&
sc_data_direction 3591 drivers/scsi/lpfc/lpfc_scsi.c 				psb->pCmd->sc_data_direction);
sc_data_direction 3749 drivers/scsi/lpfc/lpfc_scsi.c 				 ((cmnd->sc_data_direction == DMA_FROM_DEVICE) ?
sc_data_direction 4087 drivers/scsi/lpfc/lpfc_scsi.c 	int datadir = scsi_cmnd->sc_data_direction;
sc_data_direction   75 drivers/scsi/mac53c94.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  375 drivers/scsi/mac53c94.c 	dma_cmd = cmd->sc_data_direction == DMA_TO_DEVICE ?
sc_data_direction 1523 drivers/scsi/megaraid/megaraid_mbox.c 			scb->dma_direction	= scp->sc_data_direction;
sc_data_direction 1624 drivers/scsi/megaraid/megaraid_mbox.c 			scb->dma_direction	= scp->sc_data_direction;
sc_data_direction 1719 drivers/scsi/megaraid/megaraid_mbox.c 			scb->dma_direction = scp->sc_data_direction;
sc_data_direction 1757 drivers/scsi/megaraid/megaraid_mbox.c 			scb->dma_direction	= scp->sc_data_direction;
sc_data_direction 1820 drivers/scsi/megaraid/megaraid_mbox.c 		scb->dma_direction	= scp->sc_data_direction;
sc_data_direction 1394 drivers/scsi/megaraid/megaraid_sas_base.c 	if (scp->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1396 drivers/scsi/megaraid/megaraid_sas_base.c 	else if (scp->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 1398 drivers/scsi/megaraid/megaraid_sas_base.c 	else if (scp->sc_data_direction == DMA_NONE)
sc_data_direction 1492 drivers/scsi/megaraid/megaraid_sas_base.c 	if (scp->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1494 drivers/scsi/megaraid/megaraid_sas_base.c 	else if (scp->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 2397 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (scp->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 2426 drivers/scsi/megaraid/megaraid_sas_fusion.c 		if (scp->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 2811 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (scp->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 3292 drivers/scsi/megaraid/megaraid_sas_fusion.c 	if (scp->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 3294 drivers/scsi/megaraid/megaraid_sas_fusion.c 	else if (scp->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  412 drivers/scsi/mesh.c 	ms->tgts[id].data_goes_out = cmd->sc_data_direction == DMA_TO_DEVICE;
sc_data_direction 2403 drivers/scsi/mpt3sas/mpt3sas_base.c 	if (scmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 4705 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	if (scmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 4707 drivers/scsi/mpt3sas/mpt3sas_scsih.c 	else if (scmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  199 drivers/scsi/mvumi.c 			       scmd->sc_data_direction);
sc_data_direction  205 drivers/scsi/mvumi.c 			     scmd->sc_data_direction);
sc_data_direction 1330 drivers/scsi/mvumi.c 			     scmd->sc_data_direction);
sc_data_direction 2037 drivers/scsi/mvumi.c 	switch (scmd->sc_data_direction) {
sc_data_direction 2050 drivers/scsi/mvumi.c 			"cmd[0x%x]\n", scmd->sc_data_direction, scmd->cmnd[0]);
sc_data_direction 2138 drivers/scsi/mvumi.c 			     scmd->sc_data_direction);
sc_data_direction 1295 drivers/scsi/myrb.c 	switch (scmd->sc_data_direction) {
sc_data_direction 1583 drivers/scsi/myrb.c 	if (scmd->sc_data_direction == DMA_NONE)
sc_data_direction 1588 drivers/scsi/myrb.c 		if (scmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 1609 drivers/scsi/myrb.c 		if (scmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 2355 drivers/scsi/myrb.c 		if (scmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 2367 drivers/scsi/myrb.c 		if (scmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 1656 drivers/scsi/myrs.c 			(scmd->sc_data_direction == DMA_FROM_DEVICE);
sc_data_direction 1702 drivers/scsi/myrs.c 			(scmd->sc_data_direction == DMA_FROM_DEVICE);
sc_data_direction 1720 drivers/scsi/myrs.c 	if (scmd->sc_data_direction == DMA_NONE)
sc_data_direction 4242 drivers/scsi/ncr53c8xx.c 	direction = cmd->sc_data_direction;
sc_data_direction 3174 drivers/scsi/pmcraid.c 	if (scsi_cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  102 drivers/scsi/ps3rom.c 	switch (cmd->sc_data_direction) {
sc_data_direction  296 drivers/scsi/ps3rom.c 		if (cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction  925 drivers/scsi/qedf/qedf_els.c 		if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  494 drivers/scsi/qedf/qedf_io.c 	    scsi_sg_count(sc), sc->sc_data_direction);
sc_data_direction  578 drivers/scsi/qedf/qedf_io.c 		if (sc_cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  580 drivers/scsi/qedf/qedf_io.c 		else if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  621 drivers/scsi/qedf/qedf_io.c 		if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  875 drivers/scsi/qedf/qedf_io.c 	if (sc_cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction  879 drivers/scsi/qedf/qedf_io.c 	} else if (sc_cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1121 drivers/scsi/qedf/qedf_io.c 		    scsi_sg_count(sc), sc->sc_data_direction);
sc_data_direction 1854 drivers/scsi/qedi/qedi_fw.c 			      scsi_sg_count(sc), sc->sc_data_direction);
sc_data_direction 2086 drivers/scsi/qedi/qedi_fw.c 		if (sc->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  443 drivers/scsi/qla1280.c 	switch(cmnd->sc_data_direction) {
sc_data_direction 3987 drivers/scsi/qla1280.c 	       cmd->underflow, cmd->sc_data_direction);
sc_data_direction   31 drivers/scsi/qla2xxx/qla_iocb.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction   35 drivers/scsi/qla2xxx/qla_iocb.c 	} else if (cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction  207 drivers/scsi/qla2xxx/qla_iocb.c 	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) {
sc_data_direction  263 drivers/scsi/qla2xxx/qla_iocb.c 	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) {
sc_data_direction  368 drivers/scsi/qla2xxx/qla_iocb.c 		    scsi_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction  604 drivers/scsi/qla2xxx/qla_iocb.c 	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) {
sc_data_direction  613 drivers/scsi/qla2xxx/qla_iocb.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  617 drivers/scsi/qla2xxx/qla_iocb.c 	} else if (cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction  714 drivers/scsi/qla2xxx/qla_iocb.c 	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) {
sc_data_direction  722 drivers/scsi/qla2xxx/qla_iocb.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  726 drivers/scsi/qla2xxx/qla_iocb.c 	} else if (cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 1101 drivers/scsi/qla2xxx/qla_iocb.c 		direction_to_device = cmd->sc_data_direction == DMA_TO_DEVICE;
sc_data_direction 1417 drivers/scsi/qla2xxx/qla_iocb.c 	if (!data_bytes || cmd->sc_data_direction == DMA_NONE) {
sc_data_direction 1425 drivers/scsi/qla2xxx/qla_iocb.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1428 drivers/scsi/qla2xxx/qla_iocb.c 	} else if (cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 1477 drivers/scsi/qla2xxx/qla_iocb.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1479 drivers/scsi/qla2xxx/qla_iocb.c 	else if (cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 1552 drivers/scsi/qla2xxx/qla_iocb.c 	if (!data_bytes || cmd->sc_data_direction == DMA_NONE) {
sc_data_direction 1630 drivers/scsi/qla2xxx/qla_iocb.c 		    scsi_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction 1775 drivers/scsi/qla2xxx/qla_iocb.c 		    scsi_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction 1805 drivers/scsi/qla2xxx/qla_iocb.c 		    scsi_prot_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction 1950 drivers/scsi/qla2xxx/qla_iocb.c 		    scsi_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction 2110 drivers/scsi/qla2xxx/qla_iocb.c 		    scsi_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction 2140 drivers/scsi/qla2xxx/qla_iocb.c 		    scsi_prot_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction 3129 drivers/scsi/qla2xxx/qla_iocb.c 		    scsi_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction 3259 drivers/scsi/qla2xxx/qla_iocb.c 		if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 3261 drivers/scsi/qla2xxx/qla_iocb.c 		else if (cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 3018 drivers/scsi/qla2xxx/qla_mr.c 	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) {
sc_data_direction 3024 drivers/scsi/qla2xxx/qla_mr.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 3027 drivers/scsi/qla2xxx/qla_mr.c 	} else if (cmd->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 3108 drivers/scsi/qla2xxx/qla_mr.c 		    scsi_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction  667 drivers/scsi/qla2xxx/qla_os.c 		    scsi_prot_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction  721 drivers/scsi/qla2xxx/qla_os.c 		    scsi_prot_sg_count(cmd), cmd->sc_data_direction);
sc_data_direction  162 drivers/scsi/qla4xxx/ql4_iocb.c 	if (!scsi_bufflen(cmd) || cmd->sc_data_direction == DMA_NONE) {
sc_data_direction  340 drivers/scsi/qla4xxx/ql4_iocb.c 		if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  342 drivers/scsi/qla4xxx/ql4_iocb.c 		else if (cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  911 drivers/scsi/qlogicpti.c 				      Cmnd->sc_data_direction);
sc_data_direction 1191 drivers/scsi/qlogicpti.c 				     Cmnd->sc_data_direction);
sc_data_direction 1010 drivers/scsi/scsi_debug.c 	if (scp->sc_data_direction != DMA_FROM_DEVICE)
sc_data_direction 1034 drivers/scsi/scsi_debug.c 	if (scp->sc_data_direction != DMA_FROM_DEVICE)
sc_data_direction 1055 drivers/scsi/scsi_debug.c 	if (scp->sc_data_direction != DMA_TO_DEVICE)
sc_data_direction 2496 drivers/scsi/scsi_debug.c 	if (scmd->sc_data_direction != dir)
sc_data_direction  967 drivers/scsi/scsi_error.c 	ses->data_direction = scmd->sc_data_direction;
sc_data_direction  989 drivers/scsi/scsi_error.c 		scmd->sc_data_direction = DMA_FROM_DEVICE;
sc_data_direction  995 drivers/scsi/scsi_error.c 		scmd->sc_data_direction = DMA_NONE;
sc_data_direction 1031 drivers/scsi/scsi_error.c 	scmd->sc_data_direction = ses->data_direction;
sc_data_direction 2363 drivers/scsi/scsi_error.c 	scmd->sc_data_direction		= DMA_BIDIRECTIONAL;
sc_data_direction 1219 drivers/scsi/scsi_lib.c 		cmd->sc_data_direction = DMA_NONE;
sc_data_direction 1221 drivers/scsi/scsi_lib.c 		cmd->sc_data_direction = DMA_TO_DEVICE;
sc_data_direction 1223 drivers/scsi/scsi_lib.c 		cmd->sc_data_direction = DMA_FROM_DEVICE;
sc_data_direction   31 drivers/scsi/scsi_lib_dma.c 				  cmd->sc_data_direction);
sc_data_direction   49 drivers/scsi/scsi_lib_dma.c 			     cmd->sc_data_direction);
sc_data_direction  244 drivers/scsi/sd_zbc.c 	cmd->sc_data_direction = DMA_NONE;
sc_data_direction 4986 drivers/scsi/smartpqi/smartpqi_init.c 	switch (scmd->sc_data_direction) {
sc_data_direction 5002 drivers/scsi/smartpqi/smartpqi_init.c 			scmd->sc_data_direction);
sc_data_direction 5241 drivers/scsi/smartpqi/smartpqi_init.c 	switch (scmd->sc_data_direction) {
sc_data_direction 5257 drivers/scsi/smartpqi/smartpqi_init.c 			scmd->sc_data_direction);
sc_data_direction  202 drivers/scsi/snic/snic_scsi.c 	if (sc->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  204 drivers/scsi/snic/snic_scsi.c 	if (sc->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  707 drivers/scsi/stex.c 	if (cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  709 drivers/scsi/stex.c 	else if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1605 drivers/scsi/storvsc_drv.c 	switch (scmnd->sc_data_direction) {
sc_data_direction 1624 drivers/scsi/storvsc_drv.c 		     scmnd->sc_data_direction);
sc_data_direction  346 drivers/scsi/sym53c8xx_2/sym_glue.c 	dir = cmd->sc_data_direction;
sc_data_direction 2370 drivers/scsi/ufs/ufshcd.c 						lrbp->cmd->sc_data_direction);
sc_data_direction  416 drivers/scsi/virtio_scsi.c 	if (sc && sc->sc_data_direction != DMA_NONE) {
sc_data_direction  417 drivers/scsi/virtio_scsi.c 		if (sc->sc_data_direction != DMA_FROM_DEVICE)
sc_data_direction  419 drivers/scsi/virtio_scsi.c 		if (sc->sc_data_direction != DMA_TO_DEVICE)
sc_data_direction  521 drivers/scsi/virtio_scsi.c 	if (sc->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  525 drivers/scsi/virtio_scsi.c 	else if (sc->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  555 drivers/scsi/virtio_scsi.c 	BUG_ON(sc->sc_data_direction == DMA_BIDIRECTIONAL);
sc_data_direction  393 drivers/scsi/vmw_pvscsi.c 					     cmd->sc_data_direction);
sc_data_direction  426 drivers/scsi/vmw_pvscsi.c 					 bufflen, cmd->sc_data_direction);
sc_data_direction  732 drivers/scsi/vmw_pvscsi.c 	if (cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  734 drivers/scsi/vmw_pvscsi.c 	else if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  736 drivers/scsi/vmw_pvscsi.c 	else if (cmd->sc_data_direction == DMA_NONE)
sc_data_direction  525 drivers/scsi/wd33c93.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  657 drivers/scsi/wd33c93.c 			    (cmd->sc_data_direction == DMA_TO_DEVICE) ?
sc_data_direction 1473 drivers/scsi/wd33c93.c 		if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  242 drivers/scsi/wd719x.c 	if (cmd->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  245 drivers/scsi/wd719x.c 	else if (cmd->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  214 drivers/scsi/xen-scsifront.c 	ring_req->sc_data_direction   = (uint8_t)sc->sc_data_direction;
sc_data_direction  232 drivers/scsi/xen-scsifront.c 	if (shadow->sc->sc_data_direction == DMA_NONE)
sc_data_direction  399 drivers/scsi/xen-scsifront.c 	int grant_ro = (sc->sc_data_direction == DMA_TO_DEVICE);
sc_data_direction  406 drivers/scsi/xen-scsifront.c 	if (sc->sc_data_direction == DMA_NONE || !data_len)
sc_data_direction 2625 drivers/staging/rts5208/ms.c 			if (srb->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 2633 drivers/staging/rts5208/ms.c 			if (srb->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 2643 drivers/staging/rts5208/ms.c 		if (srb->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 2656 drivers/staging/rts5208/ms.c 	if (srb->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 2666 drivers/staging/rts5208/ms.c 		if ((ms_card->pre_dir != srb->sc_data_direction) ||
sc_data_direction 2740 drivers/staging/rts5208/ms.c 		ms_card->pre_dir = srb->sc_data_direction;
sc_data_direction 3385 drivers/staging/rts5208/ms.c 	if (srb->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 3435 drivers/staging/rts5208/ms.c 	if (srb->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 3531 drivers/staging/rts5208/ms.c 		if (srb->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 3554 drivers/staging/rts5208/ms.c 		if (srb->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 3598 drivers/staging/rts5208/ms.c 		if (srb->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 3612 drivers/staging/rts5208/ms.c 	if (srb->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  402 drivers/staging/rts5208/rtsx.c 		if (chip->srb->sc_data_direction == DMA_BIDIRECTIONAL) {
sc_data_direction  922 drivers/staging/rts5208/rtsx_scsi.c 		if (srb->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction  931 drivers/staging/rts5208/rtsx_scsi.c 	if (srb->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction  947 drivers/staging/rts5208/rtsx_scsi.c 			if (srb->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 1514 drivers/staging/rts5208/rtsx_scsi.c 	if (srb->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 1520 drivers/staging/rts5208/rtsx_scsi.c 				    scsi_sg_count(srb), srb->sc_data_direction,
sc_data_direction 1523 drivers/staging/rts5208/rtsx_scsi.c 		if (srb->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 3294 drivers/staging/rts5208/sd.c 	if (srb->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 3336 drivers/staging/rts5208/sd.c 	    ((sd_card->pre_dir != srb->sc_data_direction) ||
sc_data_direction 3400 drivers/staging/rts5208/sd.c 		trans_dma_enable(srb->sc_data_direction, chip, sector_cnt * 512,
sc_data_direction 3403 drivers/staging/rts5208/sd.c 		if (srb->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 3416 drivers/staging/rts5208/sd.c 		if (srb->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 3436 drivers/staging/rts5208/sd.c 			trans_dma_enable(srb->sc_data_direction, chip,
sc_data_direction 3478 drivers/staging/rts5208/sd.c 			trans_dma_enable(srb->sc_data_direction, chip,
sc_data_direction 3494 drivers/staging/rts5208/sd.c 				srb->sc_data_direction, chip->sd_timeout);
sc_data_direction 3540 drivers/staging/rts5208/sd.c 	sd_card->pre_dir = srb->sc_data_direction;
sc_data_direction 1542 drivers/staging/rts5208/xd.c 	trans_dma_enable(chip->srb->sc_data_direction, chip,
sc_data_direction 1742 drivers/staging/rts5208/xd.c 	trans_dma_enable(chip->srb->sc_data_direction, chip,
sc_data_direction 1876 drivers/staging/rts5208/xd.c 	if (srb->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1973 drivers/staging/rts5208/xd.c 		if (srb->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 2017 drivers/staging/rts5208/xd.c 			if (srb->sc_data_direction == DMA_FROM_DEVICE)
sc_data_direction 2027 drivers/staging/rts5208/xd.c 		if (srb->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 2039 drivers/staging/rts5208/xd.c 	if ((srb->sc_data_direction == DMA_TO_DEVICE) &&
sc_data_direction  541 drivers/staging/unisys/visorhba/visorhba_main.c 		dma_data_dir_linux_to_spar(scsicmd->sc_data_direction);
sc_data_direction  148 drivers/target/loopback/tcm_loop.c 			sc->sc_data_direction, 0,
sc_data_direction  357 drivers/usb/storage/freecom.c 	switch (us->srb->sc_data_direction) {
sc_data_direction  431 drivers/usb/storage/freecom.c 			     us->srb->sc_data_direction);
sc_data_direction  457 drivers/usb/storage/isd200.c 	srb->sc_data_direction = dir;
sc_data_direction 1719 drivers/usb/storage/sddr09.c 	if (srb->sc_data_direction == DMA_TO_DEVICE ||
sc_data_direction 1720 drivers/usb/storage/sddr09.c 	    srb->sc_data_direction == DMA_FROM_DEVICE) {
sc_data_direction 1721 drivers/usb/storage/sddr09.c 		unsigned int pipe = (srb->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction 1725 drivers/usb/storage/sddr09.c 			     (srb->sc_data_direction == DMA_TO_DEVICE) ?
sc_data_direction 1596 drivers/usb/storage/shuttle_usbat.c 	if (srb->sc_data_direction == DMA_TO_DEVICE) {
sc_data_direction 1649 drivers/usb/storage/shuttle_usbat.c 	if (len != 0 && (srb->sc_data_direction == DMA_FROM_DEVICE)) {
sc_data_direction  649 drivers/usb/storage/transport.c 			srb->sc_data_direction != DMA_FROM_DEVICE) {
sc_data_direction  980 drivers/usb/storage/transport.c 		pipe = srb->sc_data_direction == DMA_FROM_DEVICE ? 
sc_data_direction 1123 drivers/usb/storage/transport.c 	bcb->Flags = srb->sc_data_direction == DMA_FROM_DEVICE ?
sc_data_direction 1159 drivers/usb/storage/transport.c 		unsigned int pipe = srb->sc_data_direction == DMA_FROM_DEVICE ? 
sc_data_direction 1183 drivers/usb/storage/transport.c 				srb->sc_data_direction == DMA_FROM_DEVICE &&
sc_data_direction  685 drivers/usb/storage/uas.c 	switch (cmnd->sc_data_direction) {
sc_data_direction  338 drivers/usb/storage/usb.c 		if (srb->sc_data_direction == DMA_BIDIRECTIONAL) {
sc_data_direction  121 drivers/xen/xen-scsiback.c 	uint8_t sc_data_direction;
sc_data_direction  407 drivers/xen/xen-scsiback.c 			pending_req->sc_data_direction, TARGET_SCF_ACK_KREF,
sc_data_direction  533 drivers/xen/xen-scsiback.c 	if (pending_req->sc_data_direction == DMA_TO_DEVICE)
sc_data_direction  685 drivers/xen/xen-scsiback.c 	if ((ring_req->sc_data_direction != DMA_BIDIRECTIONAL) &&
sc_data_direction  686 drivers/xen/xen-scsiback.c 		(ring_req->sc_data_direction != DMA_TO_DEVICE) &&
sc_data_direction  687 drivers/xen/xen-scsiback.c 		(ring_req->sc_data_direction != DMA_FROM_DEVICE) &&
sc_data_direction  688 drivers/xen/xen-scsiback.c 		(ring_req->sc_data_direction != DMA_NONE)) {
sc_data_direction  690 drivers/xen/xen-scsiback.c 			ring_req->sc_data_direction);
sc_data_direction  718 drivers/xen/xen-scsiback.c 	pending_req->sc_data_direction = ring_req->sc_data_direction;
sc_data_direction  881 include/scsi/libfc.h 		return fsp->cmd->sc_data_direction == DMA_FROM_DEVICE;
sc_data_direction   93 include/scsi/scsi_cmnd.h 	enum dma_data_direction sc_data_direction;
sc_data_direction  199 include/xen/interface/io/vscsiif.h 	uint8_t sc_data_direction;	/* for DMA_TO_DEVICE(1)