Home
last modified time | relevance | path

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

/drivers/misc/habanalabs/common/
Dhabanalabs.h106 #define IS_POWER_OF_2(n) (n != 0 && ((n & (n - 1)) == 0)) macro
107 #define IS_MAX_PENDING_CS_VALID(n) (IS_POWER_OF_2(n) && (n > 1))
/drivers/gpu/drm/i915/
Di915_reg.h150 #define IS_POWER_OF_2(__x) ((__x) && (((__x) & ((__x) - 1)) == 0)) macro
166 BUILD_BUG_ON_ZERO(!IS_POWER_OF_2((__mask) + (1ULL << __bf_shf(__mask)))) + \