Lines Matching refs:uart_data
131 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_init() local
134 uart_data->uart_addr = DEVICE_MMIO_GET(dev); in uart_bcm2711_init()
135 bcm2711_mu_lowlevel_init(uart_data->uart_addr, 1, uart_cfg->baud_rate, uart_cfg->clocks); in uart_bcm2711_init()
144 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_poll_out() local
146 bcm2711_mu_lowlevel_putc(uart_data->uart_addr, c); in uart_bcm2711_poll_out()
151 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_poll_in() local
153 while (!bcm2711_mu_lowlevel_can_getc(uart_data->uart_addr)) { in uart_bcm2711_poll_in()
157 return sys_read32(uart_data->uart_addr + BCM2711_MU_IO) & 0xFF; in uart_bcm2711_poll_in()
167 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_fifo_fill() local
171 bcm2711_mu_lowlevel_putc(uart_data->uart_addr, tx_data[num_tx]); in uart_bcm2711_fifo_fill()
182 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_fifo_read() local
184 while ((size - num_rx) > 0 && bcm2711_mu_lowlevel_can_getc(uart_data->uart_addr)) { in uart_bcm2711_fifo_read()
186 rx_data[num_rx++] = sys_read32(uart_data->uart_addr + BCM2711_MU_IO) & 0xFF; in uart_bcm2711_fifo_read()
193 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_irq_tx_enable() local
195 sys_write32(BCM2711_MU_IER_TX_INTERRUPT, uart_data->uart_addr + BCM2711_MU_IER); in uart_bcm2711_irq_tx_enable()
200 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_irq_tx_disable() local
203 uart_data->uart_addr + BCM2711_MU_IER); in uart_bcm2711_irq_tx_disable()
208 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_irq_tx_ready() local
210 return bcm2711_mu_lowlevel_can_putc(uart_data->uart_addr); in uart_bcm2711_irq_tx_ready()
215 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_irq_rx_enable() local
217 sys_write32(BCM2711_MU_IER_RX_INTERRUPT, uart_data->uart_addr + BCM2711_MU_IER); in uart_bcm2711_irq_rx_enable()
222 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_irq_rx_disable() local
225 uart_data->uart_addr + BCM2711_MU_IER); in uart_bcm2711_irq_rx_disable()
230 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_irq_rx_ready() local
232 return bcm2711_mu_lowlevel_can_getc(uart_data->uart_addr); in uart_bcm2711_irq_rx_ready()
237 struct bcm2711_uart_data *uart_data = dev->data; in uart_bcm2711_irq_is_pending() local
239 return bcm2711_mu_lowlevel_can_getc(uart_data->uart_addr) || in uart_bcm2711_irq_is_pending()
240 bcm2711_mu_lowlevel_can_putc(uart_data->uart_addr); in uart_bcm2711_irq_is_pending()