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()
3734 VirtDevice *vdevice; in mptsas_send_link_status_event() local
3744 vdevice = sdev->hostdata; in mptsas_send_link_status_event()
3745 if ((vdevice == NULL) || in mptsas_send_link_status_event()
3746 (vdevice->vtarget == NULL)) in mptsas_send_link_status_event()
3748 if ((vdevice->vtarget->tflags & in mptsas_send_link_status_event()
3750 vdevice->vtarget->raidVolume)) in mptsas_send_link_status_event()
3752 if (vdevice->vtarget->id == id && in mptsas_send_link_status_event()
3753 vdevice->vtarget->channel == in mptsas_send_link_status_event()
4639 VirtDevice *vdevice = NULL; in mptsas_send_raid_event() local
4660 vdevice = sdev->hostdata; in mptsas_send_raid_event()
4698 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4712 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4721 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4838 VirtDevice *vdevice; in mptsas_broadcast_primitive_work() local
4875 vdevice = sc->device->hostdata; in mptsas_broadcast_primitive_work()
4876 if (!vdevice || !vdevice->vtarget) in mptsas_broadcast_primitive_work()
4878 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptsas_broadcast_primitive_work()
4880 if (vdevice->vtarget->raidVolume) in mptsas_broadcast_primitive_work()
4882 channel = vdevice->vtarget->channel; in mptsas_broadcast_primitive_work()
4883 id = vdevice->vtarget->id; in mptsas_broadcast_primitive_work()
4884 lun = vdevice->lun; in mptsas_broadcast_primitive_work()