Lines Matching full:patch
57 struct patch_info *patch = (struct patch_info *)ctx; in uart_cb() local
62 while (uart_irq_update(patch->rx_dev) > 0) { in uart_cb()
63 ret = uart_irq_rx_ready(patch->rx_dev); in uart_cb()
65 patch->rx_error = true; in uart_cb()
71 len = ring_buf_put_claim(patch->rx_ring_buf, &buf, RING_BUF_SIZE); in uart_cb()
74 uart_irq_rx_disable(patch->rx_dev); in uart_cb()
75 patch->rx_overflow = true; in uart_cb()
79 ret = uart_fifo_read(patch->rx_dev, buf, len); in uart_cb()
81 patch->rx_error = true; in uart_cb()
88 ret = ring_buf_put_finish(patch->rx_ring_buf, len); in uart_cb()
90 patch->rx_error = true; in uart_cb()
96 static void passthrough(struct patch_info *patch) in passthrough() argument
102 if (patch->rx_error) { in passthrough()
103 printk("<<%s: Rx Error!>>\n", patch->name); in passthrough()
104 patch->rx_error = false; in passthrough()
107 if (patch->rx_overflow) { in passthrough()
108 printk("<<%s: Rx Overflow!>>\n", patch->name); in passthrough()
109 patch->rx_overflow = false; in passthrough()
112 len = ring_buf_get_claim(patch->rx_ring_buf, &buf, RING_BUF_SIZE); in passthrough()
117 ret = uart_fifo_fill(patch->tx_dev, buf, len); in passthrough()
123 ret = ring_buf_get_finish(patch->rx_ring_buf, len); in passthrough()
129 uart_irq_rx_enable(patch->rx_dev); in passthrough()
133 printk("<<%s: Tx Error!>>\n", patch->name); in passthrough()