Home
last modified time | relevance | path

Searched refs:device (Results 201 – 225 of 4822) sorted by relevance

12345678910>>...193

/Zephyr-latest/subsys/usb/usb_c/
Dusbc_tc_src_states.c38 const struct device *dev = tc->dev; in tc_unattached_src_run()
74 const struct device *dev = tc->dev; in tc_unattached_wait_src_entry()
76 const struct device *tcpc = data->tcpc; in tc_unattached_wait_src_entry()
90 const struct device *dev = tc->dev; in tc_unattached_wait_src_run()
101 const struct device *dev = tc->dev; in tc_unattached_wait_src_exit()
103 const struct device *tcpc = data->tcpc; in tc_unattached_wait_src_exit()
135 const struct device *dev = tc->dev; in tc_attach_wait_src_run()
137 const struct device *vbus = data->vbus; in tc_attach_wait_src_run()
223 const struct device *dev = tc->dev; in tc_attached_src_entry()
225 const struct device *tcpc = data->tcpc; in tc_attached_src_entry()
[all …]
Dusbc_pe_common.c25 static void pe_set_ready_state(const struct device *dev) in pe_set_ready_state()
41 bool common_dpm_requests(const struct device *dev) in common_dpm_requests()
64 void pe_subsys_init(const struct device *dev) in pe_subsys_init()
79 void pe_start(const struct device *dev) in pe_start()
89 void pe_suspend(const struct device *dev) in pe_suspend()
105 static void pe_init(const struct device *dev) in pe_init()
130 bool pe_is_running(const struct device *dev) in pe_is_running()
140 void pe_run(const struct device *dev, const int32_t dpm_request) in pe_run()
188 void pe_set_data_role(const struct device *dev, enum tc_data_role dr) in pe_set_data_role()
203 enum tc_data_role pe_get_data_role(const struct device *dev) in pe_get_data_role()
[all …]
/Zephyr-latest/drivers/i2c/
Di2c_ll_stm32.h18 typedef void (*irq_config_func_t)(const struct device *port);
92 const struct device *smbalert_cb_dev;
96 int32_t stm32_i2c_transaction(const struct device *dev,
99 int32_t stm32_i2c_configure_timing(const struct device *dev, uint32_t clk);
100 int i2c_stm32_runtime_configure(const struct device *dev, uint32_t config);
101 int i2c_stm32_get_config(const struct device *dev, uint32_t *config);
110 int i2c_stm32_target_register(const struct device *dev, struct i2c_target_config *config);
111 int i2c_stm32_target_unregister(const struct device *dev, struct i2c_target_config *config);
/Zephyr-latest/tests/drivers/pinctrl/api/
Dapp.overlay11 /* default state for device 0 */
23 /* sleep state for device 0 */
30 /* alternative default state for device 0 */
42 /* alternative sleep state for device 0 */
49 /* default state for device 1 */
56 /* custom state "mystate" for device 1 */
78 compatible = "vnd,pinctrl-device";
86 compatible = "vnd,pinctrl-device";
/Zephyr-latest/drivers/serial/
Duart_stellaris.c126 static void baudrate_set(const struct device *dev, in baudrate_set()
161 static inline void enable(const struct device *dev) in enable()
175 static inline void disable(const struct device *dev) in disable()
206 static inline void line_control_defaults_set(const struct device *dev) in line_control_defaults_set()
223 static int uart_stellaris_init(const struct device *dev) in uart_stellaris_init()
249 static int poll_tx_ready(const struct device *dev) in poll_tx_ready()
265 static int uart_stellaris_poll_in(const struct device *dev, unsigned char *c) in uart_stellaris_poll_in()
288 static void uart_stellaris_poll_out(const struct device *dev, in uart_stellaris_poll_out()
311 static int uart_stellaris_fifo_fill(const struct device *dev, in uart_stellaris_fifo_fill()
334 static int uart_stellaris_fifo_read(const struct device *dev, in uart_stellaris_fifo_read()
[all …]
Duart_rv32m1_lpuart.c21 const struct device *clock_dev;
28 void (*irq_config_func)(const struct device *dev);
40 static int rv32m1_lpuart_poll_in(const struct device *dev, unsigned char *c) in rv32m1_lpuart_poll_in()
54 static void rv32m1_lpuart_poll_out(const struct device *dev, unsigned char c) in rv32m1_lpuart_poll_out()
65 static int rv32m1_lpuart_err_check(const struct device *dev) in rv32m1_lpuart_err_check()
91 static int rv32m1_lpuart_fifo_fill(const struct device *dev, in rv32m1_lpuart_fifo_fill()
108 static int rv32m1_lpuart_fifo_read(const struct device *dev, uint8_t *rx_data, in rv32m1_lpuart_fifo_read()
124 static void rv32m1_lpuart_irq_tx_enable(const struct device *dev) in rv32m1_lpuart_irq_tx_enable()
132 static void rv32m1_lpuart_irq_tx_disable(const struct device *dev) in rv32m1_lpuart_irq_tx_disable()
140 static int rv32m1_lpuart_irq_tx_complete(const struct device *dev) in rv32m1_lpuart_irq_tx_complete()
[all …]
Duart_ene_kb1200.c29 static int kb1200_uart_err_check(const struct device *dev) in kb1200_uart_err_check()
47 static int kb1200_uart_configure(const struct device *dev, const struct uart_config *cfg) in kb1200_uart_configure()
114 static int kb1200_uart_config_get(const struct device *dev, struct uart_config *cfg) in kb1200_uart_config_get()
124 static int kb1200_uart_fifo_fill(const struct device *dev, const uint8_t *tx_data, int size) in kb1200_uart_fifo_fill()
140 static int kb1200_uart_fifo_read(const struct device *dev, uint8_t *rx_data, const int size) in kb1200_uart_fifo_read()
154 static void kb1200_uart_irq_tx_enable(const struct device *dev) in kb1200_uart_irq_tx_enable()
162 static void kb1200_uart_irq_tx_disable(const struct device *dev) in kb1200_uart_irq_tx_disable()
170 static int kb1200_uart_irq_tx_ready(const struct device *dev) in kb1200_uart_irq_tx_ready()
177 static void kb1200_uart_irq_rx_enable(const struct device *dev) in kb1200_uart_irq_rx_enable()
185 static void kb1200_uart_irq_rx_disable(const struct device *dev) in kb1200_uart_irq_rx_disable()
[all …]
Duart_mcux_iuart.c19 const struct device *clock_dev;
26 void (*irq_config_func)(const struct device *dev);
37 static int mcux_iuart_poll_in(const struct device *dev, unsigned char *c) in mcux_iuart_poll_in()
50 static void mcux_iuart_poll_out(const struct device *dev, unsigned char c) in mcux_iuart_poll_out()
60 static int mcux_iuart_err_check(const struct device *dev) in mcux_iuart_err_check()
84 static int mcux_iuart_fifo_fill(const struct device *dev, in mcux_iuart_fifo_fill()
100 static int mcux_iuart_fifo_read(const struct device *dev, uint8_t *rx_data, in mcux_iuart_fifo_read()
115 static void mcux_iuart_irq_tx_enable(const struct device *dev) in mcux_iuart_irq_tx_enable()
122 static void mcux_iuart_irq_tx_disable(const struct device *dev) in mcux_iuart_irq_tx_disable()
129 static int mcux_iuart_irq_tx_complete(const struct device *dev) in mcux_iuart_irq_tx_complete()
[all …]
Duart_sifive.c83 static void uart_sifive_poll_out(const struct device *dev, in uart_sifive_poll_out()
103 static int uart_sifive_poll_in(const struct device *dev, unsigned char *c) in uart_sifive_poll_in()
128 static int uart_sifive_fifo_fill(const struct device *dev, in uart_sifive_fifo_fill()
151 static int uart_sifive_fifo_read(const struct device *dev, in uart_sifive_fifo_read()
177 static void uart_sifive_irq_tx_enable(const struct device *dev) in uart_sifive_irq_tx_enable()
189 static void uart_sifive_irq_tx_disable(const struct device *dev) in uart_sifive_irq_tx_disable()
203 static int uart_sifive_irq_tx_ready(const struct device *dev) in uart_sifive_irq_tx_ready()
217 static int uart_sifive_irq_tx_complete(const struct device *dev) in uart_sifive_irq_tx_complete()
233 static void uart_sifive_irq_rx_enable(const struct device *dev) in uart_sifive_irq_rx_enable()
245 static void uart_sifive_irq_rx_disable(const struct device *dev) in uart_sifive_irq_rx_disable()
[all …]
Duart_cdns.c55 static void uart_cdns_poll_out(const struct device *dev, unsigned char out_char) in uart_cdns_poll_out()
65 int uart_cdns_poll_in(const struct device *dev, unsigned char *p_char) in uart_cdns_poll_in()
78 static void uart_cdns_irq_handler(const struct device *dev) in uart_cdns_irq_handler()
91 static int uart_cdns_fill_fifo(const struct device *dev, const uint8_t *tx_data, int len) in uart_cdns_fill_fifo()
103 static int uart_cdns_read_fifo(const struct device *dev, uint8_t *rx_data, const int size) in uart_cdns_read_fifo()
118 void uart_cdns_enable_tx_irq(const struct device *dev) in uart_cdns_enable_tx_irq()
137 void uart_cdns_disable_tx_irq(const struct device *dev) in uart_cdns_disable_tx_irq()
144 static int uart_cdns_irq_tx_ready(const struct device *dev) in uart_cdns_irq_tx_ready()
149 static int uart_cdns_irq_tx_complete(const struct device *dev) in uart_cdns_irq_tx_complete()
154 void uart_cdns_enable_rx_irq(const struct device *dev) in uart_cdns_enable_rx_irq()
[all …]
/Zephyr-latest/drivers/counter/
Dcounter_mcux_lpc_rtc.c26 const struct device *rtc_dev;
27 void (*irq_config_func)(const struct device *dev);
33 static int mcux_lpc_rtc_highres_start(const struct device *dev);
36 static void mcux_lpc_rtc_isr(const struct device *dev) in mcux_lpc_rtc_isr()
83 static int mcux_lpc_rtc_start(const struct device *dev) in mcux_lpc_rtc_start()
94 static int mcux_lpc_rtc_stop(const struct device *dev) in mcux_lpc_rtc_stop()
108 static uint32_t mcux_lpc_rtc_read(const struct device *dev) in mcux_lpc_rtc_read()
119 static int mcux_lpc_rtc_get_value(const struct device *dev, uint32_t *ticks) in mcux_lpc_rtc_get_value()
125 static int mcux_lpc_rtc_set_alarm(const struct device *dev, uint8_t chan_id, in mcux_lpc_rtc_set_alarm()
165 static int mcux_lpc_rtc_cancel_alarm(const struct device *dev, uint8_t chan_id) in mcux_lpc_rtc_cancel_alarm()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dmspi.h256 const struct device *bus;
429 const struct device *controller;
476 typedef int (*mspi_api_dev_config)(const struct device *controller,
481 typedef int (*mspi_api_get_channel_status)(const struct device *controller, uint8_t ch);
483 typedef int (*mspi_api_transceive)(const struct device *controller,
487 typedef int (*mspi_api_register_callback)(const struct device *controller,
493 typedef int (*mspi_api_xip_config)(const struct device *controller,
497 typedef int (*mspi_api_scramble_config)(const struct device *controller,
501 typedef int (*mspi_api_timing_config)(const struct device *controller,
578 __syscall int mspi_dev_config(const struct device *controller,
[all …]
Dcellular.h89 typedef int (*cellular_api_configure_networks)(const struct device *dev,
94 typedef int (*cellular_api_get_supported_networks)(const struct device *dev,
99 typedef int (*cellular_api_get_signal)(const struct device *dev,
103 typedef int (*cellular_api_get_modem_info)(const struct device *dev,
108 typedef int (*cellular_api_get_registration_status)(const struct device *dev,
142 static inline int cellular_configure_networks(const struct device *dev, in cellular_configure_networks()
165 static inline int cellular_get_supported_networks(const struct device *dev, in cellular_get_supported_networks()
190 static inline int cellular_get_signal(const struct device *dev, in cellular_get_signal()
215 static inline int cellular_get_modem_info(const struct device *dev, in cellular_get_modem_info()
240 static inline int cellular_get_registration_status(const struct device *dev, in cellular_get_registration_status()
Dmipi_dsi.h123 int (*attach)(const struct device *dev, uint8_t channel,
125 ssize_t (*transfer)(const struct device *dev, uint8_t channel,
127 int (*detach)(const struct device *dev, uint8_t channel,
140 static inline int mipi_dsi_attach(const struct device *dev, in mipi_dsi_attach()
158 static inline ssize_t mipi_dsi_transfer(const struct device *dev, in mipi_dsi_transfer()
179 ssize_t mipi_dsi_generic_read(const struct device *dev, uint8_t channel,
193 ssize_t mipi_dsi_generic_write(const struct device *dev, uint8_t channel,
207 ssize_t mipi_dsi_dcs_read(const struct device *dev, uint8_t channel,
221 ssize_t mipi_dsi_dcs_write(const struct device *dev, uint8_t channel,
234 static inline int mipi_dsi_detach(const struct device *dev, in mipi_dsi_detach()
Di3c.h603 int (*configure)(const struct device *dev,
618 int (*config_get)(const struct device *dev,
632 int (*recover_bus)(const struct device *dev);
646 int (*attach_i3c_device)(const struct device *dev,
662 int (*reattach_i3c_device)(const struct device *dev,
678 int (*detach_i3c_device)(const struct device *dev,
693 int (*attach_i2c_device)(const struct device *dev,
708 int (*detach_i2c_device)(const struct device *dev,
722 int (*do_daa)(const struct device *dev);
736 int (*do_ccc)(const struct device *dev,
[all …]
/Zephyr-latest/drivers/watchdog/
Dwdt_counter.c28 const struct device *counter;
31 static int wdt_counter_setup(const struct device *dev, uint8_t options) in wdt_counter_setup()
34 const struct device *counter = config->counter; in wdt_counter_setup()
43 static int wdt_counter_disable(const struct device *dev) in wdt_counter_disable()
46 const struct device *counter = config->counter; in wdt_counter_disable()
51 static void counter_alarm_callback(const struct device *dev, in counter_alarm_callback()
55 const struct device *wdt_dev = user_data; in counter_alarm_callback()
69 static int timeout_set(const struct device *dev, int chan_id, bool cancel) in timeout_set()
73 const struct device *counter = config->counter; in timeout_set()
92 static int wdt_counter_install_timeout(const struct device *dev, in wdt_counter_install_timeout()
[all …]
/Zephyr-latest/drivers/misc/devmux/
Ddevmux.c17 const struct device **devs;
29 static const struct device *devmux_devices[N];
33 static bool devmux_device_is_valid(const struct device *dev) in devmux_device_is_valid()
44 static size_t devmux_inst_get(const struct device *dev) in devmux_inst_get()
55 const struct devmux_config *devmux_config_get(const struct device *dev) in devmux_config_get()
66 struct devmux_data *devmux_data_get(const struct device *dev) in devmux_data_get()
77 int z_impl_devmux_select_get(const struct device *dev) in z_impl_devmux_select_get()
95 int z_vrfy_devmux_select_get(const struct device *dev) in z_vrfy_devmux_select_get()
102 int z_impl_devmux_select_set(struct device *dev, size_t index) in z_impl_devmux_select_set()
125 int z_vrfy_devmux_select_set(struct device *dev, size_t index) in z_vrfy_devmux_select_set()
[all …]
/Zephyr-latest/include/zephyr/net/
Dcapture.h36 struct device;
42 int (*cleanup)(const struct device *dev);
45 int (*enable)(const struct device *dev, struct net_if *iface);
48 int (*disable)(const struct device *dev);
52 bool (*is_enabled)(const struct device *dev);
55 int (*send)(const struct device *dev, struct net_if *iface, struct net_pkt *pkt);
76 const struct device **dev);
89 static inline int net_capture_cleanup(const struct device *dev) in net_capture_cleanup()
115 static inline int net_capture_enable(const struct device *dev, struct net_if *iface) in net_capture_enable()
138 static inline bool net_capture_is_enabled(const struct device *dev) in net_capture_is_enabled()
[all …]
Dieee802154_radio.h585 typedef void (*energy_scan_done_cb_t)(const struct device *dev,
589 typedef void (*ieee802154_event_cb_t)(const struct device *dev,
1536 enum ieee802154_hw_caps (*get_capabilities)(const struct device *dev);
1554 int (*cca)(const struct device *dev);
1578 int (*set_channel)(const struct device *dev, uint16_t channel);
1603 int (*filter)(const struct device *dev,
1624 int (*set_txpower)(const struct device *dev, int16_t dbm);
1718 int (*tx)(const struct device *dev, enum ieee802154_tx_mode mode,
1742 int (*start)(const struct device *dev);
1766 int (*stop)(const struct device *dev);
[all …]
/Zephyr-latest/include/zephyr/drivers/eeprom/
Deeprom_fake.h17 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_read, const struct device *, off_t, void *, size_t);
19 DECLARE_FAKE_VALUE_FUNC(int, fake_eeprom_write, const struct device *, off_t, const void *, size_t);
21 DECLARE_FAKE_VALUE_FUNC(size_t, fake_eeprom_size, const struct device *);
23 size_t fake_eeprom_size_delegate(const struct device *dev);
/Zephyr-latest/drivers/i2s/
Di2s_common.c11 int z_impl_i2s_buf_read(const struct device *dev, void *buf, size_t *size) in z_impl_i2s_buf_read()
16 ret = i2s_read((const struct device *)dev, &mem_block, size); in z_impl_i2s_buf_read()
21 rx_cfg = i2s_config_get((const struct device *)dev, I2S_DIR_RX); in z_impl_i2s_buf_read()
30 int z_impl_i2s_buf_write(const struct device *dev, void *buf, size_t size) in z_impl_i2s_buf_write()
36 tx_cfg = i2s_config_get((const struct device *)dev, I2S_DIR_TX); in z_impl_i2s_buf_write()
52 ret = i2s_write((const struct device *)dev, mem_block, size); in z_impl_i2s_buf_write()
/Zephyr-latest/drivers/w1/
Dw1_test.c25 static int w1_vnd_reset_bus(const struct device *dev) in w1_vnd_reset_bus()
30 static int w1_vnd_read_bit(const struct device *dev) in w1_vnd_read_bit()
35 static int w1_vnd_write_bit(const struct device *dev, const bool bit) in w1_vnd_write_bit()
40 static int w1_vnd_read_byte(const struct device *dev) in w1_vnd_read_byte()
45 static int w1_vnd_write_byte(const struct device *dev, const uint8_t byte) in w1_vnd_write_byte()
50 static int w1_vnd_configure(const struct device *dev, in w1_vnd_configure()
/Zephyr-latest/drivers/sensor/st/lps2xdf/
Dlps2xdf.h42 typedef int32_t (*api_lps2xdf_mode_set_odr_raw)(const struct device *dev, uint8_t odr);
43 typedef int32_t (*api_lps2xdf_sample_fetch)(const struct device *dev, enum sensor_channel chan);
45 typedef int (*api_lps2xdf_config_interrupt)(const struct device *dev);
46 typedef void (*api_lps2xdf_handle_interrupt)(const struct device *dev);
47 typedef int (*api_lps2xdf_trigger_set)(const struct device *dev,
102 const struct device *bus;
118 const struct device *dev;
138 int lps2xdf_config_int(const struct device *dev);
140 int lps2xdf_trigger_set(const struct device *dev,
144 int lps2xdf_init_interrupt(const struct device *dev, enum sensor_variant variant);
/Zephyr-latest/samples/subsys/usb/common/
DKconfig.sample_usbd5 # using the new experimental USB device support. The scope of these options is
13 string "USB device sample manufacturer string"
16 USB device sample manufacturer string.
19 string "USB device sample product string"
22 USB device sample product stringa.
25 hex "USB device sample Product ID"
28 USB device sample Product ID.
31 bool "USB device sample Self-powered attribute"
37 bool "USB device sample Remote Wakeup attribute"
42 int "USB device sample bMaxPower value"
/Zephyr-latest/drivers/sensor/adi/adxl345/
Dadxl345.h166 const struct device *dev;
222 typedef int (*adxl345_reg_access_fn)(const struct device *dev, uint8_t cmd,
238 void adxl345_submit_stream(const struct device *dev, struct rtio_iodev_sqe *iodev_sqe);
239 void adxl345_stream_irq_handler(const struct device *dev);
242 int adxl345_get_status(const struct device *dev,
245 int adxl345_trigger_set(const struct device *dev,
249 int adxl345_init_interrupt(const struct device *dev);
253 int adxl345_reg_write_mask(const struct device *dev,
258 int adxl345_reg_access(const struct device *dev, uint8_t cmd, uint8_t addr,
261 int adxl345_reg_write(const struct device *dev, uint8_t addr, uint8_t *data,
[all …]

12345678910>>...193