Lines Matching refs:ex

206 	struct expander_device *ex = &dev->ex_dev;  in sas_set_ex_phy()  local
207 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy()
394 struct expander_device *ex = &dev->ex_dev; in sas_ex_phy_discover() local
411 if (0 <= single && single < ex->num_phys) { in sas_ex_phy_discover()
416 for (i = 0; i < ex->num_phys; i++) { in sas_ex_phy_discover()
431 struct expander_device *ex = &dev->ex_dev; in sas_expander_discover() local
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()
614 struct expander_device *ex = &dev->ex_dev; in sas_ex_disable_phy() local
615 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_ex_disable_phy()
623 struct expander_device *ex = &dev->ex_dev; in sas_ex_disable_port() local
626 for (i = 0; i < ex->num_phys; i++) { in sas_ex_disable_port()
627 struct ex_phy *phy = &ex->ex_phy[i]; in sas_ex_disable_port()
986 struct expander_device *ex = &dev->ex_dev; in sas_ex_discover_dev() local
987 struct ex_phy *ex_phy = &ex->ex_phy[phy_id]; in sas_ex_discover_dev()
1080 for (i = 0; i < ex->num_phys; i++) { 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()
1104 struct expander_device *ex = &dev->ex_dev; in sas_find_sub_addr() local
1107 for (i = 0; i < ex->num_phys; i++) { in sas_find_sub_addr()
1108 struct ex_phy *phy = &ex->ex_phy[i]; in sas_find_sub_addr()
1128 struct expander_device *ex = &dev->ex_dev; in sas_check_level_subtractive_boundary() local
1132 list_for_each_entry(child, &ex->children, siblings) { in sas_check_level_subtractive_boundary()
1169 struct expander_device *ex = &dev->ex_dev; in sas_ex_discover_devices() local
1170 int i = 0, end = ex->num_phys; in sas_ex_discover_devices()
1179 struct ex_phy *ex_phy = &ex->ex_phy[i]; in sas_ex_discover_devices()
1207 struct expander_device *ex = &dev->ex_dev; in sas_check_ex_subtractive_boundary() local
1214 for (i = 0; i < ex->num_phys; i++) { in sas_check_ex_subtractive_boundary()
1215 struct ex_phy *phy = &ex->ex_phy[i]; in sas_check_ex_subtractive_boundary()
1391 struct expander_device *ex = &dev->ex_dev; in sas_configure_present() local
1392 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_configure_present()
1412 for (i = 0; i < ex->max_route_indexes ; i++) { in sas_configure_present()
1624 struct sas_expander_device *ex = in sas_ex_level_discovery() local
1627 if (level == ex->level) in sas_ex_level_discovery()
1655 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_root_expander() local
1661 ex->level = dev->port->disc.max_level; /* 0 */ in sas_discover_root_expander()
1748 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_phy() local
1752 for (i = from_phy; i < ex->num_phys; i++) { in sas_find_bcast_phy()
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()
1828 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_dev() local
1837 if (ex_change_count != -1 && ex_change_count != ex->ex_change_count) { in sas_find_bcast_dev()
1845 ex->ex_change_count = ex_change_count; in sas_find_bcast_dev()
1851 list_for_each_entry(ch, &ex->children, siblings) { in sas_find_bcast_dev()
1864 struct expander_device *ex = &dev->ex_dev; in sas_unregister_ex_tree() local
1867 list_for_each_entry_safe(child, n, &ex->children, siblings) { in sas_unregister_ex_tree()
1921 struct sas_expander_device *ex = in sas_discover_bfs_by_root_level() local
1924 if (level > ex->level) in sas_discover_bfs_by_root_level()
1927 else if (level == ex->level) in sas_discover_bfs_by_root_level()
1937 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_bfs_by_root() local
1938 int level = ex->level+1; in sas_discover_bfs_by_root()
1999 struct expander_device *ex = &dev->ex_dev; in sas_rediscover_dev() local
2000 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_rediscover_dev()
2070 struct expander_device *ex = &dev->ex_dev; in sas_rediscover() local
2071 struct ex_phy *changed_phy = &ex->ex_phy[phy_id]; in sas_rediscover()
2080 for (i = 0; i < ex->num_phys; i++) { in sas_rediscover()
2081 struct ex_phy *phy = &ex->ex_phy[i]; in sas_rediscover()
2115 struct expander_device *ex = &dev->ex_dev; in sas_ex_revalidate_domain() local
2125 } while (i < ex->num_phys); in sas_ex_revalidate_domain()