Lines Matching refs:vtarget
758 VirtTarget *vtarget; in mptsas_add_device_component_starget() local
764 vtarget = starget->hostdata; in mptsas_add_device_component_starget()
970 VirtTarget *vtarget = NULL; in mptsas_find_vtarget() local
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()
985 return vtarget; in mptsas_find_vtarget()
1114 VirtTarget *vtarget = NULL; in mptsas_target_reset_queue() local
1121 vtarget = mptsas_find_vtarget(ioc, channel, id); in mptsas_target_reset_queue()
1122 if (vtarget) { in mptsas_target_reset_queue()
1123 mptsas_block_io_starget(vtarget->starget); in mptsas_target_reset_queue()
1124 vtarget->deleted = 1; /* block IO */ in mptsas_target_reset_queue()
1692 if (vdevice->vtarget->deleted) { in mptsas_slave_configure()
1694 vdevice->vtarget->deleted = 0; in mptsas_slave_configure()
1719 VirtTarget *vtarget; in mptsas_target_alloc() local
1726 vtarget = kzalloc(sizeof(VirtTarget), GFP_KERNEL); in mptsas_target_alloc()
1727 if (!vtarget) in mptsas_target_alloc()
1730 vtarget->starget = starget; in mptsas_target_alloc()
1731 vtarget->ioc_id = ioc->id; in mptsas_target_alloc()
1732 vtarget->tflags = MPT_TARGET_FLAGS_Q_YES; in mptsas_target_alloc()
1741 kfree(vtarget); in mptsas_target_alloc()
1751 vtarget->raidVolume = 1; in mptsas_target_alloc()
1772 vtarget->tflags |= in mptsas_target_alloc()
1782 kfree(vtarget); in mptsas_target_alloc()
1786 vtarget->id = id; in mptsas_target_alloc()
1787 vtarget->channel = channel; in mptsas_target_alloc()
1788 starget->hostdata = vtarget; in mptsas_target_alloc()
1801 VirtTarget *vtarget; in mptsas_target_destroy() local
1806 vtarget = starget->hostdata; in mptsas_target_destroy()
1835 vtarget->starget = NULL; in mptsas_target_destroy()
1860 vdevice->vtarget = starget->hostdata; in mptsas_slave_alloc()
1890 vdevice->vtarget->num_luns++; in mptsas_slave_alloc()
1902 if (!vdevice || !vdevice->vtarget || vdevice->vtarget->deleted) { in mptsas_qcmd()
1958 if (vdevice && vdevice->vtarget && (vdevice->vtarget->inDMD in mptsas_eh_timed_out()
1959 || vdevice->vtarget->deleted)) { in mptsas_eh_timed_out()
3038 VirtTarget *vtarget; in mptsas_probe_one_phy() local
3266 vtarget = mptsas_find_vtarget(ioc, in mptsas_probe_one_phy()
3269 if (vtarget && vtarget->inDMD) { in mptsas_probe_one_phy()
3271 vtarget->inDMD = 0; in mptsas_probe_one_phy()
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()
3776 VirtTarget *vtarget = NULL; in mptsas_not_responding_devices() local
3843 vtarget = mptsas_find_vtarget(ioc, in mptsas_not_responding_devices()
3846 if (vtarget) in mptsas_not_responding_devices()
3847 vtarget->deleted = 1; in mptsas_not_responding_devices()
4307 VirtTarget *vtarget; in mptsas_hotplug_work() local
4440 vtarget = starget->hostdata; in mptsas_hotplug_work()
4441 if (!vtarget) { in mptsas_hotplug_work()
4456 vtarget->id = hot_plug_info->phys_disk_num; in mptsas_hotplug_work()
4457 vtarget->tflags |= MPT_TARGET_FLAGS_RAID_COMPONENT; in mptsas_hotplug_work()
4499 vtarget = starget->hostdata; in mptsas_hotplug_work()
4500 if (!vtarget) { in mptsas_hotplug_work()
4507 if (!(vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT)) { in mptsas_hotplug_work()
4522 vtarget->tflags &= ~MPT_TARGET_FLAGS_RAID_COMPONENT; in mptsas_hotplug_work()
4523 vtarget->id = hot_plug_info->id; in mptsas_hotplug_work()
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()
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()
5017 VirtTarget *vtarget = NULL; in mptsas_event_process() local
5023 vtarget = mptsas_find_vtarget(ioc, channel, id); in mptsas_event_process()
5024 if (vtarget) { in mptsas_event_process()
5031 if (vtarget->raidVolume) { in mptsas_event_process()
5039 vtarget->inDMD = 1; in mptsas_event_process()