Searched refs:IS_POWER_OF_TWO (Results 1 – 9 of 9) sorted by relevance
96 #define IS_POWER_OF_TWO(x) (((x) != 0) && (((x) & (~(x) + 1)) == (x))) macro
266 if (!IS_POWER_OF_TWO(granul)) in umap_add_region()1225 assert(!granule || IS_POWER_OF_TWO(granule)); in tee_mmu_user_va2pa_attr()1266 assert(!granule || IS_POWER_OF_TWO(granule)); in vm_pa2va()
391 assert(IS_POWER_OF_TWO(granule)); in mobj_shm_get_phys_offs()
147 COMPILE_TIME_ASSERT(IS_POWER_OF_TWO(sizeof(struct rwp_state_padded))); in rwp_paged_iv_alloc()
227 return IS_POWER_OF_TWO(div); in _is_valid_div()
426 if (!alignment || !IS_POWER_OF_TWO(alignment)) in raw_memalign()
628 if (align < 0 || (align > 0 && !IS_POWER_OF_TWO((unsigned long)align)))
877 assert(IS_POWER_OF_TWO(bit_mask) && !(awaited_value & ~1U)); in wait_isr_event()
955 !IS_POWER_OF_TWO(align)) in parse_property_segment()
Completed in 24 milliseconds