Lines Matching refs:hwlock
62 int hwspin_lock_free(struct hwspinlock *hwlock);
69 int hwspin_lock_bust(struct hwspinlock *hwlock, unsigned int id);
70 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock);
100 static inline int hwspin_lock_free(struct hwspinlock *hwlock) in hwspin_lock_free() argument
106 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument
113 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock() argument
119 void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_unlock() argument
123 static inline int hwspin_lock_bust(struct hwspinlock *hwlock, unsigned int id) in hwspin_lock_bust() argument
140 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock) in devm_hwspin_lock_free() argument
171 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags) in hwspin_trylock_irqsave() argument
173 return __hwspin_trylock(hwlock, HWLOCK_IRQSTATE, flags); in hwspin_trylock_irqsave()
190 static inline int hwspin_trylock_irq(struct hwspinlock *hwlock) in hwspin_trylock_irq() argument
192 return __hwspin_trylock(hwlock, HWLOCK_IRQ, NULL); in hwspin_trylock_irq()
209 static inline int hwspin_trylock_raw(struct hwspinlock *hwlock) in hwspin_trylock_raw() argument
211 return __hwspin_trylock(hwlock, HWLOCK_RAW, NULL); in hwspin_trylock_raw()
226 static inline int hwspin_trylock_in_atomic(struct hwspinlock *hwlock) in hwspin_trylock_in_atomic() argument
228 return __hwspin_trylock(hwlock, HWLOCK_IN_ATOMIC, NULL); in hwspin_trylock_in_atomic()
246 static inline int hwspin_trylock(struct hwspinlock *hwlock) in hwspin_trylock() argument
248 return __hwspin_trylock(hwlock, 0, NULL); in hwspin_trylock()
269 static inline int hwspin_lock_timeout_irqsave(struct hwspinlock *hwlock, in hwspin_lock_timeout_irqsave() argument
272 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQSTATE, flags); in hwspin_lock_timeout_irqsave()
293 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_irq() argument
295 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQ, NULL); in hwspin_lock_timeout_irq()
316 int hwspin_lock_timeout_raw(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_raw() argument
318 return __hwspin_lock_timeout(hwlock, to, HWLOCK_RAW, NULL); in hwspin_lock_timeout_raw()
338 int hwspin_lock_timeout_in_atomic(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_in_atomic() argument
340 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IN_ATOMIC, NULL); in hwspin_lock_timeout_in_atomic()
363 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout() argument
365 return __hwspin_lock_timeout(hwlock, to, 0, NULL); in hwspin_lock_timeout()
380 static inline void hwspin_unlock_irqrestore(struct hwspinlock *hwlock, in hwspin_unlock_irqrestore() argument
383 __hwspin_unlock(hwlock, HWLOCK_IRQSTATE, flags); in hwspin_unlock_irqrestore()
397 static inline void hwspin_unlock_irq(struct hwspinlock *hwlock) in hwspin_unlock_irq() argument
399 __hwspin_unlock(hwlock, HWLOCK_IRQ, NULL); in hwspin_unlock_irq()
412 static inline void hwspin_unlock_raw(struct hwspinlock *hwlock) in hwspin_unlock_raw() argument
414 __hwspin_unlock(hwlock, HWLOCK_RAW, NULL); in hwspin_unlock_raw()
427 static inline void hwspin_unlock_in_atomic(struct hwspinlock *hwlock) in hwspin_unlock_in_atomic() argument
429 __hwspin_unlock(hwlock, HWLOCK_IN_ATOMIC, NULL); in hwspin_unlock_in_atomic()
443 static inline void hwspin_unlock(struct hwspinlock *hwlock) in hwspin_unlock() argument
445 __hwspin_unlock(hwlock, 0, NULL); in hwspin_unlock()