Lines Matching refs:bank
120 ret = hwlock->bank->ops->trylock(hwlock); in __hwspin_trylock()
202 if (hwlock->bank->ops->relax) in __hwspin_lock_timeout()
203 hwlock->bank->ops->relax(hwlock); in __hwspin_lock_timeout()
248 hwlock->bank->ops->unlock(hwlock); in __hwspin_unlock()
325 int hwspin_lock_register(struct hwspinlock_device *bank, struct device *dev, in hwspin_lock_register() argument
331 if (!bank || !ops || !dev || !num_locks || !ops->trylock || in hwspin_lock_register()
337 bank->dev = dev; in hwspin_lock_register()
338 bank->ops = ops; in hwspin_lock_register()
339 bank->base_id = base_id; in hwspin_lock_register()
340 bank->num_locks = num_locks; in hwspin_lock_register()
343 hwlock = &bank->lock[i]; in hwspin_lock_register()
346 hwlock->bank = bank; in hwspin_lock_register()
373 int hwspin_lock_unregister(struct hwspinlock_device *bank) in hwspin_lock_unregister() argument
378 for (i = 0; i < bank->num_locks; i++) { in hwspin_lock_unregister()
379 hwlock = &bank->lock[i]; in hwspin_lock_unregister()
381 tmp = hwspin_lock_unregister_single(bank->base_id + i); in hwspin_lock_unregister()
405 struct device *dev = hwlock->bank->dev; in __hwspin_lock_request()
566 dev = hwlock->bank->dev; in hwspin_lock_free()