• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/libsas/

Lines Matching refs:ex_phy

162 	struct ex_phy *phy = &ex->ex_phy[phy_id];
298 ex->ex_phy = kzalloc(sizeof(*ex->ex_phy)*ex->num_phys, GFP_KERNEL);
299 if (!ex->ex_phy)
308 kfree(ex->ex_phy);
309 ex->ex_phy = NULL;
478 struct ex_phy *phy = &ex->ex_phy[phy_id];
490 struct ex_phy *phy = &ex->ex_phy[i];
604 struct ex_phy *parent_phy)
615 struct ex_phy *phy = &parent_ex->ex_phy[i];
640 struct ex_phy *phy = &parent_ex->ex_phy[phy_id];
756 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id];
760 struct ex_phy *ephy = &parent->ex_dev.ex_phy[i];
781 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id];
851 struct ex_phy *ex_phy = &ex->ex_phy[phy_id];
856 if (ex_phy->linkrate == SAS_SATA_SPINUP_HOLD) {
864 if (!dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) ==
869 if (dev->parent && (SAS_ADDR(ex_phy->attached_sas_addr) ==
872 if (ex_phy->routing_attr == TABLE_ROUTING)
877 if (sas_dev_present_in_domain(dev->port, ex_phy->attached_sas_addr))
878 sas_ex_disable_port(dev, ex_phy->attached_sas_addr);
880 if (ex_phy->attached_dev_type == NO_DEVICE) {
881 if (ex_phy->routing_attr == DIRECT_ROUTING) {
882 memset(ex_phy->attached_sas_addr, 0, SAS_ADDR_SIZE);
883 sas_configure_routing(dev, ex_phy->attached_sas_addr);
886 } else if (ex_phy->linkrate == SAS_LINK_RATE_UNKNOWN)
889 if (ex_phy->attached_dev_type != SAS_END_DEV &&
890 ex_phy->attached_dev_type != FANOUT_DEV &&
891 ex_phy->attached_dev_type != EDGE_DEV) {
893 "phy 0x%x\n", ex_phy->attached_dev_type,
899 res = sas_configure_routing(dev, ex_phy->attached_sas_addr);
903 SAS_ADDR(ex_phy->attached_sas_addr), res);
904 sas_disable_routing(dev, ex_phy->attached_sas_addr);
911 phy_id, SAS_ADDR(ex_phy->attached_sas_addr));
915 switch (ex_phy->attached_dev_type) {
923 SAS_ADDR(ex_phy->attached_sas_addr),
924 ex_phy->attached_phy_id,
931 ex_phy->attached_sas_addr, SAS_ADDR_SIZE);
944 if (ex->ex_phy[i].phy_state == PHY_VACANT ||
945 ex->ex_phy[i].phy_state == PHY_NOT_PRESENT)
951 if (SAS_ADDR(ex->ex_phy[i].attached_sas_addr) ==
953 ex->ex_phy[i].phy_state= PHY_DEVICE_DISCOVERED;
957 i, SAS_ADDR(ex->ex_phy[i].attached_sas_addr));
972 struct ex_phy *phy = &ex->ex_phy[i];
1043 struct ex_phy *ex_phy = &ex->ex_phy[i];
1045 if (ex_phy->phy_state == PHY_VACANT ||
1046 ex_phy->phy_state == PHY_NOT_PRESENT ||
1047 ex_phy->phy_state == PHY_DEVICE_DISCOVERED)
1050 switch (ex_phy->linkrate) {
1079 struct ex_phy *phy = &ex->ex_phy[i];
1108 struct ex_phy *parent_phy,
1109 struct ex_phy *child_phy)
1138 struct ex_phy *parent_phy,
1139 struct ex_phy *child_phy)
1200 struct ex_phy *parent_phy = &parent_ex->ex_phy[i];
1201 struct ex_phy *child_phy;
1210 child_phy = &child_ex->ex_phy[parent_phy->attached_phy_id];
1256 struct ex_phy *phy = &ex->ex_phy[phy_id];
1409 struct ex_phy *phy = &ex_parent->ex_phy[i];
1621 else if (phy_change_count != ex->ex_phy[i].phy_change_count) {
1623 ex->ex_phy[i].phy_change_count =
1737 struct ex_phy *phy = &ex_dev->ex_phy[phy_id];
1804 struct ex_phy *ex_phy = &dev->ex_dev.ex_phy[phy_id];
1816 struct ex_phy *ex_phy_temp = &dev->ex_dev.ex_phy[i];
1820 SAS_ADDR(ex_phy->attached_sas_addr)) {
1834 SAS_ADDR(ex_phy->attached_sas_addr)) {
1848 struct ex_phy *phy = &ex->ex_phy[phy_id];
1897 struct ex_phy *changed_phy = &ex->ex_phy[phy_id];
1907 struct ex_phy *phy = &ex->ex_phy[i];