Lines Matching full:const

27 	const struct atmel_sam_pmc_config clock_cfg;
28 const struct pinctrl_dev_config *pcfg;
45 static int uart_sam_poll_in(const struct device *dev, unsigned char *c) in uart_sam_poll_in()
47 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_poll_in()
49 Uart * const uart = cfg->regs; in uart_sam_poll_in()
61 static void uart_sam_poll_out(const struct device *dev, unsigned char c) in uart_sam_poll_out()
63 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_poll_out()
65 Uart * const uart = cfg->regs; in uart_sam_poll_out()
75 static int uart_sam_err_check(const struct device *dev) in uart_sam_err_check()
77 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_err_check()
79 volatile Uart * const uart = cfg->regs; in uart_sam_err_check()
99 static int uart_sam_baudrate_set(const struct device *dev, uint32_t baudrate) in uart_sam_baudrate_set()
101 struct uart_sam_dev_data *const dev_data = dev->data; in uart_sam_baudrate_set()
103 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_baudrate_set()
105 volatile Uart * const uart = cfg->regs; in uart_sam_baudrate_set()
143 static uint8_t uart_sam_get_parity(const struct device *dev) in uart_sam_get_parity()
145 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_get_parity()
147 volatile Uart * const uart = cfg->regs; in uart_sam_get_parity()
164 static int uart_sam_configure(const struct device *dev, in uart_sam_configure()
165 const struct uart_config *cfg) in uart_sam_configure()
169 const struct uart_sam_dev_cfg *const config = dev->config; in uart_sam_configure()
171 volatile Uart * const uart = config->regs; in uart_sam_configure()
203 static int uart_sam_config_get(const struct device *dev, in uart_sam_config_get()
206 struct uart_sam_dev_data *const dev_data = dev->data; in uart_sam_config_get()
220 static int uart_sam_fifo_fill(const struct device *dev, in uart_sam_fifo_fill()
221 const uint8_t *tx_data, in uart_sam_fifo_fill()
224 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_fifo_fill()
226 volatile Uart * const uart = cfg->regs; in uart_sam_fifo_fill()
237 static int uart_sam_fifo_read(const struct device *dev, uint8_t *rx_data, in uart_sam_fifo_read()
238 const int size) in uart_sam_fifo_read()
240 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_fifo_read()
242 volatile Uart * const uart = cfg->regs; in uart_sam_fifo_read()
259 static void uart_sam_irq_tx_enable(const struct device *dev) in uart_sam_irq_tx_enable()
261 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_tx_enable()
263 volatile Uart * const uart = cfg->regs; in uart_sam_irq_tx_enable()
268 static void uart_sam_irq_tx_disable(const struct device *dev) in uart_sam_irq_tx_disable()
270 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_tx_disable()
272 volatile Uart * const uart = cfg->regs; in uart_sam_irq_tx_disable()
277 static int uart_sam_irq_tx_ready(const struct device *dev) in uart_sam_irq_tx_ready()
279 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_tx_ready()
281 volatile Uart * const uart = cfg->regs; in uart_sam_irq_tx_ready()
290 static void uart_sam_irq_rx_enable(const struct device *dev) in uart_sam_irq_rx_enable()
292 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_rx_enable()
294 volatile Uart * const uart = cfg->regs; in uart_sam_irq_rx_enable()
299 static void uart_sam_irq_rx_disable(const struct device *dev) in uart_sam_irq_rx_disable()
301 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_rx_disable()
303 volatile Uart * const uart = cfg->regs; in uart_sam_irq_rx_disable()
308 static int uart_sam_irq_tx_complete(const struct device *dev) in uart_sam_irq_tx_complete()
310 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_tx_complete()
312 volatile Uart * const uart = cfg->regs; in uart_sam_irq_tx_complete()
318 static int uart_sam_irq_rx_ready(const struct device *dev) in uart_sam_irq_rx_ready()
320 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_rx_ready()
322 volatile Uart * const uart = cfg->regs; in uart_sam_irq_rx_ready()
327 static void uart_sam_irq_err_enable(const struct device *dev) in uart_sam_irq_err_enable()
329 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_err_enable()
331 volatile Uart * const uart = cfg->regs; in uart_sam_irq_err_enable()
336 static void uart_sam_irq_err_disable(const struct device *dev) in uart_sam_irq_err_disable()
338 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_err_disable()
340 volatile Uart * const uart = cfg->regs; in uart_sam_irq_err_disable()
345 static int uart_sam_irq_is_pending(const struct device *dev) in uart_sam_irq_is_pending()
347 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_irq_is_pending()
349 volatile Uart * const uart = cfg->regs; in uart_sam_irq_is_pending()
355 static int uart_sam_irq_update(const struct device *dev) in uart_sam_irq_update()
362 static void uart_sam_irq_callback_set(const struct device *dev, in uart_sam_irq_callback_set()
366 struct uart_sam_dev_data *const dev_data = dev->data; in uart_sam_irq_callback_set()
372 static void uart_sam_isr(const struct device *dev) in uart_sam_isr()
374 struct uart_sam_dev_data *const dev_data = dev->data; in uart_sam_isr()
383 static int uart_sam_init(const struct device *dev) in uart_sam_init()
387 const struct uart_sam_dev_cfg *const cfg = dev->config; in uart_sam_init()
389 struct uart_sam_dev_data *const dev_data = dev->data; in uart_sam_init()
391 Uart * const uart = cfg->regs; in uart_sam_init()
447 static const struct uart_sam_dev_cfg uart##n##_sam_config = { \
458 static void uart##n##_sam_irq_config_func(const struct device *port) \
483 static const struct uart_sam_dev_cfg uart##n##_sam_config; \