Lines Matching refs:hwlock

63 int hwspin_lock_free(struct hwspinlock *hwlock);
65 int hwspin_lock_get_id(struct hwspinlock *hwlock);
71 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock);
107 static inline int hwspin_lock_free(struct hwspinlock *hwlock) in hwspin_lock_free() argument
113 int __hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to, in __hwspin_lock_timeout() argument
120 int __hwspin_trylock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_trylock() argument
126 void __hwspin_unlock(struct hwspinlock *hwlock, int mode, unsigned long *flags) in __hwspin_unlock() argument
135 static inline int hwspin_lock_get_id(struct hwspinlock *hwlock) in hwspin_lock_get_id() argument
147 int devm_hwspin_lock_free(struct device *dev, struct hwspinlock *hwlock) in devm_hwspin_lock_free() argument
183 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags) in hwspin_trylock_irqsave() argument
185 return __hwspin_trylock(hwlock, HWLOCK_IRQSTATE, flags); in hwspin_trylock_irqsave()
202 static inline int hwspin_trylock_irq(struct hwspinlock *hwlock) in hwspin_trylock_irq() argument
204 return __hwspin_trylock(hwlock, HWLOCK_IRQ, NULL); in hwspin_trylock_irq()
221 static inline int hwspin_trylock_raw(struct hwspinlock *hwlock) in hwspin_trylock_raw() argument
223 return __hwspin_trylock(hwlock, HWLOCK_RAW, NULL); in hwspin_trylock_raw()
238 static inline int hwspin_trylock_in_atomic(struct hwspinlock *hwlock) in hwspin_trylock_in_atomic() argument
240 return __hwspin_trylock(hwlock, HWLOCK_IN_ATOMIC, NULL); in hwspin_trylock_in_atomic()
258 static inline int hwspin_trylock(struct hwspinlock *hwlock) in hwspin_trylock() argument
260 return __hwspin_trylock(hwlock, 0, NULL); in hwspin_trylock()
281 static inline int hwspin_lock_timeout_irqsave(struct hwspinlock *hwlock, in hwspin_lock_timeout_irqsave() argument
284 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQSTATE, flags); in hwspin_lock_timeout_irqsave()
305 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_irq() argument
307 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IRQ, NULL); in hwspin_lock_timeout_irq()
328 int hwspin_lock_timeout_raw(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_raw() argument
330 return __hwspin_lock_timeout(hwlock, to, HWLOCK_RAW, NULL); in hwspin_lock_timeout_raw()
350 int hwspin_lock_timeout_in_atomic(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout_in_atomic() argument
352 return __hwspin_lock_timeout(hwlock, to, HWLOCK_IN_ATOMIC, NULL); in hwspin_lock_timeout_in_atomic()
375 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int to) in hwspin_lock_timeout() argument
377 return __hwspin_lock_timeout(hwlock, to, 0, NULL); in hwspin_lock_timeout()
392 static inline void hwspin_unlock_irqrestore(struct hwspinlock *hwlock, in hwspin_unlock_irqrestore() argument
395 __hwspin_unlock(hwlock, HWLOCK_IRQSTATE, flags); in hwspin_unlock_irqrestore()
409 static inline void hwspin_unlock_irq(struct hwspinlock *hwlock) in hwspin_unlock_irq() argument
411 __hwspin_unlock(hwlock, HWLOCK_IRQ, NULL); in hwspin_unlock_irq()
424 static inline void hwspin_unlock_raw(struct hwspinlock *hwlock) in hwspin_unlock_raw() argument
426 __hwspin_unlock(hwlock, HWLOCK_RAW, NULL); in hwspin_unlock_raw()
439 static inline void hwspin_unlock_in_atomic(struct hwspinlock *hwlock) in hwspin_unlock_in_atomic() argument
441 __hwspin_unlock(hwlock, HWLOCK_IN_ATOMIC, NULL); in hwspin_unlock_in_atomic()
455 static inline void hwspin_unlock(struct hwspinlock *hwlock) in hwspin_unlock() argument
457 __hwspin_unlock(hwlock, 0, NULL); in hwspin_unlock()