Searched refs:swp_offset (Results 1 – 17 of 17) sorted by relevance
/linux-6.12.1/include/linux/ |
D | swapops.h | 107 static inline pgoff_t swp_offset(swp_entry_t entry) in swp_offset() function 120 return swp_offset(entry) & SWP_PFN_MASK; in swp_offset_pfn() 150 arch_entry = __swp_entry(swp_type(entry), swp_offset(entry)); in swp_entry_to_pte() 307 swp_offset(entry) | SWP_MIG_YOUNG); in make_migration_entry_young() 314 return swp_offset(entry) & SWP_MIG_YOUNG; in is_migration_entry_young() 323 swp_offset(entry) | SWP_MIG_DIRTY); in make_migration_entry_dirty() 330 return swp_offset(entry) & SWP_MIG_DIRTY; in is_migration_entry_dirty() 445 return swp_offset(entry) & PTE_MARKER_MASK; in pte_marker_get() 555 arch_entry = __swp_entry(swp_type(entry), swp_offset(entry)); in swp_entry_to_pmd()
|
/linux-6.12.1/mm/ |
D | swap.h | 32 (&swapper_spaces[swp_type(entry)][swp_offset(entry) \ 40 return ((loff_t)swp_offset(entry)) << PAGE_SHIFT; in swap_dev_pos() 49 return swp_offset(entry) & SWAP_ADDRESS_SPACE_MASK; in swap_cache_index() 93 unsigned long start = swp_offset(entry); in swap_zeromap_batch()
|
D | swap_cgroup.c | 79 pgoff_t offset = swp_offset(ent); in lookup_swap_cgroup() 133 pgoff_t offset = swp_offset(ent); in swap_cgroup_record()
|
D | swapfile.c | 212 offset = swp_offset(entry); in __try_to_reclaim_swap() 335 offset = swp_offset(folio->swap); in swap_folio_sector() 1357 offset = swp_offset(entry); in _swap_info_get() 1360 if (data_race(!si->swap_map[swp_offset(entry)])) in _swap_info_get() 1494 offset = swp_offset(entry); in get_swap_device() 1513 unsigned long offset = swp_offset(entry); in __swap_entry_free() 1528 unsigned long offset = swp_offset(entry); in __swap_entries_free() 1579 unsigned long offset = swp_offset(entry); in swap_entry_range_free() 1634 unsigned long offset = swp_offset(entry); in swap_free_nr() 1653 unsigned long offset = swp_offset(entry); in put_swap_folio() [all …]
|
D | mprotect.c | 212 swp_offset(entry)); in change_pte_range() 214 entry = make_readable_migration_entry(swp_offset(entry)); in change_pte_range() 224 swp_offset(entry)); in change_pte_range() 230 swp_offset(entry)); in change_pte_range()
|
D | zswap.c | 236 return &zswap_trees[swp_type(swp)][swp_offset(swp) in swap_zswap_tree() 1008 pgoff_t offset = swp_offset(swpentry); in zswap_writeback_entry() 1409 pgoff_t offset = swp_offset(swp); in zswap_store() 1535 pgoff_t offset = swp_offset(swp); in zswap_load() 1593 pgoff_t offset = swp_offset(swp); in zswap_invalidate()
|
D | page_io.c | 215 set_bit(swp_offset(entry), sis->zeromap); in swap_zeromap_folio_set() 233 clear_bit(swp_offset(entry), sis->zeromap); in swap_zeromap_folio_clear()
|
D | memory.c | 834 swp_offset(entry)); in copy_nonpresent_pte() 870 swp_offset(entry)); in copy_nonpresent_pte() 4032 pgoff_t offset = swp_offset(entry); in non_swapcache_batch() 4083 static inline unsigned long thp_swap_suitable_orders(pgoff_t swp_offset, in thp_swap_suitable_orders() argument 4098 if ((addr >> PAGE_SHIFT) % nr == swp_offset % nr) in thp_swap_suitable_orders() 4141 orders = thp_swap_suitable_orders(swp_offset(entry), in alloc_swap_folio() 4275 page = folio_file_page(folio, swp_offset(entry)); in do_swap_page() 4346 page = folio_file_page(folio, swp_offset(entry)); in do_swap_page()
|
D | debug_vm_pgtable.c | 814 max_swap_offset = swp_offset(pte_to_swp_entry(swp_entry_to_pte(swp_entry(0, ~0UL)))); in pte_swap_exclusive_tests() 900 swp = make_readable_migration_entry(swp_offset(swp)); in swap_migration_tests()
|
D | swap_state.c | 660 unsigned long entry_offset = swp_offset(entry); in swap_cluster_readahead()
|
D | internal.h | 279 (swp_offset(entry) + delta))); in pte_move_swp_offset()
|
D | huge_memory.c | 1617 swp_offset(entry)); in copy_huge_pmd() 2225 entry = make_readable_exclusive_migration_entry(swp_offset(entry)); in change_huge_pmd() 2227 entry = make_readable_migration_entry(swp_offset(entry)); in change_huge_pmd()
|
D | hugetlb.c | 5289 swp_offset(swp_entry)); in copy_hugetlb_page_range() 6823 swp_offset(entry)); in hugetlb_change_protection() 6826 swp_offset(entry)); in hugetlb_change_protection()
|
D | shmem.c | 2054 tmp = swp_entry(swp_type(swap), swp_offset(swap) + i); in shmem_split_large_entry() 2150 swap = swp_entry(swp_type(swap), swp_offset(swap) + offset); in shmem_swapin_folio()
|
/linux-6.12.1/arch/arm64/mm/ |
D | mteswap.c | 75 mte_invalidate_tags(swp_type(entry), swp_offset(entry)); in __mte_invalidate_tags()
|
/linux-6.12.1/kernel/power/ |
D | swap.c | 181 offset = swp_offset(get_swap_page_of_type(swap)); in alloc_swapdev_block()
|
/linux-6.12.1/fs/proc/ |
D | task_mmu.c | 1726 offset = swp_offset(entry); in pte_to_pagemap_entry() 1792 offset = swp_offset(entry) + idx; in pagemap_pmd_range()
|