Lines Matching refs:api

128 	const struct clock_control_driver_api *api =  in clock_control_on()  local
129 (const struct clock_control_driver_api *)dev->api; in clock_control_on()
131 return api->on(dev, sys); in clock_control_on()
147 const struct clock_control_driver_api *api = in clock_control_off() local
148 (const struct clock_control_driver_api *)dev->api; in clock_control_off()
150 return api->off(dev, sys); in clock_control_off()
175 const struct clock_control_driver_api *api = in clock_control_async_on() local
176 (const struct clock_control_driver_api *)dev->api; in clock_control_async_on()
178 if (api->async_on == NULL) { in clock_control_async_on()
182 return api->async_on(dev, sys, cb, user_data); in clock_control_async_on()
196 const struct clock_control_driver_api *api = in clock_control_get_status() local
197 (const struct clock_control_driver_api *)dev->api; in clock_control_get_status()
199 if (!api->get_status) { in clock_control_get_status()
203 return api->get_status(dev, sys); in clock_control_get_status()
222 const struct clock_control_driver_api *api = in clock_control_get_rate() local
223 (const struct clock_control_driver_api *)dev->api; in clock_control_get_rate()
225 if (api->get_rate == NULL) { in clock_control_get_rate()
229 return api->get_rate(dev, sys, rate); in clock_control_get_rate()
252 const struct clock_control_driver_api *api = in clock_control_set_rate() local
253 (const struct clock_control_driver_api *)dev->api; in clock_control_set_rate()
255 if (api->set_rate == NULL) { in clock_control_set_rate()
259 return api->set_rate(dev, sys, rate); in clock_control_set_rate()
288 const struct clock_control_driver_api *api = in clock_control_configure() local
289 (const struct clock_control_driver_api *)dev->api; in clock_control_configure()
291 if (api->configure == NULL) { in clock_control_configure()
295 return api->configure(dev, sys, data); in clock_control_configure()