Lines Matching full:hwlock

80   int hwspin_lock_free(struct hwspinlock *hwlock);
90 int hwspin_lock_bust(struct hwspinlock *hwlock, unsigned int id);
101 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int timeout);
117 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int timeout);
132 int hwspin_lock_timeout_irqsave(struct hwspinlock *hwlock, unsigned int to,
150 int hwspin_lock_timeout_raw(struct hwspinlock *hwlock, unsigned int timeout);
167 int hwspin_lock_timeout_in_atomic(struct hwspinlock *hwlock, unsigned int to);
183 int hwspin_trylock(struct hwspinlock *hwlock);
200 int hwspin_trylock_irq(struct hwspinlock *hwlock);
217 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags);
233 int hwspin_trylock_raw(struct hwspinlock *hwlock);
248 int hwspin_trylock_in_atomic(struct hwspinlock *hwlock);
261 void hwspin_unlock(struct hwspinlock *hwlock);
273 void hwspin_unlock_irq(struct hwspinlock *hwlock);
285 hwspin_unlock_irqrestore(struct hwspinlock *hwlock, unsigned long *flags);
297 void hwspin_unlock_raw(struct hwspinlock *hwlock);
307 void hwspin_unlock_in_atomic(struct hwspinlock *hwlock);
317 int hwspin_lock_get_id(struct hwspinlock *hwlock);
324 Returns the hwspinlock id number, or -EINVAL if hwlock is null.
336 struct hwspinlock *hwlock;
340 hwlock = hwspin_lock_request();
341 if (!hwlock)
344 id = hwspin_lock_get_id(hwlock);
348 ret = hwspin_lock_timeout(hwlock, 1000);
357 hwspin_unlock(hwlock);
360 ret = hwspin_lock_free(hwlock);
369 struct hwspinlock *hwlock;
376 hwlock = hwspin_lock_request_specific(PREDEFINED_LOCK_ID);
377 if (!hwlock)
381 ret = hwspin_trylock(hwlock);
392 hwspin_unlock(hwlock);
395 ret = hwspin_lock_free(hwlock);