Lines Matching refs:lock
38 static int omap_hwspinlock_trylock(struct hwspinlock *lock)
40 void __iomem *lock_addr = lock->priv;
42 /* attempt to acquire the lock by reading its value */
46 static void omap_hwspinlock_unlock(struct hwspinlock *lock)
48 void __iomem *lock_addr = lock->priv;
50 /* release the lock by writing 0 to it */
59 * expected to hold the lock.
64 static void omap_hwspinlock_relax(struct hwspinlock *lock)
102 * enabled again iff at least one lock is requested
114 bank = devm_kzalloc(&pdev->dev, struct_size(bank, lock, num_locks),
120 bank->lock[i].priv = io_base + LOCK_BASE_OFFSET + sizeof(u32) * i;