Home
last modified time | relevance | path

Searched refs:swp_entry (Results 1 – 10 of 10) sorted by relevance

/linux-6.1.9/include/linux/
Dswapops.h86 static inline swp_entry_t swp_entry(unsigned long type, pgoff_t offset) in swp_entry() function
139 return swp_entry(__swp_type(arch_entry), __swp_offset(arch_entry)); in pte_to_swp_entry()
169 return swp_entry(SWP_SWAPIN_ERROR, page_to_pfn(page)); in make_swapin_error_entry()
180 return swp_entry(SWP_DEVICE_READ, offset); in make_readable_device_private_entry()
185 return swp_entry(SWP_DEVICE_WRITE, offset); in make_writable_device_private_entry()
201 return swp_entry(SWP_DEVICE_EXCLUSIVE_READ, offset); in make_readable_device_exclusive_entry()
206 return swp_entry(SWP_DEVICE_EXCLUSIVE_WRITE, offset); in make_writable_device_exclusive_entry()
222 return swp_entry(0, 0); in make_readable_device_private_entry()
227 return swp_entry(0, 0); in make_writable_device_private_entry()
242 return swp_entry(0, 0); in make_readable_device_exclusive_entry()
[all …]
/linux-6.1.9/arch/arm64/mm/
Dmteswap.c68 swp_entry_t entry = swp_entry(type, offset); in mte_invalidate_tags()
76 swp_entry_t entry = swp_entry(type, 0); in mte_invalidate_tags_area()
77 swp_entry_t last_entry = swp_entry(type + 1, 0); in mte_invalidate_tags_area()
/linux-6.1.9/Documentation/admin-guide/cgroup-v1/
Dmemcg_test.rst24 swap_cgroup ... an entry per swp_entry.
34 a page/swp_entry may be charged (usage += PAGE_SIZE) at
41 a page/swp_entry may be uncharged (usage -= PAGE_SIZE) by
47 Called when swp_entry's refcnt goes down to 0. A charge against swap
85 swp_entry's refcnt += 1.
87 swp_entry's refcnt += # of ptes.
90 swp_entry's refcnt -= 1.
94 (e) zap_pte() is called and swp_entry's refcnt -=1 -> 0.
/linux-6.1.9/mm/
Dmigrate_device.c632 swp_entry_t swp_entry; in migrate_vma_insert_page() local
635 swp_entry = make_writable_device_private_entry( in migrate_vma_insert_page()
638 swp_entry = make_readable_device_private_entry( in migrate_vma_insert_page()
640 entry = swp_entry_to_pte(swp_entry); in migrate_vma_insert_page()
Dhuge_memory.c2181 swp_entry_t swp_entry; in __split_huge_pmd_locked() local
2183 swp_entry = make_writable_migration_entry( in __split_huge_pmd_locked()
2186 swp_entry = make_readable_exclusive_migration_entry( in __split_huge_pmd_locked()
2189 swp_entry = make_readable_migration_entry( in __split_huge_pmd_locked()
2192 swp_entry = make_migration_entry_young(swp_entry); in __split_huge_pmd_locked()
2194 swp_entry = make_migration_entry_dirty(swp_entry); in __split_huge_pmd_locked()
2195 entry = swp_entry_to_pte(swp_entry); in __split_huge_pmd_locked()
Dswap_state.c251 swp_entry_t entry = swp_entry(type, curr); in clear_shadow_from_swap_cache()
642 swp_entry(swp_type(entry), offset), in swap_cluster_readahead()
Dswapfile.c134 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap()
921 slots[n_ret++] = swp_entry(si->type, offset); in scan_swap_map_slots()
1029 *slot = swp_entry(si->type, offset); in swap_alloc_cluster()
2089 entry = swp_entry(type, i); in try_to_unuse()
2810 swp_entry_to_pte(swp_entry(0, ~0UL)))) + 1; in generic_max_swapfile_size()
Dhugetlb.c5027 swp_entry_t swp_entry = pte_to_swp_entry(entry); in copy_hugetlb_page_range() local
5030 if (!is_readable_migration_entry(swp_entry) && cow) { in copy_hugetlb_page_range()
5035 swp_entry = make_readable_migration_entry( in copy_hugetlb_page_range()
5036 swp_offset(swp_entry)); in copy_hugetlb_page_range()
5037 entry = swp_entry_to_pte(swp_entry); in copy_hugetlb_page_range()
Dzswap.c1111 struct zswap_header zhdr = { .swpentry = swp_entry(type, offset) }; in zswap_frontswap_store()
/linux-6.1.9/kernel/power/
Dswap.c185 swap_free(swp_entry(swap, offset)); in alloc_swapdev_block()
209 swap_free(swp_entry(swap, offset)); in free_all_swap_pages()