Home
last modified time | relevance | path

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

/openbmc/linux/drivers/gpu/drm/amd/pm/powerplay/inc/
H A Dhardwaremanager.h253 #define PHM_MAX_NUM_CAPS_BITS_PER_FIELD (sizeof(uint32_t)*8) macro
257 …((PHM_PlatformCaps_Max + ((PHM_MAX_NUM_CAPS_BITS_PER_FIELD) - 1)) / (PHM_MAX_NUM_CAPS_BITS_PER_FIE…
285 caps[c / PHM_MAX_NUM_CAPS_BITS_PER_FIELD] |= (1UL << in phm_cap_set()
286 (c & (PHM_MAX_NUM_CAPS_BITS_PER_FIELD - 1))); in phm_cap_set()
292 caps[c / PHM_MAX_NUM_CAPS_BITS_PER_FIELD] &= ~(1UL << (c & (PHM_MAX_NUM_CAPS_BITS_PER_FIELD - 1))); in phm_cap_unset()
297 return (0 != (caps[c / PHM_MAX_NUM_CAPS_BITS_PER_FIELD] & in phm_cap_enabled()
298 (1UL << (c & (PHM_MAX_NUM_CAPS_BITS_PER_FIELD - 1))))); in phm_cap_enabled()