Searched refs:ATOMIC_BITS (Results 1 – 2 of 2) sorted by relevance
78 #define ATOMIC_BITS (sizeof(atomic_val_t) * 8) macro79 #define ATOMIC_MASK(bit) (1U << ((uint32_t)(bit) & (ATOMIC_BITS - 1U)))80 #define ATOMIC_ELEM(addr, bit) ((addr) + ((bit) / ATOMIC_BITS))92 #define ATOMIC_BITMAP_SIZE(num_bits) (1 + ((num_bits) - 1) / ATOMIC_BITS)131 return (1 & (val >> (bit & (ATOMIC_BITS - 1)))) != 0; in atomic_test_bit()
55 #define MCUX_N_TX_ALLOC_ELEM (1 + (MCUX_FLEXCAN_MAX_TX - 1) / ATOMIC_BITS)280 atomic_val_t pivot = ATOMIC_BITS / 2; in mcux_get_tx_alloc()287 for (atomic_val_t bits = ATOMIC_BITS / 2U; in mcux_get_tx_alloc()305 alloc = alloc ? (pivot + 1 + i * ATOMIC_BITS) : 0; in mcux_get_tx_alloc()