Lines Matching refs:target
1252 * physical target to be suppressed until configured.
1647 * target (block maximum 60 seconds). Although not necessary,
1822 static inline int is_safw_raid_volume(struct aac_dev *aac, int bus, int target)
1824 return bus == CONTAINER_CHANNEL && target < aac->maximum_num_containers;
1829 int target)
1834 return scsi_device_lookup(dev->scsi_host_ptr, bus, target, 0);
1837 static int aac_add_safw_device(struct aac_dev *dev, int bus, int target)
1842 return scsi_add_device(dev->scsi_host_ptr, bus, target, 0);
1851 static void aac_remove_safw_device(struct aac_dev *dev, int bus, int target)
1855 sdev = aac_lookup_safw_scsi_device(dev, bus, target);
1861 int bus, int target)
1863 return dev->hba_map[bus][target].scan_counter == dev->scan_counter;
1866 static int aac_is_safw_target_valid(struct aac_dev *dev, int bus, int target)
1868 if (is_safw_raid_volume(dev, bus, target))
1869 return dev->fsa_dev[target].valid;
1871 return aac_is_safw_scan_count_equal(dev, bus, target);
1874 static int aac_is_safw_device_exposed(struct aac_dev *dev, int bus, int target)
1879 sdev = aac_lookup_safw_scsi_device(dev, bus, target);
1891 int target;
1903 target = get_target_number(i);
1905 is_exposed = aac_is_safw_device_exposed(dev, bus, target);
1907 if (aac_is_safw_target_valid(dev, bus, target) && !is_exposed)
1908 aac_add_safw_device(dev, bus, target);
1909 else if (!aac_is_safw_target_valid(dev, bus, target) &&
1911 aac_remove_safw_device(dev, bus, target);