Home
last modified time | relevance | path

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

/hal_nordic-latest/nrfx/helpers/
Dnrfx_flag32_allocator.c61 uint32_t new_mask, prev_mask; in nrfx_flag32_alloc() local
64 prev_mask = *p_mask; in nrfx_flag32_alloc()
65 if (prev_mask == 0) in nrfx_flag32_alloc()
71 idx = (uint8_t)(31UL - NRF_CLZ(prev_mask)); in nrfx_flag32_alloc()
74 new_mask = prev_mask & ~NRFX_BIT(idx); in nrfx_flag32_alloc()
75 } while (!NRFX_ATOMIC_CAS(p_mask, prev_mask, new_mask)); in nrfx_flag32_alloc()
84 uint32_t new_mask, prev_mask; in nrfx_flag32_free() local
92 prev_mask = *p_mask; in nrfx_flag32_free()
93 new_mask = prev_mask | NRFX_BIT(flag); in nrfx_flag32_free()
94 } while (!NRFX_ATOMIC_CAS(p_mask, prev_mask, new_mask)); in nrfx_flag32_free()
Dnrfx_gppi_dppi_ppib.c89 uint32_t prev_mask; in channel_allocate() local
103 prev_mask = NRFX_ATOMIC_FETCH_AND(p_channels_available, in channel_allocate()
105 } while (prev_mask == *p_channels_available); in channel_allocate()