Lines Matching +full:instance +full:- +full:specific
4 * SPDX-License-Identifier: Apache-2.0
65 * This function is used for try to lock specific HW spinlock. It should
68 * @param dev HW spinlock device instance.
72 * @retval -errno In case of any failure.
79 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_trylock()
81 if (api->trylock == NULL) { in z_impl_hwspinlock_trylock()
82 return -ENOSYS; in z_impl_hwspinlock_trylock()
85 return api->trylock(dev, id); in z_impl_hwspinlock_trylock()
91 * This function is used to lock specific HW spinlock. It should be
94 * @param dev HW spinlock device instance.
102 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_lock()
104 if (api->lock != NULL) { in z_impl_hwspinlock_lock()
105 api->lock(dev, id); in z_impl_hwspinlock_lock()
112 * This function is used for try to unlock specific HW spinlock. It should
115 * @param dev HW spinlock device instance.
123 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_unlock()
125 if (api->unlock != NULL) { in z_impl_hwspinlock_unlock()
126 api->unlock(dev, id); in z_impl_hwspinlock_unlock()
134 * be called before attempting to lock/unlock a specific HW spinlock.
136 * @param dev HW spinlock device instance.
146 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_get_max_id()
148 if (api->get_max_id == NULL) { in z_impl_hwspinlock_get_max_id()
152 return api->get_max_id(dev); in z_impl_hwspinlock_get_max_id()