Lines Matching full:api
29 * @brief Callback API for trying to lock HW spinlock
35 * @brief Callback API to lock HW spinlock
41 * @brief Callback API to unlock HW spinlock
47 * @brief Callback API to get HW spinlock max ID
78 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_trylock() local
79 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_trylock()
81 if (api->trylock == NULL) in z_impl_hwspinlock_trylock()
84 return api->trylock(dev, id); in z_impl_hwspinlock_trylock()
100 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_lock() local
101 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_lock()
103 if (api->lock != NULL) in z_impl_hwspinlock_lock()
104 api->lock(dev, id); in z_impl_hwspinlock_lock()
120 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_unlock() local
121 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_unlock()
123 if (api->unlock != NULL) in z_impl_hwspinlock_unlock()
124 api->unlock(dev, id); in z_impl_hwspinlock_unlock()
142 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_get_max_id() local
143 (const struct hwspinlock_driver_api *)dev->api; in z_impl_hwspinlock_get_max_id()
145 if (api->get_max_id == NULL) in z_impl_hwspinlock_get_max_id()
148 return api->get_max_id(dev); in z_impl_hwspinlock_get_max_id()