Lines Matching refs:starget
558 return phy_info->port_details->starget; in mptsas_get_starget()
565 starget) in mptsas_set_starget()
568 phy_info->port_details->starget = starget; in mptsas_set_starget()
588 struct scsi_target *starget; in mptsas_add_device_component() local
627 starget = scsi_target(sdev); in mptsas_add_device_component()
628 rphy = dev_to_rphy(starget->dev.parent); in mptsas_add_device_component()
630 sas_info->os.id = starget->id; in mptsas_add_device_component()
631 sas_info->os.channel = starget->channel; in mptsas_add_device_component()
680 struct scsi_target *starget) in mptsas_add_device_component_starget_ir() argument
694 cfg.pageAddr = starget->id; in mptsas_add_device_component_starget_ir()
739 sas_info->volume_id = starget->id; in mptsas_add_device_component_starget_ir()
753 starget->id) { in mptsas_add_device_component_starget_ir()
761 sas_info->fw.id = starget->id; in mptsas_add_device_component_starget_ir()
762 sas_info->os.id = starget->id; in mptsas_add_device_component_starget_ir()
763 sas_info->os.channel = starget->channel; in mptsas_add_device_component_starget_ir()
784 struct scsi_target *starget) in mptsas_add_device_component_starget() argument
790 rphy = dev_to_rphy(starget->dev.parent); in mptsas_add_device_component_starget()
946 port_details->starget = in mptsas_setup_wide_ports()
1118 mptsas_block_io_starget(struct scsi_target *starget) in mptsas_block_io_starget() argument
1120 if (starget) in mptsas_block_io_starget()
1121 starget_for_each_device(starget, NULL, mptsas_block_io_sdev); in mptsas_block_io_starget()
1149 mptsas_block_io_starget(vtarget->starget); in mptsas_target_reset_queue()
1743 mptsas_target_alloc(struct scsi_target *starget) in mptsas_target_alloc() argument
1745 struct Scsi_Host *host = dev_to_shost(&starget->dev); in mptsas_target_alloc()
1758 vtarget->starget = starget; in mptsas_target_alloc()
1761 id = starget->id; in mptsas_target_alloc()
1767 if (starget->channel == MPTSAS_RAID_CHANNEL) { in mptsas_target_alloc()
1783 rphy = dev_to_rphy(starget->dev.parent); in mptsas_target_alloc()
1792 mptsas_set_starget(&p->phy_info[i], starget); in mptsas_target_alloc()
1816 starget->hostdata = vtarget; in mptsas_target_alloc()
1821 mptsas_target_destroy(struct scsi_target *starget) in mptsas_target_destroy() argument
1823 struct Scsi_Host *host = dev_to_shost(&starget->dev); in mptsas_target_destroy()
1831 if (!starget->hostdata) in mptsas_target_destroy()
1834 vtarget = starget->hostdata; in mptsas_target_destroy()
1836 mptsas_del_device_component_by_os(ioc, starget->channel, in mptsas_target_destroy()
1837 starget->id); in mptsas_target_destroy()
1840 if (starget->channel == MPTSAS_RAID_CHANNEL) in mptsas_target_destroy()
1843 rphy = dev_to_rphy(starget->dev.parent); in mptsas_target_destroy()
1850 starget_printk(KERN_INFO, starget, MYIOC_s_FMT in mptsas_target_destroy()
1863 vtarget->starget = NULL; in mptsas_target_destroy()
1864 kfree(starget->hostdata); in mptsas_target_destroy()
1865 starget->hostdata = NULL; in mptsas_target_destroy()
1877 struct scsi_target *starget; in mptsas_slave_alloc() local
1887 starget = scsi_target(sdev); in mptsas_slave_alloc()
1888 vdevice->vtarget = starget->hostdata; in mptsas_slave_alloc()
4244 mptsas_reprobe_target(struct scsi_target *starget, int uld_attach) in mptsas_reprobe_target() argument
4246 starget_for_each_device(starget, uld_attach ? (void *)1 : NULL, in mptsas_reprobe_target()
4334 struct scsi_target * starget; in mptsas_hotplug_work() local
4461 starget = mptsas_get_starget(phy_info); in mptsas_hotplug_work()
4462 if (!starget) { in mptsas_hotplug_work()
4469 vtarget = starget->hostdata; in mptsas_hotplug_work()
4479 starget_printk(KERN_INFO, starget, MYIOC_s_FMT "RAID Hidding: " in mptsas_hotplug_work()
4488 mptsas_reprobe_target(starget, 1); in mptsas_hotplug_work()
4520 starget = mptsas_get_starget(phy_info); in mptsas_hotplug_work()
4521 if (!starget) { in mptsas_hotplug_work()
4528 vtarget = starget->hostdata; in mptsas_hotplug_work()
4545 starget_printk(KERN_INFO, starget, MYIOC_s_FMT "RAID Exposing:" in mptsas_hotplug_work()
4554 mptsas_reprobe_target(starget, 0); in mptsas_hotplug_work()