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()
1690 VirtDevice *vdevice = sdev->hostdata; in mptsas_slave_configure() local
1692 if (vdevice->vtarget->deleted) { in mptsas_slave_configure()
1694 vdevice->vtarget->deleted = 0; in mptsas_slave_configure()
1848 VirtDevice *vdevice; in mptsas_slave_alloc() local
1853 vdevice = kzalloc(sizeof(VirtDevice), GFP_KERNEL); in mptsas_slave_alloc()
1854 if (!vdevice) { in mptsas_slave_alloc()
1860 vdevice->vtarget = starget->hostdata; in mptsas_slave_alloc()
1872 vdevice->lun = sdev->lun; in mptsas_slave_alloc()
1886 kfree(vdevice); in mptsas_slave_alloc()
1890 vdevice->vtarget->num_luns++; in mptsas_slave_alloc()
1891 sdev->hostdata = vdevice; in mptsas_slave_alloc()
1900 VirtDevice *vdevice = SCpnt->device->hostdata; in mptsas_qcmd() local
1902 if (!vdevice || !vdevice->vtarget || vdevice->vtarget->deleted) { in mptsas_qcmd()
1931 VirtDevice *vdevice; in mptsas_eh_timed_out() local
1957 vdevice = sc->device->hostdata; in mptsas_eh_timed_out()
1958 if (vdevice && vdevice->vtarget && (vdevice->vtarget->inDMD in mptsas_eh_timed_out()
1959 || vdevice->vtarget->deleted)) { in mptsas_eh_timed_out()
3735 VirtDevice *vdevice; in mptsas_send_link_status_event() local
3745 vdevice = sdev->hostdata; in mptsas_send_link_status_event()
3746 if ((vdevice == NULL) || in mptsas_send_link_status_event()
3747 (vdevice->vtarget == NULL)) in mptsas_send_link_status_event()
3749 if ((vdevice->vtarget->tflags & in mptsas_send_link_status_event()
3751 vdevice->vtarget->raidVolume)) in mptsas_send_link_status_event()
3753 if (vdevice->vtarget->id == id && in mptsas_send_link_status_event()
3754 vdevice->vtarget->channel == in mptsas_send_link_status_event()
4640 VirtDevice *vdevice = NULL; in mptsas_send_raid_event() local
4661 vdevice = sdev->hostdata; in mptsas_send_raid_event()
4699 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4713 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4722 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4839 VirtDevice *vdevice; in mptsas_broadcast_primative_work() local
4876 vdevice = sc->device->hostdata; in mptsas_broadcast_primative_work()
4877 if (!vdevice || !vdevice->vtarget) in mptsas_broadcast_primative_work()
4879 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptsas_broadcast_primative_work()
4881 if (vdevice->vtarget->raidVolume) in mptsas_broadcast_primative_work()
4883 channel = vdevice->vtarget->channel; in mptsas_broadcast_primative_work()
4884 id = vdevice->vtarget->id; in mptsas_broadcast_primative_work()
4885 lun = vdevice->lun; in mptsas_broadcast_primative_work()