Lines Matching refs:ex

203 	struct expander_device *ex = &dev->ex_dev;  in sas_set_ex_phy()  local
204 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy()
392 struct expander_device *ex = &dev->ex_dev; in sas_ex_phy_discover() local
409 if (0 <= single && single < ex->num_phys) { in sas_ex_phy_discover()
414 for (i = 0; i < ex->num_phys; i++) { in sas_ex_phy_discover()
429 struct expander_device *ex = &dev->ex_dev; in sas_expander_discover() local
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()
619 struct expander_device *ex = &dev->ex_dev; in sas_ex_disable_phy() local
620 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_ex_disable_phy()
628 struct expander_device *ex = &dev->ex_dev; in sas_ex_disable_port() local
631 for (i = 0; i < ex->num_phys; i++) { in sas_ex_disable_port()
632 struct ex_phy *phy = &ex->ex_phy[i]; in sas_ex_disable_port()
1018 struct expander_device *ex = &dev->ex_dev; in sas_ex_discover_dev() local
1019 struct ex_phy *ex_phy = &ex->ex_phy[phy_id]; in sas_ex_discover_dev()
1115 struct expander_device *ex = &dev->ex_dev; in sas_find_sub_addr() local
1118 for (i = 0; i < ex->num_phys; i++) { in sas_find_sub_addr()
1119 struct ex_phy *phy = &ex->ex_phy[i]; in sas_find_sub_addr()
1138 struct expander_device *ex = &dev->ex_dev; in sas_check_level_subtractive_boundary() local
1142 list_for_each_entry(child, &ex->children, siblings) { in sas_check_level_subtractive_boundary()
1176 struct expander_device *ex = &dev->ex_dev; in sas_ex_discover_devices() local
1177 int i = 0, end = ex->num_phys; in sas_ex_discover_devices()
1186 struct ex_phy *ex_phy = &ex->ex_phy[i]; in sas_ex_discover_devices()
1214 struct expander_device *ex = &dev->ex_dev; in sas_check_ex_subtractive_boundary() local
1221 for (i = 0; i < ex->num_phys; i++) { in sas_check_ex_subtractive_boundary()
1222 struct ex_phy *phy = &ex->ex_phy[i]; in sas_check_ex_subtractive_boundary()
1390 struct expander_device *ex = &dev->ex_dev; in sas_configure_present() local
1391 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_configure_present()
1411 for (i = 0; i < ex->max_route_indexes ; i++) { in sas_configure_present()
1622 struct sas_expander_device *ex = in sas_ex_level_discovery() local
1625 if (level == ex->level) in sas_ex_level_discovery()
1653 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_root_expander() local
1659 ex->level = dev->port->disc.max_level; /* 0 */ in sas_discover_root_expander()
1747 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_phy() local
1751 for (i = from_phy; i < ex->num_phys; i++) { in sas_find_bcast_phy()
1765 if (phy_change_count != ex->ex_phy[i].phy_change_count) { in sas_find_bcast_phy()
1767 ex->ex_phy[i].phy_change_count = in sas_find_bcast_phy()
1827 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_dev() local
1836 if (ex_change_count != -1 && ex_change_count != ex->ex_change_count) { in sas_find_bcast_dev()
1844 ex->ex_change_count = ex_change_count; in sas_find_bcast_dev()
1852 list_for_each_entry(ch, &ex->children, siblings) { in sas_find_bcast_dev()
1865 struct expander_device *ex = &dev->ex_dev; in sas_unregister_ex_tree() local
1868 list_for_each_entry_safe(child, n, &ex->children, siblings) { in sas_unregister_ex_tree()
1920 struct sas_expander_device *ex = in sas_discover_bfs_by_root_level() local
1923 if (level > ex->level) in sas_discover_bfs_by_root_level()
1926 else if (level == ex->level) in sas_discover_bfs_by_root_level()
1936 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_bfs_by_root() local
1937 int level = ex->level+1; in sas_discover_bfs_by_root()
1998 struct expander_device *ex = &dev->ex_dev; in sas_rediscover_dev() local
1999 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_rediscover_dev()
2078 struct expander_device *ex = &dev->ex_dev; in sas_rediscover() local
2079 struct ex_phy *changed_phy = &ex->ex_phy[phy_id]; in sas_rediscover()
2088 for (i = 0; i < ex->num_phys; i++) { in sas_rediscover()
2089 struct ex_phy *phy = &ex->ex_phy[i]; in sas_rediscover()
2121 struct expander_device *ex = &dev->ex_dev; in sas_ex_revalidate_domain() local
2131 } while (i < ex->num_phys); in sas_ex_revalidate_domain()