Lines Matching defs:__alp
70 __arm_load_exclusive(__cpu_simple_lock_t *__alp)
73 if (/*CONSTCOND*/sizeof(*__alp) == 1) {
74 __asm __volatile("ldrexb\t%0,[%1]" : "=r"(__rv) : "r"(__alp));
76 __asm __volatile("ldrex\t%0,[%1]" : "=r"(__rv) : "r"(__alp));
83 __arm_store_exclusive(__cpu_simple_lock_t *__alp, unsigned int __val)
86 if (/*CONSTCOND*/sizeof(*__alp) == 1) {
88 : "=&r"(__rv) : "r"(__val), "r"(__alp) : "cc", "memory");
91 : "=&r"(__rv) : "r"(__val), "r"(__alp) : "cc", "memory");
158 __cpu_simple_lock_init(__cpu_simple_lock_t *__alp)
161 *__alp = __SIMPLELOCK_UNLOCKED;
166 __cpu_simple_lock(__cpu_simple_lock_t *__alp)
171 } while (__arm_load_exclusive(__alp) != __SIMPLELOCK_UNLOCKED
172 || __arm_store_exclusive(__alp, __SIMPLELOCK_LOCKED));
175 while (__swp(__SIMPLELOCK_LOCKED, __alp) != __SIMPLELOCK_UNLOCKED)
185 __cpu_simple_lock_try(__cpu_simple_lock_t *__alp)
189 if (__arm_load_exclusive(__alp) != __SIMPLELOCK_UNLOCKED) {
192 } while (__arm_store_exclusive(__alp, __SIMPLELOCK_LOCKED));
196 return (__swp(__SIMPLELOCK_LOCKED, __alp) == __SIMPLELOCK_UNLOCKED);
204 __cpu_simple_unlock(__cpu_simple_lock_t *__alp)
208 if (sizeof(*__alp) == 1) {
210 :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");
213 :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");
217 *__alp = __SIMPLELOCK_UNLOCKED;