/Zephyr-latest/include/zephyr/drivers/ |
D | peci.h | 249 typedef int (*peci_config_t)(const struct device *dev, uint32_t bitrate); 250 typedef int (*peci_transfer_t)(const struct device *dev, struct peci_msg *msg); 251 typedef int (*peci_disable_t)(const struct device *dev); 252 typedef int (*peci_enable_t)(const struct device *dev); 274 __syscall int peci_config(const struct device *dev, uint32_t bitrate); 276 static inline int z_impl_peci_config(const struct device *dev, in z_impl_peci_config() 293 __syscall int peci_enable(const struct device *dev); 295 static inline int z_impl_peci_enable(const struct device *dev) in z_impl_peci_enable() 311 __syscall int peci_disable(const struct device *dev); 313 static inline int z_impl_peci_disable(const struct device *dev) in z_impl_peci_disable() [all …]
|
D | dac.h | 66 typedef int (*dac_api_channel_setup)(const struct device *dev, 73 typedef int (*dac_api_write_value)(const struct device *dev, 103 __syscall int dac_channel_setup(const struct device *dev, 106 static inline int z_impl_dac_channel_setup(const struct device *dev, in z_impl_dac_channel_setup() 125 __syscall int dac_write_value(const struct device *dev, uint8_t channel, 128 static inline int z_impl_dac_write_value(const struct device *dev, in z_impl_dac_write_value()
|
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/ |
D | intc_eirq_nxp_s32.h | 36 void eirq_nxp_s32_unset_callback(const struct device *dev, uint8_t irq); 50 int eirq_nxp_s32_set_callback(const struct device *dev, uint8_t irq, uint8_t pin, 60 void eirq_nxp_s32_enable_interrupt(const struct device *dev, uint8_t irq, 69 void eirq_nxp_s32_disable_interrupt(const struct device *dev, uint8_t irq); 77 uint32_t eirq_nxp_s32_get_pending(const struct device *dev);
|
D | intc_wkpu_nxp_s32.h | 35 void wkpu_nxp_s32_unset_callback(const struct device *dev, uint8_t irq); 49 int wkpu_nxp_s32_set_callback(const struct device *dev, uint8_t irq, uint8_t pin, 59 void wkpu_nxp_s32_enable_interrupt(const struct device *dev, uint8_t irq, 68 void wkpu_nxp_s32_disable_interrupt(const struct device *dev, uint8_t irq); 76 uint64_t wkpu_nxp_s32_get_pending(const struct device *dev);
|
/Zephyr-latest/tests/subsys/pm/device_runtime_api/src/ |
D | test_driver.h | 20 void test_driver_pm_async(const struct device *dev); 27 void test_driver_pm_done(const struct device *dev); 37 bool test_driver_pm_ongoing(const struct device *dev); 46 size_t test_driver_pm_count(const struct device *dev);
|
/Zephyr-latest/drivers/serial/ |
D | uart_sedi.c | 15 static void uart_sedi_cb(struct device *port); 23 static void irq_config_uart_##n(const struct device *dev) 29 static void irq_config_uart_##n(const struct device *dev) \ 110 static int uart_sedi_init(const struct device *dev); 126 static void uart_busy_set(const struct device *dev) in uart_busy_set() 138 static void uart_busy_clear(const struct device *dev) in uart_busy_clear() 155 static int uart_suspend_device(const struct device *dev) in uart_suspend_device() 172 static int uart_resume_device_from_suspend(const struct device *dev) in uart_resume_device_from_suspend() 185 static int uart_sedi_pm_action(const struct device *dev, in uart_sedi_pm_action() 206 static int uart_sedi_pm_action(const struct device *dev, in uart_sedi_pm_action() [all …]
|
D | uart_mcux_lpsci.c | 20 const struct device *clock_dev; 24 void (*irq_config_func)(const struct device *dev); 36 static int mcux_lpsci_poll_in(const struct device *dev, unsigned char *c) in mcux_lpsci_poll_in() 50 static void mcux_lpsci_poll_out(const struct device *dev, unsigned char c) in mcux_lpsci_poll_out() 61 static int mcux_lpsci_err_check(const struct device *dev) in mcux_lpsci_err_check() 87 static int mcux_lpsci_fifo_fill(const struct device *dev, in mcux_lpsci_fifo_fill() 104 static int mcux_lpsci_fifo_read(const struct device *dev, uint8_t *rx_data, in mcux_lpsci_fifo_read() 120 static void mcux_lpsci_irq_tx_enable(const struct device *dev) in mcux_lpsci_irq_tx_enable() 128 static void mcux_lpsci_irq_tx_disable(const struct device *dev) in mcux_lpsci_irq_tx_disable() 136 static int mcux_lpsci_irq_tx_complete(const struct device *dev) in mcux_lpsci_irq_tx_complete() [all …]
|
D | uart_imx.c | 35 void (*irq_config_func)(const struct device *dev); 56 static int uart_imx_init(const struct device *dev) in uart_imx_init() 105 static void uart_imx_poll_out(const struct device *dev, unsigned char c) in uart_imx_poll_out() 114 static int uart_imx_poll_in(const struct device *dev, unsigned char *c) in uart_imx_poll_in() 133 static int uart_imx_fifo_fill(const struct device *dev, in uart_imx_fifo_fill() 150 static int uart_imx_fifo_read(const struct device *dev, uint8_t *rx_data, in uart_imx_fifo_read() 169 static void uart_imx_irq_tx_enable(const struct device *dev) in uart_imx_irq_tx_enable() 176 static void uart_imx_irq_tx_disable(const struct device *dev) in uart_imx_irq_tx_disable() 183 static int uart_imx_irq_tx_ready(const struct device *dev) in uart_imx_irq_tx_ready() 190 static void uart_imx_irq_rx_enable(const struct device *dev) in uart_imx_irq_rx_enable() [all …]
|
D | uart_msp432p4xx.c | 37 static void uart_msp432p4xx_isr(const struct device *dev); 117 static int uart_msp432p4xx_init(const struct device *dev) in uart_msp432p4xx_init() 156 static int uart_msp432p4xx_poll_in(const struct device *dev, unsigned char *c) in uart_msp432p4xx_poll_in() 165 static void uart_msp432p4xx_poll_out(const struct device *dev, in uart_msp432p4xx_poll_out() 174 static int uart_msp432p4xx_fifo_fill(const struct device *dev, in uart_msp432p4xx_fifo_fill() 193 static int uart_msp432p4xx_fifo_read(const struct device *dev, in uart_msp432p4xx_fifo_read() 210 static void uart_msp432p4xx_irq_tx_enable(const struct device *dev) in uart_msp432p4xx_irq_tx_enable() 217 static void uart_msp432p4xx_irq_tx_disable(const struct device *dev) in uart_msp432p4xx_irq_tx_disable() 225 static int uart_msp432p4xx_irq_tx_ready(const struct device *dev) in uart_msp432p4xx_irq_tx_ready() 236 static void uart_msp432p4xx_irq_rx_enable(const struct device *dev) in uart_msp432p4xx_irq_rx_enable() [all …]
|
D | uart_xlnx_uartlite.c | 45 void (*irq_config_func)(const struct device *dev); 57 const struct device *dev; 67 static inline uint32_t xlnx_uartlite_read_status(const struct device *dev) in xlnx_uartlite_read_status() 81 static inline void xlnx_uartlite_clear_status(const struct device *dev) in xlnx_uartlite_clear_status() 89 static inline unsigned char xlnx_uartlite_read_rx_fifo(const struct device *dev) in xlnx_uartlite_read_rx_fifo() 96 static inline void xlnx_uartlite_write_tx_fifo(const struct device *dev, in xlnx_uartlite_write_tx_fifo() 104 static int xlnx_uartlite_poll_in(const struct device *dev, unsigned char *c) in xlnx_uartlite_poll_in() 122 static void xlnx_uartlite_poll_out(const struct device *dev, unsigned char c) in xlnx_uartlite_poll_out() 140 static int xlnx_uartlite_err_check(const struct device *dev) in xlnx_uartlite_err_check() 163 static inline void xlnx_uartlite_irq_enable(const struct device *dev) in xlnx_uartlite_irq_enable() [all …]
|
D | leuart_gecko.c | 31 void (*irq_config_func)(const struct device *dev); 50 static int leuart_gecko_poll_in(const struct device *dev, unsigned char *c) in leuart_gecko_poll_in() 63 static void leuart_gecko_poll_out(const struct device *dev, unsigned char c) in leuart_gecko_poll_out() 73 static int leuart_gecko_err_check(const struct device *dev) in leuart_gecko_err_check() 99 static int leuart_gecko_fifo_fill(const struct device *dev, in leuart_gecko_fifo_fill() 115 static int leuart_gecko_fifo_read(const struct device *dev, uint8_t *rx_data, in leuart_gecko_fifo_read() 130 static void leuart_gecko_irq_tx_enable(const struct device *dev) in leuart_gecko_irq_tx_enable() 138 static void leuart_gecko_irq_tx_disable(const struct device *dev) in leuart_gecko_irq_tx_disable() 146 static int leuart_gecko_irq_tx_complete(const struct device *dev) in leuart_gecko_irq_tx_complete() 154 static int leuart_gecko_irq_tx_ready(const struct device *dev) in leuart_gecko_irq_tx_ready() [all …]
|
/Zephyr-latest/drivers/sensor/st/ism330dhcx/ |
D | ism330dhcx.h | 34 int (*bus_init)(const struct device *dev); 60 const struct device *dev; 112 int ism330dhcx_spi_init(const struct device *dev); 113 int ism330dhcx_i2c_init(const struct device *dev); 115 int ism330dhcx_shub_init(const struct device *dev); 116 int ism330dhcx_shub_fetch_external_devs(const struct device *dev); 118 int ism330dhcx_shub_config(const struct device *dev, enum sensor_channel chan, 124 int ism330dhcx_trigger_set(const struct device *dev, 128 int ism330dhcx_init_interrupt(const struct device *dev);
|
/Zephyr-latest/include/zephyr/drivers/wifi/nrf_wifi/bus/ |
D | qspi_if.h | 65 int qspi_cmd_wakeup_rpu(const struct device *dev, uint8_t data); 86 int qspi_cmd_sleep_rpu(const struct device *dev); 91 extern struct device qspi_perip; 93 int qspi_validate_rpu_wake_writecmd(const struct device *dev); 94 int qspi_cmd_wakeup_rpu(const struct device *dev, uint8_t data); 95 int qspi_wait_while_rpu_awake(const struct device *dev); 97 int qspi_RDSR1(const struct device *dev, uint8_t *rdsr1); 98 int qspi_RDSR2(const struct device *dev, uint8_t *rdsr2); 99 int qspi_WRSR2(const struct device *dev, const uint8_t wrsr2);
|
/Zephyr-latest/drivers/i2s/ |
D | i2s_test.c | 12 static int vnd_i2s_configure(const struct device *dev, enum i2s_dir dir, in vnd_i2s_configure() 18 static const struct i2s_config *vnd_i2s_config_get(const struct device *dev, enum i2s_dir dir) in vnd_i2s_config_get() 23 static int vnd_i2s_trigger(const struct device *dev, enum i2s_dir dir, enum i2s_trigger_cmd cmd) in vnd_i2s_trigger() 28 static int vnd_i2s_read(const struct device *dev, void **mem_block, size_t *size) in vnd_i2s_read() 33 static int vnd_i2s_write(const struct device *dev, void *mem_block, size_t size) in vnd_i2s_write() 46 static int vnd_i2s_init(const struct device *dev) in vnd_i2s_init()
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_cmsdk_ahb.c | 26 typedef void (*gpio_config_func_t)(const struct device *port); 48 static int gpio_cmsdk_ahb_port_get_raw(const struct device *dev, in gpio_cmsdk_ahb_port_get_raw() 58 static int gpio_cmsdk_ahb_port_set_masked_raw(const struct device *dev, in gpio_cmsdk_ahb_port_set_masked_raw() 69 static int gpio_cmsdk_ahb_port_set_bits_raw(const struct device *dev, in gpio_cmsdk_ahb_port_set_bits_raw() 79 static int gpio_cmsdk_ahb_port_clear_bits_raw(const struct device *dev, in gpio_cmsdk_ahb_port_clear_bits_raw() 89 static int gpio_cmsdk_ahb_port_toggle_bits(const struct device *dev, in gpio_cmsdk_ahb_port_toggle_bits() 99 static int cmsdk_ahb_gpio_config(const struct device *dev, uint32_t mask, in cmsdk_ahb_gpio_config() 147 static int gpio_cmsdk_ahb_config(const struct device *dev, in gpio_cmsdk_ahb_config() 154 static int gpio_cmsdk_ahb_pin_interrupt_configure(const struct device *dev, in gpio_cmsdk_ahb_pin_interrupt_configure() 195 static void gpio_cmsdk_ahb_isr(const struct device *dev) in gpio_cmsdk_ahb_isr() [all …]
|
/Zephyr-latest/doc/services/pm/ |
D | device.rst | 10 selected, device drivers implementing power management will be able to take 11 advantage of the device power management subsystem. 13 Zephyr supports two methods of device power management: 15 - :ref:`Device Runtime Power Management <pm-device-runtime-pm>` 16 - :ref:`System-Managed Device Power Management <pm-device-system-pm>` 18 .. _pm-device-runtime-pm: 24 device drivers, subsystems, and applications. While device drivers 26 devices, the decision to suspend or resume a device can also be 29 Each layer—device drivers, subsystems, and applications—can operate 32 to suspend or resume a device. [all …]
|
/Zephyr-latest/drivers/audio/ |
D | tas6422dac.c | 55 static void codec_mute_output(const struct device *dev, enum tas6422dac_channel_t channel); 56 static void codec_unmute_output(const struct device *dev, enum tas6422dac_channel_t channel); 57 static void codec_write_reg(const struct device *dev, uint8_t reg, uint8_t val); 58 static void codec_read_reg(const struct device *dev, uint8_t reg, uint8_t *val); 59 static void codec_soft_reset(const struct device *dev); 60 static int codec_configure_dai(const struct device *dev, audio_dai_cfg_t *cfg); 61 static void codec_configure_output(const struct device *dev); 62 static int codec_set_output_volume(const struct device *dev, enum tas6422dac_channel_t channel, 66 static void codec_read_all_regs(const struct device *dev); 72 static int codec_initialize(const struct device *dev) in codec_initialize() [all …]
|
/Zephyr-latest/include/zephyr/drivers/comparator/ |
D | fake_comp.h | 19 const struct device *); 23 const struct device *, 28 const struct device *, 34 const struct device *);
|
/Zephyr-latest/drivers/stepper/step_dir/ |
D | step_dir_stepper_work_timing.c | 9 static k_timeout_t stepper_movement_delay(const struct device *dev) in stepper_movement_delay() 29 int step_work_timing_source_init(const struct device *dev) in step_work_timing_source_init() 38 int step_work_timing_source_update(const struct device *dev, const uint32_t velocity) in step_work_timing_source_update() 45 int step_work_timing_source_start(const struct device *dev) in step_work_timing_source_start() 52 int step_work_timing_source_stop(const struct device *dev) in step_work_timing_source_stop() 59 bool step_work_timing_source_needs_reschedule(const struct device *dev) in step_work_timing_source_needs_reschedule() 65 bool step_work_timing_source_is_running(const struct device *dev) in step_work_timing_source_is_running()
|
/Zephyr-latest/drivers/counter/ |
D | counter_native_posix.c | 29 static const struct device *device; variable 64 pending_alarm[i].callback(device, i, current_value, in counter_isr() 72 top.callback(device, top.user_data); in counter_isr() 79 static int ctr_init(const struct device *dev) in ctr_init() 81 device = dev; in ctr_init() 96 static int ctr_start(const struct device *dev) in ctr_start() 105 static int ctr_stop(const struct device *dev) in ctr_stop() 113 static int ctr_get_value(const struct device *dev, uint32_t *ticks) in ctr_get_value() 121 static uint32_t ctr_get_pending_int(const struct device *dev) in ctr_get_pending_int() 137 static int ctr_set_top_value(const struct device *dev, in ctr_set_top_value() [all …]
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_skeleton.c | 46 void (*make_thread)(const struct device *dev); 67 const struct device *dev = (const struct device *)arg; in skeleton_thread_handler() 82 static int udc_skeleton_ep_enqueue(const struct device *dev, in udc_skeleton_ep_enqueue() 114 static int udc_skeleton_ep_dequeue(const struct device *dev, in udc_skeleton_ep_dequeue() 137 static int udc_skeleton_ep_enable(const struct device *dev, in udc_skeleton_ep_enable() 149 static int udc_skeleton_ep_disable(const struct device *dev, in udc_skeleton_ep_disable() 158 static int udc_skeleton_ep_set_halt(const struct device *dev, in udc_skeleton_ep_set_halt() 172 static int udc_skeleton_ep_clear_halt(const struct device *dev, in udc_skeleton_ep_clear_halt() 181 static int udc_skeleton_set_address(const struct device *dev, const uint8_t addr) in udc_skeleton_set_address() 188 static int udc_skeleton_host_wakeup(const struct device *dev) in udc_skeleton_host_wakeup() [all …]
|
/Zephyr-latest/drivers/sensor/st/iis2mdc/ |
D | iis2mdc.h | 38 int (*bus_init)(const struct device *dev); 46 const struct device *dev; 75 int iis2mdc_spi_init(const struct device *dev); 76 int iis2mdc_i2c_init(const struct device *dev); 79 int iis2mdc_init_interrupt(const struct device *dev); 80 int iis2mdc_trigger_set(const struct device *dev,
|
/Zephyr-latest/tests/subsys/pm/power_mgmt/boards/ |
D | native_sim.overlay | 17 zephyr,pm-device-disabled; 23 compatible = "test-device-pm"; 27 compatible = "test-device-pm"; 31 compatible = "test-device-pm"; 35 compatible = "test-device-pm"; 39 compatible = "test-device-pm";
|
/Zephyr-latest/drivers/ipm/ |
D | ipm_cavs_host.c | 44 static int send(const struct device *dev, int wait, uint32_t id, in send() 47 const struct device *mw0 = DEVICE_DT_GET(DT_NODELABEL(mem_window0)); in send() 101 static bool ipc_handler(const struct device *dev, void *arg, in ipc_handler() 105 struct device *ipmdev = arg; in ipc_handler() 107 const struct device *mw1 = DEVICE_DT_GET(DT_NODELABEL(mem_window1)); in ipc_handler() 135 static int max_data_size_get(const struct device *ipmdev) in max_data_size_get() 140 static uint32_t max_id_val_get(const struct device *ipmdev) in max_id_val_get() 146 static void register_callback(const struct device *port, in register_callback() 156 static int set_enabled(const struct device *ipmdev, int enable) in set_enabled() 171 static void complete(const struct device *ipmdev) in complete() [all …]
|
/Zephyr-latest/subsys/usb/device_next/class/ |
D | usbd_hid_api.c | 20 int hid_device_submit_report(const struct device *dev, in hid_device_submit_report() 28 int hid_device_register(const struct device *dev, in hid_device_register() 40 const struct device *dev; 59 static const struct hid_ops *get_legacy_ops(const struct device *dev) in get_legacy_ops() 70 int wrapper_get_report(const struct device *dev, in wrapper_get_report() 92 int wrapper_set_report(const struct device *dev, in wrapper_set_report() 114 void wrapper_set_idle(const struct device *dev, in wrapper_set_idle() 123 void wrapper_set_protocol(const struct device *dev, const uint8_t proto) in wrapper_set_protocol() 132 void wrapper_input_report_done(const struct device *dev) in wrapper_input_report_done() 141 void wrapper_output_report(const struct device *dev, in wrapper_output_report() [all …]
|