Lines Matching refs:ops
21 return (const struct hwspinlock_ops *)dev->driver->ops; in hwspinlock_dev_ops()
46 const struct hwspinlock_ops *ops; in hwspinlock_get_by_index() local
70 ops = hwspinlock_dev_ops(dev_hws); in hwspinlock_get_by_index()
72 if (ops->of_xlate) in hwspinlock_get_by_index()
73 ret = ops->of_xlate(hws, &args); in hwspinlock_get_by_index()
84 const struct hwspinlock_ops *ops; in hwspinlock_lock_timeout() local
93 ops = hwspinlock_dev_ops(hws->dev); in hwspinlock_lock_timeout()
94 if (!ops->lock) in hwspinlock_lock_timeout()
99 ret = ops->lock(hws->dev, hws->id); in hwspinlock_lock_timeout()
103 if (ops->relax) in hwspinlock_lock_timeout()
104 ops->relax(hws->dev); in hwspinlock_lock_timeout()
112 const struct hwspinlock_ops *ops; in hwspinlock_unlock() local
119 ops = hwspinlock_dev_ops(hws->dev); in hwspinlock_unlock()
120 if (!ops->unlock) in hwspinlock_unlock()
123 return ops->unlock(hws->dev, hws->id); in hwspinlock_unlock()
129 struct hwspinlock_ops *ops = device_get_ops(dev); in hwspinlock_post_bind() local
133 if (ops->lock) in hwspinlock_post_bind()
134 ops->lock += gd->reloc_off; in hwspinlock_post_bind()
135 if (ops->unlock) in hwspinlock_post_bind()
136 ops->unlock += gd->reloc_off; in hwspinlock_post_bind()
137 if (ops->relax) in hwspinlock_post_bind()
138 ops->relax += gd->reloc_off; in hwspinlock_post_bind()