Lines Matching refs:vtarget

997 	VirtTarget 			*vtarget = NULL;
1002 (vdevice->vtarget == NULL))
1004 if ((vdevice->vtarget->tflags &
1006 vdevice->vtarget->raidVolume))
1008 if (vdevice->vtarget->id == id &&
1009 vdevice->vtarget->channel == channel)
1010 vtarget = vdevice->vtarget;
1012 return vtarget;
1140 VirtTarget *vtarget = NULL;
1147 vtarget = mptsas_find_vtarget(ioc, channel, id);
1148 if (vtarget) {
1149 mptsas_block_io_starget(vtarget->starget);
1150 vtarget->deleted = 1; /* block IO */
1720 if (vdevice->vtarget->deleted) {
1722 vdevice->vtarget->deleted = 0;
1747 VirtTarget *vtarget;
1754 vtarget = kzalloc(sizeof(VirtTarget), GFP_KERNEL);
1755 if (!vtarget)
1758 vtarget->starget = starget;
1759 vtarget->ioc_id = ioc->id;
1760 vtarget->tflags = MPT_TARGET_FLAGS_Q_YES;
1769 kfree(vtarget);
1779 vtarget->raidVolume = 1;
1800 vtarget->tflags |=
1810 kfree(vtarget);
1814 vtarget->id = id;
1815 vtarget->channel = channel;
1816 starget->hostdata = vtarget;
1829 VirtTarget *vtarget;
1834 vtarget = starget->hostdata;
1863 vtarget->starget = NULL;
1888 vdevice->vtarget = starget->hostdata;
1918 vdevice->vtarget->num_luns++;
1930 if (!vdevice || !vdevice->vtarget || vdevice->vtarget->deleted) {
1986 if (vdevice && vdevice->vtarget && (vdevice->vtarget->inDMD
1987 || vdevice->vtarget->deleted)) {
3069 VirtTarget *vtarget;
3297 vtarget = mptsas_find_vtarget(ioc,
3300 if (vtarget && vtarget->inDMD) {
3302 vtarget->inDMD = 0;
3774 (vdevice->vtarget == NULL))
3776 if ((vdevice->vtarget->tflags &
3778 vdevice->vtarget->raidVolume))
3780 if (vdevice->vtarget->id == id &&
3781 vdevice->vtarget->channel ==
3804 VirtTarget *vtarget = NULL;
3871 vtarget = mptsas_find_vtarget(ioc,
3874 if (vtarget)
3875 vtarget->deleted = 1;
4336 VirtTarget *vtarget;
4469 vtarget = starget->hostdata;
4470 if (!vtarget) {
4485 vtarget->id = hot_plug_info->phys_disk_num;
4486 vtarget->tflags |= MPT_TARGET_FLAGS_RAID_COMPONENT;
4528 vtarget = starget->hostdata;
4529 if (!vtarget) {
4536 if (!(vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT)) {
4551 vtarget->tflags &= ~MPT_TARGET_FLAGS_RAID_COMPONENT;
4552 vtarget->id = hot_plug_info->id;
4727 vdevice->vtarget->deleted = 1; /* block IO */
4741 vdevice->vtarget->deleted = 1; /* block IO */
4750 vdevice->vtarget->deleted = 1; /* block IO */
4906 if (!vdevice || !vdevice->vtarget)
4908 if (vdevice->vtarget->tflags & MPT_TARGET_FLAGS_RAID_COMPONENT)
4910 if (vdevice->vtarget->raidVolume)
4912 channel = vdevice->vtarget->channel;
4913 id = vdevice->vtarget->id;
5047 VirtTarget *vtarget = NULL;
5053 vtarget = mptsas_find_vtarget(ioc, channel, id);
5054 if (vtarget) {
5061 if (vtarget->raidVolume) {
5069 vtarget->inDMD = 1;