Lines Matching defs:scmd
1351 * @scmd: scsi command struct
1355 static void ibmvfc_map_sg_list(struct scsi_cmnd *scmd, int nseg,
1361 scsi_for_each_sg(scmd, sg, nseg, i) {
1370 * @scmd: struct scsi_cmnd with the scatterlist
1378 static int ibmvfc_map_sg_data(struct scsi_cmnd *scmd,
1390 sg_mapped = scsi_dma_map(scmd);
1396 scmd_printk(KERN_ERR, scmd, "Failed to map DMA buffer for command\n");
1400 if (scmd->sc_data_direction == DMA_TO_DEVICE) {
1409 ibmvfc_map_sg_list(scmd, sg_mapped, data);
1420 scsi_dma_unmap(scmd);
1422 scmd_printk(KERN_ERR, scmd, "Can't allocate memory for scatterlist\n");
1427 ibmvfc_map_sg_list(scmd, sg_mapped, evt->ext_list);