Lines Matching full:hwspinlock
19 * struct hwspinlock_ops - platform-specific hwspinlock handlers
24 * @bust: optional, platform-specific bust handler, called by hwspinlock
26 * @relax: optional, platform-specific relax handler, called by hwspinlock
31 int (*trylock)(struct hwspinlock *lock);
32 void (*unlock)(struct hwspinlock *lock);
33 int (*bust)(struct hwspinlock *lock, unsigned int id);
34 void (*relax)(struct hwspinlock *lock);
38 * struct hwspinlock - this struct represents a single hwspinlock instance
40 * @lock: initialized and used by hwspinlock core
41 * @priv: private data, owned by the underlying platform-specific hwspinlock drv
43 struct hwspinlock { struct
52 * @ops: platform-specific hwspinlock handlers argument
55 * @lock: dynamically allocated array of 'struct hwspinlock'
62 struct hwspinlock lock[];
65 static inline int hwlock_to_id(struct hwspinlock *hwlock) in hwlock_to_id()