Lines Matching refs:vdevice
109 static void mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice);
593 VirtDevice *vdevice;
631 VirtDevice *vdevice = sc->device->hostdata;
633 if (!vdevice || !vdevice->vtarget ||
634 vdevice->vtarget->deleted) {
727 vdevice = sc->device->hostdata;
728 if (!vdevice)
730 vtarget = vdevice->vtarget;
747 VirtDevice *vdevice =
754 if (vdevice && vdevice->
756 vdevice->vtarget->
761 else if (vdevice &&
762 vdevice->vtarget)
763 vdevice->vtarget->
1070 * @vdevice: per device private data
1077 mptscsih_search_running_cmds(MPT_SCSI_HOST *hd, VirtDevice *vdevice)
1096 if (vdevice->vtarget->tflags &
1101 int_to_scsilun(vdevice->lun, &lun);
1102 if ((mf->Bus != vdevice->vtarget->channel) ||
1103 (mf->TargetID != vdevice->vtarget->id) ||
1119 vdevice->vtarget->channel, vdevice->vtarget->id,
1318 VirtDevice *vdevice = SCpnt->device->hostdata;
1369 if ((vdevice->vtarget->tflags & MPT_TARGET_FLAGS_Q_YES) &&
1378 pScsiReq->TargetID = (u8) vdevice->vtarget->id;
1379 pScsiReq->Bus = vdevice->vtarget->channel;
1381 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT)
1688 VirtDevice *vdevice;
1706 vdevice = SCpnt->device->hostdata;
1707 if (!vdevice || !vdevice->vtarget) {
1719 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) {
1730 if (vdevice->vtarget->raidVolume) {
1770 vdevice->vtarget->channel,
1771 vdevice->vtarget->id, vdevice->lun,
1808 VirtDevice *vdevice;
1824 vdevice = SCpnt->device->hostdata;
1825 if (!vdevice || !vdevice->vtarget) {
1832 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) {
1839 vdevice->vtarget->channel,
1840 vdevice->vtarget->id, 0, 0,
1868 VirtDevice *vdevice;
1887 vdevice = SCpnt->device->hostdata;
1888 if (!vdevice || !vdevice->vtarget)
1892 vdevice->vtarget->channel, 0, 0, 0,
2287 VirtDevice *vdevice;
2292 vdevice = sdev->hostdata;
2293 if (!vdevice)
2296 mptscsih_search_running_cmds(hd, vdevice);
2298 mptscsih_synchronize_cache(hd, vdevice);
2299 kfree(vdevice);
2354 VirtDevice *vdevice;
2361 vdevice = sdev->hostdata;
2372 vdevice->configured_lun = 1;
2407 VirtDevice *vdevice;
2415 vdevice = sc->device->hostdata;
2429 if ((sense_data[12] == 0x5D) && (vdevice->vtarget->raidVolume == 0)) {
2446 vdevice->vtarget, MPI_SEP_REQ_SLOTSTATUS_PREDICTED_FAULT);
2447 vdevice->vtarget->tflags |=
3002 * @vdevice: virtual target device
3009 mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice)
3016 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT)
3019 if (vdevice->vtarget->type != TYPE_DISK || vdevice->vtarget->deleted ||
3020 !vdevice->configured_lun)
3033 iocmd.channel = vdevice->vtarget->channel;
3034 iocmd.id = vdevice->vtarget->id;
3035 iocmd.lun = vdevice->lun;