Home
last modified time | relevance | path

Searched refs:oldpage (Results 1 – 14 of 14) sorted by relevance

/linux-6.1.9/drivers/net/phy/
Dphy-core.c863 int ret, oldpage; in phy_select_page() local
865 oldpage = ret = phy_save_page(phydev); in phy_select_page()
869 if (oldpage != page) { in phy_select_page()
875 return oldpage; in phy_select_page()
895 int phy_restore_page(struct phy_device *phydev, int oldpage, int ret) in phy_restore_page() argument
899 if (oldpage >= 0) { in phy_restore_page()
900 r = __phy_write_page(phydev, oldpage); in phy_restore_page()
909 ret = oldpage; in phy_restore_page()
928 int ret = 0, oldpage; in phy_read_paged() local
930 oldpage = phy_select_page(phydev, page); in phy_read_paged()
[all …]
Dicplus.c238 int oldpage, err = 0; in ip101a_g_config_intr_pin() local
240 oldpage = phy_select_page(phydev, IP101G_DEFAULT_PAGE); in ip101a_g_config_intr_pin()
241 if (oldpage < 0) in ip101a_g_config_intr_pin()
273 return phy_restore_page(phydev, oldpage, err); in ip101a_g_config_intr_pin()
309 int oldpage, ret, stat1, stat2; in ip101a_g_read_status() local
315 oldpage = phy_select_page(phydev, IP101G_DEFAULT_PAGE); in ip101a_g_read_status()
316 if (oldpage < 0) in ip101a_g_read_status()
346 return phy_restore_page(phydev, oldpage, ret); in ip101a_g_read_status()
352 int oldpage; in ip101a_g_config_mdix() local
369 oldpage = phy_select_page(phydev, IP101G_DEFAULT_PAGE); in ip101a_g_config_mdix()
[all …]
Dmotorcomm.c53 int oldpage, ret = 0; in yt8511_config_init() local
56 oldpage = phy_select_page(phydev, YT8511_EXT_CLK_GATE); in yt8511_config_init()
57 if (oldpage < 0) in yt8511_config_init()
111 return phy_restore_page(phydev, oldpage, ret); in yt8511_config_init()
Dmarvell.c1831 int err = 0, oldpage; in m88e1318_set_wol() local
1833 oldpage = phy_save_page(phydev); in m88e1318_set_wol()
1834 if (oldpage < 0) in m88e1318_set_wol()
1937 return phy_restore_page(phydev, oldpage, err); in m88e1318_set_wol()
2430 int oldpage; in m88e1121_get_temp() local
2436 oldpage = phy_select_page(phydev, MII_MARVELL_MISC_TEST_PAGE); in m88e1121_get_temp()
2437 if (oldpage < 0) in m88e1121_get_temp()
2468 return phy_restore_page(phydev, oldpage, ret); in m88e1121_get_temp()
2536 int oldpage; in m88e6390_get_temp() local
2542 oldpage = phy_select_page(phydev, MII_MARVELL_MISC_TEST_PAGE); in m88e6390_get_temp()
[all …]
Drealtek.c437 int ret = 0, oldpage; in rtl8211e_config_init() local
467 oldpage = phy_select_page(phydev, 0x7); in rtl8211e_config_init()
468 if (oldpage < 0) in rtl8211e_config_init()
480 return phy_restore_page(phydev, oldpage, ret); in rtl8211e_config_init()
/linux-6.1.9/drivers/net/ethernet/realtek/
Dr8169_phy_config.c23 int oldpage = phy_select_page(phydev, 0x0007); in r8168d_modify_extpage() local
28 phy_restore_page(phydev, oldpage, 0); in r8168d_modify_extpage()
34 int oldpage = phy_select_page(phydev, 0x0005); in r8168d_phy_param() local
39 phy_restore_page(phydev, oldpage, 0); in r8168d_phy_param()
45 int oldpage = phy_select_page(phydev, 0x0a43); in r8168g_phy_param() local
50 phy_restore_page(phydev, oldpage, 0); in r8168g_phy_param()
/linux-6.1.9/drivers/net/phy/mscc/
Dmscc_main.c616 int oldpage; in vsc8531_pre_init_seq_set() local
637 oldpage = phy_select_page(phydev, MSCC_PHY_PAGE_TR); in vsc8531_pre_init_seq_set()
638 if (oldpage < 0) in vsc8531_pre_init_seq_set()
645 oldpage = phy_restore_page(phydev, oldpage, oldpage); in vsc8531_pre_init_seq_set()
648 return oldpage; in vsc8531_pre_init_seq_set()
674 int oldpage; in vsc85xx_eee_init_seq_set() local
677 oldpage = phy_select_page(phydev, MSCC_PHY_PAGE_TR); in vsc85xx_eee_init_seq_set()
678 if (oldpage < 0) in vsc85xx_eee_init_seq_set()
685 oldpage = phy_restore_page(phydev, oldpage, oldpage); in vsc85xx_eee_init_seq_set()
688 return oldpage; in vsc85xx_eee_init_seq_set()
/linux-6.1.9/fs/fuse/
Ddev.c790 struct page *oldpage = *pagep; in fuse_try_move_page() local
794 get_page(oldpage); in fuse_try_move_page()
831 if (WARN_ON(page_mapped(oldpage))) in fuse_try_move_page()
833 if (WARN_ON(page_has_private(oldpage))) in fuse_try_move_page()
835 if (WARN_ON(PageDirty(oldpage) || PageWriteback(oldpage))) in fuse_try_move_page()
837 if (WARN_ON(PageMlocked(oldpage))) in fuse_try_move_page()
840 replace_page_cache_page(oldpage, newpage); in fuse_try_move_page()
867 unlock_page(oldpage); in fuse_try_move_page()
869 put_page(oldpage); in fuse_try_move_page()
875 put_page(oldpage); in fuse_try_move_page()
/linux-6.1.9/fs/erofs/
Dzdata.c49 struct page *oldpage; in z_erofs_bvset_flip() local
52 oldpage = z_erofs_bvec_iter_end(iter); in z_erofs_bvset_flip()
57 return oldpage; in z_erofs_bvset_flip()
1209 struct page *oldpage, *page; in pickup_page_for_submission() local
1216 oldpage = page; in pickup_page_for_submission()
1292 if (oldpage != cmpxchg(&pcl->compressed_bvecs[nr].page, in pickup_page_for_submission()
1293 oldpage, page)) { in pickup_page_for_submission()
/linux-6.1.9/Documentation/translations/zh_CN/mm/
Dpage_migration.rst144 | ``struct page *newpage, struct page *oldpage, enum migrate_mode);``
/linux-6.1.9/include/linux/
Dhugetlb.h187 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason);
442 static inline void move_hugetlb_state(struct page *oldpage, in move_hugetlb_state() argument
Dphy.h1450 int phy_restore_page(struct phy_device *phydev, int oldpage, int ret);
/linux-6.1.9/mm/
Dzsmalloc.c1800 struct page *newpage, struct page *oldpage) in replace_sub_page() argument
1808 if (page == oldpage) in replace_sub_page()
1816 set_first_obj_offset(newpage, get_first_obj_offset(oldpage)); in replace_sub_page()
1818 newpage->index = oldpage->index; in replace_sub_page()
Dhugetlb.c7374 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason) in move_hugetlb_state() argument
7376 struct hstate *h = page_hstate(oldpage); in move_hugetlb_state()
7378 hugetlb_cgroup_migrate(oldpage, newpage); in move_hugetlb_state()
7392 int old_nid = page_to_nid(oldpage); in move_hugetlb_state()
7395 SetHPageTemporary(oldpage); in move_hugetlb_state()