/kernel/linux/linux-5.10/include/linux/ |
D | swapops.h | 39 static inline swp_entry_t swp_entry(unsigned long type, pgoff_t offset) in swp_entry() 41 swp_entry_t ret; in swp_entry() 51 static inline unsigned swp_type(swp_entry_t entry) in swp_type() 60 static inline pgoff_t swp_offset(swp_entry_t entry) in swp_offset() 75 static inline swp_entry_t pte_to_swp_entry(pte_t pte) in pte_to_swp_entry() 77 swp_entry_t arch_entry; in pte_to_swp_entry() 88 static inline pte_t swp_entry_to_pte(swp_entry_t entry) in swp_entry_to_pte() 90 swp_entry_t arch_entry; in swp_entry_to_pte() 96 static inline swp_entry_t radix_to_swp_entry(void *arg) in radix_to_swp_entry() 98 swp_entry_t entry; in radix_to_swp_entry() [all …]
|
D | swap.h | 431 extern void *get_shadow_from_swap_cache(swp_entry_t entry); 432 extern int add_to_swap_cache(struct page *page, swp_entry_t entry, 435 swp_entry_t entry, void *shadow); 441 extern struct page *lookup_swap_cache(swp_entry_t entry, 445 extern struct page *read_swap_cache_async(swp_entry_t, gfp_t, 448 extern struct page *__read_swap_cache_async(swp_entry_t, gfp_t, 451 extern struct page *swap_cluster_readahead(swp_entry_t entry, gfp_t flag, 453 extern struct page *swapin_readahead(swp_entry_t entry, gfp_t flag, 477 extern swp_entry_t get_swap_page(struct page *page); 478 extern void put_swap_page(struct page *page, swp_entry_t entry); [all …]
|
D | swap_cgroup.h | 9 extern unsigned short swap_cgroup_cmpxchg(swp_entry_t ent, 11 extern unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id, 13 extern unsigned short lookup_swap_cgroup_id(swp_entry_t ent); 20 unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id, in swap_cgroup_record() 27 unsigned short lookup_swap_cgroup_id(swp_entry_t ent) in lookup_swap_cgroup_id()
|
D | swap_slots.h | 16 swp_entry_t *slots; 20 swp_entry_t *slots_ret; 27 int free_swap_slot(swp_entry_t entry);
|
/kernel/linux/linux-5.10/arch/mips/include/asm/ |
D | pgtable-32.h | 206 #define __swp_entry(type,offset) ((swp_entry_t) { ((type) << 10) | ((offset) << 15) }) 207 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 217 #define __swp_entry(type,offset) ((swp_entry_t) { ((type) << 4) | ((offset) << 9) }) 218 #define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_high }) 226 #define __swp_entry(type, offset) ((swp_entry_t) { ((type) << 2) | ((offset) << 7) }) 227 #define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_high }) 240 #define __swp_entry(type,offset) ((swp_entry_t) { ((type) << 8) | ((offset) << 13) }) 241 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
D | pgtable-64.h | 342 #define __swp_entry(type, offset) ((swp_entry_t) { pte_val(mk_swap_pte((type), (offset))) }) 343 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/kernel/linux/linux-5.10/arch/arm64/mm/ |
D | mteswap.c | 49 bool mte_restore_tags(swp_entry_t entry, struct page *page) in mte_restore_tags() 63 swp_entry_t entry = swp_entry(type, offset); in mte_invalidate_tags() 71 swp_entry_t entry = swp_entry(type, 0); in mte_invalidate_tags_area() 72 swp_entry_t last_entry = swp_entry(type + 1, 0); in mte_invalidate_tags_area()
|
/kernel/linux/linux-5.10/mm/ |
D | swap_slots.c | 117 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() 124 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache() 129 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache() 173 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() 274 int free_swap_slot(swp_entry_t entry) in free_swap_slot() 306 swp_entry_t get_swap_page(struct page *page) in get_swap_page() 308 swp_entry_t entry; in get_swap_page()
|
D | swap_state.c | 79 swp_entry_t entry = swp_entry(i, 1); in total_swapcache_pages() 110 void *get_shadow_from_swap_cache(swp_entry_t entry) in get_shadow_from_swap_cache() 128 int add_to_swap_cache(struct page *page, swp_entry_t entry, in add_to_swap_cache() 184 swp_entry_t entry, void *shadow) in __delete_from_swap_cache() 218 swp_entry_t entry; in add_to_swap() 274 swp_entry_t entry = { .val = page_private(page) }; in delete_from_swap_cache() 293 swp_entry_t entry = swp_entry(type, curr); in clear_shadow_from_swap_cache() 369 struct page *lookup_swap_cache(swp_entry_t entry, struct vm_area_struct *vma, in lookup_swap_cache() 430 swp_entry_t swp; in find_get_incore_page() 451 struct page *__read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, in __read_swap_cache_async() [all …]
|
D | swap_cgroup.c | 76 static struct swap_cgroup *lookup_swap_cgroup(swp_entry_t ent, in lookup_swap_cgroup() 97 unsigned short swap_cgroup_cmpxchg(swp_entry_t ent, in swap_cgroup_cmpxchg() 126 unsigned short swap_cgroup_record(swp_entry_t ent, unsigned short id, in swap_cgroup_record() 162 unsigned short lookup_swap_cgroup_id(swp_entry_t ent) in lookup_swap_cgroup_id()
|
D | swapfile.c | 51 static sector_t map_swap_entry(swp_entry_t, struct block_device**); 130 swp_entry_t entry = swp_entry(si->type, offset); in __try_to_reclaim_swap() 773 swp_entry_t slots[]) in scan_swap_map_slots() 988 static int swap_alloc_cluster(struct swap_info_struct *si, swp_entry_t *slot) in swap_alloc_cluster() 1039 swp_entry_t entry; in scan_swap_map() 1051 int get_swap_pages(int n_goal, swp_entry_t swp_entries[], int entry_size) in get_swap_pages() 1137 swp_entry_t get_swap_page_of_type(int type) in get_swap_page_of_type() 1157 return (swp_entry_t) {0}; in get_swap_page_of_type() 1160 static struct swap_info_struct *__swap_info_get(swp_entry_t entry) in __swap_info_get() 1189 static struct swap_info_struct *_swap_info_get(swp_entry_t entry) in _swap_info_get() [all …]
|
D | page_vma_mapped.c | 40 swp_entry_t entry; in map_pte() 90 swp_entry_t entry; in check_pte() 100 swp_entry_t entry; in check_pte() 228 swp_entry_t entry; in page_vma_mapped_walk()
|
/kernel/linux/linux-5.10/arch/h8300/include/asm/ |
D | pgtable.h | 13 #define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) 14 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
D | pgtable_no.h | 37 #define __swp_entry(typ,off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) 38 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
D | sun3_pgtable.h | 180 #define __swp_entry(type,offset) ((swp_entry_t) { ((type) | ((offset) << 7)) }) 181 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
D | motorola_pgtable.h | 201 #define __swp_entry(type, offset) ((swp_entry_t) { ((type) << 4) | ((offset) << 12) }) 202 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/kernel/linux/linux-5.10/arch/sparc/include/asm/ |
D | pgtable_32.h | 339 static inline unsigned long __swp_type(swp_entry_t entry) in __swp_type() 344 static inline unsigned long __swp_offset(swp_entry_t entry) in __swp_offset() 349 static inline swp_entry_t __swp_entry(unsigned long type, unsigned long offset) in __swp_entry() 351 return (swp_entry_t) { in __swp_entry() 356 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/kernel/linux/linux-5.10/arch/c6x/include/asm/ |
D | pgtable.h | 45 #define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) 46 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
D | pgtable_64.h | 232 #define __swp_entry(type, offset) ((swp_entry_t) { \ 236 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val((pte)) }) 237 #define __pmd_to_swp_entry(pmd) ((swp_entry_t) { pmd_val((pmd)) })
|
D | pgtable-2level.h | 92 #define __swp_entry(type, offset) ((swp_entry_t) { \ 95 #define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_low })
|
/kernel/linux/linux-5.10/arch/microblaze/include/asm/ |
D | pgtable.h | 37 #define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) }) 38 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 461 ((swp_entry_t) { (type) | ((offset) << 6) }) 462 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 2 })
|
/kernel/linux/linux-5.10/arch/sh/include/asm/ |
D | pgtable_32.h | 447 #define __swp_entry(type, offset) ((swp_entry_t){ (type) | (offset) << 5}) 448 #define __pte_to_swp_entry(pte) ((swp_entry_t){ (pte).pte_high }) 454 #define __swp_entry(type, offset) ((swp_entry_t){(type) | (offset) <<10}) 456 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) >> 1 })
|
/kernel/linux/linux-5.10/arch/nios2/include/asm/ |
D | pgtable.h | 267 #define __swp_entry(type, off) ((swp_entry_t) { (((type) & 0x3) << 26) \ 270 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
D | mte.h | 26 bool mte_restore_tags(swp_entry_t entry, struct page *page);
|
/kernel/linux/linux-5.10/arch/arc/include/asm/ |
D | pgtable.h | 346 #define __swp_entry(type, off) ((swp_entry_t) { \ 354 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|