Searched refs:newVal (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/firmware/src/cpu/cortexm4f/ |
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/src/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/inc/ |
D | atomic.h | 29 uint32_t atomicXchgByte(volatile uint8_t *byte, uint32_t newVal); 30 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal); 31 bool atomicCmpXchgByte(volatile uint8_t *byte, uint32_t prevVal, uint32_t newVal); 32 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal);
|