Home
last modified time | relevance | path

Searched refs:device (Results 26 – 50 of 3926) sorted by relevance

12345678910>>...158

/Zephyr-latest/drivers/usb_c/ppc/
Dusbc_ppc_numaker.c34 const struct device *tcpc_dev;
43 static int numaker_ppc_init(const struct device *dev) in numaker_ppc_init()
46 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_init()
64 static int numaker_ppc_is_dead_battery_mode(const struct device *dev) in numaker_ppc_is_dead_battery_mode()
67 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_dead_battery_mode()
78 static int numaker_ppc_exit_dead_battery_mode(const struct device *dev) in numaker_ppc_exit_dead_battery_mode()
81 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_exit_dead_battery_mode()
93 static int numaker_ppc_is_vbus_source(const struct device *dev) in numaker_ppc_is_vbus_source()
96 const struct device *tcpc_dev = config->tcpc_dev; in numaker_ppc_is_vbus_source()
108 static int numaker_ppc_is_vbus_sink(const struct device *dev) in numaker_ppc_is_vbus_sink()
[all …]
/Zephyr-latest/include/zephyr/
Dshared_irq.h18 typedef int (*isr_t)(const struct device *dev, unsigned int irq_number);
21 typedef int (*shared_irq_register_t)(const struct device *dev,
23 const struct device *isr_dev);
24 typedef int (*shared_irq_enable_t)(const struct device *dev,
25 const struct device *isr_dev);
26 typedef int (*shared_irq_disable_t)(const struct device *dev,
27 const struct device *isr_dev);
41 static inline int shared_irq_isr_register(const struct device *dev, in shared_irq_isr_register()
43 const struct device *isr_dev) in shared_irq_isr_register()
56 static inline int shared_irq_enable(const struct device *dev, in shared_irq_enable()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dedac.h43 typedef void (*edac_notify_callback_f)(const struct device *dev, void *data);
52 int (*inject_set_param1)(const struct device *dev, uint64_t value);
53 int (*inject_get_param1)(const struct device *dev, uint64_t *value);
54 int (*inject_set_param2)(const struct device *dev, uint64_t value);
55 int (*inject_get_param2)(const struct device *dev, uint64_t *value);
56 int (*inject_set_error_type)(const struct device *dev, uint32_t value);
57 int (*inject_get_error_type)(const struct device *dev, uint32_t *value);
58 int (*inject_error_trigger)(const struct device *dev);
61 int (*ecc_error_log_get)(const struct device *dev, uint64_t *value);
62 int (*ecc_error_log_clear)(const struct device *dev);
[all …]
Dstepper.h106 typedef int (*stepper_enable_t)(const struct device *dev, const bool enable);
113 typedef int (*stepper_move_by_t)(const struct device *dev, const int32_t micro_steps);
120 typedef int (*stepper_set_max_velocity_t)(const struct device *dev,
128 typedef int (*stepper_set_micro_step_res_t)(const struct device *dev,
136 typedef int (*stepper_get_micro_step_res_t)(const struct device *dev,
143 typedef int (*stepper_set_reference_position_t)(const struct device *dev, const int32_t value);
150 typedef int (*stepper_get_actual_position_t)(const struct device *dev, int32_t *value);
157 typedef int (*stepper_move_to_t)(const struct device *dev, const int32_t micro_steps);
164 typedef int (*stepper_is_moving_t)(const struct device *dev, bool *is_moving);
171 typedef int (*stepper_run_t)(const struct device *dev, const enum stepper_direction direction,
[all …]
Dw1.h86 typedef int (*w1_reset_bus_t)(const struct device *dev);
87 typedef int (*w1_read_bit_t)(const struct device *dev);
88 typedef int (*w1_write_bit_t)(const struct device *dev, bool bit);
89 typedef int (*w1_read_byte_t)(const struct device *dev);
90 typedef int (*w1_write_byte_t)(const struct device *dev, const uint8_t byte);
91 typedef int (*w1_read_block_t)(const struct device *dev, uint8_t *buffer,
93 typedef int (*w1_write_block_t)(const struct device *dev, const uint8_t *buffer,
95 typedef size_t (*w1_get_slave_count_t)(const struct device *dev);
96 typedef int (*w1_configure_t)(const struct device *dev,
98 typedef int (*w1_change_bus_lock_t)(const struct device *dev, bool lock);
[all …]
Despi_saf.h131 typedef int (*espi_saf_api_config)(const struct device *dev,
135 const struct device *dev,
138 typedef int (*espi_saf_api_activate)(const struct device *dev);
140 typedef bool (*espi_saf_api_get_channel_status)(const struct device *dev);
142 typedef int (*espi_saf_api_flash_read)(const struct device *dev,
144 typedef int (*espi_saf_api_flash_write)(const struct device *dev,
146 typedef int (*espi_saf_api_flash_erase)(const struct device *dev,
148 typedef int (*espi_saf_api_flash_unsuccess)(const struct device *dev,
151 typedef int (*espi_saf_api_manage_callback)(const struct device *dev,
219 __syscall int espi_saf_config(const struct device *dev,
[all …]
Dbbram.h31 typedef int (*bbram_api_check_invalid_t)(const struct device *dev);
39 typedef int (*bbram_api_check_standby_power_t)(const struct device *dev);
47 typedef int (*bbram_api_check_power_t)(const struct device *dev);
55 typedef int (*bbram_api_get_size_t)(const struct device *dev, size_t *size);
63 typedef int (*bbram_api_read_t)(const struct device *dev, size_t offset, size_t size,
72 typedef int (*bbram_api_write_t)(const struct device *dev, size_t offset, size_t size,
93 __syscall int bbram_check_invalid(const struct device *dev);
95 static inline int z_impl_bbram_check_invalid(const struct device *dev) in z_impl_bbram_check_invalid()
115 __syscall int bbram_check_standby_power(const struct device *dev);
117 static inline int z_impl_bbram_check_standby_power(const struct device *dev) in z_impl_bbram_check_standby_power()
[all …]
Dps2.h39 typedef void (*ps2_callback_t)(const struct device *dev, uint8_t data);
48 typedef int (*ps2_config_t)(const struct device *dev,
50 typedef int (*ps2_read_t)(const struct device *dev, uint8_t *value);
51 typedef int (*ps2_write_t)(const struct device *dev, uint8_t value);
52 typedef int (*ps2_disable_callback_t)(const struct device *dev);
53 typedef int (*ps2_enable_callback_t)(const struct device *dev);
76 __syscall int ps2_config(const struct device *dev,
79 static inline int z_impl_ps2_config(const struct device *dev, in z_impl_ps2_config()
97 __syscall int ps2_write(const struct device *dev, uint8_t value);
99 static inline int z_impl_ps2_write(const struct device *dev, uint8_t value) in z_impl_ps2_write()
[all …]
Dcan.h283 typedef void (*can_tx_callback_t)(const struct device *dev, int error, void *user_data);
292 typedef void (*can_rx_callback_t)(const struct device *dev, struct can_frame *frame,
303 typedef void (*can_state_change_callback_t)(const struct device *dev,
339 const struct device *phy;
409 typedef int (*can_set_timing_t)(const struct device *dev,
416 typedef int (*can_set_timing_data_t)(const struct device *dev,
423 typedef int (*can_get_capabilities_t)(const struct device *dev, can_mode_t *cap);
429 typedef int (*can_start_t)(const struct device *dev);
435 typedef int (*can_stop_t)(const struct device *dev);
441 typedef int (*can_set_mode_t)(const struct device *dev, can_mode_t mode);
[all …]
Dipm.h47 typedef void (*ipm_callback_t)(const struct device *ipmdev, void *user_data,
56 typedef int (*ipm_send_t)(const struct device *ipmdev, int wait, uint32_t id,
64 typedef int (*ipm_max_data_size_get_t)(const struct device *ipmdev);
72 typedef uint32_t (*ipm_max_id_val_get_t)(const struct device *ipmdev);
80 typedef void (*ipm_register_callback_t)(const struct device *port,
90 typedef int (*ipm_set_enabled_t)(const struct device *ipmdev, int enable);
98 typedef void (*ipm_complete_t)(const struct device *ipmdev);
146 __syscall int ipm_send(const struct device *ipmdev, int wait, uint32_t id,
149 static inline int z_impl_ipm_send(const struct device *ipmdev, int wait, in z_impl_ipm_send()
167 static inline void ipm_register_callback(const struct device *ipmdev, in ipm_register_callback()
[all …]
Dcomparator.h39 typedef void (*comparator_callback_t)(const struct device *dev, void *user_data);
43 typedef int (*comparator_api_get_output)(const struct device *dev);
44 typedef int (*comparator_api_set_trigger)(const struct device *dev,
46 typedef int (*comparator_api_set_trigger_callback)(const struct device *dev,
49 typedef int (*comparator_api_trigger_is_pending)(const struct device *dev);
69 __syscall int comparator_get_output(const struct device *dev);
71 static inline int z_impl_comparator_get_output(const struct device *dev) in z_impl_comparator_get_output()
85 __syscall int comparator_set_trigger(const struct device *dev,
88 static inline int z_impl_comparator_set_trigger(const struct device *dev, in z_impl_comparator_set_trigger()
107 static inline int comparator_set_trigger_callback(const struct device *dev, in comparator_set_trigger_callback()
[all …]
Dflash.h128 typedef int (*flash_api_read)(const struct device *dev, off_t offset,
139 typedef int (*flash_api_write)(const struct device *dev, off_t offset,
155 typedef int (*flash_api_erase)(const struct device *dev, off_t offset,
168 typedef int (*flash_api_get_size)(const struct device *dev, uint64_t *size);
170 typedef const struct flash_parameters* (*flash_api_get_parameters)(const struct device *dev);
194 typedef void (*flash_api_pages_layout)(const struct device *dev,
199 typedef int (*flash_api_sfdp_read)(const struct device *dev, off_t offset,
201 typedef int (*flash_api_read_jedec_id)(const struct device *dev, uint8_t *id);
202 typedef int (*flash_api_ex_op)(const struct device *dev, uint16_t code,
245 __syscall int flash_read(const struct device *dev, off_t offset, void *data,
[all …]
/Zephyr-latest/soc/intel/intel_adsp/common/include/
Dintel_adsp_ipc.h39 typedef bool (*intel_adsp_ipc_handler_t)(const struct device *dev, void *arg,
64 typedef bool (*intel_adsp_ipc_done_t)(const struct device *dev, void *arg);
87 void intel_adsp_ipc_set_message_handler(const struct device *dev,
100 void intel_adsp_ipc_set_done_handler(const struct device *dev,
111 int intel_adsp_ipc_init(const struct device *dev);
123 void intel_adsp_ipc_complete(const struct device *dev);
133 bool intel_adsp_ipc_is_complete(const struct device *dev);
149 int intel_adsp_ipc_send_message(const struct device *dev,
164 int intel_adsp_ipc_send_message_sync(const struct device *dev,
177 void intel_adsp_ipc_send_message_emergency(const struct device *dev, uint32_t data,
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_handlers.c10 static inline int z_vrfy_gpio_pin_configure(const struct device *port, in z_vrfy_gpio_pin_configure()
15 return z_impl_gpio_pin_configure((const struct device *)port, in z_vrfy_gpio_pin_configure()
22 static inline int z_vrfy_gpio_pin_get_config(const struct device *port, in z_vrfy_gpio_pin_get_config()
34 static inline int z_vrfy_gpio_port_get_raw(const struct device *port, in z_vrfy_gpio_port_get_raw()
39 return z_impl_gpio_port_get_raw((const struct device *)port, in z_vrfy_gpio_port_get_raw()
44 static inline int z_vrfy_gpio_port_set_masked_raw(const struct device *port, in z_vrfy_gpio_port_set_masked_raw()
49 return z_impl_gpio_port_set_masked_raw((const struct device *)port, in z_vrfy_gpio_port_set_masked_raw()
55 static inline int z_vrfy_gpio_port_set_bits_raw(const struct device *port, in z_vrfy_gpio_port_set_bits_raw()
59 return z_impl_gpio_port_set_bits_raw((const struct device *)port, in z_vrfy_gpio_port_set_bits_raw()
64 static inline int z_vrfy_gpio_port_clear_bits_raw(const struct device *port, in z_vrfy_gpio_port_clear_bits_raw()
[all …]
/Zephyr-latest/include/zephyr/ipc/
Dipc_service_backend.h40 int (*open_instance)(const struct device *instance);
52 int (*close_instance)(const struct device *instance);
71 int (*send)(const struct device *instance, void *token,
87 int (*register_endpoint)(const struct device *instance,
104 int (*deregister_endpoint)(const struct device *instance, void *token);
119 int (*get_tx_buffer_size)(const struct device *instance, void *token);
141 int (*get_tx_buffer)(const struct device *instance, void *token,
159 int (*drop_tx_buffer)(const struct device *instance, void *token,
181 int (*send_nocopy)(const struct device *instance, void *token,
199 int (*hold_rx_buffer)(const struct device *instance, void *token,
[all …]
/Zephyr-latest/drivers/usb/udc/
Dudc_dwc2.h18 int (*init)(const struct device *dev);
20 int (*pre_enable)(const struct device *dev);
22 int (*post_enable)(const struct device *dev);
24 int (*disable)(const struct device *dev);
26 int (*shutdown)(const struct device *dev);
28 int (*irq_clear)(const struct device *dev);
30 int (*caps)(const struct device *dev);
32 int (*is_phy_clk_off)(const struct device *dev);
34 int (*post_hibernation_entry)(const struct device *dev);
36 int (*pre_hibernation_exit)(const struct device *dev);
[all …]
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_tcpc.h121 typedef int (*tcpc_vconn_control_cb_t)(const struct device *dev, enum tc_cc_polarity pol,
123 typedef int (*tcpc_vconn_discharge_cb_t)(const struct device *dev, enum tc_cc_polarity pol,
125 typedef void (*tcpc_alert_handler_cb_t)(const struct device *dev, void *data,
129 int (*init)(const struct device *dev);
130 int (*get_cc)(const struct device *dev, enum tc_cc_voltage_state *cc1,
132 int (*select_rp_value)(const struct device *dev, enum tc_rp_value rp);
133 int (*get_rp_value)(const struct device *dev, enum tc_rp_value *rp);
134 int (*set_cc)(const struct device *dev, enum tc_cc_pull pull);
135 void (*set_vconn_discharge_cb)(const struct device *dev, tcpc_vconn_discharge_cb_t cb);
136 void (*set_vconn_cb)(const struct device *dev, tcpc_vconn_control_cb_t vconn_cb);
[all …]
Dusbc_ppc.h50 typedef void (*usbc_ppc_event_cb_t)(const struct device *dev, void *data, enum usbc_ppc_event ev);
54 int (*is_dead_battery_mode)(const struct device *dev);
55 int (*exit_dead_battery_mode)(const struct device *dev);
56 int (*is_vbus_source)(const struct device *dev);
57 int (*is_vbus_sink)(const struct device *dev);
58 int (*set_snk_ctrl)(const struct device *dev, bool enable);
59 int (*set_src_ctrl)(const struct device *dev, bool enable);
60 int (*set_vbus_discharge)(const struct device *dev, bool enable);
61 int (*is_vbus_present)(const struct device *dev);
62 int (*set_event_handler)(const struct device *dev, usbc_ppc_event_cb_t handler, void *data);
[all …]
/Zephyr-latest/include/zephyr/drivers/rtc/
Drtc_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_set_time, const struct device *, const struct rtc_time *);
18 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_get_time, const struct device *, struct rtc_time *);
21 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_get_supported_fields, const struct device *, uint16_t,
23 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_set_time, const struct device *, uint16_t, uint16_t,
25 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_get_time, const struct device *, uint16_t, uint16_t *,
27 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_is_pending, const struct device *, uint16_t);
28 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_alarm_set_callback, const struct device *, uint16_t,
33 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_update_set_callback, const struct device *,
38 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_set_calibration, const struct device *, int32_t);
39 DECLARE_FAKE_VALUE_FUNC(int, rtc_fake_get_calibration, const struct device *, int32_t *);
/Zephyr-latest/include/zephyr/display/
Dcfb.h89 int cfb_print(const struct device *dev, const char *const str, uint16_t x, uint16_t y);
103 int cfb_draw_text(const struct device *dev, const char *const str, int16_t x, int16_t y);
113 int cfb_draw_point(const struct device *dev, const struct cfb_position *pos);
124 int cfb_draw_line(const struct device *dev, const struct cfb_position *start,
136 int cfb_draw_rect(const struct device *dev, const struct cfb_position *start,
147 int cfb_framebuffer_clear(const struct device *dev, bool clear_display);
156 int cfb_framebuffer_invert(const struct device *dev);
169 int cfb_invert_area(const struct device *dev, uint16_t x, uint16_t y,
180 int cfb_framebuffer_finalize(const struct device *dev);
190 int cfb_get_display_parameter(const struct device *dev,
[all …]
/Zephyr-latest/include/zephyr/drivers/uart/
Duart_internal.h36 typedef void (*uart_irq_config_func_t)(const struct device *dev);
43 int (*callback_set)(const struct device *dev, uart_callback_t callback, void *user_data);
45 int (*tx)(const struct device *dev, const uint8_t *buf, size_t len, int32_t timeout);
46 int (*tx_abort)(const struct device *dev);
48 int (*rx_enable)(const struct device *dev, uint8_t *buf, size_t len, int32_t timeout);
49 int (*rx_buf_rsp)(const struct device *dev, uint8_t *buf, size_t len);
50 int (*rx_disable)(const struct device *dev);
53 int (*tx_u16)(const struct device *dev, const uint16_t *buf, size_t len, int32_t timeout);
54 int (*rx_enable_u16)(const struct device *dev, uint16_t *buf, size_t len, int32_t timeout);
55 int (*rx_buf_rsp_u16)(const struct device *dev, uint16_t *buf, size_t len);
[all …]
/Zephyr-latest/include/zephyr/drivers/misc/timeaware_gpio/
Dtimeaware_gpio.h53 int (*pin_disable)(const struct device *dev, uint32_t pin);
54 int (*get_time)(const struct device *dev, uint64_t *current_time);
55 int (*cyc_per_sec)(const struct device *dev, uint32_t *cycles);
56 int (*set_perout)(const struct device *dev, uint32_t pin, uint64_t start_time,
58 int (*config_ext_ts)(const struct device *dev, uint32_t pin, uint32_t event_polarity);
59 int (*read_ts_ec)(const struct device *dev, uint32_t pin, uint64_t *timestamp,
76 __syscall int tgpio_port_get_time(const struct device *dev, uint64_t *current_time);
78 static inline int z_impl_tgpio_port_get_time(const struct device *dev, uint64_t *current_time) in z_impl_tgpio_port_get_time()
93 __syscall int tgpio_port_get_cycles_per_second(const struct device *dev, uint32_t *cycles);
95 static inline int z_impl_tgpio_port_get_cycles_per_second(const struct device *dev, in z_impl_tgpio_port_get_cycles_per_second()
[all …]
/Zephyr-latest/include/zephyr/drivers/misc/grove_lcd/
Dgrove_lcd.h32 void glcd_print(const struct device *dev, char *data, uint32_t size);
42 void glcd_cursor_pos_set(const struct device *dev, uint8_t col, uint8_t row);
49 void glcd_clear(const struct device *dev);
69 void glcd_display_state_set(const struct device *dev, uint8_t opt);
78 uint8_t glcd_display_state_get(const struct device *dev);
95 void glcd_input_state_set(const struct device *dev, uint8_t opt);
104 uint8_t glcd_input_state_get(const struct device *dev);
123 void glcd_function_set(const struct device *dev, uint8_t opt);
132 uint8_t glcd_function_get(const struct device *dev);
145 void glcd_color_select(const struct device *dev, uint8_t color);
[all …]
/Zephyr-latest/include/zephyr/usb/class/
Dusbd_hid.h104 void (*iface_ready)(const struct device *dev, const bool ready);
116 int (*get_report)(const struct device *dev,
128 int (*set_report)(const struct device *dev,
140 void (*set_idle)(const struct device *dev,
148 uint32_t (*get_idle)(const struct device *dev, const uint8_t id);
154 void (*set_protocol)(const struct device *dev, const uint8_t proto);
162 void (*input_report_done)(const struct device *dev);
171 void (*output_report)(const struct device *dev, const uint16_t len,
179 void (*sof)(const struct device *dev);
193 int hid_device_register(const struct device *dev,
[all …]
/Zephyr-latest/drivers/flash/
Dflash_handlers.c11 static inline int z_vrfy_flash_read(const struct device *dev, off_t offset, in z_vrfy_flash_read()
16 return z_impl_flash_read((const struct device *)dev, offset, in z_vrfy_flash_read()
22 static inline int z_vrfy_flash_write(const struct device *dev, off_t offset, in z_vrfy_flash_write()
27 return z_impl_flash_write((const struct device *)dev, offset, in z_vrfy_flash_write()
32 static inline int z_vrfy_flash_erase(const struct device *dev, off_t offset, in z_vrfy_flash_erase()
36 return z_impl_flash_erase((const struct device *)dev, offset, size); in z_vrfy_flash_erase()
40 static inline int z_vrfy_flash_get_size(const struct device *dev, uint64_t *size) in z_vrfy_flash_get_size()
44 return z_impl_flash_get_size((const struct device *)dev, size); in z_vrfy_flash_get_size()
48 static inline size_t z_vrfy_flash_get_write_block_size(const struct device *dev) in z_vrfy_flash_get_write_block_size()
55 static inline const struct flash_parameters *z_vrfy_flash_get_parameters(const struct device *dev) in z_vrfy_flash_get_parameters()
[all …]

12345678910>>...158