Lines Matching defs:cmd
18 * @cmd: scsi command
23 int scsi_dma_map(struct scsi_cmnd *cmd)
27 if (scsi_sg_count(cmd)) {
28 struct device *dev = cmd->device->host->dma_dev;
30 nseg = dma_map_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd),
31 cmd->sc_data_direction);
41 * @cmd: scsi command
43 void scsi_dma_unmap(struct scsi_cmnd *cmd)
45 if (scsi_sg_count(cmd)) {
46 struct device *dev = cmd->device->host->dma_dev;
48 dma_unmap_sg(dev, scsi_sglist(cmd), scsi_sg_count(cmd),
49 cmd->sc_data_direction);