Home
last modified time | relevance | path

Searched refs:SWP_TYPE_BITS (Results 1 – 5 of 5) sorted by relevance

/linux-6.12.1/arch/x86/include/asm/
Dpgtable-3level.h164 #define SWP_TYPE_BITS 5 macro
165 #define _SWP_TYPE_MASK ((1U << SWP_TYPE_BITS) - 1)
170 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT + SWP_TYPE_BITS)
172 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
174 #define __swp_offset(x) ((x).val >> SWP_TYPE_BITS)
176 | (offset) << SWP_TYPE_BITS})
187 (~(pteval_t)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \
188 | ((pteval_t)(type) << (64 - SWP_TYPE_BITS)) })
198 #define __pteval_swp_type(x) ((unsigned long)((x).pte >> (64 - SWP_TYPE_BITS)))
199 #define __pteval_swp_offset(x) ((unsigned long)(~((x).pte) << SWP_TYPE_BITS >> SWP_OFFSET_SHIFT))
Dpgtable_64.h215 #define SWP_TYPE_BITS 5 macro
220 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT+SWP_TYPE_BITS)
222 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
225 #define __swp_type(x) ((x).val >> (64 - SWP_TYPE_BITS))
228 #define __swp_offset(x) (~(x).val << SWP_TYPE_BITS >> SWP_OFFSET_SHIFT)
236 (~(unsigned long)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \
237 | ((unsigned long)(type) << (64-SWP_TYPE_BITS)) })
Dpgtable-2level.h95 #define SWP_TYPE_BITS 5 macro
96 #define _SWP_TYPE_MASK ((1U << SWP_TYPE_BITS) - 1)
/linux-6.12.1/arch/powerpc/include/asm/nohash/64/
Dpgtable.h184 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \
187 #define SWP_TYPE_BITS 5 macro
189 & ((1UL << SWP_TYPE_BITS) - 1))
/linux-6.12.1/arch/powerpc/include/asm/book3s/64/
Dpgtable.h639 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \
649 #define SWP_TYPE_BITS 5 macro
650 #define SWP_TYPE_MASK ((1UL << SWP_TYPE_BITS) - 1)