Searched refs:SWP_TYPE_BITS (Results 1 – 6 of 6) sorted by relevance
252 #define SWP_TYPE_BITS 5 macro257 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT + SWP_TYPE_BITS)259 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)260 #define __swp_type(x) (((x).val) & ((1UL << SWP_TYPE_BITS) - 1))261 #define __swp_offset(x) ((x).val >> SWP_TYPE_BITS)262 #define __swp_entry(type, offset) ((swp_entry_t){(type) | (offset) << SWP_TYPE_BITS})273 (~(pteval_t)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \274 | ((pteval_t)(type) << (64 - SWP_TYPE_BITS)) })284 #define __pteval_swp_type(x) ((unsigned long)((x).pte >> (64 - SWP_TYPE_BITS)))285 #define __pteval_swp_offset(x) ((unsigned long)(~((x).pte) << SWP_TYPE_BITS >> SWP_OFFSET_SHIFT))
214 #define SWP_TYPE_BITS 5 macro219 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT+SWP_TYPE_BITS)221 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)224 #define __swp_type(x) ((x).val >> (64 - SWP_TYPE_BITS))227 #define __swp_offset(x) (~(x).val << SWP_TYPE_BITS >> SWP_OFFSET_SHIFT)235 (~(unsigned long)(offset) << SWP_OFFSET_SHIFT >> SWP_TYPE_BITS) \236 | ((unsigned long)(type) << (64-SWP_TYPE_BITS)) })
84 #define SWP_TYPE_BITS 5 macro87 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)90 & ((1U << SWP_TYPE_BITS) - 1))
281 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \284 #define SWP_TYPE_BITS 5 macro286 & ((1UL << SWP_TYPE_BITS) - 1))
348 #define SWP_TYPE_BITS 5 macro349 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
734 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \744 #define SWP_TYPE_BITS 5 macro745 #define SWP_TYPE_MASK ((1UL << SWP_TYPE_BITS) - 1)