Lines Matching refs:ex_phy

149 static char sas_route_char(struct domain_device *dev, struct ex_phy *phy)  in sas_route_char()
187 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy()
330 struct ex_phy *ex_phy = &ex_dev->ex_dev.ex_phy[phy_id]; in sas_ex_to_ata() local
334 if (!ex_phy->port) in sas_ex_to_ata()
337 rphy = ex_phy->port->rphy; in sas_ex_to_ata()
415 ex->ex_phy = kcalloc(ex->num_phys, sizeof(*ex->ex_phy), GFP_KERNEL); in sas_expander_discover()
416 if (!ex->ex_phy) in sas_expander_discover()
425 kfree(ex->ex_phy); in sas_expander_discover()
426 ex->ex_phy = NULL; in sas_expander_discover()
598 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_ex_disable_phy()
610 struct ex_phy *phy = &ex->ex_phy[i]; in sas_ex_disable_port()
724 struct ex_phy *parent_phy) in sas_ex_get_linkrate()
735 struct ex_phy *phy = &parent_ex->ex_phy[i]; in sas_ex_get_linkrate()
754 static int sas_ex_add_dev(struct domain_device *parent, struct ex_phy *phy, in sas_ex_add_dev()
792 struct ex_phy *phy = &parent_ex->ex_phy[phy_id]; in sas_ex_discover_end_dev()
849 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_join_wide_port()
853 struct ex_phy *ephy = &parent->ex_dev.ex_phy[i]; in sas_ex_join_wide_port()
874 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_discover_expander()
952 struct ex_phy *ex_phy = &ex->ex_phy[phy_id]; in sas_ex_discover_dev() local
957 if (ex_phy->linkrate == SAS_SATA_SPINUP_HOLD) { in sas_ex_discover_dev()
965 if (!dev->parent && sas_phy_match_port_addr(dev->port, ex_phy)) { in sas_ex_discover_dev()
969 if (dev->parent && sas_phy_match_dev_addr(dev->parent, ex_phy)) { in sas_ex_discover_dev()
971 if (ex_phy->routing_attr == TABLE_ROUTING) in sas_ex_discover_dev()
976 if (sas_dev_present_in_domain(dev->port, ex_phy->attached_sas_addr)) in sas_ex_discover_dev()
977 sas_ex_disable_port(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
979 if (ex_phy->attached_dev_type == SAS_PHY_UNUSED) { in sas_ex_discover_dev()
980 if (ex_phy->routing_attr == DIRECT_ROUTING) { in sas_ex_discover_dev()
981 memset(ex_phy->attached_sas_addr, 0, SAS_ADDR_SIZE); in sas_ex_discover_dev()
982 sas_configure_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
985 } else if (ex_phy->linkrate == SAS_LINK_RATE_UNKNOWN) in sas_ex_discover_dev()
988 if (ex_phy->attached_dev_type != SAS_END_DEVICE && in sas_ex_discover_dev()
989 ex_phy->attached_dev_type != SAS_FANOUT_EXPANDER_DEVICE && in sas_ex_discover_dev()
990 ex_phy->attached_dev_type != SAS_EDGE_EXPANDER_DEVICE && in sas_ex_discover_dev()
991 ex_phy->attached_dev_type != SAS_SATA_PENDING) { in sas_ex_discover_dev()
993 ex_phy->attached_dev_type, in sas_ex_discover_dev()
999 res = sas_configure_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1002 SAS_ADDR(ex_phy->attached_sas_addr), res); in sas_ex_discover_dev()
1003 sas_disable_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1009 phy_id, SAS_ADDR(ex_phy->attached_sas_addr)); in sas_ex_discover_dev()
1013 switch (ex_phy->attached_dev_type) { in sas_ex_discover_dev()
1021 SAS_ADDR(ex_phy->attached_sas_addr), in sas_ex_discover_dev()
1022 ex_phy->attached_phy_id, in sas_ex_discover_dev()
1029 ex_phy->attached_sas_addr, SAS_ADDR_SIZE); in sas_ex_discover_dev()
1050 struct ex_phy *phy = &ex->ex_phy[i]; in sas_find_sub_addr()
1117 struct ex_phy *ex_phy = &ex->ex_phy[i]; in sas_ex_discover_devices() local
1119 if (ex_phy->phy_state == PHY_VACANT || in sas_ex_discover_devices()
1120 ex_phy->phy_state == PHY_NOT_PRESENT || in sas_ex_discover_devices()
1121 ex_phy->phy_state == PHY_DEVICE_DISCOVERED) in sas_ex_discover_devices()
1124 switch (ex_phy->linkrate) { in sas_ex_discover_devices()
1153 struct ex_phy *phy = &ex->ex_phy[i]; in sas_check_ex_subtractive_boundary()
1179 struct ex_phy *parent_phy, in sas_print_parent_topology_bug()
1180 struct ex_phy *child_phy) in sas_print_parent_topology_bug()
1202 struct ex_phy *parent_phy, in sas_check_eeds()
1203 struct ex_phy *child_phy) in sas_check_eeds()
1261 struct ex_phy *parent_phy = &parent_ex->ex_phy[i]; in sas_check_parent_topology()
1262 struct ex_phy *child_phy; in sas_check_parent_topology()
1271 child_phy = &child_ex->ex_phy[parent_phy->attached_phy_id]; in sas_check_parent_topology()
1322 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_configure_present()
1475 struct ex_phy *phy = &ex_parent->ex_phy[i]; in sas_configure_parent()
1691 if (phy_change_count != ex->ex_phy[i].phy_change_count) { in sas_find_bcast_phy()
1693 ex->ex_phy[i].phy_change_count = in sas_find_bcast_phy()
1808 struct ex_phy *phy = &ex_dev->ex_phy[phy_id]; in sas_unregister_devs_sas_addr()
1878 struct ex_phy *ex_phy = &dev->ex_dev.ex_phy[phy_id]; in sas_discover_new() local
1895 if (sas_phy_match_dev_addr(child, ex_phy)) { in sas_discover_new()
1923 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_rediscover_dev()
2003 struct ex_phy *changed_phy = &ex->ex_phy[phy_id]; in sas_rediscover()
2013 struct ex_phy *phy = &ex->ex_phy[i]; in sas_rediscover()
2062 struct ex_phy *phy; in sas_find_attached_phy_id()
2066 phy = &ex_dev->ex_phy[phy_id]; in sas_find_attached_phy_id()