Lines Matching refs:hwspinlock
19 * struct hwspinlock_ops - platform-specific hwspinlock handlers
24 * @relax: optional, platform-specific relax handler, called by hwspinlock
29 int (*trylock)(struct hwspinlock *lock);
30 void (*unlock)(struct hwspinlock *lock);
31 void (*relax)(struct hwspinlock *lock);
35 * struct hwspinlock - this struct represents a single hwspinlock instance
37 * @lock: initialized and used by hwspinlock core
38 * @priv: private data, owned by the underlying platform-specific hwspinlock drv
40 struct hwspinlock {
49 * @ops: platform-specific hwspinlock handlers
52 * @lock: dynamically allocated array of 'struct hwspinlock'
59 struct hwspinlock lock[];
62 static inline int hwlock_to_id(struct hwspinlock *hwlock)