Home
last modified time | relevance | path

Searched refs:device (Results 301 – 325 of 4950) sorted by relevance

1...<<11121314151617181920>>...198

/Zephyr-latest/samples/boards/st/sensortile_box/src/
Dmain.c26 static void lps22hh_trigger_handler(const struct device *dev, in lps22hh_trigger_handler()
37 static void lis2dw12_trigger_handler(const struct device *dev, in lis2dw12_trigger_handler()
50 static void lsm6dso_acc_trig_handler(const struct device *dev, in lsm6dso_acc_trig_handler()
57 static void lsm6dso_gyr_trig_handler(const struct device *dev, in lsm6dso_gyr_trig_handler()
64 static void lsm6dso_temp_trig_handler(const struct device *dev, in lsm6dso_temp_trig_handler()
75 static void stts751_trigger_handler(const struct device *dev, in stts751_trigger_handler()
85 static void iis3dhhc_trigger_handler(const struct device *dev, in iis3dhhc_trigger_handler()
93 static void lps22hh_config(const struct device *lps22hh) in lps22hh_config()
116 static void lis2dw12_config(const struct device *lis2dw12) in lis2dw12_config()
147 static void lsm6dso_config(const struct device *lsm6dso) in lsm6dso_config()
[all …]
/Zephyr-latest/doc/hardware/peripherals/
Di3c.rst32 separate structures to keep track of device status. This can be done
33 at build time, for example, by creating arrays of device descriptors
43 create arrays of device descriptors corresponding to the devicetree
47 controller and the I3C bus inside the device driver
50 #. Initialize the data structure of the I3C controller device
51 driver instance. The usual device defining macros such as
56 structures to aid in address assignments and device list management.
61 * Initialize the device descriptors if needed by the controller
87 #. Do ``SETDASA`` to assign a dynamic address using the static address of the device
94 the relevant fields in the I3C target device descriptor
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dpwm.h100 const struct device *dev;
391 typedef void (*pwm_capture_callback_handler_t)(const struct device *dev,
402 typedef int (*pwm_set_cycles_t)(const struct device *dev, uint32_t channel,
410 typedef int (*pwm_get_cycles_per_sec_t)(const struct device *dev,
418 typedef int (*pwm_configure_capture_t)(const struct device *dev,
427 typedef int (*pwm_enable_capture_t)(const struct device *dev, uint32_t channel);
433 typedef int (*pwm_disable_capture_t)(const struct device *dev,
479 __syscall int pwm_set_cycles(const struct device *dev, uint32_t channel,
483 static inline int z_impl_pwm_set_cycles(const struct device *dev, in z_impl_pwm_set_cycles()
508 __syscall int pwm_get_cycles_per_sec(const struct device *dev, uint32_t channel,
[all …]
Dgpio.h291 const struct device *port;
727 typedef void (*gpio_callback_handler_t)(const struct device *port,
794 int (*pin_configure)(const struct device *port, gpio_pin_t pin,
797 int (*pin_get_config)(const struct device *port, gpio_pin_t pin,
800 int (*port_get_raw)(const struct device *port,
802 int (*port_set_masked_raw)(const struct device *port,
805 int (*port_set_bits_raw)(const struct device *port,
807 int (*port_clear_bits_raw)(const struct device *port,
809 int (*port_toggle_bits)(const struct device *port,
811 int (*pin_interrupt_configure)(const struct device *port,
[all …]
Dcharger.h308 typedef int (*charger_get_property_t)(const struct device *dev, const charger_prop_t prop,
317 typedef int (*charger_set_property_t)(const struct device *dev, const charger_prop_t prop,
326 typedef int (*charger_charge_enable_t)(const struct device *dev, const bool enable);
349 __syscall int charger_get_prop(const struct device *dev, const charger_prop_t prop,
352 static inline int z_impl_charger_get_prop(const struct device *dev, const charger_prop_t prop, in z_impl_charger_get_prop()
370 __syscall int charger_set_prop(const struct device *dev, const charger_prop_t prop,
373 static inline int z_impl_charger_set_prop(const struct device *dev, const charger_prop_t prop, in z_impl_charger_set_prop()
391 __syscall int charger_charge_enable(const struct device *dev, const bool enable);
393 static inline int z_impl_charger_charge_enable(const struct device *dev, const bool enable) in z_impl_charger_charge_enable()
/Zephyr-latest/drivers/serial/
Duart_max32.c22 const struct device *clock;
41 static void uart_max32_isr(const struct device *dev);
44 static void api_poll_out(const struct device *dev, unsigned char c) in api_poll_out()
51 static int api_poll_in(const struct device *dev, unsigned char *c) in api_poll_in()
66 static int api_err_check(const struct device *dev) in api_err_check()
89 static int api_configure(const struct device *dev, const struct uart_config *uart_cfg) in api_configure()
198 static int api_config_get(const struct device *dev, struct uart_config *uart_cfg) in api_config_get()
210 static int uart_max32_init(const struct device *dev) in uart_max32_init()
258 static int api_fifo_fill(const struct device *dev, const uint8_t *tx_data, int size) in api_fifo_fill()
268 static int api_fifo_read(const struct device *dev, uint8_t *rx_data, const int size) in api_fifo_read()
[all …]
Duart_lpc11u6x.c17 static int lpc11u6x_uart0_poll_in(const struct device *dev, unsigned char *c) in lpc11u6x_uart0_poll_in()
29 static void lpc11u6x_uart0_poll_out(const struct device *dev, unsigned char c) in lpc11u6x_uart0_poll_out()
38 static int lpc11u6x_uart0_err_check(const struct device *dev) in lpc11u6x_uart0_err_check()
77 static void lpc11u6x_uart0_config_baudrate(const struct device *clk_drv, in lpc11u6x_uart0_config_baudrate()
101 static int lpc11u6x_uart0_configure(const struct device *dev, in lpc11u6x_uart0_configure()
182 static int lpc11u6x_uart0_config_get(const struct device *dev, in lpc11u6x_uart0_config_get()
198 static int lpc11u6x_uart0_fifo_fill(const struct device *dev, in lpc11u6x_uart0_fifo_fill()
212 static int lpc11u6x_uart0_fifo_read(const struct device *dev, uint8_t *data, in lpc11u6x_uart0_fifo_read()
225 static void lpc11u6x_uart0_irq_tx_enable(const struct device *dev) in lpc11u6x_uart0_irq_tx_enable()
238 static void lpc11u6x_uart0_irq_tx_disable(const struct device *dev) in lpc11u6x_uart0_irq_tx_disable()
[all …]
/Zephyr-latest/tests/net/ptp/clock/src/
Dmain.c82 const struct device *ptp_clock;
91 const struct device *dev = net_if_get_device(iface); in eth_iface_init()
101 static int eth_tx(const struct device *dev, struct net_pkt *pkt) in eth_tx()
122 static enum ethernet_hw_caps eth_capabilities(const struct device *dev) in eth_capabilities()
127 static const struct device *eth_get_ptp_clock(const struct device *dev) in eth_get_ptp_clock()
153 static int eth_init(const struct device *dev) in eth_init()
187 static int my_ptp_clock_set(const struct device *dev, struct net_ptp_time *tm) in my_ptp_clock_set()
201 static int my_ptp_clock_get(const struct device *dev, struct net_ptp_time *tm) in my_ptp_clock_get()
211 static int my_ptp_clock_adjust(const struct device *dev, int increment) in my_ptp_clock_adjust()
221 static int my_ptp_clock_rate_adjust(const struct device *dev, double ratio) in my_ptp_clock_rate_adjust()
[all …]
/Zephyr-latest/tests/subsys/pm/power_mgmt/src/
Ddummy_driver.c13 static int dummy_open(const struct device *dev) in dummy_open()
18 static int dummy_close(const struct device *dev) in dummy_close()
23 static int dummy_device_pm_action(const struct device *dev, in dummy_device_pm_action()
34 int dummy_init(const struct device *dev) in dummy_init()
/Zephyr-latest/drivers/sensor/ti/fdc2x1x/
Dfdc2x1x.c22 static int fdc2x1x_init_config(const struct device *dev);
30 static void fdc2x1x_raw_to_freq(const struct device *dev, in fdc2x1x_raw_to_freq()
54 static void fdc2x1x_raw_to_capacitance(const struct device *dev, in fdc2x1x_raw_to_capacitance()
72 static int fdc2x1x_bus_access(const struct device *dev, uint8_t reg, in fdc2x1x_bus_access()
100 static int fdc2x1x_reg_read(const struct device *dev, in fdc2x1x_reg_read()
120 static int fdc2x1x_reg_write(const struct device *dev, in fdc2x1x_reg_write()
142 int fdc2x1x_reg_write_mask(const struct device *dev, in fdc2x1x_reg_write_mask()
170 static int fdc2x1x_set_fin_sel(const struct device *dev, uint8_t chx, in fdc2x1x_set_fin_sel()
186 static int fdc2x1x_set_fref_divider(const struct device *dev, uint8_t chx, in fdc2x1x_set_fref_divider()
202 static int fdc2x1x_set_idrive(const struct device *dev, uint8_t chx, in fdc2x1x_set_idrive()
[all …]
/Zephyr-latest/drivers/pwm/
Dpwm_test.c18 static int vnd_pwm_set_cycles(const struct device *dev, uint32_t channel, in vnd_pwm_set_cycles()
26 static int vnd_pwm_configure_capture(const struct device *dev, uint32_t channel, in vnd_pwm_configure_capture()
34 static int vnd_pwm_enable_capture(const struct device *dev, uint32_t channel) in vnd_pwm_enable_capture()
39 static int vnd_pwm_disable_capture(const struct device *dev, uint32_t channel) in vnd_pwm_disable_capture()
45 static int vnd_pwm_get_cycles_per_sec(const struct device *dev, in vnd_pwm_get_cycles_per_sec()
/Zephyr-latest/include/zephyr/drivers/sensor/
Dccs811.h83 const struct ccs811_result_type *ccs811_result(const struct device *dev);
107 int ccs811_configver_fetch(const struct device *dev,
124 int ccs811_baseline_fetch(const struct device *dev);
138 int ccs811_baseline_update(const struct device *dev, uint16_t baseline);
154 int ccs811_envdata_update(const struct device *dev,
/Zephyr-latest/drivers/sensor/sensirion/sht3xd/
Dsht3xd.h60 const struct device *dev;
83 int sht3xd_write_command(const struct device *dev, uint16_t cmd);
85 int sht3xd_write_reg(const struct device *dev, uint16_t cmd, uint16_t val);
87 int sht3xd_attr_set(const struct device *dev,
92 int sht3xd_trigger_set(const struct device *dev,
96 int sht3xd_init_interrupt(const struct device *dev);
/Zephyr-latest/include/zephyr/input/
Dinput.h38 const struct device *dev;
70 int input_report(const struct device *dev,
80 static inline int input_report_key(const struct device *dev, in input_report_key()
92 static inline int input_report_rel(const struct device *dev, in input_report_rel()
104 static inline int input_report_abs(const struct device *dev, in input_report_abs()
125 const struct device *dev;
/Zephyr-latest/boards/nxp/frdm_mcxn947/
Dboard.cmake8 board_runner_args(jlink "--device=MCXN947_M33_0" "--reset-after-load")
9 board_runner_args(linkserver "--device=MCXN947:FRDM-MCXN947")
11 board_runner_args(linkserver "--override=/device/memory/1/flash-driver=MCXN9xx_S.cfx")
12 board_runner_args(linkserver "--override=/device/memory/1/location=0x10000000")
15 board_runner_args(linkserver "--override=/device/memory/-=\{\"location\":\"0x30000000\",\
17 board_runner_args(linkserver "--override=/device/memory/-=\{\"location\":\"0x30060000\",\
20 board_runner_args(linkserver "--override=/device/memory/-=\{\"location\":\"0x50000000\",\
/Zephyr-latest/drivers/espi/
Despi_mchp_xec_v2.c158 static inline uintptr_t xec_msvw_addr(const struct device *dev, in xec_msvw_addr()
166 static inline uintptr_t xec_smvw_addr(const struct device *dev, in xec_smvw_addr()
175 static int espi_xec_configure(const struct device *dev, struct espi_cfg *cfg) in espi_xec_configure()
267 static bool espi_xec_channel_ready(const struct device *dev, in espi_xec_channel_ready()
294 static int espi_xec_send_vwire(const struct device *dev, in espi_xec_send_vwire()
338 static int espi_xec_receive_vwire(const struct device *dev, in espi_xec_receive_vwire()
373 static int espi_xec_send_oob(const struct device *dev, in espi_xec_send_oob()
421 static int espi_xec_receive_oob(const struct device *dev, in espi_xec_receive_oob()
464 static int espi_xec_flash_read(const struct device *dev, in espi_xec_flash_read()
513 static int espi_xec_flash_write(const struct device *dev, in espi_xec_flash_write()
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_nct38xx.c24 const struct device *mfd;
26 const struct device **sub_gpio_dev;
29 const struct device *alert_dev;
35 const struct device *dev;
42 void nct38xx_gpio_alert_handler(const struct device *dev) in nct38xx_gpio_alert_handler()
51 static int nct38xx_init_interrupt(const struct device *dev) in nct38xx_init_interrupt()
94 static int nct38xx_gpio_init(const struct device *dev) in nct38xx_gpio_init()
116 static const struct device *sub_gpio_dev_##inst[] = { \
Dgpio_rt1718s.h62 const struct device *gpio_port_dev;
68 const struct device *dev;
86 static inline int rt1718s_reg_read_byte(const struct device *dev, uint8_t reg_addr, uint8_t *val) in rt1718s_reg_read_byte()
103 static inline int rt1718s_reg_burst_read(const struct device *dev, uint8_t start_addr, uint8_t *buf, in rt1718s_reg_burst_read()
120 static inline int rt1718s_reg_write_byte(const struct device *dev, uint8_t reg_addr, uint8_t val) in rt1718s_reg_write_byte()
137 static inline int rt1718s_reg_burst_write(const struct device *dev, uint8_t start_addr, in rt1718s_reg_burst_write()
155 static inline int rt1718s_reg_update(const struct device *dev, uint8_t reg_addr, uint8_t reg_val, in rt1718s_reg_update()
170 void rt1718s_gpio_alert_handler(const struct device *dev);
/Zephyr-latest/drivers/mbox/
Dmbox_ivshmem.c26 const struct device *ivshmem_dev;
42 const struct device *dev = (const struct device *)arg; in ivshmem_mbox_event_loop_thread()
68 static int ivshmem_mbox_send(const struct device *dev, mbox_channel_id_t channel, in ivshmem_mbox_send()
80 static int ivshmem_mbox_register_callback(const struct device *dev, mbox_channel_id_t channel, in ivshmem_mbox_register_callback()
102 static int ivshmem_mbox_mtu_get(const struct device *dev) in ivshmem_mbox_mtu_get()
109 static uint32_t ivshmem_mbox_max_channels_get(const struct device *dev) in ivshmem_mbox_max_channels_get()
116 static int ivshmem_mbox_set_enabled(const struct device *dev, mbox_channel_id_t channel, in ivshmem_mbox_set_enabled()
126 static int ivshmem_mbox_init(const struct device *dev) in ivshmem_mbox_init()
/Zephyr-latest/tests/net/ieee802154/l2/src/
Dieee802154_fake_driver.c27 static enum ieee802154_hw_caps fake_get_capabilities(const struct device *dev) in fake_get_capabilities()
32 static int fake_cca(const struct device *dev) in fake_cca()
37 static int fake_set_channel(const struct device *dev, uint16_t channel) in fake_set_channel()
44 static int fake_set_txpower(const struct device *dev, int16_t dbm) in fake_set_txpower()
66 static int fake_tx(const struct device *dev, in fake_tx()
108 static int fake_start(const struct device *dev) in fake_start()
115 static int fake_stop(const struct device *dev) in fake_stop()
126 static int fake_attr_get(const struct device *dev, enum ieee802154_attr attr, in fake_attr_get()
152 static int fake_init(const struct device *dev) in fake_init()
/Zephyr-latest/drivers/ipm/
Dipm_stm32_hsem.c36 void (*irq_config_func)(const struct device *dev);
49 void stm32_hsem_mailbox_ipm_rx_isr(const struct device *dev) in stm32_hsem_mailbox_ipm_rx_isr()
68 static void stm32_hsem_mailbox_irq_config_func(const struct device *dev) in stm32_hsem_mailbox_irq_config_func()
79 int stm32_hsem_mailbox_ipm_send(const struct device *dev, int wait, uint32_t id, in stm32_hsem_mailbox_ipm_send()
109 void stm32_hsem_mailbox_ipm_register_callback(const struct device *dev, in stm32_hsem_mailbox_ipm_register_callback()
119 int stm32_hsem_mailbox_ipm_max_data_size_get(const struct device *dev) in stm32_hsem_mailbox_ipm_max_data_size_get()
127 uint32_t stm32_hsem_mailbox_ipm_max_id_val_get(const struct device *dev) in stm32_hsem_mailbox_ipm_max_id_val_get()
135 int stm32_hsem_mailbox_ipm_set_enabled(const struct device *dev, int enable) in stm32_hsem_mailbox_ipm_set_enabled()
153 static int stm32_hsem_mailbox_init(const struct device *dev) in stm32_hsem_mailbox_init()
157 const struct device *const clk = DEVICE_DT_GET(STM32_CLOCK_CONTROL_NODE); in stm32_hsem_mailbox_init()
/Zephyr-latest/drivers/watchdog/
Dwdt_shell.c34 uint8_t device; member
42 .device = 1,
73 const struct device *dev; in cmd_setup()
75 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_setup()
86 const struct device *dev; in cmd_disable()
88 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_disable()
99 const struct device *dev; in cmd_timeout()
106 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_timeout()
145 const struct device *dev; in cmd_feed()
148 dev = shell_device_get_binding(argv[args_indx.device]); in cmd_feed()
[all …]
/Zephyr-latest/soc/mediatek/mt8xxx/
Dirq.c9 bool intc_mtk_adsp_get_enable(const struct device *dev, int irq);
10 void intc_mtk_adsp_set_enable(const struct device *dev, int irq, bool val);
17 static const struct device *irq_dev(unsigned int *irq_inout) in irq_dev()
50 const struct device *dev = irq_dev(&irq); in z_soc_irq_enable()
61 const struct device *dev = irq_dev(&irq); in z_soc_irq_disable()
/Zephyr-latest/drivers/counter/
Dcounter_gd32_timer.c47 void (*irq_config)(const struct device *dev);
52 static uint32_t get_autoreload_value(const struct device *dev) in get_autoreload_value()
59 static void set_autoreload_value(const struct device *dev, uint32_t value) in set_autoreload_value()
66 static uint32_t get_counter(const struct device *dev) in get_counter()
73 static void set_counter(const struct device *dev, uint32_t value) in set_counter()
80 static void set_software_event_gen(const struct device *dev, uint8_t evt) in set_software_event_gen()
87 static void set_prescaler(const struct device *dev, uint16_t prescaler) in set_prescaler()
94 static void set_compare_value(const struct device *dev, uint16_t chan, in set_compare_value()
115 static void interrupt_enable(const struct device *dev, uint32_t interrupt) in interrupt_enable()
122 static void interrupt_disable(const struct device *dev, uint32_t interrupt) in interrupt_disable()
[all …]
Dcounter_smartbond_timer.c56 void (*irq_config_func)(const struct device *dev);
62 static void counter_smartbond_pm_policy_state_lock_get(const struct device *dev) in counter_smartbond_pm_policy_state_lock_get()
68 static void counter_smartbond_pm_policy_state_lock_put(const struct device *dev) in counter_smartbond_pm_policy_state_lock_put()
85 static inline bool counter_smartbond_is_sleep_allowed(const struct device *dev) in counter_smartbond_is_sleep_allowed()
94 static uint8_t counter_smartbond_pdc_trigger_get(const struct device *dev) in counter_smartbond_pdc_trigger_get()
117 static void counter_smartbond_pdc_add(const struct device *dev) in counter_smartbond_pdc_add()
129 static void counter_smartbond_pdc_del(const struct device *dev) in counter_smartbond_pdc_del()
137 static int counter_smartbond_start(const struct device *dev) in counter_smartbond_start()
162 static int counter_smartbond_stop(const struct device *dev) in counter_smartbond_stop()
185 static uint32_t counter_smartbond_get_top_value(const struct device *dev) in counter_smartbond_get_top_value()
[all …]

1...<<11121314151617181920>>...198