/linux/include/linux/ |
A D | swapops.h | 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() 90 swp_entry_t arch_entry; in swp_entry_to_pte() 98 swp_entry_t entry; in radix_to_swp_entry() 287 swp_entry_t arch_entry; in pmd_to_swp_entry() 299 swp_entry_t arch_entry; in swp_entry_to_pmd() 392 static inline int non_swap_entry(swp_entry_t entry) in non_swap_entry() [all …]
|
A D | swap.h | 456 swp_entry_t entry, void *shadow); 501 extern void swap_shmem_alloc(swp_entry_t); 502 extern int swap_duplicate(swp_entry_t); 503 extern int swapcache_prepare(swp_entry_t); 504 extern void swap_free(swp_entry_t); 506 extern int free_swap_and_cache(swp_entry_t); 512 extern int __swap_count(swp_entry_t entry); 514 extern int swp_swapcount(swp_entry_t entry); 650 swp_entry_t entry, void *shadow) in __delete_from_swap_cache() 693 swp_entry_t entry; in get_swap_page() [all …]
|
A 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()
|
A D | swap_slots.h | 16 swp_entry_t *slots; 20 swp_entry_t *slots_ret; 27 int free_swap_slot(swp_entry_t entry);
|
/linux/arch/mips/include/asm/ |
A D | pgtable-32.h | 205 #define __swp_entry(type,offset) ((swp_entry_t) { ((type) << 10) | ((offset) << 15) }) 206 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 216 #define __swp_entry(type,offset) ((swp_entry_t) { ((type) << 4) | ((offset) << 9) }) 217 #define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_high }) 225 #define __swp_entry(type, offset) ((swp_entry_t) { ((type) << 2) | ((offset) << 7) }) 226 #define __pte_to_swp_entry(pte) ((swp_entry_t) { (pte).pte_high }) 239 #define __swp_entry(type,offset) ((swp_entry_t) { ((type) << 8) | ((offset) << 13) }) 240 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
A D | pgtable-64.h | 341 #define __swp_entry(type, offset) ((swp_entry_t) { pte_val(mk_swap_pte((type), (offset))) }) 342 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/linux/mm/ |
A D | swap_slots.c | 116 swp_entry_t *slots, *slots_ret; in alloc_swap_slot_cache() 123 slots = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache() 128 slots_ret = kvcalloc(SWAP_SLOTS_CACHE_SIZE, sizeof(swp_entry_t), in alloc_swap_slot_cache() 172 swp_entry_t *slots = NULL; in drain_slots_cache_cpu() 272 int free_swap_slot(swp_entry_t entry) in free_swap_slot() 304 swp_entry_t get_swap_page(struct page *page) in get_swap_page() 306 swp_entry_t entry; in get_swap_page()
|
A D | swap_state.c | 84 void *get_shadow_from_swap_cache(swp_entry_t entry) in get_shadow_from_swap_cache() 100 int add_to_swap_cache(struct page *page, swp_entry_t entry, in add_to_swap_cache() 153 swp_entry_t entry, void *shadow) in __delete_from_swap_cache() 186 swp_entry_t entry; in add_to_swap() 242 swp_entry_t entry = { .val = page_private(page) }; in delete_from_swap_cache() 260 swp_entry_t entry = swp_entry(type, curr); in clear_shadow_from_swap_cache() 395 swp_entry_t swp; in find_get_incore_page() 521 struct page *read_swap_cache_async(swp_entry_t entry, gfp_t gfp_mask, in read_swap_cache_async() 613 struct page *swap_cluster_readahead(swp_entry_t entry, gfp_t gfp_mask, in swap_cluster_readahead() 795 swp_entry_t entry; in swap_vma_readahead() [all …]
|
A D | swapfile.c | 779 swp_entry_t slots[]) in scan_swap_map_slots() 1300 swp_entry_t entry) in __swap_entry_free() 1336 void swap_free(swp_entry_t entry) in swap_free() 1457 swp_entry_t entry; in page_swapcount() 1562 swp_entry_t entry) in swap_page_trans_huge_swapped() 1590 swp_entry_t entry; in page_swapped() 1630 swp_entry_t entry; in page_trans_huge_map_swapcount() 1696 swp_entry_t entry; in reuse_swap_page() 1779 swp_entry_t entry = {0}; in get_swap_page_of_type() 1944 swp_entry_t entry; in unuse_pte_range() [all …]
|
A 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()
|
A D | page_vma_mapped.c | 40 swp_entry_t entry; in map_pte() 92 swp_entry_t entry; in check_pte() 103 swp_entry_t entry; in check_pte() 232 swp_entry_t entry; in page_vma_mapped_walk()
|
/linux/arch/arm64/mm/ |
A D | mteswap.c | 49 bool mte_restore_tags(swp_entry_t entry, struct page *page) in mte_restore_tags() 72 swp_entry_t entry = swp_entry(type, offset); in mte_invalidate_tags() 80 swp_entry_t entry = swp_entry(type, 0); in mte_invalidate_tags_area() 81 swp_entry_t last_entry = swp_entry(type + 1, 0); in mte_invalidate_tags_area()
|
/linux/arch/sparc/include/asm/ |
A D | pgtable_32.h | 341 static inline unsigned long __swp_type(swp_entry_t entry) in __swp_type() 346 static inline unsigned long __swp_offset(swp_entry_t entry) in __swp_offset() 351 static inline swp_entry_t __swp_entry(unsigned long type, unsigned long offset) in __swp_entry() 353 return (swp_entry_t) { in __swp_entry() 358 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/linux/arch/h8300/include/asm/ |
A 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) })
|
/linux/arch/m68k/include/asm/ |
A 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) })
|
A 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) })
|
A D | motorola_pgtable.h | 203 #define __swp_entry(type, offset) ((swp_entry_t) { ((type) << 4) | ((offset) << 12) }) 204 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/linux/arch/x86/include/asm/ |
A 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)) })
|
A 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 })
|
/linux/arch/sh/include/asm/ |
A 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 })
|
/linux/arch/arc/include/asm/ |
A D | pgtable-bits-arcv2.h | 131 #define __swp_entry(type, off) ((swp_entry_t) \ 138 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/linux/arch/csky/abiv2/inc/abi/ |
A D | pgtable-bits.h | 43 #define __swp_entry(type, offset) ((swp_entry_t) { \
|
/linux/arch/csky/abiv1/inc/abi/ |
A D | pgtable-bits.h | 43 #define __swp_entry(type, offset) ((swp_entry_t) { \
|
/linux/arch/nios2/include/asm/ |
A D | pgtable.h | 265 #define __swp_entry(type, off) ((swp_entry_t) { (((type) & 0x3) << 26) \ 268 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
|
/linux/arch/hexagon/include/asm/ |
A D | pgtable.h | 355 #define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) 411 ((swp_entry_t) { \
|