Lines Matching refs:bank

133 	ret = hwlock->bank->ops->trylock(hwlock);
241 if (hwlock->bank->ops->relax)
242 hwlock->bank->ops->relax(hwlock);
287 hwlock->bank->ops->unlock(hwlock);
315 * Returns: a relative index of the lock within a specified bank on success,
373 if (device_match_of_node(hwlock->bank->dev, args.np)) {
383 if (id < 0 || id >= hwlock->bank->num_locks) {
387 id += hwlock->bank->base_id;
477 * @bank: the hwspinlock device, which usually provides numerous hw locks
480 * @base_id: id of the first hardware spinlock in this bank
490 int hwspin_lock_register(struct hwspinlock_device *bank, struct device *dev,
496 if (!bank || !ops || !dev || !num_locks || !ops->trylock ||
502 bank->dev = dev;
503 bank->ops = ops;
504 bank->base_id = base_id;
505 bank->num_locks = num_locks;
508 hwlock = &bank->lock[i];
511 hwlock->bank = bank;
529 * @bank: the hwspinlock device, which usually provides numerous hw locks
538 int hwspin_lock_unregister(struct hwspinlock_device *bank)
543 for (i = 0; i < bank->num_locks; i++) {
544 hwlock = &bank->lock[i];
546 tmp = hwspin_lock_unregister_single(bank->base_id + i);
566 struct hwspinlock_device **bank = res;
568 if (WARN_ON(!bank || !*bank))
571 return *bank == data;
578 * @bank: the hwspinlock device, which usually provides numerous hw locks
588 struct hwspinlock_device *bank)
593 devm_hwspin_lock_device_match, bank);
604 * @bank: the hwspinlock device, which usually provides numerous hw locks
606 * @base_id: id of the first hardware spinlock in this bank
617 struct hwspinlock_device *bank,
628 ret = hwspin_lock_register(bank, dev, ops, base_id, num_locks);
630 *ptr = bank;
653 struct device *dev = hwlock->bank->dev;
816 dev = hwlock->bank->dev;