Lines Matching refs:uart_dev
32 const struct device *uart_dev; member
38 COND_CODE_1(DT_HAS_CHOSEN(zephyr_log_uart), (ctx->uart_dev), \
64 static void dict_char_out_hex(const struct device *uart_dev, uint8_t *data, size_t length) in dict_char_out_hex() argument
73 uart_poll_out(uart_dev, c); in dict_char_out_hex()
78 uart_poll_out(uart_dev, c); in dict_char_out_hex()
87 const struct device *uart_dev = LBU_UART_DEV(cb_ctx); in char_out() local
89 if (pm_device_runtime_get(uart_dev) < 0) { in char_out()
97 dict_char_out_hex(uart_dev, data, length); in char_out()
104 uart_poll_out(uart_dev, data[i]); in char_out()
109 err = uart_tx(uart_dev, data, length, SYS_FOREVER_US); in char_out()
121 (void)pm_device_runtime_put_async(uart_dev, K_MSEC(1)); in char_out()
150 const struct device *uart_dev = LBU_UART_DEV(ctx); in log_backend_uart_init() local
153 __ASSERT_NO_MSG(device_is_ready(uart_dev)); in log_backend_uart_init()
164 uart_poll_out(uart_dev, LOG_HEX_SEP[i]); in log_backend_uart_init()
171 int err = uart_callback_set(uart_dev, uart_callback, (void *)ctx); in log_backend_uart_init()
188 const struct device *uart_dev = LBU_UART_DEV(ctx); in panic() local
192 (void)pm_device_runtime_get(uart_dev); in panic()
197 rc = pm_device_state_get(uart_dev, &pm_state); in panic()
199 pm_device_action_run(uart_dev, PM_DEVICE_ACTION_RESUME); in panic()
202 ARG_UNUSED(uart_dev); in panic()
240 (.uart_dev = DEVICE_DT_GET(node_id),)) \