Lines Matching refs:oldpage
794 int ret, oldpage; in phy_select_page() local
796 oldpage = ret = phy_save_page(phydev); in phy_select_page()
800 if (oldpage != page) { in phy_select_page()
806 return oldpage; in phy_select_page()
826 int phy_restore_page(struct phy_device *phydev, int oldpage, int ret) in phy_restore_page() argument
830 if (oldpage >= 0) { in phy_restore_page()
831 r = __phy_write_page(phydev, oldpage); in phy_restore_page()
840 ret = oldpage; in phy_restore_page()
859 int ret = 0, oldpage; in phy_read_paged() local
861 oldpage = phy_select_page(phydev, page); in phy_read_paged()
862 if (oldpage >= 0) in phy_read_paged()
865 return phy_restore_page(phydev, oldpage, ret); in phy_read_paged()
880 int ret = 0, oldpage; in phy_write_paged() local
882 oldpage = phy_select_page(phydev, page); in phy_write_paged()
883 if (oldpage >= 0) in phy_write_paged()
886 return phy_restore_page(phydev, oldpage, ret); in phy_write_paged()
903 int ret = 0, oldpage; in phy_modify_paged_changed() local
905 oldpage = phy_select_page(phydev, page); in phy_modify_paged_changed()
906 if (oldpage >= 0) in phy_modify_paged_changed()
909 return phy_restore_page(phydev, oldpage, ret); in phy_modify_paged_changed()