Lines Matching refs:rphy
42 ex->parent_port = sas_port_alloc(&dev->rphy->dev, phy_id); in sas_ex_add_parent_port()
210 struct sas_rphy *rphy = dev->rphy; in sas_set_ex_phy() local
217 phy->phy = sas_phy_alloc(&rphy->dev, phy_id); in sas_set_ex_phy()
353 struct sas_rphy *rphy; in sas_ex_to_ata() local
358 rphy = ex_phy->port->rphy; in sas_ex_to_ata()
359 if (!rphy) in sas_ex_to_ata()
362 dev = sas_find_dev_by_rphy(rphy); in sas_ex_to_ata()
518 struct sas_rphy *rphy = dev->rphy; in ex_assign_manuf_info() local
519 struct sas_expander_device *edev = rphy_to_expander_device(rphy); in ex_assign_manuf_info()
663 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent); in sas_smp_get_phy_events() local
664 struct domain_device *dev = sas_find_dev_by_rphy(rphy); in sas_smp_get_phy_events()
778 struct sas_rphy *rphy; in sas_ex_add_dev() local
782 rphy = sas_end_device_alloc(phy->port); in sas_ex_add_dev()
783 if (!rphy) in sas_ex_add_dev()
789 child->rphy = rphy; in sas_ex_add_dev()
790 get_device(&rphy->dev); in sas_ex_add_dev()
791 rphy->identify.phy_identifier = phy_id; in sas_ex_add_dev()
792 sas_fill_in_rphy(child, rphy); in sas_ex_add_dev()
801 sas_rphy_free(child->rphy); in sas_ex_add_dev()
831 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id); in sas_ex_discover_end_dev()
892 struct sas_expander_device *parent_ex = rphy_to_expander_device(parent->rphy); in sas_ex_discover_expander()
895 struct sas_rphy *rphy; in sas_ex_discover_expander() local
911 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id); in sas_ex_discover_expander()
918 rphy = sas_expander_alloc(phy->port, in sas_ex_discover_expander()
922 rphy = sas_expander_alloc(phy->port, in sas_ex_discover_expander()
926 rphy = NULL; /* shut gcc up */ in sas_ex_discover_expander()
930 child->rphy = rphy; in sas_ex_discover_expander()
931 get_device(&rphy->dev); in sas_ex_discover_expander()
932 edev = rphy_to_expander_device(rphy); in sas_ex_discover_expander()
946 sas_fill_in_rphy(child, rphy); in sas_ex_discover_expander()
947 sas_rphy_add(rphy); in sas_ex_discover_expander()
955 sas_rphy_delete(rphy); in sas_ex_discover_expander()
1590 rphy_to_expander_device(dev->rphy); in sas_ex_level_discovery()
1620 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_root_expander()
1622 res = sas_rphy_add(dev->rphy); in sas_discover_root_expander()
1636 sas_rphy_remove(dev->rphy); in sas_discover_root_expander()
1891 rphy_to_expander_device(child->rphy); in sas_discover_bfs_by_root_level()
1906 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_bfs_by_root()
2133 struct sas_rphy *rphy) in sas_smp_handler() argument
2140 if (!rphy) in sas_smp_handler()
2143 switch (rphy->identify.device_type) { in sas_smp_handler()
2153 dev = sas_find_dev_by_rphy(rphy); in sas_smp_handler()