Lines Matching refs:vtarget
758 VirtTarget *vtarget;
764 vtarget = starget->hostdata;
970 VirtTarget *vtarget = NULL;
975 (vdevice->vtarget == NULL))
977 if ((vdevice->vtarget->tflags &
979 vdevice->vtarget->raidVolume))
981 if (vdevice->vtarget->id == id &&
982 vdevice->vtarget->channel == channel)
983 vtarget = vdevice->vtarget;
985 return vtarget;
1114 VirtTarget *vtarget = NULL;
1121 vtarget = mptsas_find_vtarget(ioc, channel, id);
1122 if (vtarget) {
1123 mptsas_block_io_starget(vtarget->starget);
1124 vtarget->deleted = 1; /* block IO */
1692 if (vdevice->vtarget->deleted) {
1694 vdevice->vtarget->deleted = 0;
1719 VirtTarget *vtarget;
1726 vtarget = kzalloc(sizeof(VirtTarget), GFP_KERNEL);
1727 if (!vtarget)
1730 vtarget->starget = starget;
1731 vtarget->ioc_id = ioc->id;
1732 vtarget->tflags = MPT_TARGET_FLAGS_Q_YES;
1741 kfree(vtarget);
1751 vtarget->raidVolume = 1;
1772 vtarget->tflags |=
1782 kfree(vtarget);
1786 vtarget->id = id;
1787 vtarget->channel = channel;
1788 starget->hostdata = vtarget;
1801 VirtTarget *vtarget;
1806 vtarget = starget->hostdata;
1835 vtarget->starget = NULL;
1860 vdevice->vtarget = starget->hostdata;
1890 vdevice->vtarget->num_luns++;
1902 if (!vdevice || !vdevice->vtarget || vdevice->vtarget->deleted) {
1958 if (vdevice && vdevice->vtarget && (vdevice->vtarget->inDMD
1959 || vdevice->vtarget->deleted)) {
3038 VirtTarget *vtarget;
3266 vtarget = mptsas_find_vtarget(ioc,
3269 if (vtarget && vtarget->inDMD) {
3271 vtarget->inDMD = 0;
3746 (vdevice->vtarget == NULL))
3748 if ((vdevice->vtarget->tflags &
3750 vdevice->vtarget->raidVolume))
3752 if (vdevice->vtarget->id == id &&
3753 vdevice->vtarget->channel ==
3776 VirtTarget *vtarget = NULL;
3843 vtarget = mptsas_find_vtarget(ioc,
3846 if (vtarget)
3847 vtarget->deleted = 1;
4307 VirtTarget *vtarget;
4440 vtarget = starget->hostdata;
4441 if (!vtarget) {
4456 vtarget->id = hot_plug_info->phys_disk_num;
4457 vtarget->tflags |= MPT_TARGET_FLAGS_RAID_COMPONENT;
4499 vtarget = starget->hostdata;
4500 if (!vtarget) {
4507 if (!(vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT)) {
4522 vtarget->tflags &= ~MPT_TARGET_FLAGS_RAID_COMPONENT;
4523 vtarget->id = hot_plug_info->id;
4698 vdevice->vtarget->deleted = 1; /* block IO */
4712 vdevice->vtarget->deleted = 1; /* block IO */
4721 vdevice->vtarget->deleted = 1; /* block IO */
4876 if (!vdevice || !vdevice->vtarget)
4878 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT)
4880 if (vdevice->vtarget->raidVolume)
4882 channel = vdevice->vtarget->channel;
4883 id = vdevice->vtarget->id;
5017 VirtTarget *vtarget = NULL;
5023 vtarget = mptsas_find_vtarget(ioc, channel, id);
5024 if (vtarget) {
5031 if (vtarget->raidVolume) {
5039 vtarget->inDMD = 1;