Lines Matching refs:api
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()
85 return api->trylock(dev, id); in z_impl_hwspinlock_trylock()
101 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_lock() local
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()
122 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_unlock() local
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()
145 const struct hwspinlock_driver_api *api = in z_impl_hwspinlock_get_max_id() local
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()