Home
last modified time | relevance | path

Searched refs:device (Results 251 – 275 of 4950) sorted by relevance

1...<<11121314151617181920>>...198

/Zephyr-latest/samples/subsys/pm/latency/src/
Dtest.h9 void (*open)(const struct device *dev);
10 void (*close)(const struct device *dev);
13 static inline void test_open(const struct device *dev) in test_open()
21 static inline void test_close(const struct device *dev) in test_close()
/Zephyr-latest/drivers/reset/
Dreset_ast10x0.c30 const struct device *syscon;
33 static int aspeed_reset_line_assert(const struct device *dev, uint32_t id) in aspeed_reset_line_assert()
36 const struct device *syscon = config->syscon; in aspeed_reset_line_assert()
47 static int aspeed_reset_line_deassert(const struct device *dev, uint32_t id) in aspeed_reset_line_deassert()
50 const struct device *syscon = config->syscon; in aspeed_reset_line_deassert()
61 static int aspeed_reset_status(const struct device *dev, uint32_t id, uint8_t *status) in aspeed_reset_status()
64 const struct device *syscon = config->syscon; in aspeed_reset_status()
82 static int aspeed_reset_line_toggle(const struct device *dev, uint32_t id) in aspeed_reset_line_toggle()
/Zephyr-latest/boards/nxp/mimxrt1170_evk/
Dboard.cmake9 board_runner_args(jlink "--device=MIMXRT1176xxxA_M7" "--reset-after-load")
10 # ITCM is not defined in RT1170's LinkServer device file
11 board_runner_args(linkserver "--override=/device/memory/-=\{\"location\":\"0x00000000\",\
15 board_runner_args(linkserver "--device=MIMXRT1176xxxxx:MIMXRT1170-EVK")
17 board_runner_args(linkserver "--device=MIMXRT1176xxxxx:MIMXRT1170-EVKB")
24 board_runner_args(jlink "--device=MIMXRT1176xxxA_M4")
26 board_runner_args(linkserver "--device=MIMXRT1176xxxxx:MIMXRT1170-EVK")
28 board_runner_args(linkserver "--device=MIMXRT1176xxxxx:MIMXRT1170-EVKB")
/Zephyr-latest/drivers/serial/
Duart_mcux.c22 const struct device *clock_dev;
25 void (*irq_config_func)(const struct device *dev);
38 static int uart_mcux_configure(const struct device *dev, in uart_mcux_configure()
116 static int uart_mcux_config_get(const struct device *dev, in uart_mcux_config_get()
127 static int uart_mcux_poll_in(const struct device *dev, unsigned char *c) in uart_mcux_poll_in()
141 static void uart_mcux_poll_out(const struct device *dev, unsigned char c) in uart_mcux_poll_out()
151 static int uart_mcux_err_check(const struct device *dev) in uart_mcux_err_check()
177 static int uart_mcux_fifo_fill(const struct device *dev, in uart_mcux_fifo_fill()
193 static int uart_mcux_fifo_read(const struct device *dev, uint8_t *rx_data, in uart_mcux_fifo_read()
208 static void uart_mcux_irq_tx_enable(const struct device *dev) in uart_mcux_irq_tx_enable()
[all …]
Dusart_gd32.c44 static void usart_gd32_isr(const struct device *dev) in usart_gd32_isr()
54 static int usart_gd32_init(const struct device *dev) in usart_gd32_init()
109 static int usart_gd32_poll_in(const struct device *dev, unsigned char *c) in usart_gd32_poll_in()
125 static void usart_gd32_poll_out(const struct device *dev, unsigned char c) in usart_gd32_poll_out()
136 static int usart_gd32_err_check(const struct device *dev) in usart_gd32_err_check()
166 int usart_gd32_fifo_fill(const struct device *dev, const uint8_t *tx_data, in usart_gd32_fifo_fill()
180 int usart_gd32_fifo_read(const struct device *dev, uint8_t *rx_data, in usart_gd32_fifo_read()
194 void usart_gd32_irq_tx_enable(const struct device *dev) in usart_gd32_irq_tx_enable()
201 void usart_gd32_irq_tx_disable(const struct device *dev) in usart_gd32_irq_tx_disable()
208 int usart_gd32_irq_tx_ready(const struct device *dev) in usart_gd32_irq_tx_ready()
[all …]
Duart_native_tty.c137 static void native_tty_uart_poll_out(const struct device *dev, unsigned char out_char) in native_tty_uart_poll_out()
157 static int native_tty_uart_poll_in(const struct device *dev, unsigned char *p_char) in native_tty_uart_poll_in()
164 static int native_tty_configure(const struct device *dev, const struct uart_config *cfg) in native_tty_configure()
179 static int native_tty_uart_fifo_fill(const struct device *dev, in native_tty_uart_fifo_fill()
188 static int native_tty_uart_fifo_read(const struct device *dev, in native_tty_uart_fifo_read()
197 static int native_tty_uart_irq_tx_ready(const struct device *dev) in native_tty_uart_irq_tx_ready()
204 static int native_tty_uart_irq_tx_complete(const struct device *dev) in native_tty_uart_irq_tx_complete()
210 static void native_tty_uart_irq_tx_enable(const struct device *dev) in native_tty_uart_irq_tx_enable()
217 static void native_tty_uart_irq_tx_disable(const struct device *dev) in native_tty_uart_irq_tx_disable()
224 static void native_tty_uart_irq_rx_enable(const struct device *dev) in native_tty_uart_irq_rx_enable()
[all …]
Duart_pl011.c58 const struct device *clock_dev;
64 int (*clk_enable_func)(const struct device *dev, uint32_t clk);
81 static void pl011_enable(const struct device *dev) in pl011_enable()
86 static void pl011_disable(const struct device *dev) in pl011_disable()
91 static void pl011_enable_fifo(const struct device *dev) in pl011_enable_fifo()
96 static void pl011_disable_fifo(const struct device *dev) in pl011_disable_fifo()
101 static void pl011_set_flow_control(const struct device *dev, bool rts, bool cts) in pl011_set_flow_control()
115 static int pl011_set_baudrate(const struct device *dev, in pl011_set_baudrate()
145 static bool pl011_is_readable(const struct device *dev) in pl011_is_readable()
157 static int pl011_poll_in(const struct device *dev, unsigned char *c) in pl011_poll_in()
[all …]
Duart_nxp_s32_linflexd.c18 static int uart_nxp_s32_err_check(const struct device *dev) in uart_nxp_s32_err_check()
41 static void uart_nxp_s32_poll_out(const struct device *dev, unsigned char c) in uart_nxp_s32_poll_out()
61 static int uart_nxp_s32_poll_in(const struct device *dev, unsigned char *c) in uart_nxp_s32_poll_in()
93 static int uart_nxp_s32_fifo_fill(const struct device *dev, const uint8_t *tx_data, in uart_nxp_s32_fifo_fill()
111 static int uart_nxp_s32_fifo_read(const struct device *dev, uint8_t *rx_data, in uart_nxp_s32_fifo_read()
130 static void uart_nxp_s32_irq_tx_enable(const struct device *dev) in uart_nxp_s32_irq_tx_enable()
152 static void uart_nxp_s32_irq_tx_disable(const struct device *dev) in uart_nxp_s32_irq_tx_disable()
164 static int uart_nxp_s32_irq_tx_ready(const struct device *dev) in uart_nxp_s32_irq_tx_ready()
172 static void uart_nxp_s32_irq_rx_enable(const struct device *dev) in uart_nxp_s32_irq_rx_enable()
183 static void uart_nxp_s32_irq_rx_disable(const struct device *dev) in uart_nxp_s32_irq_rx_disable()
[all …]
/Zephyr-latest/drivers/sensor/adi/adxl362/
Dadxl362.h211 const struct device *dev;
293 void adxl362_submit_stream(const struct device *dev, struct rtio_iodev_sqe *iodev_sqe);
294 void adxl362_stream_irq_handler(const struct device *dev);
295 int adxl362_fifo_read(const struct device *dev, void *buff, size_t length);
298 int adxl362_reg_write_mask(const struct device *dev,
301 int adxl362_get_status(const struct device *dev, uint8_t *status);
303 int adxl362_interrupt_activity_enable(const struct device *dev);
305 int adxl362_trigger_set(const struct device *dev,
309 int adxl362_init_interrupt(const struct device *dev);
311 int adxl362_set_interrupt_mode(const struct device *dev, uint8_t mode);
[all …]
/Zephyr-latest/include/zephyr/crypto/
Dcrypto.h69 int (*query_hw_caps)(const struct device *dev);
72 int (*cipher_begin_session)(const struct device *dev, struct cipher_ctx *ctx,
77 int (*cipher_free_session)(const struct device *dev, struct cipher_ctx *ctx);
80 int (*cipher_async_callback_set)(const struct device *dev,
84 int (*hash_begin_session)(const struct device *dev, struct hash_ctx *ctx,
87 int (*hash_free_session)(const struct device *dev, struct hash_ctx *ctx);
89 int (*hash_async_callback_set)(const struct device *dev,
111 static inline int crypto_query_hwcaps(const struct device *dev) in crypto_query_hwcaps()
162 static inline int cipher_begin_session(const struct device *dev, in cipher_begin_session()
172 ctx->device = dev; in cipher_begin_session()
[all …]
/Zephyr-latest/include/zephyr/drivers/misc/renesas_ra_external_interrupt/
Drenesas_ra_external_interrupt.h13 struct device *port;
18 void (*isr)(const struct device *dev, gpio_pin_t pin);
21 int gpio_ra_interrupt_set(const struct device *dev, struct gpio_ra_callback *callback);
22 void gpio_ra_interrupt_unset(const struct device *dev, uint8_t port_num, uint8_t pin);
/Zephyr-latest/drivers/sensor/microchip/tcn75a/
Dtcn75a.h44 const struct device *dev;
72 int tcn75a_trigger_init(const struct device *dev);
73 int tcn75a_attr_get(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr,
76 int tcn75a_attr_set(const struct device *dev, enum sensor_channel chan, enum sensor_attribute attr,
78 int tcn75a_trigger_set(const struct device *dev, const struct sensor_trigger *trig,
81 int tcn75a_sample_fetch(const struct device *dev, enum sensor_channel chan);
/Zephyr-latest/drivers/gpio/
Dgpio_test.c28 static int vnd_gpio_pin_configure(const struct device *port, in vnd_gpio_pin_configure()
35 static int vnd_gpio_port_get_raw(const struct device *port, in vnd_gpio_port_get_raw()
41 static int vnd_gpio_port_set_masked_raw(const struct device *port, in vnd_gpio_port_set_masked_raw()
48 static int vnd_gpio_port_set_bits_raw(const struct device *port, in vnd_gpio_port_set_bits_raw()
54 static int vnd_gpio_port_clear_bits_raw(const struct device *port, in vnd_gpio_port_clear_bits_raw()
60 static int vnd_gpio_port_toggle_bits(const struct device *port, in vnd_gpio_port_toggle_bits()
Dgpio_rcar.c21 typedef void (*init_func_t)(const struct device *dev);
32 const struct device *clock_dev;
57 static inline uint32_t gpio_rcar_read(const struct device *dev, uint32_t offs) in gpio_rcar_read()
62 static inline void gpio_rcar_write(const struct device *dev, uint32_t offs, uint32_t value) in gpio_rcar_write()
67 static void gpio_rcar_modify_bit(const struct device *dev, in gpio_rcar_modify_bit()
81 static void gpio_rcar_port_isr(const struct device *dev) in gpio_rcar_port_isr()
98 const struct device *dev, in gpio_rcar_config_general_input_output_mode()
127 static int gpio_rcar_configure(const struct device *dev, in gpio_rcar_configure()
152 static int gpio_rcar_port_get_raw(const struct device *dev, in gpio_rcar_port_get_raw()
159 static int gpio_rcar_port_set_masked_raw(const struct device *dev, in gpio_rcar_port_set_masked_raw()
[all …]
/Zephyr-latest/drivers/sensor/hp206c/
Dhp206c.c24 static inline int hp206c_bus_config(const struct device *dev) in hp206c_bus_config()
34 static int hp206c_read(const struct device *dev, uint8_t cmd, uint8_t *data, in hp206c_read()
48 static int hp206c_read_reg(const struct device *dev, uint8_t reg_addr, in hp206c_read_reg()
56 static int hp206c_write(const struct device *dev, uint8_t cmd, uint8_t *data, in hp206c_write()
70 static int hp206c_write_reg(const struct device *dev, uint8_t reg_addr, in hp206c_write_reg()
78 static int hp206c_cmd_send(const struct device *dev, uint8_t cmd) in hp206c_cmd_send()
104 static int hp206c_osr_set(const struct device *dev, uint16_t osr) in hp206c_osr_set()
122 static int hp206c_altitude_offs_set(const struct device *dev, int16_t offs) in hp206c_altitude_offs_set()
141 static int hp206c_attr_set(const struct device *dev, enum sensor_channel chan, in hp206c_attr_set()
163 static int hp206c_wait_dev_ready(const struct device *dev, in hp206c_wait_dev_ready()
[all …]
/Zephyr-latest/drivers/mbox/
Dmbox_stm32_hsem.c41 const struct device *dev;
101 static inline bool is_rx_channel_valid(const struct device *dev, uint32_t ch) in is_rx_channel_valid()
107 static inline bool is_tx_channel_valid(const struct device *dev, uint32_t ch) in is_tx_channel_valid()
113 static void mbox_dispatcher(const struct device *dev) in mbox_dispatcher()
130 static int mbox_stm32_hsem_send(const struct device *dev, uint32_t channel, in mbox_stm32_hsem_send()
152 static int mbox_stm32_hsem_register_callback(const struct device *dev, uint32_t channel, in mbox_stm32_hsem_register_callback()
167 static int mbox_stm32_hsem_mtu_get(const struct device *dev) in mbox_stm32_hsem_mtu_get()
175 static uint32_t mbox_stm32_hsem_max_channels_get(const struct device *dev) in mbox_stm32_hsem_max_channels_get()
183 static int mbox_stm32_hsem_set_enabled(const struct device *dev, uint32_t channel, bool enable) in mbox_stm32_hsem_set_enabled()
200 static int mbox_stm32_clock_init(const struct device *dev) in mbox_stm32_clock_init()
[all …]
/Zephyr-latest/drivers/ps2/
Dps2_handlers.c10 static inline int z_vrfy_ps2_config(const struct device *dev, in z_vrfy_ps2_config()
20 static inline int z_vrfy_ps2_write(const struct device *dev, uint8_t value) in z_vrfy_ps2_write()
27 static inline int z_vrfy_ps2_read(const struct device *dev, uint8_t *value) in z_vrfy_ps2_read()
35 static inline int z_vrfy_ps2_enable_callback(const struct device *dev) in z_vrfy_ps2_enable_callback()
42 static inline int z_vrfy_ps2_disable_callback(const struct device *dev) in z_vrfy_ps2_disable_callback()
/Zephyr-latest/tests/kernel/device/src/
Dabstract_driver.c15 static int my_driver_A_do_this(const struct device *dev, int foo, int bar) in my_driver_A_do_this()
20 static void my_driver_A_do_that(const struct device *dev, unsigned int *baz) in my_driver_A_do_that()
30 int common_driver_init(const struct device *dev) in common_driver_init()
36 static int my_driver_B_do_this(const struct device *dev, int foo, int bar) in my_driver_B_do_this()
41 static void my_driver_B_do_that(const struct device *dev, unsigned int *baz) in my_driver_B_do_that()
/Zephyr-latest/subsys/usb/usb_c/
Dusbc_prl.c109 static void prl_tx_construct_message(const struct device *dev);
110 static void prl_rx_wait_for_phy_message(const struct device *dev);
111 static void prl_hr_set_state(const struct device *dev, const enum usbc_prl_hr_state_t state);
112 static void prl_tx_set_state(const struct device *dev, const enum usbc_prl_tx_state_t state);
113 static void prl_init(const struct device *dev);
114 static enum usbc_prl_hr_state_t prl_hr_get_state(const struct device *dev);
120 void prl_subsys_init(const struct device *dev) in prl_subsys_init()
141 bool prl_is_running(const struct device *dev) in prl_is_running()
152 void prl_execute_hard_reset(const struct device *dev) in prl_execute_hard_reset()
170 void prl_hard_reset_complete(const struct device *dev) in prl_hard_reset_complete()
[all …]
/Zephyr-latest/drivers/flash/
Dflash_stm32.h264 static inline bool flash_stm32_range_exists(const struct device *dev, in flash_stm32_range_exists()
283 static inline void _flash_stm32_sem_take(const struct device *dev) in _flash_stm32_sem_take()
289 static inline void _flash_stm32_sem_give(const struct device *dev) in _flash_stm32_sem_give()
305 int flash_stm32_ex_op(const struct device *dev, uint16_t code,
315 bool flash_stm32_valid_range(const struct device *dev, off_t offset,
318 int flash_stm32_write_range(const struct device *dev, unsigned int offset,
321 int flash_stm32_block_erase_loop(const struct device *dev,
325 int flash_stm32_wait_flash_idle(const struct device *dev);
327 int flash_stm32_option_bytes_lock(const struct device *dev, bool enable);
329 uint32_t flash_stm32_option_bytes_read(const struct device *dev);
[all …]
/Zephyr-latest/drivers/sensor/st/iis2iclx/
Diis2iclx.h57 const struct device *dev;
100 int iis2iclx_shub_init(const struct device *dev);
101 int iis2iclx_shub_fetch_external_devs(const struct device *dev);
102 int iis2iclx_shub_get_idx(const struct device *dev, enum sensor_channel type);
103 int iis2iclx_shub_config(const struct device *dev, enum sensor_channel chan,
109 int iis2iclx_trigger_set(const struct device *dev,
113 int iis2iclx_init_interrupt(const struct device *dev);
/Zephyr-latest/samples/subsys/pm/device_pm/src/
Ddummy_driver.c13 static const struct device *parent;
15 static int dummy_open(const struct device *dev) in dummy_open()
44 static int dummy_read(const struct device *dev, uint32_t *val) in dummy_read()
54 static int dummy_write(const struct device *dev, uint32_t val) in dummy_write()
64 static int dummy_close(const struct device *dev) in dummy_close()
81 static int dummy_device_pm_action(const struct device *dev, in dummy_device_pm_action()
105 int dummy_init(const struct device *dev) in dummy_init()
/Zephyr-latest/drivers/edac/
Dedac_ibecc.c31 static void ibecc_write_reg64(const struct device *dev, in ibecc_write_reg64()
40 static uint64_t ibecc_read_reg64(const struct device *dev, uint16_t reg) in ibecc_read_reg64()
49 static void ibecc_write_reg32(const struct device *dev, in ibecc_write_reg32()
92 static void parse_ecclog(const struct device *dev, const uint64_t ecclog, in parse_ecclog()
115 static int inject_set_param1(const struct device *dev, uint64_t addr) in inject_set_param1()
126 static int inject_get_param1(const struct device *dev, uint64_t *value) in inject_get_param1()
133 static int inject_set_param2(const struct device *dev, uint64_t mask) in inject_set_param2()
144 static int inject_get_param2(const struct device *dev, uint64_t *value) in inject_get_param2()
151 static int inject_set_error_type(const struct device *dev, in inject_set_error_type()
161 static int inject_get_error_type(const struct device *dev, in inject_get_error_type()
[all …]
/Zephyr-latest/samples/shields/x_nucleo_iks01a3/standard/src/
Dmain.c16 static void lis2mdl_trigger_handler(const struct device *dev, in lis2mdl_trigger_handler()
27 static void lps22hh_trigger_handler(const struct device *dev, in lps22hh_trigger_handler()
38 static void stts751_trigger_handler(const struct device *dev, in stts751_trigger_handler()
48 static void lis2dw12_trigger_handler(const struct device *dev, in lis2dw12_trigger_handler()
61 static void lsm6dso_acc_trig_handler(const struct device *dev, in lsm6dso_acc_trig_handler()
68 static void lsm6dso_gyr_trig_handler(const struct device *dev, in lsm6dso_gyr_trig_handler()
75 static void lsm6dso_temp_trig_handler(const struct device *dev, in lsm6dso_temp_trig_handler()
86 static void lis2de12_trigger_handler(const struct device *dev, in lis2de12_trigger_handler()
94 static void lis2mdl_config(const struct device *lis2mdl) in lis2mdl_config()
117 static void lps22hh_config(const struct device *lps22hh) in lps22hh_config()
[all …]
/Zephyr-latest/drivers/ipm/
Dipm_mbox.c28 static void ipm_mbox_callback(const struct device *mboxdev, mbox_channel_id_t channel_id, in ipm_mbox_callback()
31 const struct device *ipmdev = user_data; in ipm_mbox_callback()
37 static int ipm_mbox_send(const struct device *ipmdev, int wait, uint32_t id, in ipm_mbox_send()
50 static void ipm_mbox_register_callback(const struct device *ipmdev, in ipm_mbox_register_callback()
60 static int ipm_mbox_get_max_data_size(const struct device *ipmdev) in ipm_mbox_get_max_data_size()
67 static uint32_t ipm_mbox_get_max_id(const struct device *ipmdev) in ipm_mbox_get_max_id()
74 static int ipm_mbox_set_enable(const struct device *ipmdev, int enable) in ipm_mbox_set_enable()
83 static int ipm_mbox_init(const struct device *ipmdev) in ipm_mbox_init()

1...<<11121314151617181920>>...198