Home
last modified time | relevance | path

Searched refs:device (Results 51 – 75 of 3926) sorted by relevance

12345678910>>...158

/Zephyr-latest/include/zephyr/drivers/
Dregulator.h62 typedef int (*regulator_dvs_state_set_t)(const struct device *dev,
65 typedef int (*regulator_ship_mode_t)(const struct device *dev);
73 typedef int (*regulator_enable_t)(const struct device *dev);
74 typedef int (*regulator_disable_t)(const struct device *dev);
75 typedef unsigned int (*regulator_count_voltages_t)(const struct device *dev);
76 typedef int (*regulator_list_voltage_t)(const struct device *dev,
78 typedef int (*regulator_set_voltage_t)(const struct device *dev, int32_t min_uv,
80 typedef int (*regulator_get_voltage_t)(const struct device *dev,
82 typedef unsigned int (*regulator_count_current_limits_t)(const struct device *dev);
83 typedef int (*regulator_list_current_limit_t)(const struct device *dev,
[all …]
Dsdhc.h256 typedef void (*sdhc_interrupt_cb_t)(const struct device *dev, int reason,
260 int (*reset)(const struct device *dev);
261 int (*request)(const struct device *dev,
264 int (*set_io)(const struct device *dev, struct sdhc_io *ios);
265 int (*get_card_present)(const struct device *dev);
266 int (*execute_tuning)(const struct device *dev);
267 int (*card_busy)(const struct device *dev);
268 int (*get_host_props)(const struct device *dev,
270 int (*enable_interrupt)(const struct device *dev,
273 int (*disable_interrupt)(const struct device *dev, int sources);
[all …]
Drtc.h81 typedef void (*rtc_update_callback)(const struct device *dev, void *user_data);
91 typedef void (*rtc_alarm_callback)(const struct device *dev, uint16_t id, void *user_data);
103 typedef int (*rtc_api_set_time)(const struct device *dev, const struct rtc_time *timeptr);
109 typedef int (*rtc_api_get_time)(const struct device *dev, struct rtc_time *timeptr);
115 typedef int (*rtc_api_alarm_get_supported_fields)(const struct device *dev, uint16_t id,
122 typedef int (*rtc_api_alarm_set_time)(const struct device *dev, uint16_t id, uint16_t mask,
129 typedef int (*rtc_api_alarm_get_time)(const struct device *dev, uint16_t id, uint16_t *mask,
136 typedef int (*rtc_api_alarm_is_pending)(const struct device *dev, uint16_t id);
142 typedef int (*rtc_api_alarm_set_callback)(const struct device *dev, uint16_t id,
149 typedef int (*rtc_api_update_set_callback)(const struct device *dev,
[all …]
Dtee.h251 const struct device *dev; /**< [out] pointer to the device driver structure */
264 typedef int (*tee_get_version_t)(const struct device *dev, struct tee_version_info *info);
273 typedef int (*tee_open_session_t)(const struct device *dev, struct tee_open_session_arg *arg,
283 typedef int (*tee_close_session_t)(const struct device *dev, uint32_t session_id);
292 typedef int (*tee_cancel_t)(const struct device *dev, uint32_t session_id, uint32_t cancel_id);
301 typedef int (*tee_invoke_func_t)(const struct device *dev, struct tee_invoke_func_arg *arg,
310 typedef int (*tee_shm_register_t)(const struct device *dev, struct tee_shm *shm);
319 typedef int (*tee_shm_unregister_t)(const struct device *dev, struct tee_shm *shm);
328 typedef int (*tee_suppl_recv_t)(const struct device *dev, uint32_t *func, unsigned int *num_params,
338 typedef int (*tee_suppl_send_t)(const struct device *dev, unsigned int ret, unsigned int num_params,
[all …]
Dgnss.h47 typedef int (*gnss_set_fix_rate_t)(const struct device *dev, uint32_t fix_interval_ms);
50 typedef int (*gnss_get_fix_rate_t)(const struct device *dev, uint32_t *fix_interval_ms);
65 typedef int (*gnss_set_navigation_mode_t)(const struct device *dev,
69 typedef int (*gnss_get_navigation_mode_t)(const struct device *dev,
96 typedef int (*gnss_set_enabled_systems_t)(const struct device *dev, gnss_systems_t systems);
99 typedef int (*gnss_get_enabled_systems_t)(const struct device *dev, gnss_systems_t *systems);
102 typedef int (*gnss_get_supported_systems_t)(const struct device *dev, gnss_systems_t *systems);
105 typedef int (*gnss_get_latest_timepulse_t)(const struct device *dev, k_ticks_t *timestamp);
188 typedef void (*gnss_data_callback_t)(const struct device *dev, const struct gnss_data *data);
193 const struct device *dev;
[all …]
Dhwspinlock.h32 typedef int (*hwspinlock_api_trylock)(const struct device *dev, uint32_t id);
38 typedef void (*hwspinlock_api_lock)(const struct device *dev, uint32_t id);
44 typedef void (*hwspinlock_api_unlock)(const struct device *dev, uint32_t id);
50 typedef uint32_t (*hwspinlock_api_get_max_id)(const struct device *dev);
74 __syscall int hwspinlock_trylock(const struct device *dev, uint32_t id);
76 static inline int z_impl_hwspinlock_trylock(const struct device *dev, uint32_t id) in z_impl_hwspinlock_trylock()
97 __syscall void hwspinlock_lock(const struct device *dev, uint32_t id);
99 static inline void z_impl_hwspinlock_lock(const struct device *dev, uint32_t id) in z_impl_hwspinlock_lock()
118 __syscall void hwspinlock_unlock(const struct device *dev, uint32_t id);
120 static inline void z_impl_hwspinlock_unlock(const struct device *dev, uint32_t id) in z_impl_hwspinlock_unlock()
[all …]
Dkscan.h48 typedef void (*kscan_callback_t)(const struct device *dev, uint32_t row,
60 typedef int (*kscan_config_t)(const struct device *dev,
62 typedef int (*kscan_disable_callback_t)(const struct device *dev);
63 typedef int (*kscan_enable_callback_t)(const struct device *dev);
85 __syscall int kscan_config(const struct device *dev,
88 static inline int z_impl_kscan_config(const struct device *dev, in z_impl_kscan_config()
104 __syscall int kscan_enable_callback(const struct device *dev);
106 static inline int z_impl_kscan_enable_callback(const struct device *dev) in z_impl_kscan_enable_callback()
126 __syscall int kscan_disable_callback(const struct device *dev);
128 static inline int z_impl_kscan_disable_callback(const struct device *dev) in z_impl_kscan_disable_callback()
/Zephyr-latest/drivers/dma/
Ddma_intel_adsp_hda.h33 int intel_adsp_hda_dma_host_in_config(const struct device *dev,
37 int intel_adsp_hda_dma_host_out_config(const struct device *dev,
41 int intel_adsp_hda_dma_link_in_config(const struct device *dev,
45 int intel_adsp_hda_dma_link_out_config(const struct device *dev,
49 int intel_adsp_hda_dma_link_reload(const struct device *dev, uint32_t channel,
52 int intel_adsp_hda_dma_host_reload(const struct device *dev, uint32_t channel,
55 int intel_adsp_hda_dma_status(const struct device *dev, uint32_t channel,
58 bool intel_adsp_hda_dma_chan_filter(const struct device *dev, int channel,
61 int intel_adsp_hda_dma_start(const struct device *dev, uint32_t channel);
63 int intel_adsp_hda_dma_stop(const struct device *dev, uint32_t channel);
[all …]
/Zephyr-latest/include/zephyr/drivers/ethernet/
Deth_adin2111.h30 int eth_adin2111_lock(const struct device *dev, k_timeout_t timeout);
41 int eth_adin2111_unlock(const struct device *dev);
56 int eth_adin2111_reg_write(const struct device *dev, const uint16_t reg, uint32_t val);
71 int eth_adin2111_reg_read(const struct device *dev, const uint16_t reg, uint32_t *val);
87 int eth_adin2111_reg_update(const struct device *dev, const uint16_t reg,
102 int eth_adin2111_sw_reset(const struct device *dev, uint16_t delay);
116 int eth_adin2111_mac_reset(const struct device *dev);
131 int eth_adin2111_broadcast_filter(const struct device *dev, bool enable);
141 struct net_if *eth_adin2111_get_iface(const struct device *dev, const uint16_t port_idx);
/Zephyr-latest/include/zephyr/drivers/adc/
Dlmp90xxx.h16 int lmp90xxx_gpio_set_output(const struct device *dev, uint8_t pin);
18 int lmp90xxx_gpio_set_input(const struct device *dev, uint8_t pin);
20 int lmp90xxx_gpio_set_pin_value(const struct device *dev, uint8_t pin,
23 int lmp90xxx_gpio_get_pin_value(const struct device *dev, uint8_t pin,
26 int lmp90xxx_gpio_port_get_raw(const struct device *dev,
29 int lmp90xxx_gpio_port_set_masked_raw(const struct device *dev,
33 int lmp90xxx_gpio_port_set_bits_raw(const struct device *dev,
36 int lmp90xxx_gpio_port_clear_bits_raw(const struct device *dev,
39 int lmp90xxx_gpio_port_toggle_bits(const struct device *dev,
Dads114s0x.h13 int ads114s0x_gpio_set_output(const struct device *dev, uint8_t pin, bool initial_value);
15 int ads114s0x_gpio_set_input(const struct device *dev, uint8_t pin);
17 int ads114s0x_gpio_deconfigure(const struct device *dev, uint8_t pin);
19 int ads114s0x_gpio_set_pin_value(const struct device *dev, uint8_t pin,
22 int ads114s0x_gpio_get_pin_value(const struct device *dev, uint8_t pin,
25 int ads114s0x_gpio_port_get_raw(const struct device *dev,
28 int ads114s0x_gpio_port_set_masked_raw(const struct device *dev,
32 int ads114s0x_gpio_port_toggle_bits(const struct device *dev,
/Zephyr-latest/include/zephyr/retention/
Dretention.h35 typedef ssize_t (*retention_size_api)(const struct device *dev);
36 typedef int (*retention_is_valid_api)(const struct device *dev);
37 typedef int (*retention_read_api)(const struct device *dev, off_t offset, uint8_t *buffer,
39 typedef int (*retention_write_api)(const struct device *dev, off_t offset,
41 typedef int (*retention_clear_api)(const struct device *dev);
59 ssize_t retention_size(const struct device *dev);
71 int retention_is_valid(const struct device *dev);
84 int retention_read(const struct device *dev, off_t offset, uint8_t *buffer, size_t size);
98 int retention_write(const struct device *dev, off_t offset, const uint8_t *buffer, size_t size);
107 int retention_clear(const struct device *dev);
/Zephyr-latest/drivers/can/
Dcan_handlers.c10 static int z_vrfy_can_calc_timing(const struct device *dev, struct can_timing *res, in z_vrfy_can_calc_timing()
26 static inline int z_vrfy_can_set_timing(const struct device *dev, in z_vrfy_can_set_timing()
38 static inline int z_vrfy_can_get_core_clock(const struct device *dev, in z_vrfy_can_get_core_clock()
48 static inline uint32_t z_vrfy_can_get_bitrate_min(const struct device *dev) in z_vrfy_can_get_bitrate_min()
56 static inline uint32_t z_vrfy_can_get_bitrate_max(const struct device *dev) in z_vrfy_can_get_bitrate_max()
64 static inline const struct can_timing *z_vrfy_can_get_timing_min(const struct device *dev) in z_vrfy_can_get_timing_min()
72 static inline const struct can_timing *z_vrfy_can_get_timing_max(const struct device *dev) in z_vrfy_can_get_timing_max()
82 static int z_vrfy_can_calc_timing_data(const struct device *dev, struct can_timing *res, in z_vrfy_can_calc_timing_data()
98 static inline const struct can_timing *z_vrfy_can_get_timing_data_min(const struct device *dev) in z_vrfy_can_get_timing_data_min()
106 static inline const struct can_timing *z_vrfy_can_get_timing_data_max(const struct device *dev) in z_vrfy_can_get_timing_data_max()
[all …]
/Zephyr-latest/drivers/misc/timeaware_gpio/
Dtimeaware_gpio_handlers.c9 static inline int z_vrfy_tgpio_port_get_time(const struct device *port, uint64_t *current_time) in z_vrfy_tgpio_port_get_time()
13 return z_impl_tgpio_port_get_time((const struct device *)port, (uint64_t *)current_time); in z_vrfy_tgpio_port_get_time()
17 static inline int z_vrfy_tgpio_port_get_cycles_per_second(const struct device *port, in z_vrfy_tgpio_port_get_cycles_per_second()
22 return z_impl_tgpio_port_get_cycles_per_second((const struct device *)port, in z_vrfy_tgpio_port_get_cycles_per_second()
27 static inline int z_vrfy_tgpio_pin_periodic_output(const struct device *port, uint32_t pin, in z_vrfy_tgpio_pin_periodic_output()
32 return z_impl_tgpio_pin_periodic_output((const struct device *)port, pin, start_time, in z_vrfy_tgpio_pin_periodic_output()
37 static inline int z_vrfy_tgpio_pin_disable(const struct device *port, uint32_t pin) in z_vrfy_tgpio_pin_disable()
40 return z_impl_tgpio_pin_disable((const struct device *)port, pin); in z_vrfy_tgpio_pin_disable()
44 static inline int z_vrfy_tgpio_pin_config_ext_timestamp(const struct device *port, uint32_t pin, in z_vrfy_tgpio_pin_config_ext_timestamp()
48 return z_impl_tgpio_pin_config_ext_timestamp((const struct device *)port, pin, in z_vrfy_tgpio_pin_config_ext_timestamp()
[all …]
/Zephyr-latest/drivers/regulator/
Dregulator_fake.c25 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_enable, const struct device *);
26 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_disable, const struct device *);
28 const struct device *);
29 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_list_voltage, const struct device *,
31 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_set_voltage, const struct device *,
33 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_get_voltage, const struct device *,
36 const struct device *, int32_t, int32_t);
38 const struct device *, int32_t *);
39 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_set_mode, const struct device *,
41 DEFINE_FAKE_VALUE_FUNC(int, regulator_fake_get_mode, const struct device *,
[all …]
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/
Dintel_vtd.h11 typedef int (*vtd_alloc_entries_f)(const struct device *dev,
14 typedef uint32_t (*vtd_remap_msi_f)(const struct device *dev,
18 typedef int (*vtd_remap_f)(const struct device *dev,
24 typedef int (*vtd_set_irte_vector_f)(const struct device *dev,
28 typedef int (*vtd_get_irte_by_vector_f)(const struct device *dev,
31 typedef uint16_t (*vtd_get_irte_vector_f)(const struct device *dev,
34 typedef int (*vtd_set_irte_irq_f)(const struct device *dev,
38 typedef int (*vtd_get_irte_by_irq_f)(const struct device *dev,
41 typedef void (*vtd_set_irte_msi_f)(const struct device *dev,
45 typedef bool (*vtd_irte_is_msi_f)(const struct device *dev,
[all …]
/Zephyr-latest/doc/services/pm/
Ddevice_runtime.rst1 .. _pm-device-runtime:
9 The device runtime power management (PM) framework is an active power management
12 enabled by setting :kconfig:option:`CONFIG_PM_DEVICE_RUNTIME`. In this model the device
13 driver is responsible to indicate when it needs the device and when it does not.
14 This information is used to determine when to suspend or resume a device based
17 When device runtime power management is enabled on a device, its state will be
19 not used. On the first device request, it will be resumed and so put into the
20 :c:enumerator:`PM_DEVICE_STATE_ACTIVE` state. The device will remain in this
21 state until it is no longer used. At this point, the device will be suspended
22 until the next device request. If the suspension is performed synchronously the
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_npcx_controller.h21 void npcx_i2c_ctrl_mutex_lock(const struct device *i2c_dev);
28 void npcx_i2c_ctrl_mutex_unlock(const struct device *i2c_dev);
41 int npcx_i2c_ctrl_configure(const struct device *i2c_dev, uint32_t dev_config);
53 int npcx_i2c_ctrl_get_speed(const struct device *i2c_dev, uint32_t *speed);
69 int npcx_i2c_ctrl_transfer(const struct device *i2c_dev, struct i2c_msg *msgs,
81 int npcx_i2c_ctrl_recover_bus(const struct device *dev);
93 int npcx_i2c_ctrl_target_register(const struct device *i2c_dev,
106 int npcx_i2c_ctrl_target_unregister(const struct device *i2c_dev,
/Zephyr-latest/drivers/ieee802154/
Dieee802154_rf2xx_iface.h17 void rf2xx_iface_phy_rst(const struct device *dev);
24 void rf2xx_iface_phy_tx_start(const struct device *dev);
37 uint8_t rf2xx_iface_reg_read(const struct device *dev,
50 void rf2xx_iface_reg_write(const struct device *dev,
64 uint8_t rf2xx_iface_bit_read(const struct device *dev,
78 void rf2xx_iface_bit_write(const struct device *dev,
93 void rf2xx_iface_frame_read(const struct device *dev,
106 void rf2xx_iface_frame_write(const struct device *dev,
120 void rf2xx_iface_sram_read(const struct device *dev,
/Zephyr-latest/drivers/auxdisplay/
Dauxdisplay_handlers.c10 static inline int z_vrfy_auxdisplay_display_on(const struct device *dev) in z_vrfy_auxdisplay_display_on()
17 static inline int z_vrfy_auxdisplay_display_off(const struct device *dev) in z_vrfy_auxdisplay_display_off()
24 static inline int z_vrfy_auxdisplay_cursor_set_enabled(const struct device *dev, bool enabled) in z_vrfy_auxdisplay_cursor_set_enabled()
31 static inline int z_vrfy_auxdisplay_position_blinking_set_enabled(const struct device *dev, in z_vrfy_auxdisplay_position_blinking_set_enabled()
39 static inline int z_vrfy_auxdisplay_cursor_shift_set(const struct device *dev, uint8_t direction, in z_vrfy_auxdisplay_cursor_shift_set()
47 static inline int z_vrfy_auxdisplay_cursor_position_set(const struct device *dev, in z_vrfy_auxdisplay_cursor_position_set()
56 static inline int z_vrfy_auxdisplay_cursor_position_get(const struct device *dev, int16_t *x, in z_vrfy_auxdisplay_cursor_position_get()
64 static inline int z_vrfy_auxdisplay_display_position_set(const struct device *dev, in z_vrfy_auxdisplay_display_position_set()
73 static inline int z_vrfy_auxdisplay_display_position_get(const struct device *dev, int16_t *x, in z_vrfy_auxdisplay_display_position_get()
81 static inline int z_vrfy_auxdisplay_capabilities_get(const struct device *dev, in z_vrfy_auxdisplay_capabilities_get()
[all …]
/Zephyr-latest/include/zephyr/drivers/serial/
Duart_emul.h30 typedef void (*uart_emul_callback_tx_data_ready_t)(const struct device *dev, size_t size,
43 void uart_emul_callback_tx_data_ready_set(const struct device *dev,
55 uint32_t uart_emul_put_rx_data(const struct device *dev, const uint8_t *data, size_t size);
66 uint32_t uart_emul_get_tx_data(const struct device *dev, uint8_t *data, size_t size);
75 uint32_t uart_emul_flush_rx_data(const struct device *dev);
84 uint32_t uart_emul_flush_tx_data(const struct device *dev);
92 void uart_emul_set_errors(const struct device *dev, int errors);
100 void uart_emul_set_release_buffer_on_timeout(const struct device *dev, bool release_on_timeout);
/Zephyr-latest/include/zephyr/usb/class/
Dusbd_uac2.h54 void (*sof_cb)(const struct device *dev, void *user_data);
66 void (*terminal_update_cb)(const struct device *dev, uint8_t terminal,
82 void *(*get_recv_buf)(const struct device *dev, uint8_t terminal,
96 void (*data_recv_cb)(const struct device *dev, uint8_t terminal,
109 void (*buf_release_cb)(const struct device *dev, uint8_t terminal,
126 uint32_t (*feedback_cb)(const struct device *dev, uint8_t terminal,
142 uint32_t (*get_sample_rate)(const struct device *dev, uint8_t clock_id,
159 int (*set_sample_rate)(const struct device *dev, uint8_t clock_id,
170 void usbd_uac2_set_ops(const struct device *dev,
186 int usbd_uac2_send(const struct device *dev, uint8_t terminal,
/Zephyr-latest/include/zephyr/drivers/rtc/
Dmaxim_ds3231.h230 typedef void (*maxim_ds3231_alarm_callback_handler_t)(const struct device *dev,
247 typedef void (*maxim_ds3231_notify_callback)(const struct device *dev,
360 static inline uint32_t maxim_ds3231_read_syncclock(const struct device *dev) in maxim_ds3231_read_syncclock()
373 static inline uint32_t maxim_ds3231_syncclock_frequency(const struct device *dev) in maxim_ds3231_syncclock_frequency()
395 int maxim_ds3231_ctrl_update(const struct device *dev,
428 int maxim_ds3231_stat_update(const struct device *dev,
450 int maxim_ds3231_get_alarm(const struct device *dev,
474 int maxim_ds3231_set_alarm(const struct device *dev,
504 int maxim_ds3231_synchronize(const struct device *dev,
522 __syscall int maxim_ds3231_req_syncpoint(const struct device *dev,
[all …]
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/
Dnet_if.h26 int nrf_wifi_if_start_zep(const struct device *dev);
28 int nrf_wifi_if_stop_zep(const struct device *dev);
30 int nrf_wifi_if_set_config_zep(const struct device *dev,
34 int nrf_wifi_if_get_config_zep(const struct device *dev,
38 enum ethernet_hw_caps nrf_wifi_if_caps_get(const struct device *dev);
40 int nrf_wifi_if_send(const struct device *dev,
56 int nrf_wifi_stats_get(const struct device *dev,
59 struct net_stats_eth *nrf_wifi_eth_stats_get(const struct device *dev);
65 int nrf_wifi_stats_reset(const struct device *dev);
/Zephyr-latest/samples/drivers/uart/native_tty/
DREADME.rst55 Device uart sent: "Hello from device uart, num 9"
56 Device uart2 received: "Hello from device uart, num 9"
57 Device uart sent: "Hello from device uart, num 8"
58 Device uart2 received: "Hello from device uart, num 8"
59 Device uart sent: "Hello from device uart, num 7"
60 Device uart2 received: "Hello from device uart, num 7"
61 Device uart sent: "Hello from device uart, num 6"
62 Device uart2 received: "Hello from device uart, num 6"
63 Device uart sent: "Hello from device uart, num 5"
64 Device uart2 received: "Hello from device uart, num 5"
[all …]

12345678910>>...158