Lines Matching refs:ex_dev

44 	mutex_lock(&dev->ex_dev.cmd_mutex);
115 mutex_unlock(&dev->ex_dev.cmd_mutex);
153 if (dev->ex_dev.t2t_supp)
186 struct expander_device *ex = &dev->ex_dev;
328 struct domain_device *sas_ex_to_ata(struct domain_device *ex_dev, int phy_id)
330 struct ex_phy *ex_phy = &ex_dev->ex_dev.ex_phy[phy_id];
375 struct expander_device *ex = &dev->ex_dev;
412 struct expander_device *ex = &dev->ex_dev;
471 dev->ex_dev.ex_change_count = be16_to_cpu(rg->change_count);
472 dev->ex_dev.max_route_indexes = be16_to_cpu(rg->route_indexes);
473 dev->ex_dev.num_phys = min(rg->num_phys, (u8)MAX_EXPANDER_PHYS);
474 dev->ex_dev.t2t_supp = rg->t2t_supp;
475 dev->ex_dev.conf_route_table = rg->conf_route_table;
476 dev->ex_dev.configuring = rg->configuring;
477 memcpy(dev->ex_dev.enclosure_logical_id,
480 if (dev->ex_dev.configuring) {
597 struct expander_device *ex = &dev->ex_dev;
606 struct expander_device *ex = &dev->ex_dev;
726 struct expander_device *parent_ex = &parent->ex_dev;
791 struct expander_device *parent_ex = &parent->ex_dev;
849 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id];
852 for (i = 0; i < parent->ex_dev.num_phys; i++) {
853 struct ex_phy *ephy = &parent->ex_dev.ex_phy[i];
874 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id];
945 list_add_tail(&child->siblings, &parent->ex_dev.children);
951 struct expander_device *ex = &dev->ex_dev;
1046 struct expander_device *ex = &dev->ex_dev;
1069 struct expander_device *ex = &dev->ex_dev;
1107 struct expander_device *ex = &dev->ex_dev;
1145 struct expander_device *ex = &dev->ex_dev;
1246 struct expander_device *child_ex = &child->ex_dev;
1247 struct expander_device *parent_ex = &child->parent->ex_dev;
1277 struct expander_device *child_ex = &child->ex_dev;
1303 parent_ex = &child->parent->ex_dev;
1339 struct expander_device *ex = &dev->ex_dev;
1475 struct expander_device *ex_parent = &parent->ex_dev;
1691 struct expander_device *ex = &dev->ex_dev;
1771 struct expander_device *ex = &dev->ex_dev;
1809 struct expander_device *ex = &dev->ex_dev;
1825 struct expander_device *ex_dev = &parent->ex_dev;
1826 struct ex_phy *phy = &ex_dev->ex_phy[phy_id];
1830 &ex_dev->children, siblings) {
1857 struct expander_device *ex_root = &root->ex_dev;
1896 struct ex_phy *ex_phy = &dev->ex_dev.ex_phy[phy_id];
1912 list_for_each_entry(child, &dev->ex_dev.children, siblings) {
1940 struct expander_device *ex = &dev->ex_dev;
2020 struct expander_device *ex = &dev->ex_dev;
2062 struct expander_device *ex = &dev->ex_dev;
2077 int sas_find_attached_phy_id(struct expander_device *ex_dev,
2083 for (phy_id = 0; phy_id < ex_dev->num_phys; phy_id++) {
2084 phy = &ex_dev->ex_phy[phy_id];