Lines Matching refs:rphy
188 struct sas_rphy *rphy = dev->rphy;
195 phy->phy = sas_phy_alloc(&rphy->dev, phy_id);
332 struct sas_rphy *rphy;
337 rphy = ex_phy->port->rphy;
338 if (!rphy)
341 dev = sas_find_dev_by_rphy(rphy);
497 struct sas_rphy *rphy = dev->rphy;
498 struct sas_expander_device *edev = rphy_to_expander_device(rphy);
642 struct sas_rphy *rphy = dev_to_rphy(phy->dev.parent);
643 struct domain_device *dev = sas_find_dev_by_rphy(rphy);
757 struct sas_rphy *rphy;
761 rphy = sas_end_device_alloc(phy->port);
762 if (!rphy)
768 child->rphy = rphy;
769 get_device(&rphy->dev);
770 rphy->identify.phy_identifier = phy_id;
771 sas_fill_in_rphy(child, rphy);
780 sas_rphy_free(child->rphy);
810 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id);
873 struct sas_expander_device *parent_ex = rphy_to_expander_device(parent->rphy);
876 struct sas_rphy *rphy;
892 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id);
899 rphy = sas_expander_alloc(phy->port,
903 rphy = sas_expander_alloc(phy->port,
907 rphy = NULL; /* shut gcc up */
911 child->rphy = rphy;
912 get_device(&rphy->dev);
913 edev = rphy_to_expander_device(rphy);
927 sas_fill_in_rphy(child, rphy);
928 sas_rphy_add(rphy);
936 sas_rphy_delete(rphy);
1571 rphy_to_expander_device(dev->rphy);
1601 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy);
1603 res = sas_rphy_add(dev->rphy);
1617 sas_rphy_remove(dev->rphy);
1864 rphy_to_expander_device(child->rphy);
1879 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy);
2094 struct sas_rphy *rphy)
2100 /* no rphy means no smp target support (ie aic94xx host) */
2101 if (!rphy)
2104 switch (rphy->identify.device_type) {
2114 dev = sas_find_dev_by_rphy(rphy);