/Zephyr-latest/scripts/pylib/pytest-twister-harness/tests/device/ |
D | hardware_adapter_test.py | 12 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 …]
|
D | binary_adapter_test.py | 15 from twister_harness.device.binary_adapter import ( 33 …device = 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 …]
|
D | qemu_adapter_test.py | 12 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-latest/modules/hostap/src/ |
D | supp_api.h | 31 int supplicant_get_version(const struct device *dev, struct wifi_version *params); 41 int supplicant_connect(const struct device *dev, struct wifi_connect_req_params *params); 51 int supplicant_disconnect(const struct device *dev); 61 int supplicant_status(const struct device *dev, struct wifi_iface_status *status); 72 int supplicant_scan(const struct device *dev, struct wifi_scan_params *params, 84 int supplicant_get_stats(const struct device *dev, struct net_stats_wifi *stats); 92 int supplicant_reset_stats(const struct device *dev); 101 int supplicant_pmksa_flush(const struct device *dev); 110 int supplicant_11k_cfg(const struct device *dev, struct wifi_11k_params *params); 119 int supplicant_11k_neighbor_request(const struct device *dev, struct wifi_11k_params *params); [all …]
|
/Zephyr-latest/include/zephyr/usb_c/ |
D | usbc.h | 185 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-latest/subsys/usb/usb_c/ |
D | usbc_pe_common_internal.h | 199 const struct device *dev; 269 void pe_first_msg_sent(const struct device *dev); 277 void pe_set_state(const struct device *dev, const enum usbc_pe_state state); 285 enum usbc_pe_state pe_get_state(const struct device *dev); 293 enum usbc_pe_state pe_get_last_state(const struct device *dev); 301 void pe_send_soft_reset(const struct device *dev, const enum pd_packet_type type); 310 void pe_send_data_msg(const struct device *dev, 321 void pe_send_ctrl_msg(const struct device *dev, 331 void pe_send_request_msg(const struct device *dev, const uint32_t rdo); 338 void extended_message_not_supported(const struct device *dev); [all …]
|
D | usbc_stack.h | 41 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 …]
|
D | usbc_prl.h | 44 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-latest/include/zephyr/drivers/regulator/ |
D | fake.h | 16 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-latest/drivers/usb_c/tcpc/ |
D | ucpd_numaker.h | 14 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-latest/include/zephyr/pm/ |
D | device_runtime.h | 38 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 …]
|
D | device.h | 28 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-latest/drivers/usb/udc/ |
D | udc_common.h | 33 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-latest/include/zephyr/drivers/can/ |
D | can_fake.h | 17 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-latest/include/zephyr/drivers/ |
D | uart.h | 140 typedef void (*uart_irq_callback_user_data_t)(const struct device *dev, 316 typedef void (*uart_callback_t)(const struct device *dev, 332 __syscall int uart_err_check(const struct device *dev); 357 __syscall int uart_poll_in(const struct device *dev, unsigned char *p_char); 378 __syscall int uart_poll_in_u16(const struct device *dev, uint16_t *p_u16); 395 __syscall void uart_poll_out(const struct device *dev, 412 __syscall void uart_poll_out_u16(const struct device *dev, uint16_t out_u16); 432 __syscall int uart_configure(const struct device *dev, 449 __syscall int uart_config_get(const struct device *dev, 477 static inline int uart_fifo_fill(const struct device *dev, const uint8_t *tx_data, int size); [all …]
|
D | counter.h | 122 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 …]
|
D | auxdisplay.h | 147 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-latest/drivers/counter/ |
D | counter_handlers.c | 14 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-latest/include/zephyr/drivers/usb/ |
D | uhc.h | 127 const struct device *dev; 141 typedef int (*uhc_event_cb_t)(const struct device *dev, 193 static inline bool uhc_is_initialized(const struct device *dev) in uhc_is_initialized() 207 static inline bool uhc_is_enabled(const struct device *dev) in uhc_is_enabled() 218 int (*lock)(const struct device *dev); 219 int (*unlock)(const struct device *dev); 221 int (*init)(const struct device *dev); 222 int (*enable)(const struct device *dev); 223 int (*disable)(const struct device *dev); 224 int (*shutdown)(const struct device *dev); [all …]
|
D | udc.h | 173 const struct device *dev; 217 typedef int (*udc_event_cb_t)(const struct device *dev, 227 enum udc_bus_speed (*device_speed)(const struct device *dev); 228 int (*ep_enqueue)(const struct device *dev, 231 int (*ep_dequeue)(const struct device *dev, 233 int (*ep_set_halt)(const struct device *dev, 235 int (*ep_clear_halt)(const struct device *dev, 237 int (*ep_try_config)(const struct device *dev, 239 int (*ep_enable)(const struct device *dev, 241 int (*ep_disable)(const struct device *dev, [all …]
|
/Zephyr-latest/drivers/w1/ |
D | w1_handlers.c | 10 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-latest/include/zephyr/drivers/serial/ |
D | uart_async_to_irq.h | 48 typedef void (*uart_async_to_irq_trampoline)(const struct device *dev); 54 void uart_async_to_irq_trampoline_cb(const struct device *dev); 116 int uart_async_to_irq_init(const struct device *dev); 126 int uart_async_to_irq_rx_enable(const struct device *dev); 136 int uart_async_to_irq_rx_disable(const struct device *dev); 168 int (*callback_set)(const struct device *dev, 172 int (*tx)(const struct device *dev, const uint8_t *buf, size_t len, 174 int (*tx_abort)(const struct device *dev); 176 int (*rx_enable)(const struct device *dev, uint8_t *buf, size_t len, 178 int (*rx_buf_rsp)(const struct device *dev, uint8_t *buf, size_t len); [all …]
|
/Zephyr-latest/include/zephyr/drivers/virtualization/ |
D | ivshmem.h | 29 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-latest/subsys/tracing/user/ |
D | tracing_user.c | 28 void __weak sys_trace_gpio_pin_interrupt_configure_enter_user(const struct device *port, in sys_trace_gpio_pin_interrupt_configure_enter_user() 30 void __weak sys_trace_gpio_pin_interrupt_configure_exit_user(const struct device *port, in sys_trace_gpio_pin_interrupt_configure_exit_user() 32 void __weak sys_trace_gpio_pin_configure_enter_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_configure_enter_user() 34 void __weak sys_trace_gpio_pin_configure_exit_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_configure_exit_user() 36 void __weak sys_trace_gpio_port_get_direction_enter_user(const struct device *port, in sys_trace_gpio_port_get_direction_enter_user() 40 void __weak sys_trace_gpio_port_get_direction_exit_user(const struct device *port, int ret) {} in sys_trace_gpio_port_get_direction_exit_user() 41 void __weak sys_trace_gpio_pin_get_config_enter_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_get_config_enter_user() 43 void __weak sys_trace_gpio_pin_get_config_exit_user(const struct device *port, gpio_pin_t pin, in sys_trace_gpio_pin_get_config_exit_user() 45 void __weak sys_trace_gpio_port_get_raw_enter_user(const struct device *port, in sys_trace_gpio_port_get_raw_enter_user() 47 void __weak sys_trace_gpio_port_get_raw_exit_user(const struct device *port, int ret) {} in sys_trace_gpio_port_get_raw_exit_user() [all …]
|
/Zephyr-latest/include/zephyr/drivers/stepper/ |
D | stepper_fake.h | 17 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_enable, const struct device *, bool); 19 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_move_by, const struct device *, int32_t); 21 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_max_velocity, const struct device *, uint32_t); 23 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_micro_step_res, const struct device *, 26 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_get_micro_step_res, const struct device *, 29 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_set_reference_position, const struct device *, int32_t); 31 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_get_actual_position, const struct device *, int32_t *); 33 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_move_to, const struct device *, int32_t); 35 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_is_moving, const struct device *, bool *); 37 DECLARE_FAKE_VALUE_FUNC(int, fake_stepper_run, const struct device *, enum stepper_direction, [all …]
|