/Zephyr-latest/drivers/watchdog/ |
D | wdt_mcux_wdog.c | 23 const struct device *clock_dev; 25 void (*irq_config_func)(const struct device *dev); 34 static int mcux_wdog_setup(const struct device *dev, uint8_t options) in mcux_wdog_setup() 57 static int mcux_wdog_disable(const struct device *dev) in mcux_wdog_disable() 70 static int mcux_wdog_install_timeout(const struct device *dev, in mcux_wdog_install_timeout() 119 static int mcux_wdog_feed(const struct device *dev, int channel_id) in mcux_wdog_feed() 135 static void mcux_wdog_isr(const struct device *dev) in mcux_wdog_isr() 150 static int mcux_wdog_init(const struct device *dev) in mcux_wdog_init() 166 static void mcux_wdog_config_func_0(const struct device *dev); 185 static void mcux_wdog_config_func_0(const struct device *dev) in mcux_wdog_config_func_0()
|
/Zephyr-latest/drivers/pwm/ |
D | pwm_shell.c | 17 uint8_t device; member 25 .device = 1, 35 const struct device *dev; in cmd_cycles() 41 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_cycles() 68 const struct device *dev; in cmd_usec() 74 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_usec() 100 const struct device *dev; in cmd_nsec() 106 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_nsec() 129 static bool device_is_pwm_and_ready(const struct device *dev) in device_is_pwm_and_ready() 136 const struct device *dev = shell_device_filter(idx, device_is_pwm_and_ready); in device_name_get()
|
/Zephyr-latest/drivers/usb_c/tcpc/ |
D | ps8xxx.c | 22 const struct device *const dev; 67 static int tcpci_init_alert_mask(const struct device *dev) in tcpci_init_alert_mask() 84 static int ps8xxx_tcpc_init(const struct device *dev) in ps8xxx_tcpc_init() 101 int ps8xxx_tcpc_get_cc(const struct device *dev, enum tc_cc_voltage_state *cc1, in ps8xxx_tcpc_get_cc() 132 int ps8xxx_tcpc_select_rp_value(const struct device *dev, enum tc_rp_value rp) in ps8xxx_tcpc_select_rp_value() 143 int ps8xxx_tcpc_get_rp_value(const struct device *dev, enum tc_rp_value *rp) in ps8xxx_tcpc_get_rp_value() 155 int ps8xxx_tcpc_set_cc(const struct device *dev, enum tc_cc_pull pull) in ps8xxx_tcpc_set_cc() 171 void ps8xxx_tcpc_set_vconn_discharge_cb(const struct device *dev, tcpc_vconn_discharge_cb_t cb) in ps8xxx_tcpc_set_vconn_discharge_cb() 178 void ps8xxx_tcpc_set_vconn_cb(const struct device *dev, tcpc_vconn_control_cb_t vconn_cb) in ps8xxx_tcpc_set_vconn_cb() 185 int ps8xxx_tcpc_vconn_discharge(const struct device *dev, bool enable) in ps8xxx_tcpc_vconn_discharge() [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_rv32m1.c | 28 const struct device *clock_dev; 30 int (*irq_config_func)(const struct device *dev); 40 static uint32_t get_port_pcr_irqc_value_from_flags(const struct device *dev, in get_port_pcr_irqc_value_from_flags() 76 static int gpio_rv32m1_configure(const struct device *dev, in gpio_rv32m1_configure() 163 static int gpio_rv32m1_port_get_raw(const struct device *dev, uint32_t *value) in gpio_rv32m1_port_get_raw() 173 static int gpio_rv32m1_port_set_masked_raw(const struct device *dev, in gpio_rv32m1_port_set_masked_raw() 185 static int gpio_rv32m1_port_set_bits_raw(const struct device *dev, in gpio_rv32m1_port_set_bits_raw() 196 static int gpio_rv32m1_port_clear_bits_raw(const struct device *dev, in gpio_rv32m1_port_clear_bits_raw() 207 static int gpio_rv32m1_port_toggle_bits(const struct device *dev, in gpio_rv32m1_port_toggle_bits() 218 static int gpio_rv32m1_pin_interrupt_configure(const struct device *dev, in gpio_rv32m1_pin_interrupt_configure() [all …]
|
D | gpio_sam.c | 22 typedef void (*config_func_t)(const struct device *dev); 41 static int gpio_sam_port_configure(const struct device *dev, uint32_t mask, in gpio_sam_port_configure() 156 static int gpio_sam_config(const struct device *dev, gpio_pin_t pin, in gpio_sam_config() 162 static int gpio_sam_port_get_raw(const struct device *dev, uint32_t *value) in gpio_sam_port_get_raw() 172 static int gpio_sam_port_set_masked_raw(const struct device *dev, in gpio_sam_port_set_masked_raw() 184 static int gpio_sam_port_set_bits_raw(const struct device *dev, uint32_t mask) in gpio_sam_port_set_bits_raw() 195 static int gpio_sam_port_clear_bits_raw(const struct device *dev, in gpio_sam_port_clear_bits_raw() 207 static int gpio_sam_port_toggle_bits(const struct device *dev, uint32_t mask) in gpio_sam_port_toggle_bits() 218 static int gpio_sam_port_interrupt_configure(const struct device *dev, in gpio_sam_port_interrupt_configure() 267 static int gpio_sam_pin_interrupt_configure(const struct device *dev, in gpio_sam_pin_interrupt_configure() [all …]
|
D | gpio_lmp90xxx.c | 28 const struct device *parent; 36 static int gpio_lmp90xxx_config(const struct device *dev, in gpio_lmp90xxx_config() 84 static int gpio_lmp90xxx_port_get_raw(const struct device *dev, in gpio_lmp90xxx_port_get_raw() 92 static int gpio_lmp90xxx_port_set_masked_raw(const struct device *dev, in gpio_lmp90xxx_port_set_masked_raw() 101 static int gpio_lmp90xxx_port_set_bits_raw(const struct device *dev, in gpio_lmp90xxx_port_set_bits_raw() 109 static int gpio_lmp90xxx_port_clear_bits_raw(const struct device *dev, in gpio_lmp90xxx_port_clear_bits_raw() 117 static int gpio_lmp90xxx_port_toggle_bits(const struct device *dev, in gpio_lmp90xxx_port_toggle_bits() 125 static int gpio_lmp90xxx_init(const struct device *dev) in gpio_lmp90xxx_init()
|
/Zephyr-latest/subsys/usb/usb_c/ |
D | usbc_tc_common.c | 17 static int tc_init(const struct device *dev); 22 void tc_subsys_init(const struct device *dev) in tc_subsys_init() 37 void tc_run(const struct device *dev, const int32_t dpm_request) in tc_run() 40 const struct device *tcpc = data->tcpc; in tc_run() 111 bool tc_is_in_attached_state(const struct device *dev) in tc_is_in_attached_state() 123 static int tc_init(const struct device *dev) in tc_init() 127 const struct device *tcpc = data->tcpc; in tc_init() 182 void tc_set_state(const struct device *dev, const enum tc_state_t state) in tc_set_state() 194 enum tc_state_t tc_get_state(const struct device *dev) in tc_get_state() 204 void tc_pd_enable(const struct device *dev, const bool enable) in tc_pd_enable() [all …]
|
D | usbc_pe_src_states.c | 29 void pe_src_init(const struct device *dev) in pe_src_init() 51 bool source_dpm_requests(const struct device *dev) in source_dpm_requests() 74 const struct device *dev = pe->dev; in send_src_caps() 98 const struct device *dev = pe->dev; in pe_src_startup_entry() 120 const struct device *dev = pe->dev; in pe_src_startup_run() 150 const struct device *dev = pe->dev; in pe_src_discovery_run() 193 const struct device *dev = pe->dev; in pe_src_send_capabilities_run() 257 const struct device *dev = pe->dev; in pe_src_negotiate_capability_entry() 298 const struct device *dev = pe->dev; in pe_src_transition_supply_entry() 324 const struct device *dev = pe->dev; in pe_src_transition_supply_run() [all …]
|
/Zephyr-latest/drivers/interrupt_controller/ |
D | intc_intel_vtd.c | 36 static void vtd_write_reg32(const struct device *dev, in vtd_write_reg32() 44 static uint32_t vtd_read_reg32(const struct device *dev, uint16_t reg) in vtd_read_reg32() 51 static void vtd_write_reg64(const struct device *dev, in vtd_write_reg64() 59 static uint64_t vtd_read_reg64(const struct device *dev, uint16_t reg) in vtd_read_reg64() 66 static void vtd_send_cmd(const struct device *dev, in vtd_send_cmd() 83 static void vtd_flush_irte_from_cache(const struct device *dev, in vtd_flush_irte_from_cache() 94 static void vtd_qi_init(const struct device *dev) in vtd_qi_init() 109 static inline void vtd_qi_tail_inc(const struct device *dev) in vtd_qi_tail_inc() 117 static int vtd_qi_send(const struct device *dev, in vtd_qi_send() 173 static int vtd_global_cc_invalidate(const struct device *dev) in vtd_global_cc_invalidate() [all …]
|
/Zephyr-latest/drivers/ipm/ |
D | ipm_xlnx_ipi.c | 48 int (*xlnx_ipi_config_func)(const struct device *dev); 49 const struct device **cdev_list; 70 static void xlnx_mailbox_rx_isr(const struct device *dev) in xlnx_mailbox_rx_isr() 73 const struct device **cdev_list; in xlnx_mailbox_rx_isr() 79 const struct device *cdev; in xlnx_mailbox_rx_isr() 114 static int xlnx_ipi_send(const struct device *ipmdev, int wait, uint32_t id, const void *data, in xlnx_ipi_send() 147 static void xlnx_ipi_register_callback(const struct device *port, ipm_callback_t cb, in xlnx_ipi_register_callback() 156 static int xlnx_ipi_max_data_size_get(const struct device *ipmdev) in xlnx_ipi_max_data_size_get() 161 static uint32_t xlnx_ipi_max_id_val_get(const struct device *ipmdev) in xlnx_ipi_max_id_val_get() 166 static int xlnx_ipi_set_enabled(const struct device *ipmdev, int enable) in xlnx_ipi_set_enabled() [all …]
|
/Zephyr-latest/drivers/misc/mcux_flexio/ |
D | mcux_flexio.c | 21 const struct device *clock_dev; 23 void (*irq_config_func)(const struct device *dev); 41 static int mcux_flexio_child_take_shifter_idx(const struct device *dev) in mcux_flexio_child_take_shifter_idx() 55 static int mcux_flexio_child_take_timer_idx(const struct device *dev) in mcux_flexio_child_take_timer_idx() 69 static void mcux_flexio_isr(const struct device *dev) in mcux_flexio_isr() 119 static int mcux_flexio_init(const struct device *dev) in mcux_flexio_init() 134 void nxp_flexio_irq_enable(const struct device *dev) in nxp_flexio_irq_enable() 141 void nxp_flexio_irq_disable(const struct device *dev) in nxp_flexio_irq_disable() 148 void nxp_flexio_lock(const struct device *dev) in nxp_flexio_lock() 155 void nxp_flexio_unlock(const struct device *dev) in nxp_flexio_unlock() [all …]
|
/Zephyr-latest/drivers/serial/ |
D | uart_renesas_ra.c | 30 const struct device *clock_dev; 34 int (*irq_config_func)(const struct device *dev); 186 static uint8_t uart_ra_read_8(const struct device *dev, uint32_t offs) in uart_ra_read_8() 193 static void uart_ra_write_8(const struct device *dev, uint32_t offs, uint8_t value) in uart_ra_write_8() 200 static uint16_t uart_ra_read_16(const struct device *dev, uint32_t offs) in uart_ra_read_16() 207 static void uart_ra_write_16(const struct device *dev, uint32_t offs, uint16_t value) in uart_ra_write_16() 214 static void uart_ra_set_baudrate(const struct device *dev, uint32_t baud_rate) in uart_ra_set_baudrate() 228 static int uart_ra_poll_in(const struct device *dev, unsigned char *p_char) in uart_ra_poll_in() 253 static void uart_ra_poll_out(const struct device *dev, unsigned char out_char) in uart_ra_poll_out() 278 static int uart_ra_err_check(const struct device *dev) in uart_ra_err_check() [all …]
|
/Zephyr-latest/drivers/mbox/ |
D | mbox_handlers.c | 10 static inline int z_vrfy_mbox_send(const struct device *dev, in z_vrfy_mbox_send() 22 static inline int z_vrfy_mbox_mtu_get(const struct device *dev) in z_vrfy_mbox_mtu_get() 30 static inline uint32_t z_vrfy_mbox_max_channels_get(const struct device *dev) in z_vrfy_mbox_max_channels_get() 38 static inline int z_vrfy_mbox_set_enabled(const struct device *dev, in z_vrfy_mbox_set_enabled()
|
/Zephyr-latest/drivers/comparator/ |
D | comparator_fake_comp.c | 17 const struct device *); 21 const struct device *, 26 const struct device *, 32 const struct device *);
|
/Zephyr-latest/drivers/counter/ |
D | counter_rpi_pico_timer.c | 37 const struct device *clk_dev; 42 static int counter_rpi_pico_timer_start(const struct device *dev) in counter_rpi_pico_timer_start() 51 static int counter_rpi_pico_timer_stop(const struct device *dev) in counter_rpi_pico_timer_stop() 62 static uint32_t counter_rpi_pico_timer_get_top_value(const struct device *dev) in counter_rpi_pico_timer_get_top_value() 69 static int counter_rpi_pico_timer_get_value(const struct device *dev, uint32_t *ticks) in counter_rpi_pico_timer_get_value() 75 static int counter_rpi_pico_timer_set_alarm(const struct device *dev, uint8_t id, in counter_rpi_pico_timer_set_alarm() 112 static int counter_rpi_pico_timer_cancel_alarm(const struct device *dev, uint8_t id) in counter_rpi_pico_timer_cancel_alarm() 125 static int counter_rpi_pico_timer_set_top_value(const struct device *dev, in counter_rpi_pico_timer_set_top_value() 134 static uint32_t counter_rpi_pico_timer_get_pending_int(const struct device *dev) in counter_rpi_pico_timer_get_pending_int() 139 static uint32_t counter_rpi_pico_timer_get_guard_period(const struct device *dev, uint32_t flags) in counter_rpi_pico_timer_get_guard_period() [all …]
|
/Zephyr-latest/subsys/usb/device_next/class/ |
D | usbd_hid_internal.h | 17 int (*enable_output)(const struct device *dev, const bool enable); 18 int (*submit_report)(const struct device *dev, 20 int (*dev_register)(const struct device *dev,
|
/Zephyr-latest/scripts/west_commands/runners/ |
D | gd32isp.py | 16 def __init__(self, cfg, device, argument 22 self.device = device 58 device=args.device, 73 '-i', self.device,
|
/Zephyr-latest/drivers/sensor/adi/adxl367/ |
D | adxl367_i2c.c | 19 static int adxl367_bus_access(const struct device *dev, uint8_t reg, in adxl367_bus_access() 39 static int adxl367_i2c_reg_read(const struct device *dev, uint8_t reg_addr, in adxl367_i2c_reg_read() 45 static int adxl367_i2c_reg_read_multiple(const struct device *dev, in adxl367_i2c_reg_read_multiple() 54 static int adxl367_i2c_reg_write(const struct device *dev, in adxl367_i2c_reg_write() 63 int adxl367_i2c_reg_write_mask(const struct device *dev, in adxl367_i2c_reg_write_mask() 89 int adxl367_i2c_init(const struct device *dev) in adxl367_i2c_init()
|
/Zephyr-latest/drivers/sensor/adi/adxl372/ |
D | adxl372_i2c.c | 21 static int adxl372_bus_access(const struct device *dev, uint8_t reg, in adxl372_bus_access() 41 static int adxl372_i2c_reg_read(const struct device *dev, uint8_t reg_addr, in adxl372_i2c_reg_read() 47 static int adxl372_i2c_reg_read_multiple(const struct device *dev, in adxl372_i2c_reg_read_multiple() 56 static int adxl372_i2c_reg_write(const struct device *dev, in adxl372_i2c_reg_write() 65 int adxl372_i2c_reg_write_mask(const struct device *dev, in adxl372_i2c_reg_write_mask() 91 int adxl372_i2c_init(const struct device *dev) in adxl372_i2c_init()
|
/Zephyr-latest/drivers/sensor/bosch/bma4xx/ |
D | bma4xx_i2c.c | 19 static int bma4xx_i2c_read_data(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_read_data() 28 static int bma4xx_i2c_write_data(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_write_data() 37 static int bma4xx_i2c_read_reg(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_read_reg() 45 static int bma4xx_i2c_write_reg(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_write_reg() 53 static int bma4xx_i2c_update_reg(const struct device *dev, uint8_t reg_addr, in bma4xx_i2c_update_reg() 69 int bma4xx_i2c_init(const struct device *dev) in bma4xx_i2c_init()
|
/Zephyr-latest/samples/sensor/vcnl4040/src/ |
D | main.c | 20 static void print_proxy_data(const struct device *dev) in print_proxy_data() 32 static void print_als_data(const struct device *dev) in print_als_data() 44 static void test_polling_mode(const struct device *dev) in test_polling_mode() 66 static void trigger_handler(const struct device *dev, in trigger_handler() 86 static void test_trigger_mode(const struct device *dev) in test_trigger_mode() 133 const struct device *const vcnl = DEVICE_DT_GET_ONE(vishay_vcnl4040); in main()
|
/Zephyr-latest/samples/sensor/sensor_shell/src/ |
D | fake_sensor.c | 15 static int init(const struct device *dev) in init() 22 static int attr_set(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr, in attr_set() 31 static int attr_get(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr, in attr_get() 42 static int sample_fetch(const struct device *dev, enum sensor_channel chan) in sample_fetch() 49 static int channel_get(const struct device *dev, enum sensor_channel chan, struct sensor_value *val) in channel_get() 75 static int trigger_set(const struct device *dev, const struct sensor_trigger *trig, in trigger_set()
|
/Zephyr-latest/tests/drivers/gpio/gpio_reserved_ranges/boards/ |
D | native_posix.overlay | 15 compatible = "vnd,gpio-device"; 27 compatible = "vnd,gpio-device"; 37 compatible = "vnd,gpio-device"; 48 compatible = "vnd,gpio-device"; 59 compatible = "vnd,gpio-device"; 70 compatible = "vnd,gpio-device";
|
/Zephyr-latest/drivers/usb/bc12/ |
D | bc12_pi3usb9201.c | 31 const struct device *dev; 86 static int pi3usb9201_interrupt_enable(const struct device *dev, const bool enable) in pi3usb9201_interrupt_enable() 96 static int pi3usb9201_bc12_detect_ctrl(const struct device *dev, const bool enable) in pi3usb9201_bc12_detect_ctrl() 105 static int pi3usb9201_bc12_usb_switch(const struct device *dev, bool enable) in pi3usb9201_bc12_usb_switch() 115 static int pi3usb9201_set_mode(const struct device *dev, enum pi3usb9201_mode mode) in pi3usb9201_set_mode() 125 static int pi3usb9201_get_mode(const struct device *dev, enum pi3usb9201_mode *const mode) in pi3usb9201_get_mode() 143 static int pi3usb9201_get_status(const struct device *dev, uint8_t *const client, in pi3usb9201_get_status() 171 static void pi3usb9201_notify_callback(const struct device *dev, in pi3usb9201_notify_callback() 181 static bool pi3usb9201_partner_has_changed(const struct device *dev, in pi3usb9201_partner_has_changed() 215 static void pi3usb9201_update_charging_partner(const struct device *dev, in pi3usb9201_update_charging_partner() [all …]
|
/Zephyr-latest/drivers/flash/ |
D | flash_esp32.c | 52 static inline void flash_esp32_sem_take(const struct device *dev) in flash_esp32_sem_take() 59 static inline void flash_esp32_sem_give(const struct device *dev) in flash_esp32_sem_give() 72 static int flash_esp32_read(const struct device *dev, off_t address, void *buffer, size_t length) in flash_esp32_read() 90 static int flash_esp32_write(const struct device *dev, in flash_esp32_write() 112 static int flash_esp32_erase(const struct device *dev, off_t start, size_t len) in flash_esp32_erase() 130 void flash_esp32_page_layout(const struct device *dev, in flash_esp32_page_layout() 140 flash_esp32_get_parameters(const struct device *dev) in flash_esp32_get_parameters() 147 static int flash_esp32_init(const struct device *dev) in flash_esp32_init()
|