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,
1319 VirtDevice *vdevice = SCpnt->device->hostdata;
1370 if ((vdevice->vtarget->tflags & MPT_TARGET_FLAGS_Q_YES) &&
1379 pScsiReq->TargetID = (u8) vdevice->vtarget->id;
1380 pScsiReq->Bus = vdevice->vtarget->channel;
1382 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT)
1689 VirtDevice *vdevice;
1707 vdevice = SCpnt->device->hostdata;
1708 if (!vdevice || !vdevice->vtarget) {
1720 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) {
1731 if (vdevice->vtarget->raidVolume) {
1771 vdevice->vtarget->channel,
1772 vdevice->vtarget->id, vdevice->lun,
1809 VirtDevice *vdevice;
1825 vdevice = SCpnt->device->hostdata;
1826 if (!vdevice || !vdevice->vtarget) {
1833 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) {
1840 vdevice->vtarget->channel,
1841 vdevice->vtarget->id, 0, 0,
1869 VirtDevice *vdevice;
1888 vdevice = SCpnt->device->hostdata;
1889 if (!vdevice || !vdevice->vtarget)
1893 vdevice->vtarget->channel, 0, 0, 0,
2288 VirtDevice *vdevice;
2293 vdevice = sdev->hostdata;
2294 if (!vdevice)
2297 mptscsih_search_running_cmds(hd, vdevice);
2299 mptscsih_synchronize_cache(hd, vdevice);
2300 kfree(vdevice);
2355 VirtDevice *vdevice;
2362 vdevice = sdev->hostdata;
2373 vdevice->configured_lun = 1;
2408 VirtDevice *vdevice;
2416 vdevice = sc->device->hostdata;
2430 if ((sense_data[12] == 0x5D) && (vdevice->vtarget->raidVolume == 0)) {
2447 vdevice->vtarget, MPI_SEP_REQ_SLOTSTATUS_PREDICTED_FAULT);
2448 vdevice->vtarget->tflags |=
3003 * @vdevice: virtual target device
3010 mptscsih_synchronize_cache(MPT_SCSI_HOST *hd, VirtDevice *vdevice)
3017 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT)
3020 if (vdevice->vtarget->type != TYPE_DISK || vdevice->vtarget->deleted ||
3021 !vdevice->configured_lun)
3034 iocmd.channel = vdevice->vtarget->channel;
3035 iocmd.id = vdevice->vtarget->id;
3036 iocmd.lun = vdevice->lun;