Home
last modified time | relevance | path

Searched full:dev (Results 1 – 25 of 2903) sorted by relevance

12345678910>>...117

/Zephyr-latest/drivers/gnss/
Dgnss_emul.c33 const struct device *dev; member
49 static void gnss_emul_lock_sem(const struct device *dev) in gnss_emul_lock_sem() argument
51 struct gnss_emul_data *data = dev->data; in gnss_emul_lock_sem()
56 static void gnss_emul_unlock_sem(const struct device *dev) in gnss_emul_unlock_sem() argument
58 struct gnss_emul_data *data = dev->data; in gnss_emul_unlock_sem()
63 static void gnss_emul_update_fix_timestamp(const struct device *dev, bool resuming) in gnss_emul_update_fix_timestamp() argument
65 struct gnss_emul_data *data = dev->data; in gnss_emul_update_fix_timestamp()
76 static bool gnss_emul_fix_is_acquired(const struct device *dev) in gnss_emul_fix_is_acquired() argument
78 struct gnss_emul_data *data = dev->data; in gnss_emul_fix_is_acquired()
86 static void gnss_emul_clear_fix_timestamp(const struct device *dev) in gnss_emul_clear_fix_timestamp() argument
[all …]
/Zephyr-latest/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-latest/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_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); 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_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); 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_OBJ(dev, K_OBJ_DRIVER_AUXDISPLAY)); 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-latest/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 …]
Dcan_sja1000.c22 static inline void can_sja1000_write_reg(const struct device *dev, uint8_t reg, uint8_t val) in can_sja1000_write_reg() argument
24 const struct can_sja1000_config *config = dev->config; in can_sja1000_write_reg()
26 config->write_reg(dev, reg, val); in can_sja1000_write_reg()
29 static inline uint8_t can_sja1000_read_reg(const struct device *dev, uint8_t reg) in can_sja1000_read_reg() argument
31 const struct can_sja1000_config *config = dev->config; in can_sja1000_read_reg()
33 return config->read_reg(dev, reg); in can_sja1000_read_reg()
36 static inline int can_sja1000_enter_reset_mode(const struct device *dev) in can_sja1000_enter_reset_mode() argument
41 mod = can_sja1000_read_reg(dev, CAN_SJA1000_MOD); in can_sja1000_enter_reset_mode()
48 can_sja1000_write_reg(dev, CAN_SJA1000_MOD, mod | CAN_SJA1000_MOD_RM); in can_sja1000_enter_reset_mode()
50 mod = can_sja1000_read_reg(dev, CAN_SJA1000_MOD); in can_sja1000_enter_reset_mode()
[all …]
/Zephyr-latest/include/zephyr/drivers/uart/
Duart_internal.h34 * @param dev UART device instance.
36 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);
[all …]
/Zephyr-latest/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-latest/drivers/usb/uhc/
Duhc_common.c22 int uhc_submit_event(const struct device *dev, in uhc_submit_event() argument
26 struct uhc_data *data = dev->data; in uhc_submit_event()
30 .dev = dev, in uhc_submit_event()
33 if (!uhc_is_initialized(dev)) { in uhc_submit_event()
37 return data->event_cb(dev, &drv_evt); in uhc_submit_event()
40 void uhc_xfer_return(const struct device *dev, in uhc_xfer_return() argument
44 struct uhc_data *data = dev->data; in uhc_xfer_return()
48 .dev = dev, in uhc_xfer_return()
55 data->event_cb(dev, &drv_evt); in uhc_xfer_return()
58 struct uhc_transfer *uhc_xfer_get_next(const struct device *dev) in uhc_xfer_get_next() argument
[all …]
/Zephyr-latest/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-latest/drivers/smbus/
Dsmbus_handlers.c11 static inline int z_vrfy_smbus_configure(const struct device *dev, in z_vrfy_smbus_configure() argument
14 K_OOPS(K_SYSCALL_DRIVER_SMBUS(dev, configure)); in z_vrfy_smbus_configure()
16 return z_impl_smbus_configure(dev, dev_config); in z_vrfy_smbus_configure()
20 static inline int z_vrfy_smbus_get_config(const struct device *dev, in z_vrfy_smbus_get_config() argument
23 K_OOPS(K_SYSCALL_DRIVER_SMBUS(dev, get_config)); in z_vrfy_smbus_get_config()
26 return z_impl_smbus_get_config(dev, dev_config); in z_vrfy_smbus_get_config()
30 static inline int z_vrfy_smbus_quick(const struct device *dev, uint16_t addr, in z_vrfy_smbus_quick() argument
33 K_OOPS(K_SYSCALL_OBJ(dev, K_OBJ_DRIVER_SMBUS)); in z_vrfy_smbus_quick()
35 return z_impl_smbus_quick(dev, addr, rw); in z_vrfy_smbus_quick()
39 static inline int z_vrfy_smbus_byte_write(const struct device *dev, in z_vrfy_smbus_byte_write() argument
[all …]
/Zephyr-latest/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-latest/tests/drivers/udc/src/
Dmain.c30 static int test_udc_event_handler(const struct device *dev, in test_udc_event_handler() argument
36 static void event_ep_request(const struct device *dev, struct udc_event event) in event_ep_request() argument
43 err = udc_ep_buf_free(dev, event.buf); in event_ep_request()
56 const struct device *dev = p1; in test_udc_thread() local
62 zassert_equal(udc_get_event_ctx(event.dev), &test_event_ctx, in test_udc_thread()
85 event_ep_request(dev, event); in test_udc_thread()
96 static void test_udc_ep_try_config(const struct device *dev, in test_udc_ep_try_config() argument
102 err = udc_ep_try_config(dev, ed->bEndpointAddress, in test_udc_ep_try_config()
117 err = udc_ep_try_config(dev, ed->bEndpointAddress, in test_udc_ep_try_config()
124 static void test_udc_ep_enable(const struct device *dev, in test_udc_ep_enable() argument
[all …]
/Zephyr-latest/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-latest/drivers/audio/
Dtas6422dac.c55 static void codec_mute_output(const struct device *dev, enum tas6422dac_channel_t channel);
56 static void codec_unmute_output(const struct device *dev, enum tas6422dac_channel_t channel);
57 static void codec_write_reg(const struct device *dev, uint8_t reg, uint8_t val);
58 static void codec_read_reg(const struct device *dev, uint8_t reg, uint8_t *val);
59 static void codec_soft_reset(const struct device *dev);
60 static int codec_configure_dai(const struct device *dev, audio_dai_cfg_t *cfg);
61 static void codec_configure_output(const struct device *dev);
62 static int codec_set_output_volume(const struct device *dev, enum tas6422dac_channel_t channel,
66 static void codec_read_all_regs(const struct device *dev);
67 #define CODEC_DUMP_REGS(dev) codec_read_all_regs((dev)) argument
[all …]
/Zephyr-latest/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-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() 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-latest/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-latest/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-latest/tests/drivers/counter/counter_basic_api/src/
Dtest_counter.c19 static void top_handler(const struct device *dev, void *user_data);
146 typedef void (*counter_test_func_t)(const struct device *dev);
147 typedef bool (*counter_capability_func_t)(const struct device *dev);
149 static inline uint32_t get_counter_period_us(const struct device *dev) in get_counter_period_us() argument
152 if (period_devs[i] == dev) { in get_counter_period_us()
163 static void counter_setup_instance(const struct device *dev) in counter_setup_instance() argument
171 static void counter_tear_down_instance(const struct device *dev) in counter_tear_down_instance() argument
180 top_cfg.ticks = counter_get_max_top_value(dev); in counter_tear_down_instance()
181 err = counter_set_top_value(dev, &top_cfg); in counter_tear_down_instance()
185 err = counter_set_top_value(dev, &top_cfg); in counter_tear_down_instance()
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_enc28j60.c32 static int eth_enc28j60_soft_reset(const struct device *dev) in eth_enc28j60_soft_reset() argument
34 const struct eth_enc28j60_config *config = dev->config; in eth_enc28j60_soft_reset()
48 static void eth_enc28j60_set_bank(const struct device *dev, uint16_t reg_addr) in eth_enc28j60_set_bank() argument
50 const struct eth_enc28j60_config *config = dev->config; in eth_enc28j60_set_bank()
78 LOG_DBG("%s: Failure while setting bank to 0x%04x", dev->name, reg_addr); in eth_enc28j60_set_bank()
82 static void eth_enc28j60_write_reg(const struct device *dev, in eth_enc28j60_write_reg() argument
86 const struct eth_enc28j60_config *config = dev->config; in eth_enc28j60_write_reg()
103 static void eth_enc28j60_read_reg(const struct device *dev, uint16_t reg_addr, in eth_enc28j60_read_reg() argument
106 const struct eth_enc28j60_config *config = dev->config; in eth_enc28j60_read_reg()
137 LOG_DBG("%s: Failure while reading register 0x%04x", dev->name, reg_addr); in eth_enc28j60_read_reg()
[all …]
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/
Dintel_vtd.h11 typedef int (*vtd_alloc_entries_f)(const struct device *dev,
14 typedef uint32_t (*vtd_remap_msi_f)(const struct device *dev,
18 typedef int (*vtd_remap_f)(const struct device *dev,
24 typedef int (*vtd_set_irte_vector_f)(const struct device *dev,
28 typedef int (*vtd_get_irte_by_vector_f)(const struct device *dev,
31 typedef uint16_t (*vtd_get_irte_vector_f)(const struct device *dev,
34 typedef int (*vtd_set_irte_irq_f)(const struct device *dev,
38 typedef int (*vtd_get_irte_by_irq_f)(const struct device *dev,
41 typedef void (*vtd_set_irte_msi_f)(const struct device *dev,
45 typedef bool (*vtd_irte_is_msi_f)(const struct device *dev,
[all …]
/Zephyr-latest/drivers/serial/
Duart_async_to_irq.c31 static struct uart_async_to_irq_data *get_data(const struct device *dev) in get_data() argument
33 struct uart_async_to_irq_data **data = dev->data; in get_data()
38 static const struct uart_async_to_irq_config *get_config(const struct device *dev) in get_config() argument
40 const struct uart_async_to_irq_config * const *config = dev->config; in get_config()
46 static uint32_t get_rx_timeout(const struct device *dev) in get_rx_timeout() argument
52 err = uart_config_get(dev, &cfg); in get_rx_timeout()
56 baudrate = get_config(dev)->baudrate; in get_rx_timeout()
64 static int rx_enable(const struct device *dev, in rx_enable() argument
70 const struct uart_async_to_irq_config *config = get_config(dev); in rx_enable()
72 err = config->api->rx_enable(dev, buf, len, get_rx_timeout(dev)); in rx_enable()
[all …]
/Zephyr-latest/drivers/usb/udc/
Dudc_mcux_ehci.c39 void (*irq_enable_func)(const struct device *dev);
40 void (*irq_disable_func)(const struct device *dev);
50 const struct device *dev; member
60 const struct device *dev; member
67 static int udc_mcux_lock(const struct device *dev) in udc_mcux_lock() argument
69 return udc_lock_internal(dev, K_FOREVER); in udc_mcux_lock()
72 static int udc_mcux_unlock(const struct device *dev) in udc_mcux_unlock() argument
74 return udc_unlock_internal(dev); in udc_mcux_unlock()
77 static int udc_mcux_control(const struct device *dev, usb_device_control_type_t command, in udc_mcux_control() argument
80 const struct udc_mcux_config *config = dev->config; in udc_mcux_control()
[all …]
/Zephyr-latest/drivers/sensor/ti/tmp108/
Dtmp108.c22 int tmp108_reg_read(const struct device *dev, uint8_t reg, uint16_t *val) in tmp108_reg_read() argument
24 const struct tmp108_config *cfg = dev->config; in tmp108_reg_read()
38 int tmp108_reg_write(const struct device *dev, uint8_t reg, uint16_t val) in tmp108_reg_write() argument
40 const struct tmp108_config *cfg = dev->config; in tmp108_reg_write()
56 int tmp108_write_config(const struct device *dev, uint16_t mask, uint16_t conf) in tmp108_write_config() argument
61 result = tmp108_reg_read(dev, TI_TMP108_REG_CONF, &config); in tmp108_write_config()
70 result = tmp108_reg_write(dev, TI_TMP108_REG_CONF, config); in tmp108_write_config()
79 int ti_tmp108_read_temp(const struct device *dev) in ti_tmp108_read_temp() argument
81 struct tmp108_data *drv_data = dev->data; in ti_tmp108_read_temp()
90 result = tmp108_reg_read(dev, TI_TMP108_REG_TEMP, &drv_data->sample); in ti_tmp108_read_temp()
[all …]
/Zephyr-latest/tests/subsys/display/cfb/basic/src/
Ddraw_text_rectspace1016.c18 static const struct device *dev = DEVICE_DT_GET(DT_CHOSEN(zephyr_display)); variable
38 zassert_ok(display_write(dev, 0, 0, &desc, read_buffer)); in cfb_test_before()
40 zassert_ok(display_blanking_off(dev)); in cfb_test_before()
42 zassert_ok(cfb_framebuffer_init(dev)); in cfb_test_before()
44 for (int idx = 0; idx < cfb_get_numof_fonts(dev); idx++) { in cfb_test_before()
45 if (cfb_get_font_size(dev, idx, &font_width, &font_height)) { in cfb_test_before()
50 cfb_framebuffer_set_font(dev, idx); in cfb_test_before()
61 cfb_framebuffer_deinit(dev); in cfb_test_after()
69 zassert_ok(cfb_draw_text(dev, " ", 0, 0)); in ZTEST()
70 zassert_ok(cfb_framebuffer_finalize(dev)); in ZTEST()
[all …]

12345678910>>...117