Home
last modified time | relevance | path

Searched refs:IS_POWER_OF_2 (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/i915/
Di915_reg_defs.h86 #define IS_POWER_OF_2(__x) ((__x) && (((__x) & ((__x) - 1)) == 0)) macro
102 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \
119 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \
191 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \
/linux-6.12.1/drivers/accel/habanalabs/common/
Dhabanalabs.h135 #define IS_POWER_OF_2(n) (n != 0 && ((n & (n - 1)) == 0)) macro
136 #define IS_MAX_PENDING_CS_VALID(n) (IS_POWER_OF_2(n) && (n > 1))