Home
last modified time | relevance | path

Searched refs:get_lock_addr (Results 1 – 1 of 1) sorted by relevance

/Zephyr-Core-3.5.0/drivers/hwspinlock/
Dsqn_hwspinlock.c27 static inline mem_addr_t get_lock_addr(const struct device *dev, uint32_t id) in get_lock_addr() function
59 if (sys_read8(get_lock_addr(dev, id)) == cpuid) in sqn_hwspinlock_trylock()
62 sys_write8(cpuid, get_lock_addr(dev, id)); in sqn_hwspinlock_trylock()
63 if (sys_read8(get_lock_addr(dev, id)) == cpuid) in sqn_hwspinlock_trylock()
86 if (sys_read8(get_lock_addr(dev, id)) == 0) { in sqn_hwspinlock_lock()
87 sys_write8(cpuid, get_lock_addr(dev, id)); in sqn_hwspinlock_lock()
90 while (sys_read8(get_lock_addr(dev, id)) != cpuid) { in sqn_hwspinlock_lock()
92 sys_write8(cpuid, get_lock_addr(dev, id)); in sqn_hwspinlock_lock()
113 sys_write8(cpuid, get_lock_addr(dev, id)); in sqn_hwspinlock_unlock()