Lines Matching full: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_lock_timeout_raw(struct hwspinlock *hwlock, unsigned int timeout);
156 int hwspin_lock_timeout_in_atomic(struct hwspinlock *hwlock, unsigned int to);
172 int hwspin_trylock(struct hwspinlock *hwlock);
189 int hwspin_trylock_irq(struct hwspinlock *hwlock);
206 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags);
222 int hwspin_trylock_raw(struct hwspinlock *hwlock);
237 int hwspin_trylock_in_atomic(struct hwspinlock *hwlock);
250 void hwspin_unlock(struct hwspinlock *hwlock);
262 void hwspin_unlock_irq(struct hwspinlock *hwlock);
274 hwspin_unlock_irqrestore(struct hwspinlock *hwlock, unsigned long *flags);
286 void hwspin_unlock_raw(struct hwspinlock *hwlock);
296 void hwspin_unlock_in_atomic(struct hwspinlock *hwlock);
306 int hwspin_lock_get_id(struct hwspinlock *hwlock);
313 Returns the hwspinlock id number, or -EINVAL if hwlock is null.
325 struct hwspinlock *hwlock;
329 hwlock = hwspin_lock_request();
330 if (!hwlock)
333 id = hwspin_lock_get_id(hwlock);
337 ret = hwspin_lock_timeout(hwlock, 1000);
346 hwspin_unlock(hwlock);
349 ret = hwspin_lock_free(hwlock);
358 struct hwspinlock *hwlock;
365 hwlock = hwspin_lock_request_specific(PREDEFINED_LOCK_ID);
366 if (!hwlock)
370 ret = hwspin_trylock(hwlock);
381 hwspin_unlock(hwlock);
384 ret = hwspin_lock_free(hwlock);