Lines Matching full:const
27 const struct atmel_sam_pmc_config clock_cfg;
28 const struct pinctrl_dev_config *pcfg;
46 static int usart_sam_poll_in(const struct device *dev, unsigned char *c) in usart_sam_poll_in()
48 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_poll_in()
50 Usart * const usart = config->regs; in usart_sam_poll_in()
62 static void usart_sam_poll_out(const struct device *dev, unsigned char c) in usart_sam_poll_out()
64 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_poll_out()
66 Usart * const usart = config->regs; in usart_sam_poll_out()
76 static int usart_sam_err_check(const struct device *dev) in usart_sam_err_check()
78 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_err_check()
80 volatile Usart * const usart = config->regs; in usart_sam_err_check()
98 static int usart_sam_baudrate_set(const struct device *dev, uint32_t baudrate) in usart_sam_baudrate_set()
100 struct usart_sam_dev_data *const dev_data = dev->data; in usart_sam_baudrate_set()
102 const struct usart_sam_dev_cfg *const config = dev->config; in usart_sam_baudrate_set()
104 volatile Usart * const usart = config->regs; in usart_sam_baudrate_set()
142 static uint8_t usart_sam_get_parity(const struct device *dev) in usart_sam_get_parity()
144 const struct usart_sam_dev_cfg *const config = dev->config; in usart_sam_get_parity()
146 volatile Usart * const usart = config->regs; in usart_sam_get_parity()
176 static uint8_t usart_sam_get_stop_bits(const struct device *dev) in usart_sam_get_stop_bits()
178 const struct usart_sam_dev_cfg *const config = dev->config; in usart_sam_get_stop_bits()
180 volatile Usart * const usart = config->regs; in usart_sam_get_stop_bits()
208 static uint8_t usart_sam_get_data_bits(const struct device *dev) in usart_sam_get_data_bits()
210 const struct usart_sam_dev_cfg *const config = dev->config; in usart_sam_get_data_bits()
212 volatile Usart * const usart = config->regs; in usart_sam_get_data_bits()
238 static uint8_t usart_sam_get_flow_ctrl(const struct device *dev) in usart_sam_get_flow_ctrl()
240 const struct usart_sam_dev_cfg *const config = dev->config; in usart_sam_get_flow_ctrl()
242 volatile Usart * const usart = config->regs; in usart_sam_get_flow_ctrl()
253 static int usart_sam_configure(const struct device *dev, in usart_sam_configure()
254 const struct uart_config *cfg) in usart_sam_configure()
258 const struct usart_sam_dev_cfg *const config = dev->config; in usart_sam_configure()
260 volatile Usart * const usart = config->regs; in usart_sam_configure()
296 static int usart_sam_config_get(const struct device *dev, in usart_sam_config_get()
299 struct usart_sam_dev_data *const dev_data = dev->data; in usart_sam_config_get()
312 static int usart_sam_fifo_fill(const struct device *dev, in usart_sam_fifo_fill()
313 const uint8_t *tx_data, in usart_sam_fifo_fill()
316 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_fifo_fill()
318 volatile Usart * const usart = config->regs; in usart_sam_fifo_fill()
329 static int usart_sam_fifo_read(const struct device *dev, uint8_t *rx_data, in usart_sam_fifo_read()
330 const int size) in usart_sam_fifo_read()
332 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_fifo_read()
334 volatile Usart * const usart = config->regs; in usart_sam_fifo_read()
351 static void usart_sam_irq_tx_enable(const struct device *dev) in usart_sam_irq_tx_enable()
353 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_tx_enable()
355 volatile Usart * const usart = config->regs; in usart_sam_irq_tx_enable()
360 static void usart_sam_irq_tx_disable(const struct device *dev) in usart_sam_irq_tx_disable()
362 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_tx_disable()
364 volatile Usart * const usart = config->regs; in usart_sam_irq_tx_disable()
369 static int usart_sam_irq_tx_ready(const struct device *dev) in usart_sam_irq_tx_ready()
371 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_tx_ready()
373 volatile Usart * const usart = config->regs; in usart_sam_irq_tx_ready()
382 static void usart_sam_irq_rx_enable(const struct device *dev) in usart_sam_irq_rx_enable()
384 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_rx_enable()
386 volatile Usart * const usart = config->regs; in usart_sam_irq_rx_enable()
391 static void usart_sam_irq_rx_disable(const struct device *dev) in usart_sam_irq_rx_disable()
393 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_rx_disable()
395 volatile Usart * const usart = config->regs; in usart_sam_irq_rx_disable()
400 static int usart_sam_irq_tx_complete(const struct device *dev) in usart_sam_irq_tx_complete()
402 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_tx_complete()
404 volatile Usart * const usart = config->regs; in usart_sam_irq_tx_complete()
410 static int usart_sam_irq_rx_ready(const struct device *dev) in usart_sam_irq_rx_ready()
412 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_rx_ready()
414 volatile Usart * const usart = config->regs; in usart_sam_irq_rx_ready()
419 static void usart_sam_irq_err_enable(const struct device *dev) in usart_sam_irq_err_enable()
421 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_err_enable()
423 volatile Usart * const usart = config->regs; in usart_sam_irq_err_enable()
428 static void usart_sam_irq_err_disable(const struct device *dev) in usart_sam_irq_err_disable()
430 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_err_disable()
432 volatile Usart * const usart = config->regs; in usart_sam_irq_err_disable()
437 static int usart_sam_irq_is_pending(const struct device *dev) in usart_sam_irq_is_pending()
439 const struct usart_sam_dev_cfg *config = dev->config; in usart_sam_irq_is_pending()
441 volatile Usart * const usart = config->regs; in usart_sam_irq_is_pending()
447 static int usart_sam_irq_update(const struct device *dev) in usart_sam_irq_update()
454 static void usart_sam_irq_callback_set(const struct device *dev, in usart_sam_irq_callback_set()
458 struct usart_sam_dev_data *const dev_data = dev->data; in usart_sam_irq_callback_set()
464 static void usart_sam_isr(const struct device *dev) in usart_sam_isr()
466 struct usart_sam_dev_data *const dev_data = dev->data; in usart_sam_isr()
475 static int usart_sam_init(const struct device *dev) in usart_sam_init()
479 const struct usart_sam_dev_cfg *const cfg = dev->config; in usart_sam_init()
481 struct usart_sam_dev_data *const dev_data = dev->data; in usart_sam_init()
483 Usart * const usart = cfg->regs; in usart_sam_init()
542 static const struct usart_sam_dev_cfg usart##n##_sam_config = { \
554 static void usart##n##_sam_irq_config_func(const struct device *port) \
579 static const struct usart_sam_dev_cfg usart##n##_sam_config; \