Lines Matching refs:hwlock
51 int hwspin_lock_free(struct hwspinlock *hwlock);
57 int hwspin_lock_timeout(struct hwspinlock *hwlock, unsigned int timeout);
69 int hwspin_lock_timeout_irq(struct hwspinlock *hwlock, unsigned int timeout);
80 int hwspin_lock_timeout_irqsave(struct hwspinlock *hwlock, unsigned int to,
93 int hwspin_trylock(struct hwspinlock *hwlock);
104 int hwspin_trylock_irq(struct hwspinlock *hwlock);
114 int hwspin_trylock_irqsave(struct hwspinlock *hwlock, unsigned long *flags);
125 void hwspin_unlock(struct hwspinlock *hwlock);
131 void hwspin_unlock_irq(struct hwspinlock *hwlock);
139 hwspin_unlock_irqrestore(struct hwspinlock *hwlock, unsigned long *flags);
147 int hwspin_lock_get_id(struct hwspinlock *hwlock);
152 Returns the hwspinlock id number, or -EINVAL if hwlock is null.
161 struct hwspinlock *hwlock;
165 hwlock = hwspin_lock_request();
166 if (!hwlock)
169 id = hwspin_lock_get_id(hwlock);
173 ret = hwspin_lock_timeout(hwlock, 1000);
182 hwspin_unlock(hwlock);
185 ret = hwspin_lock_free(hwlock);
194 struct hwspinlock *hwlock;
201 hwlock = hwspin_lock_request_specific(PREDEFINED_LOCK_ID);
202 if (!hwlock)
206 ret = hwspin_trylock(hwlock);
217 hwspin_unlock(hwlock);
220 ret = hwspin_lock_free(hwlock);