Lines Matching refs:ex

186 	struct expander_device *ex = &dev->ex_dev;  in sas_set_ex_phy()  local
187 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_set_ex_phy()
374 struct expander_device *ex = &dev->ex_dev; in sas_ex_phy_discover() local
391 if (0 <= single && single < ex->num_phys) { in sas_ex_phy_discover()
396 for (i = 0; i < ex->num_phys; i++) { in sas_ex_phy_discover()
411 struct expander_device *ex = &dev->ex_dev; in sas_expander_discover() local
414 ex->ex_phy = kcalloc(ex->num_phys, sizeof(*ex->ex_phy), GFP_KERNEL); in sas_expander_discover()
415 if (!ex->ex_phy) in sas_expander_discover()
424 kfree(ex->ex_phy); in sas_expander_discover()
425 ex->ex_phy = NULL; in sas_expander_discover()
596 struct expander_device *ex = &dev->ex_dev; in sas_ex_disable_phy() local
597 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_ex_disable_phy()
605 struct expander_device *ex = &dev->ex_dev; in sas_ex_disable_port() local
608 for (i = 0; i < ex->num_phys; i++) { in sas_ex_disable_port()
609 struct ex_phy *phy = &ex->ex_phy[i]; in sas_ex_disable_port()
950 struct expander_device *ex = &dev->ex_dev; in sas_ex_discover_dev() local
951 struct ex_phy *ex_phy = &ex->ex_phy[phy_id]; in sas_ex_discover_dev()
1045 struct expander_device *ex = &dev->ex_dev; in sas_find_sub_addr() local
1048 for (i = 0; i < ex->num_phys; i++) { in sas_find_sub_addr()
1049 struct ex_phy *phy = &ex->ex_phy[i]; in sas_find_sub_addr()
1068 struct expander_device *ex = &dev->ex_dev; in sas_check_level_subtractive_boundary() local
1072 list_for_each_entry(child, &ex->children, siblings) { in sas_check_level_subtractive_boundary()
1106 struct expander_device *ex = &dev->ex_dev; in sas_ex_discover_devices() local
1107 int i = 0, end = ex->num_phys; in sas_ex_discover_devices()
1116 struct ex_phy *ex_phy = &ex->ex_phy[i]; in sas_ex_discover_devices()
1144 struct expander_device *ex = &dev->ex_dev; in sas_check_ex_subtractive_boundary() local
1151 for (i = 0; i < ex->num_phys; i++) { in sas_check_ex_subtractive_boundary()
1152 struct ex_phy *phy = &ex->ex_phy[i]; in sas_check_ex_subtractive_boundary()
1338 struct expander_device *ex = &dev->ex_dev; in sas_configure_present() local
1339 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_configure_present()
1359 for (i = 0; i < ex->max_route_indexes ; i++) { in sas_configure_present()
1569 struct sas_expander_device *ex = in sas_ex_level_discovery() local
1572 if (level == ex->level) in sas_ex_level_discovery()
1600 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_root_expander() local
1606 ex->level = dev->port->disc.max_level; /* 0 */ in sas_discover_root_expander()
1695 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_phy() local
1699 for (i = from_phy; i < ex->num_phys; i++) { in sas_find_bcast_phy()
1713 if (phy_change_count != ex->ex_phy[i].phy_change_count) { in sas_find_bcast_phy()
1715 ex->ex_phy[i].phy_change_count = in sas_find_bcast_phy()
1775 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_dev() local
1784 if (ex_change_count != -1 && ex_change_count != ex->ex_change_count) { in sas_find_bcast_dev()
1792 ex->ex_change_count = ex_change_count; in sas_find_bcast_dev()
1800 list_for_each_entry(ch, &ex->children, siblings) { in sas_find_bcast_dev()
1813 struct expander_device *ex = &dev->ex_dev; in sas_unregister_ex_tree() local
1816 list_for_each_entry_safe(child, n, &ex->children, siblings) { in sas_unregister_ex_tree()
1867 struct sas_expander_device *ex = in sas_discover_bfs_by_root_level() local
1870 if (level > ex->level) in sas_discover_bfs_by_root_level()
1873 else if (level == ex->level) in sas_discover_bfs_by_root_level()
1883 struct sas_expander_device *ex = rphy_to_expander_device(dev->rphy); in sas_discover_bfs_by_root() local
1884 int level = ex->level+1; in sas_discover_bfs_by_root()
1944 struct expander_device *ex = &dev->ex_dev; in sas_rediscover_dev() local
1945 struct ex_phy *phy = &ex->ex_phy[phy_id]; in sas_rediscover_dev()
2036 struct expander_device *ex = &dev->ex_dev; in sas_rediscover() local
2037 struct ex_phy *changed_phy = &ex->ex_phy[phy_id]; in sas_rediscover()
2046 for (i = 0; i < ex->num_phys; i++) { in sas_rediscover()
2047 struct ex_phy *phy = &ex->ex_phy[i]; in sas_rediscover()
2078 struct expander_device *ex = &dev->ex_dev; in sas_ex_revalidate_domain() local
2088 } while (i < ex->num_phys); in sas_ex_revalidate_domain()