Lines Matching refs:ex_phy

169 static char sas_route_char(struct domain_device *dev, struct ex_phy *phy)  in sas_route_char()
207 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy()
349 struct ex_phy *ex_phy = &ex_dev->ex_dev.ex_phy[phy_id]; in sas_ex_to_ata() local
353 if (!ex_phy->port) in sas_ex_to_ata()
356 rphy = ex_phy->port->rphy; in sas_ex_to_ata()
434 ex->ex_phy = kzalloc(sizeof(*ex->ex_phy)*ex->num_phys, GFP_KERNEL); in sas_expander_discover()
435 if (!ex->ex_phy) in sas_expander_discover()
444 kfree(ex->ex_phy); in sas_expander_discover()
445 ex->ex_phy = NULL; in sas_expander_discover()
615 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_ex_disable_phy()
627 struct ex_phy *phy = &ex->ex_phy[i]; in sas_ex_disable_port()
740 struct ex_phy *parent_phy) in sas_ex_get_linkrate()
751 struct ex_phy *phy = &parent_ex->ex_phy[i]; in sas_ex_get_linkrate()
776 struct ex_phy *phy = &parent_ex->ex_phy[phy_id]; in sas_ex_discover_end_dev()
885 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_join_wide_port()
889 struct ex_phy *ephy = &parent->ex_dev.ex_phy[i]; in sas_ex_join_wide_port()
910 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_discover_expander()
987 struct ex_phy *ex_phy = &ex->ex_phy[phy_id]; in sas_ex_discover_dev() local
992 if (ex_phy->linkrate == SAS_SATA_SPINUP_HOLD) { in sas_ex_discover_dev()
1000 if (!dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) == in sas_ex_discover_dev()
1005 if (dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) == in sas_ex_discover_dev()
1008 if (ex_phy->routing_attr == TABLE_ROUTING) in sas_ex_discover_dev()
1013 if (sas_dev_present_in_domain(dev->port, ex_phy->attached_sas_addr)) in sas_ex_discover_dev()
1014 sas_ex_disable_port(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1016 if (ex_phy->attached_dev_type == SAS_PHY_UNUSED) { in sas_ex_discover_dev()
1017 if (ex_phy->routing_attr == DIRECT_ROUTING) { in sas_ex_discover_dev()
1018 memset(ex_phy->attached_sas_addr, 0, SAS_ADDR_SIZE); in sas_ex_discover_dev()
1019 sas_configure_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1022 } else if (ex_phy->linkrate == SAS_LINK_RATE_UNKNOWN) in sas_ex_discover_dev()
1025 if (ex_phy->attached_dev_type != SAS_END_DEVICE && in sas_ex_discover_dev()
1026 ex_phy->attached_dev_type != SAS_FANOUT_EXPANDER_DEVICE && in sas_ex_discover_dev()
1027 ex_phy->attached_dev_type != SAS_EDGE_EXPANDER_DEVICE && in sas_ex_discover_dev()
1028 ex_phy->attached_dev_type != SAS_SATA_PENDING) { in sas_ex_discover_dev()
1030 "phy 0x%x\n", ex_phy->attached_dev_type, in sas_ex_discover_dev()
1036 res = sas_configure_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1040 SAS_ADDR(ex_phy->attached_sas_addr), res); in sas_ex_discover_dev()
1041 sas_disable_routing(dev, ex_phy->attached_sas_addr); in sas_ex_discover_dev()
1047 phy_id, SAS_ADDR(ex_phy->attached_sas_addr)); in sas_ex_discover_dev()
1051 switch (ex_phy->attached_dev_type) { in sas_ex_discover_dev()
1060 SAS_ADDR(ex_phy->attached_sas_addr), in sas_ex_discover_dev()
1061 ex_phy->attached_phy_id, in sas_ex_discover_dev()
1068 ex_phy->attached_sas_addr, SAS_ADDR_SIZE); in sas_ex_discover_dev()
1081 if (ex->ex_phy[i].phy_state == PHY_VACANT || in sas_ex_discover_dev()
1082 ex->ex_phy[i].phy_state == PHY_NOT_PRESENT) in sas_ex_discover_dev()
1088 if (SAS_ADDR(ex->ex_phy[i].attached_sas_addr) == in sas_ex_discover_dev()
1090 ex->ex_phy[i].phy_state= PHY_DEVICE_DISCOVERED; in sas_ex_discover_dev()
1093 i, SAS_ADDR(ex->ex_phy[i].attached_sas_addr)); in sas_ex_discover_dev()
1108 struct ex_phy *phy = &ex->ex_phy[i]; in sas_find_sub_addr()
1179 struct ex_phy *ex_phy = &ex->ex_phy[i]; in sas_ex_discover_devices() local
1181 if (ex_phy->phy_state == PHY_VACANT || in sas_ex_discover_devices()
1182 ex_phy->phy_state == PHY_NOT_PRESENT || in sas_ex_discover_devices()
1183 ex_phy->phy_state == PHY_DEVICE_DISCOVERED) in sas_ex_discover_devices()
1186 switch (ex_phy->linkrate) { in sas_ex_discover_devices()
1215 struct ex_phy *phy = &ex->ex_phy[i]; in sas_check_ex_subtractive_boundary()
1244 struct ex_phy *parent_phy, in sas_print_parent_topology_bug()
1245 struct ex_phy *child_phy) in sas_print_parent_topology_bug()
1269 struct ex_phy *parent_phy, in sas_check_eeds()
1270 struct ex_phy *child_phy) in sas_check_eeds()
1331 struct ex_phy *parent_phy = &parent_ex->ex_phy[i]; in sas_check_parent_topology()
1332 struct ex_phy *child_phy; in sas_check_parent_topology()
1341 child_phy = &child_ex->ex_phy[parent_phy->attached_phy_id]; in sas_check_parent_topology()
1392 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_configure_present()
1545 struct ex_phy *phy = &ex_parent->ex_phy[i]; in sas_configure_parent()
1766 if (phy_change_count != ex->ex_phy[i].phy_change_count) { in sas_find_bcast_phy()
1768 ex->ex_phy[i].phy_change_count = in sas_find_bcast_phy()
1882 struct ex_phy *phy = &ex_dev->ex_phy[phy_id]; in sas_unregister_devs_sas_addr()
1954 struct ex_phy *ex_phy = &dev->ex_dev.ex_phy[phy_id]; in sas_discover_new() local
1972 SAS_ADDR(ex_phy->attached_sas_addr)) { in sas_discover_new()
2000 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_rediscover_dev()
2071 struct ex_phy *changed_phy = &ex->ex_phy[phy_id]; in sas_rediscover()
2081 struct ex_phy *phy = &ex->ex_phy[i]; in sas_rediscover()