Home
last modified time | relevance | path

Searched refs:DEV_DATA (Results 1 – 25 of 126) sorted by relevance

123456

/Zephyr-Core-2.7.6/drivers/serial/
Duart_mchp_xec.c170 #define DEV_DATA(dev) \ macro
173 #define IIRC(dev) (DEV_DATA(dev)->iir_cache)
206 struct uart_xec_dev_data * const dev_data = DEV_DATA(dev); in set_baud_rate()
242 struct uart_xec_dev_data * const dev_data = DEV_DATA(dev); in uart_xec_configure()
344 struct uart_xec_dev_data *data = DEV_DATA(dev); in uart_xec_config_get()
376 ret = uart_xec_configure(dev, &DEV_DATA(dev)->uart_config); in uart_xec_init()
401 k_spinlock_key_t key = k_spin_lock(&DEV_DATA(dev)->lock); in uart_xec_poll_in()
409 k_spin_unlock(&DEV_DATA(dev)->lock, key); in uart_xec_poll_in()
430 k_spinlock_key_t key = k_spin_lock(&DEV_DATA(dev)->lock); in uart_xec_poll_out()
438 k_spin_unlock(&DEV_DATA(dev)->lock, key); in uart_xec_poll_out()
[all …]
Duart_ns16550.c196 #define DEV_DATA(dev) \ macro
213 #define IIRC(dev) (DEV_DATA(dev)->iir_cache)
312 struct uart_ns16550_dev_data * const dev_data = DEV_DATA(dev); in set_baud_rate()
340 struct uart_ns16550_dev_data * const dev_data = DEV_DATA(dev); in uart_ns16550_configure()
482 struct uart_ns16550_dev_data *data = DEV_DATA(dev); in uart_ns16550_config_get()
507 ret = uart_ns16550_configure(dev, &DEV_DATA(dev)->uart_config); in uart_ns16550_init()
530 k_spinlock_key_t key = k_spin_lock(&DEV_DATA(dev)->lock); in uart_ns16550_poll_in()
538 k_spin_unlock(&DEV_DATA(dev)->lock, key); in uart_ns16550_poll_in()
558 k_spinlock_key_t key = k_spin_lock(&DEV_DATA(dev)->lock); in uart_ns16550_poll_out()
565 k_spin_unlock(&DEV_DATA(dev)->lock, key); in uart_ns16550_poll_out()
[all …]
Duart_apbuart.c139 #define DEV_DATA(dev) \ macro
150 if (DEV_DATA(dev)->usefifo) { in apbuart_poll_out()
317 if (DEV_DATA(dev)->usefifo) { in apbuart_fifo_fill()
353 if (DEV_DATA(dev)->usefifo) { in apbuart_irq_tx_enable()
387 if (DEV_DATA(dev)->usefifo) { in apbuart_irq_tx_ready()
431 if (DEV_DATA(dev)->usefifo) { in apbuart_irq_is_pending()
454 struct apbuart_dev_data *const dev_data = DEV_DATA(dev); in apbuart_irq_callback_set()
462 struct apbuart_dev_data *const dev_data = DEV_DATA(dev); in apbuart_isr()
478 DEV_DATA(dev)->usefifo = !!(ctrl & APBUART_CTRL_FA); in apbuart_init()
Duart_pl011.c147 #define DEV_DATA(dev) \ macro
204 if (!DEV_DATA(dev)->sbsa && in pl011_is_readable()
280 if (!DEV_DATA(dev)->sbsa && !(PL011_REGS(dev)->cr & PL011_CR_TXE)) in pl011_irq_tx_ready()
301 if (!DEV_DATA(dev)->sbsa && !(PL011_REGS(dev)->cr & PL011_CR_RXE)) in pl011_irq_rx_ready()
333 DEV_DATA(dev)->irq_cb = cb; in pl011_irq_callback_set()
334 DEV_DATA(dev)->irq_cb_data = cb_data; in pl011_irq_callback_set()
369 if (!DEV_DATA(dev)->sbsa) { in pl011_init()
376 DEV_DATA(dev)->baud_rate); in pl011_init()
394 if (!DEV_DATA(dev)->sbsa) { in pl011_init()
404 if (!DEV_DATA(dev)->sbsa) in pl011_init()
[all …]
Duart_stm32.c49 #define DEV_DATA(dev) \ macro
87 struct uart_stm32_data *data = DEV_DATA(dev); in uart_stm32_pm_constraint_set()
97 struct uart_stm32_data *data = DEV_DATA(dev); in uart_stm32_pm_constraint_release()
110 struct uart_stm32_data *data = DEV_DATA(dev); in uart_stm32_set_baudrate()
404 struct uart_stm32_data *data = DEV_DATA(dev); in uart_stm32_configure()
494 struct uart_stm32_data *data = DEV_DATA(dev); in uart_stm32_config_get()
531 struct uart_stm32_data *data = DEV_DATA(dev); in uart_stm32_poll_out()
626 struct uart_stm32_data *data = DEV_DATA(dev); in __uart_stm32_get_clock()
688 struct uart_stm32_data *data = DEV_DATA(dev); in uart_stm32_irq_tx_enable()
709 struct uart_stm32_data *data = DEV_DATA(dev); in uart_stm32_irq_tx_disable()
[all …]
/Zephyr-Core-2.7.6/samples/userspace/prod_consumer/src/
Dsample_driver_foo.c23 #define DEV_DATA(dev) \ macro
45 struct sample_driver_foo_dev_data *data = DEV_DATA(dev); in sample_driver_foo_set_callback()
57 struct sample_driver_foo_dev_data *data = DEV_DATA(dev); in sample_driver_foo_state_set()
101 struct sample_driver_foo_dev_data *data = DEV_DATA(dev); in sample_driver_foo_init()
/Zephyr-Core-2.7.6/drivers/watchdog/
Dwdt_esp32.c59 #define DEV_DATA(dev) \ macro
123 irq_enable(DEV_DATA(dev)->irq_line); in set_interrupt_enabled()
126 irq_disable(DEV_DATA(dev)->irq_line); in set_interrupt_enabled()
132 struct wdt_esp32_data *data = DEV_DATA(dev); in wdt_esp32_set_config()
180 struct wdt_esp32_data *data = DEV_DATA(dev); in wdt_esp32_install_timeout()
203 struct wdt_esp32_data *data = DEV_DATA(dev); in wdt_esp32_init()
248 struct wdt_esp32_data *data = DEV_DATA(dev); in wdt_esp32_isr()
Dwdt_gecko.c44 #define DEV_DATA(dev) \ macro
97 struct wdt_gecko_data *data = DEV_DATA(dev); in wdt_gecko_setup()
134 struct wdt_gecko_data *data = DEV_DATA(dev); in wdt_gecko_disable()
147 struct wdt_gecko_data *data = DEV_DATA(dev); in wdt_gecko_install_timeout()
236 struct wdt_gecko_data *data = DEV_DATA(dev); in wdt_gecko_isr()
/Zephyr-Core-2.7.6/drivers/wifi/esp32/src/
Desp_wifi_drv.c25 #define DEV_DATA(dev) \ macro
66 if (net_pkt_read(pkt, DEV_DATA(dev)->frame_buf, pkt_len) < 0) { in eth_esp32_send()
71 esp_wifi_internal_tx(ESP_IF_WIFI_STA, (void *)DEV_DATA(dev)->frame_buf, pkt_len); in eth_esp32_send()
149 struct esp32_wifi_runtime *dev_data = DEV_DATA(dev); in eth_esp32_init()
170 return &(DEV_DATA(dev)->stats); in eth_esp32_stats()
/Zephyr-Core-2.7.6/drivers/ethernet/
Deth_stellaris.c42 struct eth_stellaris_runtime *dev_data = DEV_DATA(dev); in eth_stellaris_flush()
53 struct eth_stellaris_runtime *dev_data = DEV_DATA(dev); in eth_stellaris_send_byte()
66 struct eth_stellaris_runtime *dev_data = DEV_DATA(dev); in eth_stellaris_send()
206 struct eth_stellaris_runtime *dev_data = DEV_DATA(dev); in eth_stellaris_rx()
232 struct eth_stellaris_runtime *dev_data = DEV_DATA(dev); in eth_stellaris_isr()
274 struct eth_stellaris_runtime *dev_data = DEV_DATA(dev); in eth_stellaris_init()
294 return &(DEV_DATA(dev)->stats); in eth_stellaris_stats()
Dphy_xlnx_gem.c196 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_marvell_alaska_reset()
231 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_marvell_alaska_cfg()
486 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_marvell_alaska_poll_sc()
534 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_marvell_alaska_poll_lsts()
559 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_marvell_alaska_poll_lspd()
614 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_ti_dp83822_reset()
643 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_ti_dp83822_cfg()
725 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_ti_dp83822_poll_sc()
765 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_ti_dp83822_poll_lsts()
793 struct eth_xlnx_gem_dev_data *dev_data = DEV_DATA(dev); in phy_xlnx_gem_ti_dp83822_poll_lspd()
[all …]
/Zephyr-Core-2.7.6/drivers/console/
Duart_mux.c90 #define DEV_DATA(dev) \ macro
233 struct uart_mux_dev_data *dev_data = DEV_DATA(dev); in uart_mux_init()
293 struct uart_mux_dev_data *dev_data = DEV_DATA(dev); in uart_mux_disable()
305 struct uart_mux_dev_data *dev_data = DEV_DATA(dev); in uart_mux_enable()
470 struct uart_mux_dev_data *dev_data = DEV_DATA(dev); in uart_mux_poll_out()
514 dev_data = DEV_DATA(dev); in uart_mux_fifo_fill()
558 dev_data = DEV_DATA(dev); in uart_mux_fifo_read()
578 struct uart_mux_dev_data *dev_data = DEV_DATA(dev); in uart_mux_irq_tx_enable()
593 struct uart_mux_dev_data *dev_data = DEV_DATA(dev); in uart_mux_irq_tx_disable()
604 struct uart_mux_dev_data *dev_data = DEV_DATA(dev); in uart_mux_irq_tx_ready()
[all …]
/Zephyr-Core-2.7.6/subsys/usb/class/
Dcdc_acm.c62 #define DEV_DATA(dev) \ macro
469 struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(dev); in cdc_acm_init()
496 struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(dev); in cdc_acm_fifo_fill()
533 struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(dev); in cdc_acm_fifo_read()
557 struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(dev); in cdc_acm_irq_tx_enable()
575 struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(dev); in cdc_acm_irq_tx_disable()
589 struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(dev); in cdc_acm_irq_tx_ready()
607 struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(dev); in cdc_acm_irq_rx_enable()
625 struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(dev); in cdc_acm_irq_rx_disable()
639 struct cdc_acm_dev_data_t * const dev_data = DEV_DATA(dev); in cdc_acm_irq_rx_ready()
[all …]
/Zephyr-Core-2.7.6/drivers/i2c/
Di2c_ll_stm32_v1.c128 struct i2c_stm32_data *data = DEV_DATA(dev); in stm32_i2c_master_finish()
146 struct i2c_stm32_data *data = DEV_DATA(dev); in msg_init()
181 struct i2c_stm32_data *data = DEV_DATA(dev); in msg_end()
220 struct i2c_stm32_data *data = DEV_DATA(dev); in stm32_i2c_master_mode_end()
228 struct i2c_stm32_data *data = DEV_DATA(dev); in handle_sb()
262 struct i2c_stm32_data *data = DEV_DATA(dev); in handle_addr()
306 struct i2c_stm32_data *data = DEV_DATA(dev); in handle_txe()
336 struct i2c_stm32_data *data = DEV_DATA(dev); in handle_rxne()
384 struct i2c_stm32_data *data = DEV_DATA(dev); in handle_btf()
427 struct i2c_stm32_data *data = DEV_DATA(dev); in stm32_i2c_slave_event()
[all …]
Di2c_mcux.c23 #define DEV_DATA(dev) \ macro
46 struct i2c_mcux_data *data = DEV_DATA(dev); in i2c_mcux_configure()
113 struct i2c_mcux_data *data = DEV_DATA(dev); in i2c_mcux_transfer()
181 struct i2c_mcux_data *data = DEV_DATA(dev); in i2c_mcux_isr()
190 struct i2c_mcux_data *data = DEV_DATA(dev); in i2c_mcux_init()
Di2c_imx.c22 #define DEV_DATA(dev) \ macro
54 struct i2c_imx_data *data = DEV_DATA(dev); in i2c_imx_write()
88 struct i2c_imx_data *data = DEV_DATA(dev); in i2c_imx_read()
128 struct i2c_imx_data *data = DEV_DATA(dev); in i2c_imx_configure()
192 struct i2c_imx_data *data = DEV_DATA(dev); in i2c_imx_transfer()
274 struct i2c_imx_data *data = DEV_DATA(dev); in i2c_imx_isr()
340 struct i2c_imx_data *data = DEV_DATA(dev); in i2c_imx_init()
/Zephyr-Core-2.7.6/tests/drivers/i2c/i2c_slave_api/common/
Di2c_virtual.c18 #define DEV_DATA(dev) ((struct i2c_virtual_data * const)(dev)->data) macro
53 struct i2c_virtual_data *data = DEV_DATA(dev); in i2c_virtual_slave_register()
74 struct i2c_virtual_data *data = DEV_DATA(dev); in i2c_virtual_slave_unregister()
154 struct i2c_virtual_data *data = DEV_DATA(dev); in i2c_virtual_transfer()
218 struct i2c_virtual_data *data = DEV_DATA(dev); in i2c_virtual_init()
/Zephyr-Core-2.7.6/drivers/adc/
Dadc_ite_it8xxx2.c23 #define DEV_DATA(dev) ((struct adc_it8xxx2_data * const)(dev)->data) macro
160 struct adc_it8xxx2_data *data = DEV_DATA(dev); in adc_it8xxx2_start_read()
192 struct adc_it8xxx2_data *data = DEV_DATA(dev); in adc_it8xxx2_read()
232 struct adc_it8xxx2_data *data = DEV_DATA(dev); in adc_it8xxx2_get_sample()
254 struct adc_it8xxx2_data *data = DEV_DATA(dev); in adc_it8xxx2_isr()
291 struct adc_it8xxx2_data *data = DEV_DATA(dev); in adc_it8xxx2_init()
Dadc_sam_afec.c68 #define DEV_DATA(dev) \ macro
124 struct adc_sam_data *data = DEV_DATA(dev); in adc_sam_start_conversion()
189 struct adc_sam_data *data = DEV_DATA(dev); in start_read()
254 struct adc_sam_data *data = DEV_DATA(dev); in adc_sam_read()
267 struct adc_sam_data *data = DEV_DATA(dev); in adc_sam_init()
309 struct adc_sam_data *data = DEV_DATA(dev); in adc_sam_read_async()
330 struct adc_sam_data *data = DEV_DATA(dev); in adc_sam_isr()
/Zephyr-Core-2.7.6/drivers/sensor/bmp388/
Dbmp388_trigger.c25 struct bmp388_data *data = DEV_DATA(dev); in bmp388_handle_interrupts()
47 struct bmp388_data *data = DEV_DATA(dev); in bmp388_thread_main()
92 struct bmp388_data *data = DEV_DATA(dev); in bmp388_trigger_set()
123 struct bmp388_data *data = DEV_DATA(dev); in bmp388_trigger_mode_init()
/Zephyr-Core-2.7.6/drivers/dac/
Ddac_sam.c52 #define DEV_DATA(dev) \ macro
59 struct dac_sam_dev_data *const dev_data = DEV_DATA(dev); in dac_sam_isr()
100 struct dac_sam_dev_data *const dev_data = DEV_DATA(dev); in dac_sam_write_value()
127 struct dac_sam_dev_data *const dev_data = DEV_DATA(dev); in dac_sam_init()
/Zephyr-Core-2.7.6/drivers/can/
Dcan_stm32fd.c52 struct can_stm32fd_data *data = DEV_DATA(dev); in can_stm32fd_register_state_change_isr()
61 struct can_mcan_data *mcan_data = &DEV_DATA(dev)->mcan_data; in can_stm32fd_init()
100 struct can_mcan_data *mcan_data = &DEV_DATA(dev)->mcan_data; in can_stm32fd_send()
111 struct can_mcan_data *mcan_data = &DEV_DATA(dev)->mcan_data; in can_stm32fd_attach_isr()
120 struct can_mcan_data *mcan_data = &DEV_DATA(dev)->mcan_data; in can_stm32fd_detach()
149 struct can_stm32fd_data *data = DEV_DATA(dev); in can_stm32fd_line_0_isr()
161 struct can_mcan_data *mcan_data = &DEV_DATA(dev)->mcan_data; in can_stm32fd_line_1_isr()
/Zephyr-Core-2.7.6/drivers/ipm/
Dipm_stm32_ipcc.c24 #define DEV_DATA(dev) \ macro
107 struct stm32_ipcc_mbx_data *data = DEV_DATA(dev); in stm32_ipcc_mailbox_rx_isr()
135 struct stm32_ipcc_mbx_data *data = DEV_DATA(dev); in stm32_ipcc_mailbox_tx_isr()
199 struct stm32_ipcc_mbx_data *data = DEV_DATA(d); in stm32_ipcc_mailbox_ipm_max_id_val_get()
208 struct stm32_ipcc_mbx_data *data = DEV_DATA(d); in stm32_ipcc_mailbox_ipm_register_callback()
217 struct stm32_ipcc_mbx_data *data = DEV_DATA(dev); in stm32_ipcc_mailbox_ipm_set_enabled()
245 struct stm32_ipcc_mbx_data *data = DEV_DATA(dev); in stm32_ipcc_mailbox_init()
/Zephyr-Core-2.7.6/drivers/gpio/
Dgpio_andes_atcgpio100.c57 #define DEV_DATA(dev) \ macro
107 struct gpio_atcgpio100_data * const data = DEV_DATA(port); in gpio_atcgpio100_config()
180 struct gpio_atcgpio100_data * const data = DEV_DATA(port); in gpio_atcgpio100_set_masked_raw()
210 struct gpio_atcgpio100_data * const data = DEV_DATA(port); in gpio_atcgpio100_toggle_bits()
229 struct gpio_atcgpio100_data * const data = DEV_DATA(port); in gpio_atcgpio100_pin_interrupt_configure()
288 struct gpio_atcgpio100_data * const data = DEV_DATA(port); in gpio_atcgpio100_manage_callback()
295 struct gpio_atcgpio100_data * const data = DEV_DATA(port); in gpio_atcgpio100_irq_handler()
/Zephyr-Core-2.7.6/drivers/flash/
Dflash_gecko.c34 #define DEV_DATA(dev) \ macro
62 struct flash_gecko_data *const dev_data = DEV_DATA(dev); in flash_gecko_write()
93 struct flash_gecko_data *const dev_data = DEV_DATA(dev); in flash_gecko_erase()
200 struct flash_gecko_data *const dev_data = DEV_DATA(dev); in flash_gecko_init()

123456