Lines Matching full:instance
45 /* Device init macro for UART instance. As multiple uart instances follow a
46 * similar definition of data structures differing only in the instance
57 .instance = DT_INST_PROP(n, peripheral_id), \
78 /* Convenient macro to get the controller instance. */
81 dev->config)->instance)
89 /* Specifies the uart instance for configuration. */
90 sedi_uart_t instance; member
92 /* Specifies the baudrate for the uart instance. */
163 int ret = sedi_uart_set_power(config->instance, SEDI_POWER_SUSPEND); in uart_suspend_device()
177 ret = sedi_uart_set_power(config->instance, SEDI_POWER_FULL); in uart_resume_device_from_suspend()
221 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_poll_in() local
225 sedi_uart_get_status(instance, (uint32_t *) &status); in uart_sedi_poll_in()
235 if (sedi_uart_read(instance, data, (uint32_t *)&status)) { in uart_sedi_poll_in()
245 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_poll_out() local
247 sedi_uart_write(instance, data); in uart_sedi_poll_out()
280 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_err_check() local
284 sedi_uart_get_status(instance, (uint32_t *const)&status); in uart_sedi_err_check()
310 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_fifo_fill() local
312 return sedi_uart_fifo_fill(instance, tx_data, size); in uart_sedi_fifo_fill()
318 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_fifo_read() local
320 return sedi_uart_fifo_read(instance, rx_data, size); in uart_sedi_fifo_read()
325 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_tx_enable() local
327 sedi_uart_irq_tx_enable(instance); in uart_sedi_irq_tx_enable()
332 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_tx_disable() local
334 sedi_uart_irq_tx_disable(instance); in uart_sedi_irq_tx_disable()
339 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_tx_ready() local
341 return sedi_uart_irq_tx_ready(instance); in uart_sedi_irq_tx_ready()
346 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_tx_complete() local
348 return sedi_uart_is_tx_complete(instance); in uart_sedi_irq_tx_complete()
353 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_rx_enable() local
356 sedi_uart_irq_rx_enable(instance); in uart_sedi_irq_rx_enable()
361 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_rx_disable() local
363 sedi_uart_irq_rx_disable(instance); in uart_sedi_irq_rx_disable()
369 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_rx_ready() local
371 return sedi_uart_is_irq_rx_ready(instance); in uart_sedi_irq_rx_ready()
376 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_err_enable() local
378 sedi_uart_irq_err_enable(instance); in uart_sedi_irq_err_enable()
383 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_err_disable() local
385 sedi_uart_irq_err_disable(instance); in uart_sedi_irq_err_disable()
391 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_is_pending() local
393 return sedi_uart_is_irq_pending(instance); in uart_sedi_irq_is_pending()
398 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_irq_update() local
400 sedi_uart_update_irq_cache(instance); in uart_sedi_irq_update()
430 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(port); in uart_sedi_cb() local
432 sedi_uart_isr_handler(instance); in uart_sedi_cb()
441 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_line_ctrl_set() local
449 sedi_uart_get_config(instance, &cfg); in uart_sedi_line_ctrl_set()
451 ret = sedi_uart_set_config(instance, &cfg); in uart_sedi_line_ctrl_set()
465 sedi_uart_t instance = GET_CONTROLLER_INSTANCE(dev); in uart_sedi_line_ctrl_get() local
473 ret = sedi_uart_get_config(instance, &cfg); in uart_sedi_line_ctrl_get()
478 ret = sedi_uart_get_loopback_mode(instance, (uint32_t *)val); in uart_sedi_line_ctrl_get()
482 ret = sedi_uart_get_config(instance, &cfg); in uart_sedi_line_ctrl_get()
489 ret = sedi_get_ln_status_report_mask(instance, in uart_sedi_line_ctrl_get()
498 ret = sedi_uart_read_rts(instance, (uint32_t *)val); in uart_sedi_line_ctrl_get()
502 ret = sedi_uart_read_cts(instance, (uint32_t *)val); in uart_sedi_line_ctrl_get()
550 sedi_uart_init(config->instance, (void *)DEVICE_MMIO_GET(dev)); in uart_sedi_init()
557 sedi_uart_set_power(config->instance, SEDI_POWER_FULL); in uart_sedi_init()
559 sedi_uart_set_config(config->instance, &cfg); in uart_sedi_init()