Searched refs:IS_POWER_OF_TWO (Results 1 – 12 of 12) sorted by relevance
96 #define IS_POWER_OF_TWO(x) (((x) != 0) && (((x) & (~(x) + 1)) == (x))) macro
231 if (!IS_POWER_OF_TWO(granul)) in umap_add_region()1164 assert(!granule || IS_POWER_OF_TWO(granule)); in tee_mmu_user_va2pa_attr()1205 assert(!granule || IS_POWER_OF_TWO(granule)); in vm_pa2va()
389 assert(IS_POWER_OF_TWO(granule)); in mobj_shm_get_phys_offs()
146 COMPILE_TIME_ASSERT(IS_POWER_OF_TWO(sizeof(struct rwp_state_padded))); in rwp_paged_iv_alloc()
355 if (!alignment || !IS_POWER_OF_TWO(alignment)) in raw_memalign()
628 if (align < 0 || (align > 0 && !IS_POWER_OF_TWO((unsigned long)align)))
872 assert(IS_POWER_OF_TWO(bit_mask) && !(awaited_value & ~1U)); in wait_isr_event()
908 !IS_POWER_OF_TWO(align)) in parse_property_segment()
Completed in 23 milliseconds