Lines Matching defs:scmd
1575 * @scmd: scsi command struct
1579 static void ibmvfc_map_sg_list(struct scsi_cmnd *scmd, int nseg,
1585 scsi_for_each_sg(scmd, sg, nseg, i) {
1594 * @scmd: struct scsi_cmnd with the scatterlist
1602 static int ibmvfc_map_sg_data(struct scsi_cmnd *scmd,
1615 sg_mapped = scsi_dma_map(scmd);
1621 scmd_printk(KERN_ERR, scmd, "Failed to map DMA buffer for command\n");
1625 if (scmd->sc_data_direction == DMA_TO_DEVICE) {
1634 ibmvfc_map_sg_list(scmd, sg_mapped, data);
1645 scsi_dma_unmap(scmd);
1647 scmd_printk(KERN_ERR, scmd, "Can't allocate memory for scatterlist\n");
1652 ibmvfc_map_sg_list(scmd, sg_mapped, evt->ext_list);