Lines Matching refs:vdevice
996 VirtDevice *vdevice; in mptsas_find_vtarget() local
1000 vdevice = sdev->hostdata; in mptsas_find_vtarget()
1001 if ((vdevice == NULL) || in mptsas_find_vtarget()
1002 (vdevice->vtarget == NULL)) in mptsas_find_vtarget()
1004 if ((vdevice->vtarget->tflags & in mptsas_find_vtarget()
1006 vdevice->vtarget->raidVolume)) in mptsas_find_vtarget()
1008 if (vdevice->vtarget->id == id && in mptsas_find_vtarget()
1009 vdevice->vtarget->channel == channel) in mptsas_find_vtarget()
1010 vtarget = vdevice->vtarget; in mptsas_find_vtarget()
1718 VirtDevice *vdevice = sdev->hostdata; in mptsas_slave_configure() local
1720 if (vdevice->vtarget->deleted) { in mptsas_slave_configure()
1722 vdevice->vtarget->deleted = 0; in mptsas_slave_configure()
1876 VirtDevice *vdevice; in mptsas_slave_alloc() local
1881 vdevice = kzalloc(sizeof(VirtDevice), GFP_KERNEL); in mptsas_slave_alloc()
1882 if (!vdevice) { in mptsas_slave_alloc()
1888 vdevice->vtarget = starget->hostdata; in mptsas_slave_alloc()
1900 vdevice->lun = sdev->lun; in mptsas_slave_alloc()
1914 kfree(vdevice); in mptsas_slave_alloc()
1918 vdevice->vtarget->num_luns++; in mptsas_slave_alloc()
1919 sdev->hostdata = vdevice; in mptsas_slave_alloc()
1928 VirtDevice *vdevice = SCpnt->device->hostdata; in mptsas_qcmd() local
1930 if (!vdevice || !vdevice->vtarget || vdevice->vtarget->deleted) { in mptsas_qcmd()
1959 VirtDevice *vdevice; in mptsas_eh_timed_out() local
1985 vdevice = sc->device->hostdata; in mptsas_eh_timed_out()
1986 if (vdevice && vdevice->vtarget && (vdevice->vtarget->inDMD in mptsas_eh_timed_out()
1987 || vdevice->vtarget->deleted)) { in mptsas_eh_timed_out()
3759 VirtDevice *vdevice; in mptsas_send_link_status_event() local
3769 vdevice = sdev->hostdata; in mptsas_send_link_status_event()
3770 if ((vdevice == NULL) || in mptsas_send_link_status_event()
3771 (vdevice->vtarget == NULL)) in mptsas_send_link_status_event()
3773 if ((vdevice->vtarget->tflags & in mptsas_send_link_status_event()
3775 vdevice->vtarget->raidVolume)) in mptsas_send_link_status_event()
3777 if (vdevice->vtarget->id == id && in mptsas_send_link_status_event()
3778 vdevice->vtarget->channel == in mptsas_send_link_status_event()
4665 VirtDevice *vdevice = NULL; in mptsas_send_raid_event() local
4686 vdevice = sdev->hostdata; in mptsas_send_raid_event()
4724 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4738 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4747 vdevice->vtarget->deleted = 1; /* block IO */ in mptsas_send_raid_event()
4865 VirtDevice *vdevice; in mptsas_broadcast_primitive_work() local
4902 vdevice = sc->device->hostdata; in mptsas_broadcast_primitive_work()
4903 if (!vdevice || !vdevice->vtarget) in mptsas_broadcast_primitive_work()
4905 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT) in mptsas_broadcast_primitive_work()
4907 if (vdevice->vtarget->raidVolume) in mptsas_broadcast_primitive_work()
4909 channel = vdevice->vtarget->channel; in mptsas_broadcast_primitive_work()
4910 id = vdevice->vtarget->id; in mptsas_broadcast_primitive_work()
4911 lun = vdevice->lun; in mptsas_broadcast_primitive_work()