Lines Matching refs:target
1252 * physical target to be suppressed until configured.
1646 * target (block maximum 60 seconds). Although not necessary,
1821 static inline int is_safw_raid_volume(struct aac_dev *aac, int bus, int target)
1823 return bus == CONTAINER_CHANNEL && target < aac->maximum_num_containers;
1828 int target)
1833 return scsi_device_lookup(dev->scsi_host_ptr, bus, target, 0);
1836 static int aac_add_safw_device(struct aac_dev *dev, int bus, int target)
1841 return scsi_add_device(dev->scsi_host_ptr, bus, target, 0);
1850 static void aac_remove_safw_device(struct aac_dev *dev, int bus, int target)
1854 sdev = aac_lookup_safw_scsi_device(dev, bus, target);
1860 int bus, int target)
1862 return dev->hba_map[bus][target].scan_counter == dev->scan_counter;
1865 static int aac_is_safw_target_valid(struct aac_dev *dev, int bus, int target)
1867 if (is_safw_raid_volume(dev, bus, target))
1868 return dev->fsa_dev[target].valid;
1870 return aac_is_safw_scan_count_equal(dev, bus, target);
1873 static int aac_is_safw_device_exposed(struct aac_dev *dev, int bus, int target)
1878 sdev = aac_lookup_safw_scsi_device(dev, bus, target);
1890 int target;
1902 target = get_target_number(i);
1904 is_exposed = aac_is_safw_device_exposed(dev, bus, target);
1906 if (aac_is_safw_target_valid(dev, bus, target) && !is_exposed)
1907 aac_add_safw_device(dev, bus, target);
1908 else if (!aac_is_safw_target_valid(dev, bus, target) &&
1910 aac_remove_safw_device(dev, bus, target);