Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 4306) sorted by relevance

12345678910>>...173

/Zephyr-4.2.1/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() argument
16 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, get_core_clock)); in z_vrfy_can_calc_timing()
19 err = z_impl_can_calc_timing(dev, &res_copy, bitrate, sample_pnt); 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() argument
31 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, set_timing)); in z_vrfy_can_set_timing()
34 return z_impl_can_set_timing(dev, &timing_copy); 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() argument
41 K_OOPS(K_SYSCALL_DRIVER_CAN(dev, get_core_clock)); in z_vrfy_can_get_core_clock()
44 return z_impl_can_get_core_clock(dev, rate); 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() argument
[all …]
/Zephyr-4.2.1/drivers/display/
Ddisplay_rm68200.c89 static int rm68200_dcs_write(const struct device *dev, uint8_t cmd, uint8_t *buf, in rm68200_dcs_write() argument
92 const struct rm68200_config *config = dev->config; in rm68200_dcs_write()
97 static int rm68200_write(const struct device *dev, const uint16_t x, in rm68200_write() argument
105 static int rm68200_blanking_off(const struct device *dev) in rm68200_blanking_off() argument
107 const struct rm68200_config *config = dev->config; in rm68200_blanking_off()
116 static int rm68200_blanking_on(const struct device *dev) in rm68200_blanking_on() argument
118 const struct rm68200_config *config = dev->config; in rm68200_blanking_on()
127 static int rm68200_set_pixel_format(const struct device *dev, in rm68200_set_pixel_format() argument
130 const struct rm68200_config *config = dev->config; in rm68200_set_pixel_format()
139 static int rm68200_set_orientation(const struct device *dev, in rm68200_set_orientation() argument
[all …]
/Zephyr-4.2.1/drivers/misc/ft8xx/
Dft8xx_copro.c27 static uint16_t ram_cmd_fullness(const struct device *dev) in ram_cmd_fullness() argument
29 const struct ft8xx_data *data = dev->data; in ram_cmd_fullness()
34 static uint16_t ram_cmd_freespace(const struct device *dev) in ram_cmd_freespace() argument
36 return (FT800_RAM_CMD_SIZE - 4UL) - ram_cmd_fullness(dev); in ram_cmd_freespace()
39 static void refresh_reg_cmd_read(const struct device *dev) in refresh_reg_cmd_read() argument
41 struct ft8xx_data *data = dev->data; in refresh_reg_cmd_read()
43 data->reg_cmd_read = ft8xx_rd32(dev, FT800_REG_CMD_READ); in refresh_reg_cmd_read()
46 static void flush_reg_cmd_write(const struct device *dev) in flush_reg_cmd_write() argument
48 struct ft8xx_data *data = dev->data; in flush_reg_cmd_write()
50 ft8xx_wr32(dev, FT800_REG_CMD_WRITE, data->reg_cmd_write); in flush_reg_cmd_write()
[all …]
/Zephyr-4.2.1/drivers/auxdisplay/
Dauxdisplay_handlers.c10 static inline int z_vrfy_auxdisplay_display_on(const struct device *dev) in z_vrfy_auxdisplay_display_on() argument
12 K_OOPS(K_SYSCALL_DRIVER_AUXDISPLAY(dev, display_on)); in z_vrfy_auxdisplay_display_on()
13 return z_impl_auxdisplay_display_on(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() argument
19 K_OOPS(K_SYSCALL_DRIVER_AUXDISPLAY(dev, display_off)); in z_vrfy_auxdisplay_display_off()
20 return z_impl_auxdisplay_display_off(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() argument
26 K_OOPS(K_SYSCALL_DRIVER_AUXDISPLAY(dev, cursor_set_enabled)); in z_vrfy_auxdisplay_cursor_set_enabled()
27 return z_impl_auxdisplay_cursor_set_enabled(dev, 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() argument
[all …]
/Zephyr-4.2.1/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-4.2.1/include/zephyr/drivers/
Dedac.h49 typedef void (*edac_notify_callback_f)(const struct device *dev, void *data);
58 int (*inject_set_param1)(const struct device *dev, uint64_t value);
59 int (*inject_get_param1)(const struct device *dev, uint64_t *value);
60 int (*inject_set_param2)(const struct device *dev, uint64_t value);
61 int (*inject_get_param2)(const struct device *dev, uint64_t *value);
62 int (*inject_set_error_type)(const struct device *dev, uint32_t value);
63 int (*inject_get_error_type)(const struct device *dev, uint32_t *value);
64 int (*inject_error_trigger)(const struct device *dev);
67 int (*ecc_error_log_get)(const struct device *dev, uint64_t *value);
68 int (*ecc_error_log_clear)(const struct device *dev);
[all …]
Dcounter.h123 typedef void (*counter_alarm_callback_t)(const struct device *dev,
166 typedef void (*counter_top_callback_t)(const struct device *dev,
213 typedef int (*counter_api_start)(const struct device *dev);
214 typedef int (*counter_api_stop)(const struct device *dev);
215 typedef int (*counter_api_get_value)(const struct device *dev,
217 typedef int (*counter_api_get_value_64)(const struct device *dev,
219 typedef int (*counter_api_reset)(const struct device *dev);
220 typedef int (*counter_api_set_alarm)(const struct device *dev,
223 typedef int (*counter_api_cancel_alarm)(const struct device *dev,
225 typedef int (*counter_api_set_top_value)(const struct device *dev,
[all …]
Dstepper.h81 typedef int (*stepper_set_reference_position_t)(const struct device *dev, const int32_t value);
88 typedef int (*stepper_get_actual_position_t)(const struct device *dev, int32_t *value);
93 typedef void (*stepper_event_callback_t)(const struct device *dev, const enum stepper_event event,
101 typedef int (*stepper_set_event_callback_t)(const struct device *dev,
109 typedef int (*stepper_set_microstep_interval_t)(const struct device *dev,
116 typedef int (*stepper_move_by_t)(const struct device *dev, const int32_t micro_steps);
123 typedef int (*stepper_move_to_t)(const struct device *dev, const int32_t micro_steps);
130 typedef int (*stepper_run_t)(const struct device *dev, const enum stepper_direction direction);
137 typedef int (*stepper_stop_t)(const struct device *dev);
144 typedef int (*stepper_is_moving_t)(const struct device *dev, bool *is_moving);
[all …]
Dvirtio.h45 struct virtq *(*get_virtqueue)(const struct device *dev, uint16_t queue_idx);
46 void (*notify_virtqueue)(const struct device *dev, uint16_t queue_idx);
47 void *(*get_device_specific_config)(const struct device *dev);
48 bool (*read_device_feature_bit)(const struct device *dev, int bit);
49 int (*write_driver_feature_bit)(const struct device *dev, int bit, bool value);
50 int (*commit_feature_bits)(const struct device *dev);
52 const struct device *dev, uint16_t num_queues, virtio_enumerate_queues cb,
55 void (*finalize_init)(const struct device *dev);
65 static inline struct virtq *virtio_get_virtqueue(const struct device *dev, uint16_t queue_idx) in virtio_get_virtqueue() argument
67 const struct virtio_driver_api *api = dev->api; in virtio_get_virtqueue()
[all …]
Dauxdisplay.h148 typedef int (*auxdisplay_display_on_t)(const struct device *dev);
155 typedef int (*auxdisplay_display_off_t)(const struct device *dev);
162 typedef int (*auxdisplay_cursor_set_enabled_t)(const struct device *dev, bool enabled);
169 typedef int (*auxdisplay_position_blinking_set_enabled_t)(const struct device *dev,
177 typedef int (*auxdisplay_cursor_shift_set_t)(const struct device *dev, uint8_t direction,
185 typedef int (*auxdisplay_cursor_position_set_t)(const struct device *dev,
194 typedef int (*auxdisplay_cursor_position_get_t)(const struct device *dev, int16_t *x,
202 typedef int (*auxdisplay_display_position_set_t)(const struct device *dev,
211 typedef int (*auxdisplay_display_position_get_t)(const struct device *dev, int16_t *x,
219 typedef int (*auxdisplay_capabilities_get_t)(const struct device *dev,
[all …]
/Zephyr-4.2.1/drivers/virtualization/
Dvirt_ivshmem_handlers.c11 static inline size_t z_vrfy_ivshmem_get_mem(const struct device *dev, in z_vrfy_ivshmem_get_mem() argument
14 K_OOPS(K_SYSCALL_DRIVER_IVSHMEM(dev, get_mem)); in z_vrfy_ivshmem_get_mem()
17 return z_impl_ivshmem_get_mem(dev, memmap); in z_vrfy_ivshmem_get_mem()
21 static inline uint32_t z_vrfy_ivshmem_get_id(const struct device *dev) in z_vrfy_ivshmem_get_id() argument
23 K_OOPS(K_SYSCALL_DRIVER_IVSHMEM(dev, get_id)); in z_vrfy_ivshmem_get_id()
25 return z_impl_ivshmem_get_id(dev); in z_vrfy_ivshmem_get_id()
29 static inline uint16_t z_vrfy_ivshmem_get_vectors(const struct device *dev) in z_vrfy_ivshmem_get_vectors() argument
31 K_OOPS(K_SYSCALL_DRIVER_IVSHMEM(dev, get_vectors)); in z_vrfy_ivshmem_get_vectors()
33 return z_impl_ivshmem_get_vectors(dev); in z_vrfy_ivshmem_get_vectors()
37 static inline int z_vrfy_ivshmem_int_peer(const struct device *dev, in z_vrfy_ivshmem_int_peer() argument
[all …]
/Zephyr-4.2.1/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)
176 ARG_UNUSED(dev);
[all …]
/Zephyr-4.2.1/drivers/gnss/
Dgnss_emul.c33 const struct device *dev; member
51 static void gnss_emul_lock_sem(const struct device *dev) in gnss_emul_lock_sem() argument
53 struct gnss_emul_data *data = dev->data; in gnss_emul_lock_sem()
58 static void gnss_emul_unlock_sem(const struct device *dev) in gnss_emul_unlock_sem() argument
60 struct gnss_emul_data *data = dev->data; in gnss_emul_unlock_sem()
65 static void gnss_emul_update_fix_timestamp(const struct device *dev, bool resuming) in gnss_emul_update_fix_timestamp() argument
67 struct gnss_emul_data *data = dev->data; in gnss_emul_update_fix_timestamp()
78 static void gnss_emul_schedule_work(const struct device *dev) in gnss_emul_schedule_work() argument
80 struct gnss_emul_data *data = dev->data; in gnss_emul_schedule_work()
85 static bool gnss_emul_cancel_work(const struct device *dev) in gnss_emul_cancel_work() argument
[all …]
/Zephyr-4.2.1/drivers/counter/
Dcounter_handlers.c14 static inline int z_vrfy_counter_##name(const struct device *dev) \
16 K_OOPS(K_SYSCALL_DRIVER_COUNTER(dev, name)); \
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()
30 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER)); 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() argument
37 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_COUNTER)); 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() argument
[all …]
/Zephyr-4.2.1/tests/drivers/counter/maxim_ds3231_api/src/
Dtest_counter.c18 static void top_handler(const struct device *dev, void *user_data);
30 typedef void (*counter_test_func_t)(const struct device *dev);
32 typedef bool (*counter_capability_func_t)(const struct device *dev);
35 static void counter_setup_instance(const struct device *dev) in counter_setup_instance() argument
40 static void counter_tear_down_instance(const struct device *dev) in counter_tear_down_instance() argument
49 top_cfg.ticks = counter_get_max_top_value(dev); in counter_tear_down_instance()
50 err = counter_set_top_value(dev, &top_cfg); in counter_tear_down_instance()
54 err = counter_set_top_value(dev, &top_cfg); in counter_tear_down_instance()
58 "%s: Setting top value to default failed", dev->name); in counter_tear_down_instance()
60 err = counter_stop(dev); in counter_tear_down_instance()
[all …]
/Zephyr-4.2.1/tests/drivers/uart/uart_pm/src/
Dmain.c15 static void polling_verify(const struct device *dev, bool is_async, bool active) in polling_verify() argument
26 uart_poll_out(dev, outs[i]); in polling_verify()
32 err = uart_poll_in(dev, &c); in polling_verify()
36 uart_poll_out(dev, outs[i]); in polling_verify()
43 err = uart_poll_in(dev, &c); in polling_verify()
48 err = uart_poll_in(dev, &c); in polling_verify()
53 static void async_callback(const struct device *dev, struct uart_event *evt, void *ctx) in async_callback() argument
66 static bool async_verify(const struct device *dev, bool active) in async_verify() argument
73 err = uart_callback_set(dev, async_callback, (void *)&tx_done); in async_verify()
91 err = uart_rx_enable(dev, rxbuf, sizeof(rxbuf), 1 * USEC_PER_MSEC); in async_verify()
[all …]
/Zephyr-4.2.1/drivers/w1/
Dw1_handlers.c10 static inline int z_vrfy_w1_reset_bus(const struct device *dev) in z_vrfy_w1_reset_bus() argument
12 K_OOPS(K_SYSCALL_DRIVER_W1(dev, reset_bus)); 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() argument
20 K_OOPS(K_SYSCALL_DRIVER_W1(dev, read_bit)); 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() argument
28 K_OOPS(K_SYSCALL_DRIVER_W1(dev, write_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() argument
[all …]
/Zephyr-4.2.1/include/zephyr/drivers/usb_c/
Dusbc_tcpc.h123 typedef int (*tcpc_vconn_control_cb_t)(const struct device *dev, enum tc_cc_polarity pol,
125 typedef int (*tcpc_vconn_discharge_cb_t)(const struct device *dev, enum tc_cc_polarity pol,
127 typedef void (*tcpc_alert_handler_cb_t)(const struct device *dev, void *data,
131 int (*init)(const struct device *dev);
132 int (*get_cc)(const struct device *dev, enum tc_cc_voltage_state *cc1,
134 int (*select_rp_value)(const struct device *dev, enum tc_rp_value rp);
135 int (*get_rp_value)(const struct device *dev, enum tc_rp_value *rp);
136 int (*set_cc)(const struct device *dev, enum tc_cc_pull pull);
137 void (*set_vconn_discharge_cb)(const struct device *dev, tcpc_vconn_discharge_cb_t cb);
138 void (*set_vconn_cb)(const struct device *dev, tcpc_vconn_control_cb_t vconn_cb);
[all …]
Dusbc_ppc.h57 typedef void (*usbc_ppc_event_cb_t)(const struct device *dev, void *data, enum usbc_ppc_event ev);
61 int (*is_dead_battery_mode)(const struct device *dev);
62 int (*exit_dead_battery_mode)(const struct device *dev);
63 int (*is_vbus_source)(const struct device *dev);
64 int (*is_vbus_sink)(const struct device *dev);
65 int (*set_snk_ctrl)(const struct device *dev, bool enable);
66 int (*set_src_ctrl)(const struct device *dev, bool enable);
67 int (*set_vbus_discharge)(const struct device *dev, bool enable);
68 int (*is_vbus_present)(const struct device *dev);
69 int (*set_event_handler)(const struct device *dev, usbc_ppc_event_cb_t handler, void *data);
[all …]
/Zephyr-4.2.1/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-4.2.1/subsys/usb/usb_c/
Dusbc_pe_src_states.c29 void pe_src_init(const struct device *dev) in pe_src_init() argument
31 struct usbc_port_data *data = dev->data; in pe_src_init()
35 pe_set_data_role(dev, TC_ROLE_DFP); in pe_src_init()
45 pe_set_state(dev, PE_SRC_STARTUP); in pe_src_init()
51 bool source_dpm_requests(const struct device *dev) in source_dpm_requests() argument
53 struct usbc_port_data *data = dev->data; in source_dpm_requests()
58 pe_set_state(dev, PE_GET_SINK_CAP); in source_dpm_requests()
62 pe_set_state(dev, PE_SRC_TRANSITION_SUPPLY); in source_dpm_requests()
74 const struct device *dev = pe->dev; in send_src_caps() local
75 struct usbc_port_data *data = dev->data; in send_src_caps()
[all …]
Dusbc_pe_snk_states.c21 void pe_snk_init(const struct device *dev) in pe_snk_init() argument
23 struct usbc_port_data *data = dev->data; in pe_snk_init()
27 pe_set_data_role(dev, TC_ROLE_UFP); in pe_snk_init()
35 pe_set_state(dev, PE_SNK_STARTUP); in pe_snk_init()
41 void sink_dpm_requests(const struct device *dev) in sink_dpm_requests() argument
43 struct usbc_port_data *data = dev->data; in sink_dpm_requests()
49 if (common_dpm_requests(dev)) { in sink_dpm_requests()
60 pe_set_state(dev, PE_SNK_GET_SOURCE_CAP); in sink_dpm_requests()
71 const struct device *dev = pe->dev; in pe_snk_startup_entry() local
76 prl_reset(dev); in pe_snk_startup_entry()
[all …]
/Zephyr-4.2.1/tests/drivers/bbram/emul/src/
Dmain.c16 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in ZTEST() local
19 zassert_true(device_is_ready(dev), "Device is not ready"); in ZTEST()
21 zassert_ok(bbram_get_size(dev, &size)); in ZTEST()
27 const struct device *const dev = DEVICE_DT_GET(BBRAM_NODELABEL); in ZTEST() local
30 zassert_equal(bbram_read(dev, 0, 0, buffer), -EFAULT); in ZTEST()
31 zassert_equal(bbram_read(dev, 0, BBRAM_SIZE + 1, buffer), -EFAULT); in ZTEST()
32 zassert_equal(bbram_read(dev, BBRAM_SIZE - 1, 2, buffer), -EFAULT); in ZTEST()
33 zassert_equal(bbram_write(dev, 0, 0, buffer), -EFAULT); in ZTEST()
34 zassert_equal(bbram_write(dev, 0, BBRAM_SIZE + 1, buffer), -EFAULT); in ZTEST()
35 zassert_equal(bbram_write(dev, BBRAM_SIZE - 1, 2, buffer), -EFAULT); in ZTEST()
[all …]
/Zephyr-4.2.1/drivers/flash/
Dflash_handlers.c11 static inline int z_vrfy_flash_read(const struct device *dev, off_t offset, in z_vrfy_flash_read() argument
14 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, read)); 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() argument
25 K_OOPS(K_SYSCALL_DRIVER_FLASH(dev, write)); 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() argument
35 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_FLASH)); 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() argument
[all …]
/Zephyr-4.2.1/tests/drivers/counter/counter_basic_api/src/
Dtest_counter.c19 static void top_handler(const struct device *dev, void *user_data);
182 typedef void (*counter_test_func_t)(const struct device *dev);
183 typedef bool (*counter_capability_func_t)(const struct device *dev);
185 static inline uint32_t get_counter_period_us(const struct device *dev) in get_counter_period_us() argument
188 if (period_devs[i] == dev) { in get_counter_period_us()
199 static void counter_setup_instance(const struct device *dev) in counter_setup_instance() argument
207 static void counter_tear_down_instance(const struct device *dev) in counter_tear_down_instance() argument
216 top_cfg.ticks = counter_get_max_top_value(dev); in counter_tear_down_instance()
217 err = counter_set_top_value(dev, &top_cfg); in counter_tear_down_instance()
221 err = counter_set_top_value(dev, &top_cfg); in counter_tear_down_instance()
[all …]

12345678910>>...173