Lines Matching refs:rphy

205 	struct sas_rphy *rphy = dev->rphy;  in sas_set_ex_phy()  local
212 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
349 struct sas_rphy *rphy; in sas_ex_to_ata() local
354 rphy = ex_phy->port->rphy; in sas_ex_to_ata()
355 if (!rphy) in sas_ex_to_ata()
358 dev = sas_find_dev_by_rphy(rphy); in sas_ex_to_ata()
519 struct sas_rphy *rphy = dev->rphy; in ex_assign_manuf_info() local
520 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in ex_assign_manuf_info()
664 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_smp_get_phy_events() local
665 struct domain_device *dev = sas_find_dev_by_rphy(rphy); in sas_smp_get_phy_events()
784 struct sas_rphy *rphy; in sas_ex_discover_end_dev() local
801 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id); in sas_ex_discover_end_dev()
847 rphy = sas_end_device_alloc(phy->port); in sas_ex_discover_end_dev()
848 if (!rphy) in sas_ex_discover_end_dev()
850 rphy->identify.phy_identifier = phy_id; in sas_ex_discover_end_dev()
852 child->rphy = rphy; in sas_ex_discover_end_dev()
853 get_device(&rphy->dev); in sas_ex_discover_end_dev()
868 rphy = sas_end_device_alloc(phy->port); in sas_ex_discover_end_dev()
870 if (unlikely(!rphy)) in sas_ex_discover_end_dev()
875 child->rphy = rphy; in sas_ex_discover_end_dev()
876 get_device(&rphy->dev); in sas_ex_discover_end_dev()
877 rphy->identify.phy_identifier = phy_id; in sas_ex_discover_end_dev()
878 sas_fill_in_rphy(child, rphy); in sas_ex_discover_end_dev()
900 sas_rphy_free(child->rphy); in sas_ex_discover_end_dev()
940 struct sas_expander_device *parent_ex = rphy_to_expander_device(parent->rphy); in sas_ex_discover_expander()
943 struct sas_rphy *rphy; in sas_ex_discover_expander() local
959 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id); in sas_ex_discover_expander()
966 rphy = sas_expander_alloc(phy->port, in sas_ex_discover_expander()
970 rphy = sas_expander_alloc(phy->port, in sas_ex_discover_expander()
974 rphy = NULL; /* shut gcc up */ in sas_ex_discover_expander()
978 child->rphy = rphy; in sas_ex_discover_expander()
979 get_device(&rphy->dev); in sas_ex_discover_expander()
980 edev = rphy_to_expander_device(rphy); in sas_ex_discover_expander()
994 sas_fill_in_rphy(child, rphy); in sas_ex_discover_expander()
995 sas_rphy_add(rphy); in sas_ex_discover_expander()
1003 sas_rphy_delete(rphy); in sas_ex_discover_expander()
1622 rphy_to_expander_device(dev->rphy); in sas_ex_level_discovery()
1652 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_root_expander()
1654 res = sas_rphy_add(dev->rphy); in sas_discover_root_expander()
1668 sas_rphy_remove(dev->rphy); in sas_discover_root_expander()
1920 rphy_to_expander_device(child->rphy); in sas_discover_bfs_by_root_level()
1935 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_bfs_by_root()
2136 struct sas_rphy *rphy) in sas_smp_handler() argument
2143 if (!rphy) in sas_smp_handler()
2146 switch (rphy->identify.device_type) { in sas_smp_handler()
2156 dev = sas_find_dev_by_rphy(rphy); in sas_smp_handler()