Searched refs:SWP_TYPE_BITS (Results 1 – 5 of 5) sorted by relevance
164 #define SWP_TYPE_BITS 5 macro165 #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))
215 #define SWP_TYPE_BITS 5 macro220 #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)) })
95 #define SWP_TYPE_BITS 5 macro96 #define _SWP_TYPE_MASK ((1U << SWP_TYPE_BITS) - 1)
184 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \187 #define SWP_TYPE_BITS 5 macro189 & ((1UL << SWP_TYPE_BITS) - 1))
639 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \649 #define SWP_TYPE_BITS 5 macro650 #define SWP_TYPE_MASK ((1UL << SWP_TYPE_BITS) - 1)