Home
last modified time | relevance | path

Searched refs:device (Results 326 – 350 of 4950) sorted by relevance

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

/Zephyr-latest/include/zephyr/
Ddevice.h350 static const struct device DEVICE_NAME_GET(dev_id)
411 struct device { struct
457 static inline device_handle_t device_handle_get(const struct device *dev) in device_handle_get()
460 STRUCT_SECTION_START_EXTERN(device); in device_handle_get()
466 ret = 1 + (device_handle_t)(dev - STRUCT_SECTION_START(device)); in device_handle_get()
480 static inline const struct device *
483 STRUCT_SECTION_START_EXTERN(device); in device_from_handle()
484 const struct device *dev = NULL; in device_from_handle()
487 STRUCT_SECTION_COUNT(device, &numdev); in device_from_handle()
490 dev = &STRUCT_SECTION_START(device)[dev_handle - 1]; in device_from_handle()
[all …]
/Zephyr-latest/drivers/stepper/
Dgpio_stepper_controller.c32 const struct device *dev;
47 static int stepper_motor_set_coil_charge(const struct device *dev) in stepper_motor_set_coil_charge()
59 static void increment_coil_charge(const struct device *dev) in increment_coil_charge()
70 static void decrement_coil_charge(const struct device *dev) in decrement_coil_charge()
81 static int power_down_coils(const struct device *dev) in power_down_coils()
96 static void update_coil_charge(const struct device *dev) in update_coil_charge()
127 static void update_direction_from_step_count(const struct device *dev) in update_direction_from_step_count()
140 static void position_mode_task(const struct device *dev) in position_mode_task()
151 static void velocity_mode_task(const struct device *dev) in velocity_mode_task()
181 static int gpio_stepper_move_by(const struct device *dev, int32_t micro_steps) in gpio_stepper_move_by()
[all …]
/Zephyr-latest/drivers/display/
Ddisplay_ist3931.c40 static int ist3931_write_bus(const struct device *dev, uint8_t *buf, bool command, in ist3931_write_bus()
54 static inline bool ist3931_bus_ready(const struct device *dev) in ist3931_bus_ready()
61 static inline int ist3931_set_power(const struct device *dev) in ist3931_set_power()
69 static inline int ist3931_set_bias(const struct device *dev) in ist3931_set_bias()
77 static inline int ist3931_set_ct(const struct device *dev) in ist3931_set_ct()
85 static inline int ist3931_set_fr(const struct device *dev) in ist3931_set_fr()
93 static inline int ist3931_set_duty(const struct device *dev) in ist3931_set_duty()
102 static inline int ist3931_driver_display_control(const struct device *dev) in ist3931_driver_display_control()
111 static inline int ist3931_driver_set_display_on(const struct device *dev) in ist3931_driver_set_display_on()
118 static inline int ist3931_driver_sleep_on_off(const struct device *dev, const bool sleep) in ist3931_driver_sleep_on_off()
[all …]
/Zephyr-latest/drivers/video/
Dvideo_emul_rx.c21 const struct device *source_dev;
25 const struct device *dev;
32 static int emul_rx_set_ctrl(const struct device *dev, unsigned int cid, void *value) in emul_rx_set_ctrl()
40 static int emul_rx_get_ctrl(const struct device *dev, unsigned int cid, void *value) in emul_rx_get_ctrl()
48 static int emul_rx_set_frmival(const struct device *dev, enum video_endpoint_id ep, in emul_rx_set_frmival()
60 static int emul_rx_get_frmival(const struct device *dev, enum video_endpoint_id ep, in emul_rx_get_frmival()
72 static int emul_rx_enum_frmival(const struct device *dev, enum video_endpoint_id ep, in emul_rx_enum_frmival()
84 static int emul_rx_set_fmt(const struct device *const dev, enum video_endpoint_id ep, in emul_rx_set_fmt()
109 static int emul_rx_get_fmt(const struct device *dev, enum video_endpoint_id ep, in emul_rx_get_fmt()
122 static int emul_rx_get_caps(const struct device *dev, enum video_endpoint_id ep, in emul_rx_get_caps()
[all …]
/Zephyr-latest/drivers/bbram/
Dbbram_npcx.c25 static int get_bit_and_reset(const struct device *dev, int mask) in get_bit_and_reset()
43 static int bbram_npcx_check_invalid(const struct device *dev) in bbram_npcx_check_invalid()
48 static int bbram_npcx_check_standby_power(const struct device *dev) in bbram_npcx_check_standby_power()
53 static int bbram_npcx_check_power(const struct device *dev) in bbram_npcx_check_power()
58 static int bbram_npcx_get_size(const struct device *dev, size_t *size) in bbram_npcx_get_size()
66 static int bbram_npcx_read(const struct device *dev, size_t offset, size_t size, in bbram_npcx_read()
80 static int bbram_npcx_write(const struct device *dev, size_t offset, size_t size, in bbram_npcx_write()
/Zephyr-latest/tests/drivers/ipm/src/
Dipm_dummy.c26 const struct device *d = (const struct device *)data; in ipm_dummy_isr()
47 static int ipm_dummy_send(const struct device *d, int wait, uint32_t id, in ipm_dummy_send()
83 static void ipm_dummy_register_callback(const struct device *d, in ipm_dummy_register_callback()
94 static int ipm_dummy_set_enabled(const struct device *d, int enable) in ipm_dummy_set_enabled()
106 static uint32_t ipm_dummy_max_id_val_get(const struct device *d) in ipm_dummy_max_id_val_get()
111 static int ipm_dummy_max_data_size_get(const struct device *d) in ipm_dummy_max_data_size_get()
/Zephyr-latest/drivers/gpio/
Dgpio_sam4l.c21 typedef void (*config_func_t)(const struct device *dev);
40 static int gpio_sam_port_configure(const struct device *dev, in gpio_sam_port_configure()
95 static int gpio_sam_config(const struct device *dev, in gpio_sam_config()
102 static int gpio_sam_port_get_raw(const struct device *dev, in gpio_sam_port_get_raw()
113 static int gpio_sam_port_set_masked_raw(const struct device *dev, in gpio_sam_port_set_masked_raw()
125 static int gpio_sam_port_set_bits_raw(const struct device *dev, in gpio_sam_port_set_bits_raw()
136 static int gpio_sam_port_clear_bits_raw(const struct device *dev, in gpio_sam_port_clear_bits_raw()
147 static int gpio_sam_port_toggle_bits(const struct device *dev, in gpio_sam_port_toggle_bits()
158 static int gpio_sam_port_interrupt_configure(const struct device *dev, in gpio_sam_port_interrupt_configure()
190 static int gpio_sam_pin_interrupt_configure(const struct device *dev, in gpio_sam_pin_interrupt_configure()
[all …]
Dgpio_psoc6.c25 typedef void (*config_func_t)(const struct device *dev);
40 static int gpio_psoc6_config(const struct device *dev, in gpio_psoc6_config()
91 static int gpio_psoc6_port_get_raw(const struct device *dev, in gpio_psoc6_port_get_raw()
104 static int gpio_psoc6_port_set_masked_raw(const struct device *dev, in gpio_psoc6_port_set_masked_raw()
116 static int gpio_psoc6_port_set_bits_raw(const struct device *dev, in gpio_psoc6_port_set_bits_raw()
127 static int gpio_psoc6_port_clear_bits_raw(const struct device *dev, in gpio_psoc6_port_clear_bits_raw()
138 static int gpio_psoc6_port_toggle_bits(const struct device *dev, in gpio_psoc6_port_toggle_bits()
149 static int gpio_psoc6_pin_interrupt_configure(const struct device *dev, in gpio_psoc6_pin_interrupt_configure()
192 static void gpio_psoc6_isr(const struct device *dev) in gpio_psoc6_isr()
213 static int gpio_psoc6_manage_callback(const struct device *port, in gpio_psoc6_manage_callback()
[all …]
/Zephyr-latest/drivers/hwspinlock/
Dhwspinlock_handlers.c10 static inline int z_vrfy_hwspinlock_trylock(const struct device *dev, uint32_t id) in z_vrfy_hwspinlock_trylock()
18 static inline void z_vrfy_hwspinlock_lock(const struct device *dev, uint32_t id) in z_vrfy_hwspinlock_lock()
26 static inline void z_vrfy_hwspinlock_unlock(const struct device *dev, uint32_t id) in z_vrfy_hwspinlock_unlock()
34 static inline uint32_t z_vrfy_hwspinlock_get_max_id(const struct device *dev) in z_vrfy_hwspinlock_get_max_id()
/Zephyr-latest/drivers/ethernet/
Dphy_xlnx_gem.h132 void (*phy_reset_func)(const struct device *dev);
133 void (*phy_configure_func)(const struct device *dev);
134 uint16_t (*phy_poll_status_change_func)(const struct device *dev);
135 uint8_t (*phy_poll_link_status_func)(const struct device *dev);
136 enum eth_xlnx_link_speed (*phy_poll_link_speed_func)(const struct device *dev);
153 int phy_xlnx_gem_detect(const struct device *dev);
/Zephyr-latest/drivers/sensor/st/lis2dh/
Dlis2dh.h217 int (*bus_init)(const struct device *dev);
238 int (*read_data)(const struct device *dev, uint8_t reg_addr,
240 int (*write_data)(const struct device *dev, uint8_t reg_addr,
242 int (*read_reg)(const struct device *dev, uint8_t reg_addr,
244 int (*write_reg)(const struct device *dev, uint8_t reg_addr,
246 int (*update_reg)(const struct device *dev, uint8_t reg_addr,
251 const struct device *bus;
267 const struct device *dev;
297 int lis2dh_trigger_set(const struct device *dev,
301 int lis2dh_init_interrupt(const struct device *dev);
[all …]
/Zephyr-latest/drivers/usb/udc/
Dudc_dwc2_vendor_quirks.h23 const struct device *const dev;
63 static inline int stm32f4_fsotg_enable_phy(const struct device *dev) in stm32f4_fsotg_enable_phy()
73 static inline int stm32f4_fsotg_disable_phy(const struct device *dev) in stm32f4_fsotg_disable_phy()
92 static int stm32f4_fsotg_enable_clk_##n(const struct device *dev) \
132 const struct device *dev = context; in usbhs_vbus_handler()
157 static inline int usbhs_enable_nrfs_service(const struct device *dev) in usbhs_enable_nrfs_service()
183 static inline int usbhs_enable_core(const struct device *dev) in usbhs_enable_core()
213 static inline int usbhs_disable_core(const struct device *dev) in usbhs_disable_core()
226 static inline int usbhs_disable_nrfs_service(const struct device *dev) in usbhs_disable_nrfs_service()
241 static inline int usbhs_irq_clear(const struct device *dev) in usbhs_irq_clear()
[all …]
/Zephyr-latest/drivers/counter/
Dcounter_mcux_gpt.c28 const struct device *clock_dev;
41 static GPT_Type *get_base(const struct device *dev) in get_base()
46 static int mcux_gpt_start(const struct device *dev) in mcux_gpt_start()
55 static int mcux_gpt_stop(const struct device *dev) in mcux_gpt_stop()
64 static int mcux_gpt_get_value(const struct device *dev, uint32_t *ticks) in mcux_gpt_get_value()
72 static int mcux_gpt_set_alarm(const struct device *dev, uint8_t chan_id, in mcux_gpt_set_alarm()
104 static int mcux_gpt_cancel_alarm(const struct device *dev, uint8_t chan_id) in mcux_gpt_cancel_alarm()
120 void mcux_gpt_isr(const struct device *dev) in mcux_gpt_isr()
145 static uint32_t mcux_gpt_get_pending_int(const struct device *dev) in mcux_gpt_get_pending_int()
152 static int mcux_gpt_set_top_value(const struct device *dev, in mcux_gpt_set_top_value()
[all …]
/Zephyr-latest/drivers/w1/
Dw1_ds2477_85_common.h191 typedef int (*variant_w1_script_cmd_fn)(const struct device *dev,
261 int w1_ds2477_85_init(const struct device *dev);
262 int ds2477_85_write_port_config(const struct device *dev, uint8_t reg,
264 int ds2477_85_read_port_config(const struct device *dev, uint8_t reg,
266 int ds2477_85_reset_master(const struct device *dev);
267 int ds2477_85_reset_bus(const struct device *dev);
268 int ds2477_85_read_bit(const struct device *dev);
269 int ds2477_85_write_bit(const struct device *dev, const bool bit);
270 int ds2477_85_read_byte(const struct device *dev);
271 int ds2477_85_write_byte(const struct device *dev, const uint8_t tx_byte);
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_wwdg_stm32.c88 static void wwdg_stm32_irq_config(const struct device *dev);
90 static uint32_t wwdg_stm32_get_pclk(const struct device *dev) in wwdg_stm32_get_pclk()
92 const struct device *const clk = DEVICE_DT_GET(STM32_CLOCK_CONTROL_NODE); in wwdg_stm32_get_pclk()
113 static uint32_t wwdg_stm32_get_timeout(const struct device *dev, in wwdg_stm32_get_timeout()
131 static void wwdg_stm32_convert_timeout(const struct device *dev, in wwdg_stm32_convert_timeout()
163 static int wwdg_stm32_setup(const struct device *dev, uint8_t options) in wwdg_stm32_setup()
198 static int wwdg_stm32_disable(const struct device *dev) in wwdg_stm32_disable()
206 static int wwdg_stm32_install_timeout(const struct device *dev, in wwdg_stm32_install_timeout()
249 static int wwdg_stm32_feed(const struct device *dev, int channel_id) in wwdg_stm32_feed()
260 void wwdg_stm32_isr(const struct device *dev) in wwdg_stm32_isr()
[all …]
Dwdt_wwdgt_gd32.c39 static void gd32_wwdgt_irq_config(const struct device *dev);
53 static inline uint32_t gd32_wwdgt_calc_ticks(const struct device *dev, in gd32_wwdgt_calc_ticks()
78 static int gd32_wwdgt_calc_window(const struct device *dev, in gd32_wwdgt_calc_window()
102 static int gd32_wwdgt_setup(const struct device *dev, uint8_t options) in gd32_wwdgt_setup()
127 static int gd32_wwdgt_disable(const struct device *dev) in gd32_wwdgt_disable()
135 static int gd32_wwdgt_install_timeout(const struct device *dev, in gd32_wwdgt_install_timeout()
162 static int gd32_wwdgt_feed(const struct device *dev, int channel_id) in gd32_wwdgt_feed()
173 static void gd32_wwdgt_isr(const struct device *dev) in gd32_wwdgt_isr()
186 static void gd32_wwdgt_irq_config(const struct device *dev) in gd32_wwdgt_irq_config()
202 static int gd32_wwdgt_init(const struct device *dev) in gd32_wwdgt_init()
/Zephyr-latest/drivers/misc/grove_lcd_rgb/
Dgrove_lcd_rgb.c72 static void rgb_reg_set(const struct device *i2c, uint8_t addr, uint8_t dta) in rgb_reg_set()
82 void glcd_print(const struct device *dev, char *data, uint32_t size) in glcd_print()
95 void glcd_cursor_pos_set(const struct device *dev, uint8_t col, uint8_t row) in glcd_cursor_pos_set()
114 void glcd_clear(const struct device *dev) in glcd_clear()
125 void glcd_display_state_set(const struct device *dev, uint8_t opt) in glcd_display_state_set()
141 uint8_t glcd_display_state_get(const struct device *dev) in glcd_display_state_get()
149 void glcd_input_state_set(const struct device *dev, uint8_t opt) in glcd_input_state_set()
163 uint8_t glcd_input_state_get(const struct device *dev) in glcd_input_state_get()
171 void glcd_color_select(const struct device *dev, uint8_t color) in glcd_color_select()
182 void glcd_color_set(const struct device *dev, uint8_t r, uint8_t g, in glcd_color_set()
[all …]
/Zephyr-latest/tests/drivers/gpio/gpio_basic_api/src/
Dtest_callback_manage.c13 static void callback_1(const struct device *dev, in callback_1()
20 static void callback_2(const struct device *dev, in callback_2()
26 static void callback_remove_self(const struct device *dev, in callback_remove_self()
35 static int init_callback(const struct device *dev_in, const struct device *dev_out, in init_callback()
66 static void trigger_callback(const struct device *dev_in, const struct device *dev_out, in trigger_callback()
86 const struct device *const dev_in = DEVICE_DT_GET(DEV_IN); in test_callback_add_remove()
87 const struct device *const dev_out = DEVICE_DT_GET(DEV_OUT); in test_callback_add_remove()
136 const struct device *const dev_in = DEVICE_DT_GET(DEV_IN); in test_callback_self_remove()
137 const struct device *const dev_out = DEVICE_DT_GET(DEV_OUT); in test_callback_self_remove()
189 const struct device *const dev_in = DEVICE_DT_GET(DEV_IN); in test_callback_enable_disable()
[all …]
/Zephyr-latest/samples/sensor/sx9500/src/
Dmain.c14 static void sensor_trigger_handler(const struct device *dev, in sensor_trigger_handler()
30 static void setup_trigger(const struct device *dev) in setup_trigger()
43 void do_main(const struct device *dev) in do_main()
54 static void do_main(const struct device *dev) in do_main()
77 const struct device *const dev = DEVICE_DT_GET_ONE(semtech_sx9500); in main()
/Zephyr-latest/include/zephyr/drivers/
Dentropy.h46 typedef int (*entropy_get_entropy_t)(const struct device *dev,
55 typedef int (*entropy_get_entropy_isr_t)(const struct device *dev,
80 __syscall int entropy_get_entropy(const struct device *dev,
84 static inline int z_impl_entropy_get_entropy(const struct device *dev, in z_impl_entropy_get_entropy()
106 static inline int entropy_get_entropy_isr(const struct device *dev, in entropy_get_entropy_isr()
/Zephyr-latest/drivers/clock_control/
Dclock_control_fixed_rate.c16 static int fixed_rate_clk_on(const struct device *dev, in fixed_rate_clk_on()
25 static int fixed_rate_clk_off(const struct device *dev, in fixed_rate_clk_off()
34 static enum clock_control_status fixed_rate_clk_get_status(const struct device *dev, in fixed_rate_clk_get_status()
40 static int fixed_rate_clk_get_rate(const struct device *dev, in fixed_rate_clk_get_rate()
59 static int fixed_rate_clk_init(const struct device *dev) in fixed_rate_clk_init()
/Zephyr-latest/drivers/serial/
Duart_nrfx_uart.c120 static int baudrate_set(const struct device *dev, uint32_t baudrate) in baudrate_set()
209 static int uart_nrfx_poll_in(const struct device *dev, unsigned char *c) in uart_nrfx_poll_in()
225 static void uart_nrfx_isr(const struct device *dev);
234 static void uart_nrfx_poll_out(const struct device *dev, unsigned char c) in uart_nrfx_poll_out()
302 static int uart_nrfx_err_check(const struct device *dev) in uart_nrfx_err_check()
308 static int uart_nrfx_configure(const struct device *dev, in uart_nrfx_configure()
382 static int uart_nrfx_config_get(const struct device *dev, in uart_nrfx_config_get()
394 static void user_callback(const struct device *dev, struct uart_event *event) in user_callback()
401 static int uart_nrfx_callback_set(const struct device *dev, in uart_nrfx_callback_set()
416 static int uart_nrfx_tx(const struct device *dev, const uint8_t *buf, in uart_nrfx_tx()
[all …]
/Zephyr-latest/drivers/mbox/
Dmbox_nrfx_ipc.c20 const struct device *dev;
34 static inline bool is_rx_channel_valid(const struct device *dev, uint32_t ch) in is_rx_channel_valid()
41 static inline bool is_tx_channel_valid(const struct device *dev, uint32_t ch) in is_tx_channel_valid()
51 const struct device *dev = data->dev; in mbox_dispatcher()
68 static int mbox_nrf_send(const struct device *dev, uint32_t channel, in mbox_nrf_send()
84 static int mbox_nrf_register_callback(const struct device *dev, uint32_t channel, in mbox_nrf_register_callback()
99 static int mbox_nrf_mtu_get(const struct device *dev) in mbox_nrf_mtu_get()
105 static uint32_t mbox_nrf_max_channels_get(const struct device *dev) in mbox_nrf_max_channels_get()
110 static int mbox_nrf_set_enabled(const struct device *dev, uint32_t channel, bool enable) in mbox_nrf_set_enabled()
148 static void enable_dt_channels(const struct device *dev) in enable_dt_channels()
[all …]
/Zephyr-latest/include/zephyr/drivers/mfd/
Dnxp_lp_flexcomm.h11 typedef void (*child_isr_t)(const struct device *dev);
13 void nxp_lp_flexcomm_setirqhandler(const struct device *dev, const struct device *child_dev,
/Zephyr-latest/samples/drivers/smbus/
DREADME.rst46 Usage: quick <device> <addr>
48 Usage: scan <device>
50 Usage: byte_read <device> <addr>
52 Usage: byte_write <device> <addr> <value>
54 Usage: byte_data_read <device> <addr> <cmd>
56 Usage: byte_data_write <device> <addr> <cmd> <value>
58 Usage: word_data_read <device> <addr> <cmd>
60 Usage: word_data_write <device> <addr> <cmd> <value>
62 Usage: block_write <device> <addr> <cmd> [<byte1>, ...]
64 Usage: block_read <device> <addr> <cmd>

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