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()
760 struct ex_phy *phy = &parent_ex->ex_phy[phy_id]; in sas_ex_discover_end_dev()
894 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_join_wide_port()
898 struct ex_phy *ephy = &parent->ex_dev.ex_phy[i]; in sas_ex_join_wide_port()
919 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_discover_expander()
997 struct ex_phy *ex_phy = &ex->ex_phy[phy_id]; in sas_ex_discover_dev() local
1002 if (ex_phy->linkrate == SAS_SATA_SPINUP_HOLD) { in sas_ex_discover_dev()
1010 if (!dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) == in sas_ex_discover_dev()
1015 if (dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) == in sas_ex_discover_dev()
1018 if (ex_phy->routing_attr == TABLE_ROUTING) in sas_ex_discover_dev()
1023 if (sas_dev_present_in_domain(dev->port, ex_phy->attached_sas_addr)) in sas_ex_discover_dev()
1024 sas_ex_disable_port(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1026 if (ex_phy->attached_dev_type == SAS_PHY_UNUSED) { in sas_ex_discover_dev()
1027 if (ex_phy->routing_attr == DIRECT_ROUTING) { in sas_ex_discover_dev()
1028 memset(ex_phy->attached_sas_addr, 0, SAS_ADDR_SIZE); in sas_ex_discover_dev()
1029 sas_configure_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1032 } else if (ex_phy->linkrate == SAS_LINK_RATE_UNKNOWN) in sas_ex_discover_dev()
1035 if (ex_phy->attached_dev_type != SAS_END_DEVICE && in sas_ex_discover_dev()
1036 ex_phy->attached_dev_type != SAS_FANOUT_EXPANDER_DEVICE && in sas_ex_discover_dev()
1037 ex_phy->attached_dev_type != SAS_EDGE_EXPANDER_DEVICE && in sas_ex_discover_dev()
1038 ex_phy->attached_dev_type != SAS_SATA_PENDING) { in sas_ex_discover_dev()
1040 ex_phy->attached_dev_type, in sas_ex_discover_dev()
1046 res = sas_configure_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1049 SAS_ADDR(ex_phy->attached_sas_addr), res); in sas_ex_discover_dev()
1050 sas_disable_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1056 phy_id, SAS_ADDR(ex_phy->attached_sas_addr)); in sas_ex_discover_dev()
1060 switch (ex_phy->attached_dev_type) { in sas_ex_discover_dev()
1068 SAS_ADDR(ex_phy->attached_sas_addr), in sas_ex_discover_dev()
1069 ex_phy->attached_phy_id, in sas_ex_discover_dev()
1076 ex_phy->attached_sas_addr, SAS_ADDR_SIZE); in sas_ex_discover_dev()
1097 struct ex_phy *phy = &ex->ex_phy[i]; in sas_find_sub_addr()
1164 struct ex_phy *ex_phy = &ex->ex_phy[i]; in sas_ex_discover_devices() local
1166 if (ex_phy->phy_state == PHY_VACANT || in sas_ex_discover_devices()
1167 ex_phy->phy_state == PHY_NOT_PRESENT || in sas_ex_discover_devices()
1168 ex_phy->phy_state == PHY_DEVICE_DISCOVERED) in sas_ex_discover_devices()
1171 switch (ex_phy->linkrate) { in sas_ex_discover_devices()
1200 struct ex_phy *phy = &ex->ex_phy[i]; in sas_check_ex_subtractive_boundary()
1226 struct ex_phy *parent_phy, in sas_print_parent_topology_bug()
1227 struct ex_phy *child_phy) in sas_print_parent_topology_bug()
1249 struct ex_phy *parent_phy, in sas_check_eeds()
1250 struct ex_phy *child_phy) in sas_check_eeds()
1308 struct ex_phy *parent_phy = &parent_ex->ex_phy[i]; in sas_check_parent_topology()
1309 struct ex_phy *child_phy; in sas_check_parent_topology()
1318 child_phy = &child_ex->ex_phy[parent_phy->attached_phy_id]; in sas_check_parent_topology()
1369 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_configure_present()
1522 struct ex_phy *phy = &ex_parent->ex_phy[i]; in sas_configure_parent()
1739 if (phy_change_count != ex->ex_phy[i].phy_change_count) { in sas_find_bcast_phy()
1741 ex->ex_phy[i].phy_change_count = in sas_find_bcast_phy()
1856 struct ex_phy *phy = &ex_dev->ex_phy[phy_id]; in sas_unregister_devs_sas_addr()
1927 struct ex_phy *ex_phy = &dev->ex_dev.ex_phy[phy_id]; in sas_discover_new() local
1945 SAS_ADDR(ex_phy->attached_sas_addr)) { in sas_discover_new()
1973 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_rediscover_dev()
2053 struct ex_phy *changed_phy = &ex->ex_phy[phy_id]; in sas_rediscover()
2063 struct ex_phy *phy = &ex->ex_phy[i]; in sas_rediscover()