Lines Matching refs:vdevice

109 static void	mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice);
595 VirtDevice *vdevice; in mptscsih_io_done() local
633 VirtDevice *vdevice = sc->device->hostdata; in mptscsih_io_done() local
635 if (!vdevice || !vdevice->vtarget || in mptscsih_io_done()
636 vdevice->vtarget->deleted) { in mptscsih_io_done()
729 vdevice = sc->device->hostdata; in mptscsih_io_done()
730 if (!vdevice) in mptscsih_io_done()
732 vtarget = vdevice->vtarget; in mptscsih_io_done()
749 VirtDevice *vdevice = in mptscsih_io_done() local
756 if (vdevice && vdevice-> in mptscsih_io_done()
758 vdevice->vtarget-> in mptscsih_io_done()
763 else if (vdevice && in mptscsih_io_done()
764 vdevice->vtarget) in mptscsih_io_done()
765 vdevice->vtarget-> in mptscsih_io_done()
1077 mptscsih_search_running_cmds(MPT_SCSI_HOST *hd, VirtDevice *vdevice) in mptscsih_search_running_cmds() argument
1096 if (vdevice->vtarget->tflags & in mptscsih_search_running_cmds()
1101 int_to_scsilun(vdevice->lun, &lun); in mptscsih_search_running_cmds()
1102 if ((mf->Bus != vdevice->vtarget->channel) || in mptscsih_search_running_cmds()
1103 (mf->TargetID != vdevice->vtarget->id) || in mptscsih_search_running_cmds()
1119 vdevice->vtarget->channel, vdevice->vtarget->id, in mptscsih_search_running_cmds()
1316 VirtDevice *vdevice = SCpnt->device->hostdata; in mptscsih_qcmd() local
1367 if ((vdevice->vtarget->tflags & MPT_TARGET_FLAGS_Q_YES) && in mptscsih_qcmd()
1376 pScsiReq->TargetID = (u8) vdevice->vtarget->id; in mptscsih_qcmd()
1377 pScsiReq->Bus = vdevice->vtarget->channel; in mptscsih_qcmd()
1379 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptscsih_qcmd()
1687 VirtDevice *vdevice; in mptscsih_abort() local
1705 vdevice = SCpnt->device->hostdata; in mptscsih_abort()
1706 if (!vdevice || !vdevice->vtarget) { in mptscsih_abort()
1718 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) { in mptscsih_abort()
1729 if (vdevice->vtarget->raidVolume) { in mptscsih_abort()
1769 vdevice->vtarget->channel, in mptscsih_abort()
1770 vdevice->vtarget->id, vdevice->lun, in mptscsih_abort()
1807 VirtDevice *vdevice; in mptscsih_dev_reset() local
1823 vdevice = SCpnt->device->hostdata; in mptscsih_dev_reset()
1824 if (!vdevice || !vdevice->vtarget) { in mptscsih_dev_reset()
1831 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) { in mptscsih_dev_reset()
1838 vdevice->vtarget->channel, in mptscsih_dev_reset()
1839 vdevice->vtarget->id, 0, 0, in mptscsih_dev_reset()
1867 VirtDevice *vdevice; in mptscsih_bus_reset() local
1886 vdevice = SCpnt->device->hostdata; in mptscsih_bus_reset()
1887 if (!vdevice || !vdevice->vtarget) in mptscsih_bus_reset()
1891 vdevice->vtarget->channel, 0, 0, 0, in mptscsih_bus_reset()
2286 VirtDevice *vdevice; in mptscsih_slave_destroy() local
2291 vdevice = sdev->hostdata; in mptscsih_slave_destroy()
2292 if (!vdevice) in mptscsih_slave_destroy()
2295 mptscsih_search_running_cmds(hd, vdevice); in mptscsih_slave_destroy()
2297 mptscsih_synchronize_cache(hd, vdevice); in mptscsih_slave_destroy()
2298 kfree(vdevice); in mptscsih_slave_destroy()
2353 VirtDevice *vdevice; in mptscsih_slave_configure() local
2360 vdevice = sdev->hostdata; in mptscsih_slave_configure()
2371 vdevice->configured_lun = 1; in mptscsih_slave_configure()
2406 VirtDevice *vdevice; in mptscsih_copy_sense_data() local
2414 vdevice = sc->device->hostdata; in mptscsih_copy_sense_data()
2428 if ((sense_data[12] == 0x5D) && (vdevice->vtarget->raidVolume == 0)) { in mptscsih_copy_sense_data()
2445 vdevice->vtarget, MPI_SEP_REQ_SLOTSTATUS_PREDICTED_FAULT); in mptscsih_copy_sense_data()
2446 vdevice->vtarget->tflags |= in mptscsih_copy_sense_data()
3008 mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice) in mptscsih_synchronize_cache() argument
3015 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptscsih_synchronize_cache()
3018 if (vdevice->vtarget->type != TYPE_DISK || vdevice->vtarget->deleted || in mptscsih_synchronize_cache()
3019 !vdevice->configured_lun) in mptscsih_synchronize_cache()
3032 iocmd.channel = vdevice->vtarget->channel; in mptscsih_synchronize_cache()
3033 iocmd.id = vdevice->vtarget->id; in mptscsih_synchronize_cache()
3034 iocmd.lun = vdevice->lun; in mptscsih_synchronize_cache()