Lines Matching refs:cmd
17 * @cmd: scsi command
22 int scsi_dma_map(struct scsi_cmnd *cmd)
26 if (scsi_sg_count(cmd)) {
27 struct device *dev = cmd->device->host->dma_dev;
29 nseg = dma_map_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd),
30 cmd->sc_data_direction);
40 * @cmd: scsi command
42 void scsi_dma_unmap(struct scsi_cmnd *cmd)
44 if (scsi_sg_count(cmd)) {
45 struct device *dev = cmd->device->host->dma_dev;
47 dma_unmap_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd),
48 cmd->sc_data_direction);