Lines Matching refs:vdevice

969 	VirtDevice			*vdevice;  in mptsas_find_vtarget()  local
973 vdevice = sdev->hostdata; in mptsas_find_vtarget()
974 if ((vdevice == NULL) || in mptsas_find_vtarget()
975 (vdevice->vtarget == NULL)) in mptsas_find_vtarget()
977 if ((vdevice->vtarget->tflags & in mptsas_find_vtarget()
979 vdevice->vtarget->raidVolume)) in mptsas_find_vtarget()
981 if (vdevice->vtarget->id == id && in mptsas_find_vtarget()
982 vdevice->vtarget->channel == channel) in mptsas_find_vtarget()
983 vtarget = vdevice->vtarget; in mptsas_find_vtarget()
1691 VirtDevice *vdevice = sdev->hostdata; in mptsas_slave_configure() local
1693 if (vdevice->vtarget->deleted) { in mptsas_slave_configure()
1695 vdevice->vtarget->deleted = 0; in mptsas_slave_configure()
1849 VirtDevice *vdevice; in mptsas_slave_alloc() local
1854 vdevice = kzalloc(sizeof(VirtDevice), GFP_KERNEL); in mptsas_slave_alloc()
1855 if (!vdevice) { in mptsas_slave_alloc()
1861 vdevice->vtarget = starget->hostdata; in mptsas_slave_alloc()
1873 vdevice->lun = sdev->lun; in mptsas_slave_alloc()
1887 kfree(vdevice); in mptsas_slave_alloc()
1891 vdevice->vtarget->num_luns++; in mptsas_slave_alloc()
1892 sdev->hostdata = vdevice; in mptsas_slave_alloc()
1901 VirtDevice *vdevice = SCpnt->device->hostdata; in mptsas_qcmd() local
1903 if (!vdevice || !vdevice->vtarget || vdevice->vtarget->deleted) { in mptsas_qcmd()
1932 VirtDevice *vdevice; in mptsas_eh_timed_out() local
1958 vdevice = sc->device->hostdata; in mptsas_eh_timed_out()
1959 if (vdevice && vdevice->vtarget && (vdevice->vtarget->inDMD in mptsas_eh_timed_out()
1960 || vdevice->vtarget->deleted)) { in mptsas_eh_timed_out()
3739 VirtDevice *vdevice; in mptsas_send_link_status_event() local
3749 vdevice = sdev->hostdata; in mptsas_send_link_status_event()
3750 if ((vdevice == NULL) || in mptsas_send_link_status_event()
3751 (vdevice->vtarget == NULL)) in mptsas_send_link_status_event()
3753 if ((vdevice->vtarget->tflags & in mptsas_send_link_status_event()
3755 vdevice->vtarget->raidVolume)) in mptsas_send_link_status_event()
3757 if (vdevice->vtarget->id == id && in mptsas_send_link_status_event()
3758 vdevice->vtarget->channel == in mptsas_send_link_status_event()
4644 VirtDevice *vdevice = NULL; in mptsas_send_raid_event() local
4665 vdevice = sdev->hostdata; in mptsas_send_raid_event()
4703 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4717 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4726 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4843 VirtDevice *vdevice; in mptsas_broadcast_primative_work() local
4880 vdevice = sc->device->hostdata; in mptsas_broadcast_primative_work()
4881 if (!vdevice || !vdevice->vtarget) in mptsas_broadcast_primative_work()
4883 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptsas_broadcast_primative_work()
4885 if (vdevice->vtarget->raidVolume) in mptsas_broadcast_primative_work()
4887 channel = vdevice->vtarget->channel; in mptsas_broadcast_primative_work()
4888 id = vdevice->vtarget->id; in mptsas_broadcast_primative_work()
4889 lun = vdevice->lun; in mptsas_broadcast_primative_work()