Searched refs:newVal (Results 1 – 4 of 4) sorted by relevance
/device/google/contexthub/firmware/os/cpu/cortexm4/ |
D | atomic.c | 55 uint32_t atomicXchgByte(volatile uint8_t *byte, uint32_t newVal) in atomicXchgByte() argument 63 :"=r"(prevVal), "=r"(storeFailed), "=r"(newVal), "=r"(byte) in atomicXchgByte() 64 :"2"(newVal), "3"(byte) in atomicXchgByte() 72 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal) in atomicXchg32bits() argument 80 :"=r"(prevVal), "=r"(storeFailed), "=r"(newVal), "=r"(word) in atomicXchg32bits() 81 :"2"(newVal), "3"(word) in atomicXchg32bits() 89 bool atomicCmpXchgByte(volatile uint8_t *byte, uint32_t prevVal, uint32_t newVal) in atomicCmpXchgByte() argument 106 :"=r"(storeFailed), "=r"(newVal), "=r"(byte) in atomicCmpXchgByte() 107 :"1"(newVal), "2"(byte) in atomicCmpXchgByte() 115 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal) in atomicCmpXchg32bits() argument [all …]
|
/device/google/contexthub/firmware/os/cpu/x86/ |
D | atomic.c | 41 uint32_t atomicXchgByte(volatile uint8_t *byte, uint32_t newVal) in atomicXchgByte() argument 43 return __atomic_exchange_n(byte, newVal, __ATOMIC_ACQ_REL); in atomicXchgByte() 58 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal) in atomicXchg32bits() argument 60 return __atomic_exchange_n(word, newVal, __ATOMIC_ACQ_REL); in atomicXchg32bits() 75 bool atomicCmpXchgByte(volatile uint8_t *byte, uint32_t prevVal, uint32_t newVal) in atomicCmpXchgByte() argument 77 return __sync_bool_compare_and_swap (byte, prevVal, newVal); in atomicCmpXchgByte() 92 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal) in atomicCmpXchg32bits() argument 94 return __sync_bool_compare_and_swap (word, prevVal, newVal); in atomicCmpXchg32bits()
|
/device/google/contexthub/firmware/os/inc/ |
D | atomic.h | 28 uint32_t atomicXchgByte(volatile uint8_t *byte, uint32_t newVal); 29 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal); 30 bool atomicCmpXchgByte(volatile uint8_t *byte, uint32_t prevVal, uint32_t newVal); 31 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal);
|
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/ |
D | atomic.h | 20 static inline bool atomicCmpXchgPtr(volatile uintptr_t *word, uintptr_t prevVal, uintptr_t newVal) { in atomicCmpXchgPtr() argument 22 return atomicCmpXchg32bits((volatile uint32_t *) word, (uint32_t) prevVal, (uint32_t) newVal); in atomicCmpXchgPtr()
|