Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 4043) sorted by relevance

12345678910>>...162

/Zephyr-Core-3.7.0/scripts/pylib/pytest-twister-harness/tests/device/
Dhardware_adapter_test.py12 from twister_harness.device.hardware_adapter import HardwareAdapter
33 def test_if_hardware_adapter_raise_exception_when_west_not_found(patched_which, device: HardwareAda…
35 device.generate_command()
39 def test_if_get_command_returns_proper_string_1(patched_which, device: HardwareAdapter) -> None:
40 device.device_config.build_dir = Path('build')
41 device.generate_command()
42 assert isinstance(device.command, list)
43 …assert device.command == ['west', 'flash', '--skip-rebuild', '--build-dir', 'build', '--runner', '…
47 def test_if_get_command_returns_proper_string_2(patched_which, device: HardwareAdapter) -> None:
48 device.device_config.build_dir = Path('build')
[all …]
Dbinary_adapter_test.py15 from twister_harness.device.binary_adapter import (
33device = NativeSimulatorAdapter(DeviceConfig(build_dir=build_dir, type='native', base_timeout=5.0))
35 yield device
37 device.close() # to make sure all running processes are closed
42 device: NativeSimulatorAdapter, script_path: str
44 device.command = ['python3', script_path]
46 device.launch()
47 yield device
49 device.close() # to make sure all running processes are closed
57 device = launched_device
[all …]
Dqemu_adapter_test.py12 from twister_harness.device.qemu_adapter import QemuAdapter
21 device = QemuAdapter(DeviceConfig(build_dir=build_dir, type='qemu', base_timeout=5.0))
23 yield device
25 device.close() # to make sure all running processes are closed
29 def test_if_generate_command_creates_proper_command(patched_which, device: QemuAdapter):
30 device.device_config.app_build_dir = Path('build_dir')
31 device.generate_command()
32 assert device.command == ['west', 'build', '-d', 'build_dir', '-t', 'run']
35 def test_if_qemu_adapter_runs_without_errors(resources, device: QemuAdapter) -> None:
36 fifo_file_path = str(device.device_config.build_dir / 'qemu-fifo')
[all …]
/Zephyr-Core-3.7.0/include/zephyr/usb_c/
Dusbc.h185 typedef int (*policy_cb_get_snk_cap_t)(const struct device *dev, uint32_t **pdos, int *num_pdos);
194 typedef void (*policy_cb_set_src_cap_t)(const struct device *dev, const uint32_t *pdos,
204 typedef bool (*policy_cb_check_t)(const struct device *dev,
215 typedef bool (*policy_cb_wait_notify_t)(const struct device *dev,
225 typedef void (*policy_cb_notify_t)(const struct device *dev,
234 typedef uint32_t (*policy_cb_get_rdo_t)(const struct device *dev);
243 typedef bool (*policy_cb_is_snk_at_default_t)(const struct device *dev);
258 typedef int (*policy_cb_get_src_caps_t)(const struct device *dev, const uint32_t **pdos,
268 typedef enum usbc_snk_req_reply_t (*policy_cb_check_sink_request_t)(const struct device *dev,
277 typedef bool (*policy_cb_is_ps_ready_t)(const struct device *dev);
[all …]
/Zephyr-Core-3.7.0/subsys/usb/usb_c/
Dusbc_pe_common_internal.h197 const struct device *dev;
267 void pe_first_msg_sent(const struct device *dev);
275 void pe_set_state(const struct device *dev, const enum usbc_pe_state state);
283 enum usbc_pe_state pe_get_state(const struct device *dev);
291 enum usbc_pe_state pe_get_last_state(const struct device *dev);
299 void pe_send_soft_reset(const struct device *dev, const enum pd_packet_type type);
308 void pe_send_data_msg(const struct device *dev,
319 void pe_send_ctrl_msg(const struct device *dev,
329 void pe_send_request_msg(const struct device *dev, const uint32_t rdo);
336 void extended_message_not_supported(const struct device *dev);
[all …]
Dusbc_stack.h41 void (*create_thread)(const struct device *dev);
101 const struct device *tcpc;
103 const struct device *vbus;
105 const struct device *ppc;
121 bool (*policy_cb_check)(const struct device *dev,
127 void (*policy_cb_notify)(const struct device *dev,
133 bool (*policy_cb_wait_notify)(const struct device *dev,
141 int (*policy_cb_get_snk_cap)(const struct device *dev, uint32_t **pdos, int *num_pdos);
147 void (*policy_cb_set_src_cap)(const struct device *dev, const uint32_t *pdos,
153 uint32_t (*policy_cb_get_rdo)(const struct device *dev);
[all …]
Dusbc_prl.h44 const struct device *dev;
77 const struct device *dev;
92 void prl_subsys_init(const struct device *dev);
100 void prl_start(const struct device *dev);
107 void prl_first_msg_notificaiton(const struct device *dev);
115 void prl_suspend(const struct device *dev);
122 void prl_reset(const struct device *dev);
130 void prl_run(const struct device *dev);
137 void prl_hard_reset_complete(const struct device *dev);
146 void prl_set_rev(const struct device *dev, const enum pd_packet_type type,
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/regulator/
Dfake.h16 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_enable, const struct device *);
17 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_disable, const struct device *);
19 const struct device *);
20 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_list_voltage, const struct device *,
22 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_voltage, const struct device *,
24 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_voltage, const struct device *,
27 const struct device *, int32_t, int32_t);
29 const struct device *, int32_t *);
30 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_set_mode, const struct device *,
32 DECLARE_FAKE_VALUE_FUNC(int, regulator_fake_get_mode, const struct device *,
[all …]
/Zephyr-Core-3.7.0/drivers/usb_c/tcpc/
Ducpd_numaker.h14 int numaker_tcpc_ppc_is_dead_battery_mode(const struct device *dev);
15 int numaker_tcpc_ppc_exit_dead_battery_mode(const struct device *dev);
16 int numaker_tcpc_ppc_is_vbus_source(const struct device *dev);
17 int numaker_tcpc_ppc_is_vbus_sink(const struct device *dev);
18 int numaker_tcpc_ppc_set_snk_ctrl(const struct device *dev, bool enable);
19 int numaker_tcpc_ppc_set_src_ctrl(const struct device *dev, bool enable);
20 int numaker_tcpc_ppc_set_vbus_discharge(const struct device *dev, bool enable);
21 int numaker_tcpc_ppc_is_vbus_present(const struct device *dev);
22 int numaker_tcpc_ppc_set_event_handler(const struct device *dev, usbc_ppc_event_cb_t handler,
24 int numaker_tcpc_ppc_dump_regs(const struct device *dev);
[all …]
/Zephyr-Core-3.7.0/include/zephyr/pm/
Ddevice_runtime.h38 int pm_device_runtime_auto_enable(const struct device *dev);
57 int pm_device_runtime_enable(const struct device *dev);
72 int pm_device_runtime_disable(const struct device *dev);
97 int pm_device_runtime_get(const struct device *dev);
119 int pm_device_runtime_put(const struct device *dev);
145 int pm_device_runtime_put_async(const struct device *dev, k_timeout_t delay);
159 bool pm_device_runtime_is_enabled(const struct device *dev);
170 int pm_device_runtime_usage(const struct device *dev);
174 static inline int pm_device_runtime_auto_enable(const struct device *dev)
180 static inline int pm_device_runtime_enable(const struct device *dev)
[all …]
Ddevice.h28 struct device;
119 typedef int (*pm_device_action_cb_t)(const struct device *dev,
130 typedef bool (*pm_device_action_failed_cb_t)(const struct device *dev,
152 const struct device *domain;
168 const struct device *dev;
288 static STRUCT_SECTION_ITERABLE_ALTERNATE(pm_device_slots, device, \
427 int pm_device_action_run(const struct device *dev,
440 void pm_device_children_action_run(const struct device *dev,
454 int pm_device_state_get(const struct device *dev,
468 static inline void pm_device_init_suspended(const struct device *dev) in pm_device_init_suspended()
[all …]
/Zephyr-Core-3.7.0/drivers/usb/udc/
Dudc_common.h33 static inline void *udc_get_private(const struct device *dev) in udc_get_private()
48 void udc_set_suspended(const struct device *dev, const bool value);
58 struct udc_ep_config *udc_get_ep_cfg(const struct device *dev,
69 bool udc_ep_is_busy(const struct device *dev, const uint8_t ep);
78 void udc_ep_set_busy(const struct device *dev, const uint8_t ep,
93 struct net_buf *udc_buf_get(const struct device *dev,
108 struct net_buf *udc_buf_get_all(const struct device *dev,
122 struct net_buf *udc_buf_peek(const struct device *dev,
147 int udc_submit_event(const struct device *dev,
164 int udc_submit_ep_event(const struct device *dev,
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/can/
Dcan_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, fake_can_start, const struct device *);
19 DECLARE_FAKE_VALUE_FUNC(int, fake_can_stop, const struct device *);
21 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing, const struct device *, const struct can_timing *);
23 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_timing_data, const struct device *,
26 DECLARE_FAKE_VALUE_FUNC(int, fake_can_get_capabilities, const struct device *, can_mode_t *);
28 DECLARE_FAKE_VALUE_FUNC(int, fake_can_set_mode, const struct device *, can_mode_t);
30 DECLARE_FAKE_VALUE_FUNC(int, fake_can_send, const struct device *, const struct can_frame *,
33 DECLARE_FAKE_VALUE_FUNC(int, fake_can_add_rx_filter, const struct device *, can_rx_callback_t,
36 DECLARE_FAKE_VOID_FUNC(fake_can_remove_rx_filter, const struct device *, int);
38 DECLARE_FAKE_VALUE_FUNC(int, fake_can_recover, const struct device *, k_timeout_t);
[all …]
/Zephyr-Core-3.7.0/drivers/counter/
Dcounter_handlers.c14 static inline int z_vrfy_counter_##name(const struct device *dev) \
17 return z_impl_counter_ ## name((const struct device *)dev); \
28 static inline bool z_vrfy_counter_is_counting_up(const struct device *dev) in COUNTER_HANDLER()
31 return z_impl_counter_is_counting_up((const struct device *)dev); in COUNTER_HANDLER()
35 static inline uint8_t z_vrfy_counter_get_num_of_channels(const struct device *dev) in z_vrfy_counter_get_num_of_channels()
38 return z_impl_counter_get_num_of_channels((const struct device *)dev); in z_vrfy_counter_get_num_of_channels()
42 static inline uint32_t z_vrfy_counter_get_frequency(const struct device *dev) in z_vrfy_counter_get_frequency()
45 return z_impl_counter_get_frequency((const struct device *)dev); in z_vrfy_counter_get_frequency()
49 static inline uint32_t z_vrfy_counter_us_to_ticks(const struct device *dev, in z_vrfy_counter_us_to_ticks()
53 return z_impl_counter_us_to_ticks((const struct device *)dev, in z_vrfy_counter_us_to_ticks()
[all …]
/Zephyr-Core-3.7.0/tests/kernel/device/src/
Dabstract_driver.h11 typedef int (*subsystem_do_this_t)(const struct device *device, int foo,
13 typedef void (*subsystem_do_that_t)(const struct device *device,
21 static inline int subsystem_do_this(const struct device *device, int foo, in subsystem_do_this() argument
26 api = (struct subsystem_api *)device->api; in subsystem_do_this()
27 return api->do_this(device, foo, bar); in subsystem_do_this()
30 static inline void subsystem_do_that(const struct device *device, in subsystem_do_that() argument
35 api = (struct subsystem_api *)device->api; in subsystem_do_that()
36 api->do_that(device, baz); in subsystem_do_that()
/Zephyr-Core-3.7.0/include/zephyr/drivers/usb/
Duhc.h125 const struct device *dev;
139 typedef int (*uhc_event_cb_t)(const struct device *dev,
191 static inline bool uhc_is_initialized(const struct device *dev) in uhc_is_initialized()
205 static inline bool uhc_is_enabled(const struct device *dev) in uhc_is_enabled()
216 int (*lock)(const struct device *dev);
217 int (*unlock)(const struct device *dev);
219 int (*init)(const struct device *dev);
220 int (*enable)(const struct device *dev);
221 int (*disable)(const struct device *dev);
222 int (*shutdown)(const struct device *dev);
[all …]
Dudc.h171 const struct device *dev;
215 typedef int (*udc_event_cb_t)(const struct device *dev,
225 enum udc_bus_speed (*device_speed)(const struct device *dev);
226 int (*ep_enqueue)(const struct device *dev,
229 int (*ep_dequeue)(const struct device *dev,
231 int (*ep_set_halt)(const struct device *dev,
233 int (*ep_clear_halt)(const struct device *dev,
235 int (*ep_try_config)(const struct device *dev,
237 int (*ep_enable)(const struct device *dev,
239 int (*ep_disable)(const struct device *dev,
[all …]
/Zephyr-Core-3.7.0/drivers/w1/
Dw1_handlers.c10 static inline int z_vrfy_w1_reset_bus(const struct device *dev) in z_vrfy_w1_reset_bus()
14 return z_impl_w1_reset_bus((const struct device *)dev); in z_vrfy_w1_reset_bus()
18 static inline int z_vrfy_w1_read_bit(const struct device *dev) in z_vrfy_w1_read_bit()
22 return z_impl_w1_read_bit((const struct device *)dev); in z_vrfy_w1_read_bit()
26 static inline int z_vrfy_w1_write_bit(const struct device *dev, bool bit) in z_vrfy_w1_write_bit()
30 return z_impl_w1_write_bit((const struct device *)dev, bit); in z_vrfy_w1_write_bit()
34 static inline int z_vrfy_w1_read_byte(const struct device *dev) in z_vrfy_w1_read_byte()
38 return z_impl_w1_read_byte((const struct device *)dev); in z_vrfy_w1_read_byte()
42 static inline int z_vrfy_w1_write_byte(const struct device *dev, uint8_t byte) in z_vrfy_w1_write_byte()
46 return z_impl_w1_write_byte((const struct device *)dev, (uint8_t)byte); in z_vrfy_w1_write_byte()
[all …]
/Zephyr-Core-3.7.0/modules/hostap/src/
Dsupp_api.h30 int supplicant_connect(const struct device *dev, struct wifi_connect_req_params *params);
40 int supplicant_disconnect(const struct device *dev);
50 int supplicant_status(const struct device *dev, struct wifi_iface_status *status);
61 int supplicant_scan(const struct device *dev, struct wifi_scan_params *params,
73 int supplicant_get_stats(const struct device *dev, struct net_stats_wifi *stats);
84 int supplicant_set_power_save(const struct device *dev, struct wifi_ps_params *params);
93 int supplicant_set_twt(const struct device *dev, struct wifi_twt_params *params);
102 int supplicant_get_power_save_config(const struct device *dev, struct wifi_ps_config *config);
111 int supplicant_reg_domain(const struct device *dev, struct wifi_reg_domain *reg_domain);
120 int supplicant_mode(const struct device *dev, struct wifi_mode_info *mode);
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/
Dcounter.h122 typedef void (*counter_alarm_callback_t)(const struct device *dev,
165 typedef void (*counter_top_callback_t)(const struct device *dev,
212 typedef int (*counter_api_start)(const struct device *dev);
213 typedef int (*counter_api_stop)(const struct device *dev);
214 typedef int (*counter_api_get_value)(const struct device *dev,
216 typedef int (*counter_api_get_value_64)(const struct device *dev,
218 typedef int (*counter_api_set_alarm)(const struct device *dev,
221 typedef int (*counter_api_cancel_alarm)(const struct device *dev,
223 typedef int (*counter_api_set_top_value)(const struct device *dev,
225 typedef uint32_t (*counter_api_get_pending_int)(const struct device *dev);
[all …]
Dauxdisplay.h147 typedef int (*auxdisplay_display_on_t)(const struct device *dev);
154 typedef int (*auxdisplay_display_off_t)(const struct device *dev);
161 typedef int (*auxdisplay_cursor_set_enabled_t)(const struct device *dev, bool enabled);
168 typedef int (*auxdisplay_position_blinking_set_enabled_t)(const struct device *dev,
176 typedef int (*auxdisplay_cursor_shift_set_t)(const struct device *dev, uint8_t direction,
184 typedef int (*auxdisplay_cursor_position_set_t)(const struct device *dev,
193 typedef int (*auxdisplay_cursor_position_get_t)(const struct device *dev, int16_t *x,
201 typedef int (*auxdisplay_display_position_set_t)(const struct device *dev,
210 typedef int (*auxdisplay_display_position_get_t)(const struct device *dev, int16_t *x,
218 typedef int (*auxdisplay_capabilities_get_t)(const struct device *dev,
[all …]
/Zephyr-Core-3.7.0/include/zephyr/drivers/virtualization/
Divshmem.h29 typedef size_t (*ivshmem_get_mem_f)(const struct device *dev,
32 typedef uint32_t (*ivshmem_get_id_f)(const struct device *dev);
34 typedef uint16_t (*ivshmem_get_vectors_f)(const struct device *dev);
36 typedef int (*ivshmem_int_peer_f)(const struct device *dev,
39 typedef int (*ivshmem_register_handler_f)(const struct device *dev,
45 typedef size_t (*ivshmem_get_rw_mem_section_f)(const struct device *dev,
48 typedef size_t (*ivshmem_get_output_mem_section_f)(const struct device *dev,
52 typedef uint32_t (*ivshmem_get_state_f)(const struct device *dev,
55 typedef int (*ivshmem_set_state_f)(const struct device *dev,
58 typedef uint32_t (*ivshmem_get_max_peers_f)(const struct device *dev);
[all …]
/Zephyr-Core-3.7.0/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-Core-3.7.0/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-Core-3.7.0/include/zephyr/drivers/serial/
Duart_async_to_irq.h48 typedef void (*uart_async_to_irq_trampoline)(const struct device *dev);
54 void uart_async_to_irq_trampoline_cb(const struct device *dev);
128 int uart_async_to_irq_rx_enable(const struct device *dev);
138 int uart_async_to_irq_rx_disable(const struct device *dev);
170 int (*callback_set)(const struct device *dev,
174 int (*tx)(const struct device *dev, const uint8_t *buf, size_t len,
176 int (*tx_abort)(const struct device *dev);
178 int (*rx_enable)(const struct device *dev, uint8_t *buf, size_t len,
180 int (*rx_buf_rsp)(const struct device *dev, uint8_t *buf, size_t len);
181 int (*rx_disable)(const struct device *dev);
[all …]

12345678910>>...162