Lines Matching refs:bank
121 ret = hwlock->bank->ops->trylock(hwlock); in __hwspin_trylock()
203 if (hwlock->bank->ops->relax) in __hwspin_lock_timeout()
204 hwlock->bank->ops->relax(hwlock); in __hwspin_lock_timeout()
249 hwlock->bank->ops->unlock(hwlock); in __hwspin_unlock()
321 if (hwlock->bank->dev->of_node == args.np) { in of_hwspin_lock_get_id()
331 if (id < 0 || id >= hwlock->bank->num_locks) { in of_hwspin_lock_get_id()
335 id += hwlock->bank->base_id; in of_hwspin_lock_get_id()
408 int hwspin_lock_register(struct hwspinlock_device *bank, struct device *dev, in hwspin_lock_register() argument
414 if (!bank || !ops || !dev || !num_locks || !ops->trylock || in hwspin_lock_register()
420 bank->dev = dev; in hwspin_lock_register()
421 bank->ops = ops; in hwspin_lock_register()
422 bank->base_id = base_id; in hwspin_lock_register()
423 bank->num_locks = num_locks; in hwspin_lock_register()
426 hwlock = &bank->lock[i]; in hwspin_lock_register()
429 hwlock->bank = bank; in hwspin_lock_register()
456 int hwspin_lock_unregister(struct hwspinlock_device *bank) in hwspin_lock_unregister() argument
461 for (i = 0; i < bank->num_locks; i++) { in hwspin_lock_unregister()
462 hwlock = &bank->lock[i]; in hwspin_lock_unregister()
464 tmp = hwspin_lock_unregister_single(bank->base_id + i); in hwspin_lock_unregister()
488 struct device *dev = hwlock->bank->dev; in __hwspin_lock_request()
649 dev = hwlock->bank->dev; in hwspin_lock_free()