• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/scsi/libsas/

Lines Matching defs:phy_id

35 static int sas_configure_phy(struct domain_device *dev, int phy_id,
147 static void sas_set_ex_phy(struct domain_device *dev, int phy_id,
151 struct ex_phy *phy = &ex->ex_phy[phy_id];
158 phy->phy = sas_phy_alloc(&rphy->dev, phy_id);
175 phy->phy_id = phy_id;
192 phy->phy->identify.phy_identifier = phy_id;
203 SAS_ADDR(dev->sas_addr), phy->phy_id,
409 int sas_smp_phy_control(struct domain_device *dev, int phy_id,
428 pc_req[9] = phy_id;
442 static void sas_ex_disable_phy(struct domain_device *dev, int phy_id)
445 struct ex_phy *phy = &ex->ex_phy[phy_id];
447 sas_smp_phy_control(dev, phy_id, PHY_FUNC_DISABLE, NULL);
519 int phy_id,
529 rps_req[9] = phy_id;
573 struct domain_device *parent, int phy_id)
576 struct ex_phy *phy = &parent_ex->ex_phy[phy_id];
594 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id);
610 res = sas_get_report_phy_sata(parent, phy_id,
615 phy_id, res);
626 SAS_ADDR(parent->sas_addr), phy_id, res);
649 SAS_ADDR(parent->sas_addr), phy_id, res);
655 phy_id);
674 static int sas_ex_join_wide_port(struct domain_device *parent, int phy_id)
676 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id];
697 struct domain_device *parent, int phy_id)
700 struct ex_phy *phy = &parent->ex_dev.ex_phy[phy_id];
710 SAS_ADDR(parent->sas_addr), phy_id,
719 phy->port = sas_port_alloc(&parent->rphy->dev, phy_id);
767 static int sas_ex_discover_dev(struct domain_device *dev, int phy_id)
770 struct ex_phy *ex_phy = &ex->ex_phy[phy_id];
776 if (!sas_smp_phy_control(dev, phy_id, PHY_FUNC_LINK_RESET, NULL))
777 res = sas_ex_phy_discover(dev, phy_id);
785 sas_add_parent_port(dev, phy_id);
790 sas_add_parent_port(dev, phy_id);
792 sas_configure_phy(dev, phy_id, dev->port->sas_addr, 1);
814 phy_id);
827 res = sas_ex_join_wide_port(dev, phy_id);
830 phy_id, SAS_ADDR(ex_phy->attached_sas_addr));
836 child = sas_ex_discover_end_dev(dev, phy_id);
845 phy_id);
846 sas_ex_disable_phy(dev, phy_id);
853 child = sas_ex_discover_expander(dev, phy_id);
1037 parent_phy->phy_id,
1041 child_phy->phy_id,
1059 parent_phy->phy_id,
1061 child_phy->phy_id,
1083 parent_phy->phy_id,
1085 child_phy->phy_id);
1161 static int sas_configure_present(struct domain_device *dev, int phy_id,
1166 struct ex_phy *phy = &ex->ex_phy[phy_id];
1184 rri_req[9] = phy_id;
1196 SAS_ADDR(dev->sas_addr), phy_id, i);
1201 SAS_ADDR(dev->sas_addr), phy_id, i, res);
1235 static int sas_configure_set(struct domain_device *dev, int phy_id,
1254 cri_req[9] = phy_id;
1267 SAS_ADDR(dev->sas_addr), phy_id, index);
1275 static int sas_configure_phy(struct domain_device *dev, int phy_id,
1282 res = sas_configure_present(dev, phy_id, sas_addr, &index, &present);
1286 return sas_configure_set(dev, phy_id, sas_addr, index,include);
1454 int phy_id, struct smp_resp *disc_resp)
1464 disc_req[9] = phy_id;
1480 int phy_id, int *pcc)
1489 res = sas_get_phy_discover(dev, phy_id, disc_resp);
1498 int phy_id, u8 *attached_sas_addr)
1509 res = sas_get_phy_discover(dev, phy_id, disc_resp);
1519 static int sas_find_bcast_phy(struct domain_device *dev, int *phy_id,
1534 *phy_id = i;
1622 int phy_id)
1625 struct ex_phy *phy = &ex_dev->ex_phy[phy_id];
1688 static int sas_discover_new(struct domain_device *dev, int phy_id)
1690 struct ex_phy *ex_phy = &dev->ex_dev.ex_phy[phy_id];
1695 SAS_ADDR(dev->sas_addr), phy_id);
1696 res = sas_ex_phy_discover(dev, phy_id);
1699 res = sas_ex_discover_devices(dev, phy_id);
1715 static int sas_rediscover_dev(struct domain_device *dev, int phy_id)
1718 struct ex_phy *phy = &ex->ex_phy[phy_id];
1722 res = sas_get_phy_attached_sas_addr(dev, phy_id, attached_sas_addr);
1726 sas_unregister_devs_sas_addr(dev, phy_id);
1730 sas_unregister_devs_sas_addr(dev, phy_id);
1738 sas_unregister_devs_sas_addr(dev, phy_id);
1742 SAS_ADDR(dev->sas_addr), phy_id);
1743 sas_ex_phy_discover(dev, phy_id);
1745 res = sas_discover_new(dev, phy_id);
1750 static int sas_rediscover(struct domain_device *dev, const int phy_id)
1753 struct ex_phy *changed_phy = &ex->ex_phy[phy_id];
1758 SAS_ADDR(dev->sas_addr), phy_id);
1764 if (i == phy_id)
1769 "phy%d\n", phy_id, i);
1773 res = sas_rediscover_dev(dev, phy_id);
1775 res = sas_discover_new(dev, phy_id);
1799 int i = 0, phy_id;
1802 phy_id = -1;
1803 res = sas_find_bcast_phy(dev, &phy_id, i);
1804 if (phy_id == -1)
1806 res = sas_rediscover(dev, phy_id);
1807 i = phy_id + 1;