Lines Matching refs:ex_dev

38 	struct expander_device *ex = &dev->ex_dev;  in sas_ex_add_parent_port()
66 mutex_lock(&dev->ex_dev.cmd_mutex); in smp_execute_task_sg()
137 mutex_unlock(&dev->ex_dev.cmd_mutex); in smp_execute_task_sg()
175 if (dev->ex_dev.t2t_supp) in sas_route_char()
208 struct expander_device *ex = &dev->ex_dev; in sas_set_ex_phy()
349 struct domain_device *sas_ex_to_ata(struct domain_device *ex_dev, int phy_id) in sas_ex_to_ata() argument
351 struct ex_phy *ex_phy = &ex_dev->ex_dev.ex_phy[phy_id]; in sas_ex_to_ata()
396 struct expander_device *ex = &dev->ex_dev; in sas_ex_phy_discover()
433 struct expander_device *ex = &dev->ex_dev; in sas_expander_discover()
492 dev->ex_dev.ex_change_count = be16_to_cpu(rg->change_count); in sas_ex_general()
493 dev->ex_dev.max_route_indexes = be16_to_cpu(rg->route_indexes); in sas_ex_general()
494 dev->ex_dev.num_phys = min(rg->num_phys, (u8)MAX_EXPANDER_PHYS); in sas_ex_general()
495 dev->ex_dev.t2t_supp = rg->t2t_supp; in sas_ex_general()
496 dev->ex_dev.conf_route_table = rg->conf_route_table; in sas_ex_general()
497 dev->ex_dev.configuring = rg->configuring; in sas_ex_general()
498 memcpy(dev->ex_dev.enclosure_logical_id, in sas_ex_general()
501 if (dev->ex_dev.configuring) { in sas_ex_general()
618 struct expander_device *ex = &dev->ex_dev; in sas_ex_disable_phy()
627 struct expander_device *ex = &dev->ex_dev; in sas_ex_disable_port()
747 struct expander_device *parent_ex = &parent->ex_dev; in sas_ex_get_linkrate()
812 struct expander_device *parent_ex = &parent->ex_dev; in sas_ex_discover_end_dev()
870 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_join_wide_port()
873 for (i = 0; i < parent->ex_dev.num_phys; i++) { in sas_ex_join_wide_port()
874 struct ex_phy *ephy = &parent->ex_dev.ex_phy[i]; in sas_ex_join_wide_port()
893 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id]; in sas_ex_discover_expander()
964 list_add_tail(&child->siblings, &parent->ex_dev.children); in sas_ex_discover_expander()
970 struct expander_device *ex = &dev->ex_dev; in sas_ex_discover_dev()
1065 struct expander_device *ex = &dev->ex_dev; in sas_find_sub_addr()
1088 struct expander_device *ex = &dev->ex_dev; in sas_check_level_subtractive_boundary()
1126 struct expander_device *ex = &dev->ex_dev; in sas_ex_discover_devices()
1164 struct expander_device *ex = &dev->ex_dev; in sas_check_ex_subtractive_boundary()
1265 struct expander_device *child_ex = &child->ex_dev; in sas_check_edge_expander_topo()
1266 struct expander_device *parent_ex = &child->parent->ex_dev; in sas_check_edge_expander_topo()
1296 struct expander_device *child_ex = &child->ex_dev; in sas_check_fanout_expander_topo()
1322 parent_ex = &child->parent->ex_dev; in sas_check_parent_topology()
1358 struct expander_device *ex = &dev->ex_dev; in sas_configure_present()
1494 struct expander_device *ex_parent = &parent->ex_dev; in sas_configure_parent()
1715 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_phy()
1795 struct expander_device *ex = &dev->ex_dev; in sas_find_bcast_dev()
1833 struct expander_device *ex = &dev->ex_dev; in sas_unregister_ex_tree()
1849 struct expander_device *ex_dev = &parent->ex_dev; in sas_unregister_devs_sas_addr() local
1850 struct ex_phy *phy = &ex_dev->ex_phy[phy_id]; in sas_unregister_devs_sas_addr()
1854 &ex_dev->children, siblings) { in sas_unregister_devs_sas_addr()
1874 if (ex_dev->parent_port == phy->port) in sas_unregister_devs_sas_addr()
1875 ex_dev->parent_port = NULL; in sas_unregister_devs_sas_addr()
1884 struct expander_device *ex_root = &root->ex_dev; in sas_discover_bfs_by_root_level()
1923 struct ex_phy *ex_phy = &dev->ex_dev.ex_phy[phy_id]; in sas_discover_new()
1939 list_for_each_entry(child, &dev->ex_dev.children, siblings) { in sas_discover_new()
1967 struct expander_device *ex = &dev->ex_dev; in sas_rediscover_dev()
2059 struct expander_device *ex = &dev->ex_dev; in sas_rediscover()
2101 struct expander_device *ex = &dev->ex_dev; in sas_ex_revalidate_domain()
2116 int sas_find_attached_phy_id(struct expander_device *ex_dev, in sas_find_attached_phy_id() argument
2122 for (phy_id = 0; phy_id < ex_dev->num_phys; phy_id++) { in sas_find_attached_phy_id()
2123 phy = &ex_dev->ex_phy[phy_id]; in sas_find_attached_phy_id()