Lines Matching refs:cfg
47 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_poll_in() local
49 Uart * const uart = cfg->regs; in uart_sam_poll_in()
63 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_poll_out() local
65 Uart * const uart = cfg->regs; in uart_sam_poll_out()
77 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_err_check() local
79 volatile Uart * const uart = cfg->regs; in uart_sam_err_check()
103 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_baudrate_set() local
105 volatile Uart * const uart = cfg->regs; in uart_sam_baudrate_set()
145 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_get_parity() local
147 volatile Uart * const uart = cfg->regs; in uart_sam_get_parity()
165 const struct uart_config *cfg) in uart_sam_configure() argument
174 if (cfg->stop_bits != UART_CFG_STOP_BITS_1 || in uart_sam_configure()
175 cfg->data_bits != UART_CFG_DATA_BITS_8 || in uart_sam_configure()
176 cfg->flow_ctrl != UART_CFG_FLOW_CTRL_NONE) { in uart_sam_configure()
189 | uart_sam_cfg2sam_parity(cfg->parity); in uart_sam_configure()
192 retval = uart_sam_baudrate_set(dev, cfg->baudrate); in uart_sam_configure()
204 struct uart_config *cfg) in uart_sam_config_get() argument
208 cfg->baudrate = dev_data->baud_rate; in uart_sam_config_get()
209 cfg->parity = uart_sam_get_parity(dev); in uart_sam_config_get()
211 cfg->stop_bits = UART_CFG_STOP_BITS_1; in uart_sam_config_get()
212 cfg->data_bits = UART_CFG_DATA_BITS_8; in uart_sam_config_get()
213 cfg->flow_ctrl = UART_CFG_FLOW_CTRL_NONE; in uart_sam_config_get()
224 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_fifo_fill() local
226 volatile Uart * const uart = cfg->regs; in uart_sam_fifo_fill()
240 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_fifo_read() local
242 volatile Uart * const uart = cfg->regs; in uart_sam_fifo_read()
261 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_tx_enable() local
263 volatile Uart * const uart = cfg->regs; in uart_sam_irq_tx_enable()
270 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_tx_disable() local
272 volatile Uart * const uart = cfg->regs; in uart_sam_irq_tx_disable()
279 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_tx_ready() local
281 volatile Uart * const uart = cfg->regs; in uart_sam_irq_tx_ready()
292 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_rx_enable() local
294 volatile Uart * const uart = cfg->regs; in uart_sam_irq_rx_enable()
301 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_rx_disable() local
303 volatile Uart * const uart = cfg->regs; in uart_sam_irq_rx_disable()
310 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_tx_complete() local
312 volatile Uart * const uart = cfg->regs; in uart_sam_irq_tx_complete()
320 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_rx_ready() local
322 volatile Uart * const uart = cfg->regs; in uart_sam_irq_rx_ready()
329 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_err_enable() local
331 volatile Uart * const uart = cfg->regs; in uart_sam_irq_err_enable()
338 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_err_disable() local
340 volatile Uart * const uart = cfg->regs; in uart_sam_irq_err_disable()
347 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_is_pending() local
349 volatile Uart * const uart = cfg->regs; in uart_sam_irq_is_pending()
387 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_init() local
391 Uart * const uart = cfg->regs; in uart_sam_init()
395 (clock_control_subsys_t)&cfg->clock_cfg); in uart_sam_init()
398 retval = pinctrl_apply_state(cfg->pcfg, PINCTRL_STATE_DEFAULT); in uart_sam_init()
407 cfg->irq_config_func(dev); in uart_sam_init()