Lines Matching refs:phy_no

148 	int phy_no;  in hisi_sas_stop_phys()  local
150 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) in hisi_sas_stop_phys()
151 hisi_sas_phy_enable(hisi_hba, phy_no, 0); in hisi_sas_stop_phys()
615 static void hisi_sas_bytes_dmaed(struct hisi_hba *hisi_hba, int phy_no, in hisi_sas_bytes_dmaed() argument
618 struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; in hisi_sas_bytes_dmaed()
797 int phy_no; in hisi_sas_dev_found() local
801 for (phy_no = 0; phy_no < phy_num; phy_no++) { in hisi_sas_dev_found()
802 phy = &parent_dev->ex_dev.ex_phy[phy_no]; in hisi_sas_dev_found()
808 if (phy_no == phy_num) { in hisi_sas_dev_found()
871 int phy_no = sas_phy->id; in hisi_sas_phyup_work_common() local
875 hisi_hba->hw->sl_notify_ssp(hisi_hba, phy_no); in hisi_sas_phyup_work_common()
876 hisi_sas_bytes_dmaed(hisi_hba, phy_no, GFP_KERNEL); in hisi_sas_phyup_work_common()
927 int phy_no = phy->sas_phy.id; in hisi_sas_wait_phyup_timedout() local
929 dev_warn(dev, "phy%d wait phyup timeout, issuing link reset\n", phy_no); in hisi_sas_wait_phyup_timedout()
935 void hisi_sas_phy_oob_ready(struct hisi_hba *hisi_hba, int phy_no) in hisi_sas_phy_oob_ready() argument
937 struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; in hisi_sas_phy_oob_ready()
941 dev_dbg(dev, "phy%d OOB ready\n", phy_no); in hisi_sas_phy_oob_ready()
959 phy_no, phy->wait_phyup_cnt); in hisi_sas_phy_oob_ready()
967 static void hisi_sas_phy_init(struct hisi_hba *hisi_hba, int phy_no) in hisi_sas_phy_init() argument
969 struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; in hisi_sas_phy_init()
977 sas_phy->enabled = (phy_no < hisi_hba->n_phy) ? 1 : 0; in hisi_sas_phy_init()
985 sas_phy->id = phy_no; in hisi_sas_phy_init()
1000 void hisi_sas_phy_enable(struct hisi_hba *hisi_hba, int phy_no, int enable) in hisi_sas_phy_enable() argument
1002 struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; in hisi_sas_phy_enable()
1013 hisi_hba->hw->phy_start(hisi_hba, phy_no); in hisi_sas_phy_enable()
1016 hisi_hba->hw->phy_disable(hisi_hba, phy_no); in hisi_sas_phy_enable()
1154 static int hisi_sas_phy_set_linkrate(struct hisi_hba *hisi_hba, int phy_no, in hisi_sas_phy_set_linkrate() argument
1159 struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; in hisi_sas_phy_set_linkrate()
1181 hisi_sas_phy_enable(hisi_hba, phy_no, 0); in hisi_sas_phy_set_linkrate()
1183 hisi_hba->hw->phy_set_linkrate(hisi_hba, phy_no, &_r); in hisi_sas_phy_set_linkrate()
1184 hisi_sas_phy_enable(hisi_hba, phy_no, 1); in hisi_sas_phy_set_linkrate()
1198 int phy_no = sas_phy->id; in hisi_sas_control_phy() local
1207 hisi_hba->hw->phy_hard_reset(hisi_hba, phy_no); in hisi_sas_control_phy()
1211 hisi_sas_phy_enable(hisi_hba, phy_no, 0); in hisi_sas_control_phy()
1213 hisi_sas_phy_enable(hisi_hba, phy_no, 1); in hisi_sas_control_phy()
1217 hisi_sas_phy_enable(hisi_hba, phy_no, 0); in hisi_sas_control_phy()
1221 ret = hisi_sas_phy_set_linkrate(hisi_hba, phy_no, funcdata); in hisi_sas_control_phy()
1226 hisi_hba->hw->get_events(hisi_hba, phy_no); in hisi_sas_control_phy()
1239 phy_no, func); in hisi_sas_control_phy()
1348 int phy_no; in hisi_sas_rescan_topology() local
1350 for (phy_no = 0; phy_no < hisi_hba->n_phy; phy_no++) { in hisi_sas_rescan_topology()
1351 struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; in hisi_sas_rescan_topology()
1360 if (state & BIT(phy_no)) { in hisi_sas_rescan_topology()
1372 hisi_sas_phy_down(hisi_hba, phy_no, 0, GFP_KERNEL); in hisi_sas_rescan_topology()
1950 void hisi_sas_phy_down(struct hisi_hba *hisi_hba, int phy_no, int rdy, in hisi_sas_phy_down() argument
1953 struct hisi_sas_phy *phy = &hisi_hba->phy[phy_no]; in hisi_sas_phy_down()
1959 hisi_sas_bytes_dmaed(hisi_hba, phy_no, gfp_flags); in hisi_sas_phy_down()
1966 dev_info(dev, "ignore flutter phy%d down\n", phy_no); in hisi_sas_phy_down()