Lines Matching refs:vdevice

109 static void	mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice);
593 VirtDevice *vdevice; in mptscsih_io_done() local
631 VirtDevice *vdevice = sc->device->hostdata; in mptscsih_io_done() local
633 if (!vdevice || !vdevice->vtarget || in mptscsih_io_done()
634 vdevice->vtarget->deleted) { in mptscsih_io_done()
727 vdevice = sc->device->hostdata; in mptscsih_io_done()
728 if (!vdevice) in mptscsih_io_done()
730 vtarget = vdevice->vtarget; in mptscsih_io_done()
747 VirtDevice *vdevice = in mptscsih_io_done() local
754 if (vdevice && vdevice-> in mptscsih_io_done()
756 vdevice->vtarget-> in mptscsih_io_done()
761 else if (vdevice && in mptscsih_io_done()
762 vdevice->vtarget) in mptscsih_io_done()
763 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()
1318 VirtDevice *vdevice = SCpnt->device->hostdata; in mptscsih_qcmd() local
1369 if ((vdevice->vtarget->tflags & MPT_TARGET_FLAGS_Q_YES) && in mptscsih_qcmd()
1378 pScsiReq->TargetID = (u8) vdevice->vtarget->id; in mptscsih_qcmd()
1379 pScsiReq->Bus = vdevice->vtarget->channel; in mptscsih_qcmd()
1381 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptscsih_qcmd()
1688 VirtDevice *vdevice; in mptscsih_abort() local
1706 vdevice = SCpnt->device->hostdata; in mptscsih_abort()
1707 if (!vdevice || !vdevice->vtarget) { in mptscsih_abort()
1719 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) { in mptscsih_abort()
1730 if (vdevice->vtarget->raidVolume) { in mptscsih_abort()
1770 vdevice->vtarget->channel, in mptscsih_abort()
1771 vdevice->vtarget->id, vdevice->lun, in mptscsih_abort()
1808 VirtDevice *vdevice; in mptscsih_dev_reset() local
1824 vdevice = SCpnt->device->hostdata; in mptscsih_dev_reset()
1825 if (!vdevice || !vdevice->vtarget) { in mptscsih_dev_reset()
1832 vdevice->vtarget->channel, in mptscsih_dev_reset()
1833 vdevice->vtarget->id, vdevice->lun, 0, in mptscsih_dev_reset()
1860 VirtDevice *vdevice; in mptscsih_target_reset() local
1876 vdevice = SCpnt->device->hostdata; in mptscsih_target_reset()
1877 if (!vdevice || !vdevice->vtarget) { in mptscsih_target_reset()
1884 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) { in mptscsih_target_reset()
1891 vdevice->vtarget->channel, in mptscsih_target_reset()
1892 vdevice->vtarget->id, 0, 0, in mptscsih_target_reset()
1920 VirtDevice *vdevice; in mptscsih_bus_reset() local
1939 vdevice = SCpnt->device->hostdata; in mptscsih_bus_reset()
1940 if (!vdevice || !vdevice->vtarget) in mptscsih_bus_reset()
1944 vdevice->vtarget->channel, 0, 0, 0, in mptscsih_bus_reset()
2339 VirtDevice *vdevice; in mptscsih_slave_destroy() local
2344 vdevice = sdev->hostdata; in mptscsih_slave_destroy()
2345 if (!vdevice) in mptscsih_slave_destroy()
2348 mptscsih_search_running_cmds(hd, vdevice); in mptscsih_slave_destroy()
2350 mptscsih_synchronize_cache(hd, vdevice); in mptscsih_slave_destroy()
2351 kfree(vdevice); in mptscsih_slave_destroy()
2406 VirtDevice *vdevice; in mptscsih_slave_configure() local
2413 vdevice = sdev->hostdata; in mptscsih_slave_configure()
2424 vdevice->configured_lun = 1; in mptscsih_slave_configure()
2457 VirtDevice *vdevice; in mptscsih_copy_sense_data() local
2465 vdevice = sc->device->hostdata; in mptscsih_copy_sense_data()
2479 if ((sense_data[12] == 0x5D) && (vdevice->vtarget->raidVolume == 0)) { in mptscsih_copy_sense_data()
2496 vdevice->vtarget, MPI_SEP_REQ_SLOTSTATUS_PREDICTED_FAULT); in mptscsih_copy_sense_data()
2497 vdevice->vtarget->tflags |= in mptscsih_copy_sense_data()
3059 mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice) in mptscsih_synchronize_cache() argument
3066 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptscsih_synchronize_cache()
3069 if (vdevice->vtarget->type != TYPE_DISK || vdevice->vtarget->deleted || in mptscsih_synchronize_cache()
3070 !vdevice->configured_lun) in mptscsih_synchronize_cache()
3083 iocmd.channel = vdevice->vtarget->channel; in mptscsih_synchronize_cache()
3084 iocmd.id = vdevice->vtarget->id; in mptscsih_synchronize_cache()
3085 iocmd.lun = vdevice->lun; in mptscsih_synchronize_cache()