Lines Matching refs:rphy

188 	struct sas_rphy *rphy = dev->rphy;  in sas_set_ex_phy()  local
195 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
332 struct sas_rphy *rphy; in sas_ex_to_ata() local
337 rphy = ex_phy->port->rphy; in sas_ex_to_ata()
338 if (!rphy) in sas_ex_to_ata()
341 dev = sas_find_dev_by_rphy(rphy); in sas_ex_to_ata()
497 struct sas_rphy *rphy = dev->rphy; in ex_assign_manuf_info() local
498 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in ex_assign_manuf_info()
642 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_smp_get_phy_events() local
643 struct domain_device *dev = sas_find_dev_by_rphy(rphy); in sas_smp_get_phy_events()
757 struct sas_rphy *rphy; in sas_ex_add_dev() local
761 rphy = sas_end_device_alloc(phy->port); in sas_ex_add_dev()
762 if (!rphy) in sas_ex_add_dev()
768 child->rphy = rphy; in sas_ex_add_dev()
769 get_device(&rphy->dev); in sas_ex_add_dev()
770 rphy->identify.phy_identifier = phy_id; in sas_ex_add_dev()
771 sas_fill_in_rphy(child, rphy); in sas_ex_add_dev()
780 sas_rphy_free(child->rphy); in sas_ex_add_dev()
810 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id); in sas_ex_discover_end_dev()
873 struct sas_expander_device *parent_ex = rphy_to_expander_device(parent->rphy); in sas_ex_discover_expander()
876 struct sas_rphy *rphy; in sas_ex_discover_expander() local
892 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id); in sas_ex_discover_expander()
899 rphy = sas_expander_alloc(phy->port, in sas_ex_discover_expander()
903 rphy = sas_expander_alloc(phy->port, in sas_ex_discover_expander()
907 rphy = NULL; /* shut gcc up */ in sas_ex_discover_expander()
911 child->rphy = rphy; in sas_ex_discover_expander()
912 get_device(&rphy->dev); in sas_ex_discover_expander()
913 edev = rphy_to_expander_device(rphy); in sas_ex_discover_expander()
927 sas_fill_in_rphy(child, rphy); in sas_ex_discover_expander()
928 sas_rphy_add(rphy); in sas_ex_discover_expander()
936 sas_rphy_delete(rphy); in sas_ex_discover_expander()
1553 rphy_to_expander_device(dev->rphy); in sas_ex_level_discovery()
1583 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_root_expander()
1585 res = sas_rphy_add(dev->rphy); in sas_discover_root_expander()
1599 sas_rphy_remove(dev->rphy); in sas_discover_root_expander()
1846 rphy_to_expander_device(child->rphy); in sas_discover_bfs_by_root_level()
1861 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_bfs_by_root()
2076 struct sas_rphy *rphy) in sas_smp_handler() argument
2083 if (!rphy) in sas_smp_handler()
2086 switch (rphy->identify.device_type) { in sas_smp_handler()
2096 dev = sas_find_dev_by_rphy(rphy); in sas_smp_handler()