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()
1621 struct sas_expander_device *ex = in sas_ex_level_discovery() local
1624 if (level == ex->level) in sas_ex_level_discovery()
1652 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_root_expander() local
1658 ex->level = dev->port->disc.max_level; /* 0 */ in sas_discover_root_expander()
1746 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_phy() local
1750 for (i = from_phy; i < ex->num_phys; i++) { in sas_find_bcast_phy()
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()
1826 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_dev() local
1835 if (ex_change_count != -1 && ex_change_count != ex->ex_change_count) { in sas_find_bcast_dev()
1843 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()
1919 struct sas_expander_device *ex = in sas_discover_bfs_by_root_level() local
1922 if (level > ex->level) in sas_discover_bfs_by_root_level()
1925 else if (level == ex->level) in sas_discover_bfs_by_root_level()
1935 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_bfs_by_root() local
1936 int level = ex->level+1; in sas_discover_bfs_by_root()
1997 struct expander_device *ex = &dev->ex_dev; in sas_rediscover_dev() local
1998 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_rediscover_dev()
2077 struct expander_device *ex = &dev->ex_dev; in sas_rediscover() local
2078 struct ex_phy *changed_phy = &ex->ex_phy[phy_id]; in sas_rediscover()
2087 for (i = 0; i < ex->num_phys; i++) { in sas_rediscover()
2088 struct ex_phy *phy = &ex->ex_phy[i]; in sas_rediscover()
2120 struct expander_device *ex = &dev->ex_dev; in sas_ex_revalidate_domain() local
2130 } while (i < ex->num_phys); in sas_ex_revalidate_domain()