Searched refs:SWP_TYPE_BITS (Results 1 – 6 of 6) sorted by relevance
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)) })
252 #define SWP_TYPE_BITS 5 macro257 #define SWP_OFFSET_SHIFT (SWP_OFFSET_FIRST_BIT + 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))
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))
294 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \297 #define SWP_TYPE_BITS 5 macro299 & ((1UL << SWP_TYPE_BITS) - 1))
367 #define SWP_TYPE_BITS 5 macro368 #define MAX_SWAPFILES_CHECK() BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS)
751 BUILD_BUG_ON(MAX_SWAPFILES_SHIFT > SWP_TYPE_BITS); \761 #define SWP_TYPE_BITS 5 macro762 #define SWP_TYPE_MASK ((1UL << SWP_TYPE_BITS) - 1)