Lines Matching full:api

38 /** @brief Driver API structure. */
145 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_err_check() local
147 if (api->err_check == NULL) { in z_impl_uart_err_check()
151 return api->err_check(dev); in z_impl_uart_err_check()
156 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_in() local
158 if (api->poll_in == NULL) { in z_impl_uart_poll_in()
162 return api->poll_in(dev, p_char); in z_impl_uart_poll_in()
168 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_in_u16() local
170 if (api->poll_in_u16 == NULL) { in z_impl_uart_poll_in_u16()
174 return api->poll_in_u16(dev, p_u16); in z_impl_uart_poll_in_u16()
184 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_out() local
186 api->poll_out(dev, out_char); in z_impl_uart_poll_out()
192 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_poll_out_u16() local
194 api->poll_out_u16(dev, out_u16); in z_impl_uart_poll_out_u16()
204 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_configure() local
206 if (api->configure == NULL) { in z_impl_uart_configure()
209 return api->configure(dev, cfg); in z_impl_uart_configure()
220 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_config_get() local
222 if (api->config_get == NULL) { in z_impl_uart_config_get()
226 return api->config_get(dev, cfg); in z_impl_uart_config_get()
237 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_fifo_fill() local
239 if (api->fifo_fill == NULL) { in uart_fifo_fill()
243 return api->fifo_fill(dev, tx_data, size); in uart_fifo_fill()
255 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_fifo_fill_u16() local
257 if (api->fifo_fill_u16 == NULL) { in uart_fifo_fill_u16()
261 return api->fifo_fill_u16(dev, tx_data, size); in uart_fifo_fill_u16()
273 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_fifo_read() local
275 if (api->fifo_read == NULL) { in uart_fifo_read()
279 return api->fifo_read(dev, rx_data, size); in uart_fifo_read()
291 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_fifo_read_u16() local
293 if (api->fifo_read_u16 == NULL) { in uart_fifo_read_u16()
297 return api->fifo_read_u16(dev, rx_data, size); in uart_fifo_read_u16()
309 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_tx_enable() local
311 if (api->irq_tx_enable != NULL) { in z_impl_uart_irq_tx_enable()
312 api->irq_tx_enable(dev); in z_impl_uart_irq_tx_enable()
322 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_tx_disable() local
324 if (api->irq_tx_disable != NULL) { in z_impl_uart_irq_tx_disable()
325 api->irq_tx_disable(dev); in z_impl_uart_irq_tx_disable()
335 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_irq_tx_ready() local
337 if (api->irq_tx_ready == NULL) { in uart_irq_tx_ready()
341 return api->irq_tx_ready(dev); in uart_irq_tx_ready()
351 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_rx_enable() local
353 if (api->irq_rx_enable != NULL) { in z_impl_uart_irq_rx_enable()
354 api->irq_rx_enable(dev); in z_impl_uart_irq_rx_enable()
364 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_rx_disable() local
366 if (api->irq_rx_disable != NULL) { in z_impl_uart_irq_rx_disable()
367 api->irq_rx_disable(dev); in z_impl_uart_irq_rx_disable()
377 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_irq_tx_complete() local
379 if (api->irq_tx_complete == NULL) { in uart_irq_tx_complete()
382 return api->irq_tx_complete(dev); in uart_irq_tx_complete()
392 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_irq_rx_ready() local
394 if (api->irq_rx_ready == NULL) { in uart_irq_rx_ready()
397 return api->irq_rx_ready(dev); in uart_irq_rx_ready()
407 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_err_enable() local
409 if (api->irq_err_enable) { in z_impl_uart_irq_err_enable()
410 api->irq_err_enable(dev); in z_impl_uart_irq_err_enable()
420 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_err_disable() local
422 if (api->irq_err_disable) { in z_impl_uart_irq_err_disable()
423 api->irq_err_disable(dev); in z_impl_uart_irq_err_disable()
433 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_is_pending() local
435 if (api->irq_is_pending == NULL) { in z_impl_uart_irq_is_pending()
438 return api->irq_is_pending(dev); in z_impl_uart_irq_is_pending()
448 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_irq_update() local
450 if (api->irq_update == NULL) { in z_impl_uart_irq_update()
453 return api->irq_update(dev); in z_impl_uart_irq_update()
464 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_irq_callback_user_data_set() local
466 if ((api != NULL) && (api->irq_callback_set != NULL)) { in uart_irq_callback_user_data_set()
467 api->irq_callback_set(dev, cb, user_data); in uart_irq_callback_user_data_set()
489 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_callback_set() local
491 if (api->callback_set == NULL) { in uart_callback_set()
495 return api->callback_set(dev, callback, user_data); in uart_callback_set()
509 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_tx() local
511 return api->tx(dev, buf, len, timeout); in z_impl_uart_tx()
526 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_tx_u16() local
528 return api->tx_u16(dev, buf, len, timeout); in z_impl_uart_tx_u16()
541 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_tx_abort() local
543 return api->tx_abort(dev); in z_impl_uart_tx_abort()
554 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_rx_enable() local
556 return api->rx_enable(dev, buf, len, timeout); in z_impl_uart_rx_enable()
570 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_rx_enable_u16() local
572 return api->rx_enable_u16(dev, buf, len, timeout); in z_impl_uart_rx_enable_u16()
585 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_rx_buf_rsp() local
587 return api->rx_buf_rsp(dev, buf, len); in uart_rx_buf_rsp()
599 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in uart_rx_buf_rsp_u16() local
601 return api->rx_buf_rsp_u16(dev, buf, len); in uart_rx_buf_rsp_u16()
613 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_rx_disable() local
615 return api->rx_disable(dev); in z_impl_uart_rx_disable()
625 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_line_ctrl_set() local
627 if (api->line_ctrl_set == NULL) { in z_impl_uart_line_ctrl_set()
630 return api->line_ctrl_set(dev, ctrl, val); in z_impl_uart_line_ctrl_set()
642 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_line_ctrl_get() local
644 if (api->line_ctrl_get == NULL) { in z_impl_uart_line_ctrl_get()
647 return api->line_ctrl_get(dev, ctrl, val); in z_impl_uart_line_ctrl_get()
659 const struct uart_driver_api *api = (const struct uart_driver_api *)dev->api; in z_impl_uart_drv_cmd() local
661 if (api->drv_cmd == NULL) { in z_impl_uart_drv_cmd()
664 return api->drv_cmd(dev, cmd, p); in z_impl_uart_drv_cmd()