Lines Matching refs:hwlock
80 int hwspin_lock_free(struct hwspinlock *hwlock);
90 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int timeout);
106 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int timeout);
121 int hwspin_lock_timeout_irqsave(struct hwspinlock *hwlock, unsigned int to,
139 int hwspin_trylock(struct hwspinlock *hwlock);
156 int hwspin_trylock_irq(struct hwspinlock *hwlock);
173 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags);
189 void hwspin_unlock(struct hwspinlock *hwlock);
201 void hwspin_unlock_irq(struct hwspinlock *hwlock);
213 hwspin_unlock_irqrestore(struct hwspinlock *hwlock, unsigned long *flags);
225 int hwspin_lock_get_id(struct hwspinlock *hwlock);
232 Returns the hwspinlock id number, or -EINVAL if hwlock is null.
244 struct hwspinlock *hwlock;
248 hwlock = hwspin_lock_request();
249 if (!hwlock)
252 id = hwspin_lock_get_id(hwlock);
256 ret = hwspin_lock_timeout(hwlock, 1000);
265 hwspin_unlock(hwlock);
268 ret = hwspin_lock_free(hwlock);
277 struct hwspinlock *hwlock;
284 hwlock = hwspin_lock_request_specific(PREDEFINED_LOCK_ID);
285 if (!hwlock)
289 ret = hwspin_trylock(hwlock);
300 hwspin_unlock(hwlock);
303 ret = hwspin_lock_free(hwlock);