/kernel/linux/linux-5.10/drivers/net/phy/ |
D | phy-core.c | 793 int ret, oldpage; in phy_select_page() local 795 oldpage = ret = phy_save_page(phydev); in phy_select_page() 799 if (oldpage != page) { in phy_select_page() 805 return oldpage; in phy_select_page() 825 int phy_restore_page(struct phy_device *phydev, int oldpage, int ret) in phy_restore_page() argument 829 if (oldpage >= 0) { in phy_restore_page() 830 r = __phy_write_page(phydev, oldpage); in phy_restore_page() 839 ret = oldpage; in phy_restore_page() 858 int ret = 0, oldpage; in phy_read_paged() local 860 oldpage = phy_select_page(phydev, page); in phy_read_paged() [all …]
|
D | realtek.c | 264 int ret = 0, oldpage; in rtl8211e_config_init() local 294 oldpage = phy_select_page(phydev, 0x7); in rtl8211e_config_init() 295 if (oldpage < 0) in rtl8211e_config_init() 307 return phy_restore_page(phydev, oldpage, ret); in rtl8211e_config_init()
|
D | marvell.c | 1634 int err = 0, oldpage; in m88e1318_set_wol() local 1636 oldpage = phy_save_page(phydev); in m88e1318_set_wol() 1637 if (oldpage < 0) in m88e1318_set_wol() 1714 return phy_restore_page(phydev, oldpage, err); in m88e1318_set_wol() 2145 int oldpage; in m88e1121_get_temp() local 2151 oldpage = phy_select_page(phydev, MII_MARVELL_MISC_TEST_PAGE); in m88e1121_get_temp() 2152 if (oldpage < 0) in m88e1121_get_temp() 2183 return phy_restore_page(phydev, oldpage, ret); in m88e1121_get_temp() 2406 int oldpage; in m88e6390_get_temp() local 2412 oldpage = phy_select_page(phydev, MII_MARVELL_MISC_TEST_PAGE); in m88e6390_get_temp() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | page_owner.h | 15 extern void __copy_page_owner(struct page *oldpage, struct page *newpage); 39 static inline void copy_page_owner(struct page *oldpage, struct page *newpage) in copy_page_owner() argument 42 __copy_page_owner(oldpage, newpage); in copy_page_owner() 66 static inline void copy_page_owner(struct page *oldpage, struct page *newpage) in copy_page_owner() argument
|
D | ksm.h | 55 void ksm_migrate_page(struct page *newpage, struct page *oldpage); 86 static inline void ksm_migrate_page(struct page *newpage, struct page *oldpage) in ksm_migrate_page() argument
|
D | hugetlb.h | 149 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason); 337 static inline void move_hugetlb_state(struct page *oldpage, in move_hugetlb_state() argument
|
D | memcontrol.h | 462 void mem_cgroup_migrate(struct page *oldpage, struct page *newpage);
|
D | phy.h | 1341 int phy_restore_page(struct phy_device *phydev, int oldpage, int ret);
|
/kernel/linux/linux-5.10/drivers/net/phy/mscc/ |
D | mscc_main.c | 616 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/realtek/ |
D | r8169_phy_config.c | 23 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()
|
/kernel/linux/linux-5.10/fs/fuse/ |
D | dev.c | 798 struct page *oldpage = *pagep; in fuse_try_move_page() local 802 get_page(oldpage); in fuse_try_move_page() 839 if (WARN_ON(page_mapped(oldpage))) in fuse_try_move_page() 841 if (WARN_ON(page_has_private(oldpage))) in fuse_try_move_page() 843 if (WARN_ON(PageDirty(oldpage) || PageWriteback(oldpage))) in fuse_try_move_page() 845 if (WARN_ON(PageMlocked(oldpage))) in fuse_try_move_page() 848 err = replace_page_cache_page(oldpage, newpage, GFP_KERNEL); in fuse_try_move_page() 879 unlock_page(oldpage); in fuse_try_move_page() 881 put_page(oldpage); in fuse_try_move_page() 887 put_page(oldpage); in fuse_try_move_page()
|
/kernel/linux/linux-5.10/mm/ |
D | shmem.c | 1628 struct page *oldpage, *newpage; in shmem_replace_page() local 1634 oldpage = *pagep; in shmem_replace_page() 1635 entry.val = page_private(oldpage); in shmem_replace_page() 1637 swap_mapping = page_mapping(oldpage); in shmem_replace_page() 1649 copy_highpage(newpage, oldpage); in shmem_replace_page() 1663 error = shmem_replace_entry(swap_mapping, swap_index, oldpage, newpage); in shmem_replace_page() 1665 mem_cgroup_migrate(oldpage, newpage); in shmem_replace_page() 1667 __dec_lruvec_page_state(oldpage, NR_FILE_PAGES); in shmem_replace_page() 1677 oldpage = newpage; in shmem_replace_page() 1683 ClearPageSwapCache(oldpage); in shmem_replace_page() [all …]
|
D | page_owner.c | 231 void __copy_page_owner(struct page *oldpage, struct page *newpage) in __copy_page_owner() argument 233 struct page_ext *old_ext = lookup_page_ext(oldpage); in __copy_page_owner()
|
D | ksm.c | 2670 void ksm_migrate_page(struct page *newpage, struct page *oldpage) in ksm_migrate_page() argument 2674 VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage); in ksm_migrate_page() 2676 VM_BUG_ON_PAGE(newpage->mapping != oldpage->mapping, newpage); in ksm_migrate_page() 2680 VM_BUG_ON_PAGE(stable_node->kpfn != page_to_pfn(oldpage), oldpage); in ksm_migrate_page() 2689 set_page_stable_node(oldpage, NULL); in ksm_migrate_page()
|
D | zsmalloc.c | 1851 struct page *newpage, struct page *oldpage) in replace_sub_page() argument 1859 if (page == oldpage) in replace_sub_page() 1867 set_first_obj_offset(newpage, get_first_obj_offset(oldpage)); in replace_sub_page() 1868 if (unlikely(PageHugeObject(oldpage))) in replace_sub_page() 1869 newpage->index = oldpage->index; in replace_sub_page() 1870 __SetPageMovable(newpage, page_mapping(oldpage)); in replace_sub_page()
|
D | slub.c | 2383 struct page *oldpage; in put_cpu_partial() local 2391 oldpage = this_cpu_read(s->cpu_slab->partial); in put_cpu_partial() 2393 if (oldpage) { in put_cpu_partial() 2394 pobjects = oldpage->pobjects; in put_cpu_partial() 2395 pages = oldpage->pages; in put_cpu_partial() 2405 oldpage = NULL; in put_cpu_partial() 2417 page->next = oldpage; in put_cpu_partial() 2419 } while (this_cpu_cmpxchg(s->cpu_slab->partial, oldpage, page) in put_cpu_partial() 2420 != oldpage); in put_cpu_partial()
|
D | hugetlb.c | 5696 void move_hugetlb_state(struct page *oldpage, struct page *newpage, int reason) in move_hugetlb_state() argument 5698 struct hstate *h = page_hstate(oldpage); in move_hugetlb_state() 5700 hugetlb_cgroup_migrate(oldpage, newpage); in move_hugetlb_state() 5714 int old_nid = page_to_nid(oldpage); in move_hugetlb_state() 5717 SetPageHugeTemporary(oldpage); in move_hugetlb_state()
|
D | memcontrol.c | 7059 void mem_cgroup_migrate(struct page *oldpage, struct page *newpage) in mem_cgroup_migrate() argument 7065 VM_BUG_ON_PAGE(!PageLocked(oldpage), oldpage); in mem_cgroup_migrate() 7067 VM_BUG_ON_PAGE(PageAnon(oldpage) != PageAnon(newpage), newpage); in mem_cgroup_migrate() 7068 VM_BUG_ON_PAGE(PageTransHuge(oldpage) != PageTransHuge(newpage), in mem_cgroup_migrate() 7079 memcg = oldpage->mem_cgroup; in mem_cgroup_migrate()
|
/kernel/linux/linux-5.10/fs/erofs/ |
D | zdata.c | 984 struct page *oldpage, *page; in pickup_page_for_submission() local 991 oldpage = page; in pickup_page_for_submission() 1069 if (oldpage != cmpxchg(&pcl->compressed_pages[nr], oldpage, page)) { in pickup_page_for_submission()
|
/kernel/linux/linux-5.10/Documentation/vm/ |
D | page_migration.rst | 185 | ``struct page *newpage, struct page *oldpage, enum migrate_mode);`` 191 indicate to the VM the oldpage is no longer movable via __ClearPageMovable() 192 under page_lock if you migrated the oldpage successfully and returned
|