Lines Matching refs:ex_phy
166 static char sas_route_char(struct domain_device *dev, struct ex_phy *phy) in sas_route_char()
204 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy()
347 struct ex_phy *ex_phy = &ex_dev->ex_dev.ex_phy[phy_id]; in sas_ex_to_ata() local
351 if (!ex_phy->port) in sas_ex_to_ata()
354 rphy = ex_phy->port->rphy; in sas_ex_to_ata()
432 ex->ex_phy = kcalloc(ex->num_phys, sizeof(*ex->ex_phy), GFP_KERNEL); in sas_expander_discover()
433 if (!ex->ex_phy) in sas_expander_discover()
442 kfree(ex->ex_phy); in sas_expander_discover()
443 ex->ex_phy = NULL; in sas_expander_discover()
620 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_ex_disable_phy()
632 struct ex_phy *phy = &ex->ex_phy[i]; in sas_ex_disable_port()
746 struct ex_phy *parent_phy) in sas_ex_get_linkrate()
757 struct ex_phy *phy = &parent_ex->ex_phy[i]; in sas_ex_get_linkrate()
782 struct ex_phy *phy = &parent_ex->ex_phy[phy_id]; in sas_ex_discover_end_dev()
916 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_join_wide_port()
920 struct ex_phy *ephy = &parent->ex_dev.ex_phy[i]; in sas_ex_join_wide_port()
941 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_discover_expander()
1019 struct ex_phy *ex_phy = &ex->ex_phy[phy_id]; in sas_ex_discover_dev() local
1024 if (ex_phy->linkrate == SAS_SATA_SPINUP_HOLD) { in sas_ex_discover_dev()
1032 if (!dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) == in sas_ex_discover_dev()
1037 if (dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) == in sas_ex_discover_dev()
1040 if (ex_phy->routing_attr == TABLE_ROUTING) in sas_ex_discover_dev()
1045 if (sas_dev_present_in_domain(dev->port, ex_phy->attached_sas_addr)) in sas_ex_discover_dev()
1046 sas_ex_disable_port(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1048 if (ex_phy->attached_dev_type == SAS_PHY_UNUSED) { in sas_ex_discover_dev()
1049 if (ex_phy->routing_attr == DIRECT_ROUTING) { in sas_ex_discover_dev()
1050 memset(ex_phy->attached_sas_addr, 0, SAS_ADDR_SIZE); in sas_ex_discover_dev()
1051 sas_configure_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1054 } else if (ex_phy->linkrate == SAS_LINK_RATE_UNKNOWN) in sas_ex_discover_dev()
1057 if (ex_phy->attached_dev_type != SAS_END_DEVICE && in sas_ex_discover_dev()
1058 ex_phy->attached_dev_type != SAS_FANOUT_EXPANDER_DEVICE && in sas_ex_discover_dev()
1059 ex_phy->attached_dev_type != SAS_EDGE_EXPANDER_DEVICE && in sas_ex_discover_dev()
1060 ex_phy->attached_dev_type != SAS_SATA_PENDING) { in sas_ex_discover_dev()
1062 ex_phy->attached_dev_type, in sas_ex_discover_dev()
1068 res = sas_configure_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1071 SAS_ADDR(ex_phy->attached_sas_addr), res); in sas_ex_discover_dev()
1072 sas_disable_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1078 phy_id, SAS_ADDR(ex_phy->attached_sas_addr)); in sas_ex_discover_dev()
1082 switch (ex_phy->attached_dev_type) { in sas_ex_discover_dev()
1090 SAS_ADDR(ex_phy->attached_sas_addr), in sas_ex_discover_dev()
1091 ex_phy->attached_phy_id, in sas_ex_discover_dev()
1098 ex_phy->attached_sas_addr, SAS_ADDR_SIZE); in sas_ex_discover_dev()
1119 struct ex_phy *phy = &ex->ex_phy[i]; in sas_find_sub_addr()
1186 struct ex_phy *ex_phy = &ex->ex_phy[i]; in sas_ex_discover_devices() local
1188 if (ex_phy->phy_state == PHY_VACANT || in sas_ex_discover_devices()
1189 ex_phy->phy_state == PHY_NOT_PRESENT || in sas_ex_discover_devices()
1190 ex_phy->phy_state == PHY_DEVICE_DISCOVERED) in sas_ex_discover_devices()
1193 switch (ex_phy->linkrate) { in sas_ex_discover_devices()
1222 struct ex_phy *phy = &ex->ex_phy[i]; in sas_check_ex_subtractive_boundary()
1248 struct ex_phy *parent_phy, in sas_print_parent_topology_bug()
1249 struct ex_phy *child_phy) in sas_print_parent_topology_bug()
1271 struct ex_phy *parent_phy, in sas_check_eeds()
1272 struct ex_phy *child_phy) in sas_check_eeds()
1330 struct ex_phy *parent_phy = &parent_ex->ex_phy[i]; in sas_check_parent_topology()
1331 struct ex_phy *child_phy; in sas_check_parent_topology()
1340 child_phy = &child_ex->ex_phy[parent_phy->attached_phy_id]; in sas_check_parent_topology()
1391 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_configure_present()
1543 struct ex_phy *phy = &ex_parent->ex_phy[i]; in sas_configure_parent()
1764 if (phy_change_count != ex->ex_phy[i].phy_change_count) { in sas_find_bcast_phy()
1766 ex->ex_phy[i].phy_change_count = in sas_find_bcast_phy()
1881 struct ex_phy *phy = &ex_dev->ex_phy[phy_id]; in sas_unregister_devs_sas_addr()
1952 struct ex_phy *ex_phy = &dev->ex_dev.ex_phy[phy_id]; in sas_discover_new() local
1970 SAS_ADDR(ex_phy->attached_sas_addr)) { in sas_discover_new()
1998 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_rediscover_dev()
2078 struct ex_phy *changed_phy = &ex->ex_phy[phy_id]; in sas_rediscover()
2088 struct ex_phy *phy = &ex->ex_phy[i]; in sas_rediscover()