Lines Matching refs:hwlock

62 int hwspin_lock_free(struct hwspinlock *hwlock);
64 int hwspin_lock_get_id(struct hwspinlock *hwlock);
70 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock);
106 static inline int hwspin_lock_free(struct hwspinlock *hwlock) in hwspin_lock_free() argument
112 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument
119 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock() argument
125 void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_unlock() argument
134 static inline int hwspin_lock_get_id(struct hwspinlock *hwlock) in hwspin_lock_get_id() argument
146 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock) in devm_hwspin_lock_free() argument
182 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags) in hwspin_trylock_irqsave() argument
184 return __hwspin_trylock(hwlock, HWLOCK_IRQSTATE, flags); in hwspin_trylock_irqsave()
201 static inline int hwspin_trylock_irq(struct hwspinlock *hwlock) in hwspin_trylock_irq() argument
203 return __hwspin_trylock(hwlock, HWLOCK_IRQ, NULL); in hwspin_trylock_irq()
220 static inline int hwspin_trylock_raw(struct hwspinlock *hwlock) in hwspin_trylock_raw() argument
222 return __hwspin_trylock(hwlock, HWLOCK_RAW, NULL); in hwspin_trylock_raw()
240 static inline int hwspin_trylock(struct hwspinlock *hwlock) in hwspin_trylock() argument
242 return __hwspin_trylock(hwlock, 0, NULL); in hwspin_trylock()
263 static inline int hwspin_lock_timeout_irqsave(struct hwspinlock *hwlock, in hwspin_lock_timeout_irqsave() argument
266 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQSTATE, flags); in hwspin_lock_timeout_irqsave()
287 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_irq() argument
289 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQ, NULL); in hwspin_lock_timeout_irq()
310 int hwspin_lock_timeout_raw(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_raw() argument
312 return __hwspin_lock_timeout(hwlock, to, HWLOCK_RAW, NULL); in hwspin_lock_timeout_raw()
335 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout() argument
337 return __hwspin_lock_timeout(hwlock, to, 0, NULL); in hwspin_lock_timeout()
352 static inline void hwspin_unlock_irqrestore(struct hwspinlock *hwlock, in hwspin_unlock_irqrestore() argument
355 __hwspin_unlock(hwlock, HWLOCK_IRQSTATE, flags); in hwspin_unlock_irqrestore()
369 static inline void hwspin_unlock_irq(struct hwspinlock *hwlock) in hwspin_unlock_irq() argument
371 __hwspin_unlock(hwlock, HWLOCK_IRQ, NULL); in hwspin_unlock_irq()
384 static inline void hwspin_unlock_raw(struct hwspinlock *hwlock) in hwspin_unlock_raw() argument
386 __hwspin_unlock(hwlock, HWLOCK_RAW, NULL); in hwspin_unlock_raw()
400 static inline void hwspin_unlock(struct hwspinlock *hwlock) in hwspin_unlock() argument
402 __hwspin_unlock(hwlock, 0, NULL); in hwspin_unlock()