Lines Matching refs:common

41 		sh_uart->common.handler(SHELL_TRANSPORT_EVT_RX_RDY, sh_uart->common.context);  in async_callback()
77 struct smp_shell_data *const smp = &sh_uart->common.smp; in uart_rx_handle()
130 sh_uart->common.handler(SHELL_TRANSPORT_EVT_RX_RDY, sh_uart->common.context); in uart_rx_handle()
158 if (!uart_dtr_check(sh_uart->common.dev)) { in dtr_timer_handler()
164 uart_irq_tx_enable(sh_uart->common.dev); in dtr_timer_handler()
193 sh_uart->common.handler(SHELL_TRANSPORT_EVT_TX_RDY, sh_uart->common.context); in uart_tx_handle()
213 const struct device *dev = sh_uart->common.dev; in irq_init()
236 const struct device *dev = sh_uart->common.dev; in async_init()
268 while (uart_poll_in(sh_uart->common.dev, &c) == 0) { in polling_rx_timeout_handler()
273 sh_uart->common.handler(SHELL_TRANSPORT_EVT_RX_RDY, sh_uart->common.context); in polling_rx_timeout_handler()
292 struct shell_uart_common *common = (struct shell_uart_common *)transport->ctx; in init() local
294 common->dev = (const struct device *)config; in init()
295 common->handler = evt_handler; in init()
296 common->context = context; in init()
299 common->smp.buf_pool = &smp_shell_rx_pool; in init()
300 k_fifo_init(&common->smp.buf_ready); in init()
316 const struct device *dev = sh_uart->common.dev; in irq_uninit()
380 uart_irq_tx_enable(sh_uart->common.dev); in irq_write()
391 err = uart_tx(sh_uart->common.dev, data, length, SYS_FOREVER_US); in async_write()
400 sh_uart->common.handler(SHELL_TRANSPORT_EVT_TX_RDY, sh_uart->common.context); in async_write()
444 struct smp_shell_data *const smp = &sh_uart->common.smp; in async_read()
467 err = uart_rx_buf_rsp(sh_uart->common.dev, buf, len); in async_read()
472 err = rx_enable(sh_uart->common.dev, buf, len); in async_read()
527 struct shell_uart_common *common = (struct shell_uart_common *)shell_transport_uart.ctx; in shell_uart_smp_shell_data_get_ptr() local
529 return &common->smp; in shell_uart_smp_shell_data_get_ptr()