Lines Matching refs:bits

133 static inline void _SDK_AtomicLocalSet1Byte(volatile uint8_t *addr, uint8_t bits)  in _SDK_AtomicLocalSet1Byte()  argument
137 _SDK_ATOMIC_LOCAL_OPS_1BYTE(addr, s_val, s_val |= bits); in _SDK_AtomicLocalSet1Byte()
140 static inline void _SDK_AtomicLocalSet2Byte(volatile uint16_t *addr, uint16_t bits) in _SDK_AtomicLocalSet2Byte() argument
144 _SDK_ATOMIC_LOCAL_OPS_2BYTE(addr, s_val, s_val |= bits); in _SDK_AtomicLocalSet2Byte()
147 static inline void _SDK_AtomicLocalSet4Byte(volatile uint32_t *addr, uint32_t bits) in _SDK_AtomicLocalSet4Byte() argument
151 _SDK_ATOMIC_LOCAL_OPS_4BYTE(addr, s_val, s_val |= bits); in _SDK_AtomicLocalSet4Byte()
154 static inline void _SDK_AtomicLocalClear1Byte(volatile uint8_t *addr, uint8_t bits) in _SDK_AtomicLocalClear1Byte() argument
158 _SDK_ATOMIC_LOCAL_OPS_1BYTE(addr, s_val, s_val &= ~bits); in _SDK_AtomicLocalClear1Byte()
161 static inline void _SDK_AtomicLocalClear2Byte(volatile uint16_t *addr, uint16_t bits) in _SDK_AtomicLocalClear2Byte() argument
165 _SDK_ATOMIC_LOCAL_OPS_2BYTE(addr, s_val, s_val &= ~bits); in _SDK_AtomicLocalClear2Byte()
168 static inline void _SDK_AtomicLocalClear4Byte(volatile uint32_t *addr, uint32_t bits) in _SDK_AtomicLocalClear4Byte() argument
172 _SDK_ATOMIC_LOCAL_OPS_4BYTE(addr, s_val, s_val &= ~bits); in _SDK_AtomicLocalClear4Byte()
175 static inline void _SDK_AtomicLocalToggle1Byte(volatile uint8_t *addr, uint8_t bits) in _SDK_AtomicLocalToggle1Byte() argument
179 _SDK_ATOMIC_LOCAL_OPS_1BYTE(addr, s_val, s_val ^= bits); in _SDK_AtomicLocalToggle1Byte()
182 static inline void _SDK_AtomicLocalToggle2Byte(volatile uint16_t *addr, uint16_t bits) in _SDK_AtomicLocalToggle2Byte() argument
186 _SDK_ATOMIC_LOCAL_OPS_2BYTE(addr, s_val, s_val ^= bits); in _SDK_AtomicLocalToggle2Byte()
189 static inline void _SDK_AtomicLocalToggle4Byte(volatile uint32_t *addr, uint32_t bits) in _SDK_AtomicLocalToggle4Byte() argument
193 _SDK_ATOMIC_LOCAL_OPS_4BYTE(addr, s_val, s_val ^= bits); in _SDK_AtomicLocalToggle4Byte()
229 #define SDK_ATOMIC_LOCAL_SET(addr, bits) … argument
231 …_SDK_AtomicLocalSet1Byte((volatile uint8_t *)(volatile void *)(addr), (uint8_t)(bits)) : …
232 …r))) ? _SDK_AtomicLocalSet2Byte((volatile uint16_t *)(volatile void *)(addr), (uint16_t)(bits)) : \
233 … _SDK_AtomicLocalSet4Byte((volatile uint32_t *)(volatile void *)(addr), (uint32_t)(bits))))
235 #define SDK_ATOMIC_LOCAL_CLEAR(addr, bits) … argument
237 …_SDK_AtomicLocalClear1Byte((volatile uint8_t *)(volatile void *)(addr), (uint8_t)(bits)) : \
239 … _SDK_AtomicLocalClear2Byte((volatile uint16_t *)(volatile void *)(addr), (uint16_t)(bits)) : \
240 … _SDK_AtomicLocalClear4Byte((volatile uint32_t *)(volatile void *)(addr), (uint32_t)(bits))))
242 #define SDK_ATOMIC_LOCAL_TOGGLE(addr, bits) … argument
244 …_SDK_AtomicLocalToggle1Byte((volatile uint8_t *)(volatile void *)(addr), (uint8_t)(bits)) : …
246 … _SDK_AtomicLocalToggle2Byte((volatile uint16_t *)(volatile void *)(addr), (uint16_t)(bits)) : \
247 … _SDK_AtomicLocalToggle4Byte((volatile uint32_t *)(volatile void *)(addr), (uint32_t)(bits))))
275 #define SDK_ATOMIC_LOCAL_SET(addr, bits) \ argument
280 *(addr) |= (bits); \
284 #define SDK_ATOMIC_LOCAL_CLEAR(addr, bits) \ argument
289 *(addr) &= ~(bits); \
293 #define SDK_ATOMIC_LOCAL_TOGGLE(addr, bits) \ argument
298 *(addr) ^= (bits); \