Lines Matching refs:lock
21 * @trylock: make a single attempt to take the lock. returns 0 on
23 * @unlock: release the lock. always succeed. may _not_ sleep.
25 * core while spinning on a lock, between two successive
29 int (*trylock)(struct hwspinlock *lock);
30 void (*unlock)(struct hwspinlock *lock);
31 void (*relax)(struct hwspinlock *lock);
36 * @bank: the hwspinlock_device structure which owns this lock
37 * @lock: initialized and used by hwspinlock core
42 spinlock_t lock;
50 * @base_id: id index of the first lock in this device
52 * @lock: dynamically allocated array of 'struct hwspinlock'
59 struct hwspinlock lock[];
64 int local_id = hwlock - &hwlock->bank->lock[0];