Home
last modified time | relevance | path

Searched refs:device (Results 101 – 125 of 4566) sorted by relevance

12345678910>>...183

/Zephyr-latest/drivers/sensor/nxp/fxls8974/
Dfxls8974.h100 int (*read)(const struct device *dev,
104 int (*byte_read)(const struct device *dev,
107 int (*byte_write)(const struct device *dev,
110 int (*reg_field_update)(const struct device *dev,
143 const struct device *dev;
158 int fxls8974_get_active(const struct device *dev, enum fxls8974_active *active);
159 int fxls8974_set_active(const struct device *dev, enum fxls8974_active active);
162 int fxls8974_byte_write_spi(const struct device *dev,
166 int fxls8974_byte_read_spi(const struct device *dev,
170 int fxls8974_reg_field_update_spi(const struct device *dev,
[all …]
/Zephyr-latest/drivers/usb_c/vbus/
Dusbc_vbus_numaker.c34 const struct device *tcpc_dev;
43 static int numaker_vbus_init(const struct device *dev) in numaker_vbus_init()
46 const struct device *tcpc_dev = config->tcpc_dev; in numaker_vbus_init()
63 static bool numaker_vbus_check_level(const struct device *dev, enum tc_vbus_level level) in numaker_vbus_check_level()
66 const struct device *tcpc_dev = config->tcpc_dev; in numaker_vbus_check_level()
77 static int numaker_vbus_measure(const struct device *dev, int *vbus_meas) in numaker_vbus_measure()
80 const struct device *tcpc_dev = config->tcpc_dev; in numaker_vbus_measure()
91 static int numaker_vbus_discharge(const struct device *dev, bool enable) in numaker_vbus_discharge()
94 const struct device *tcpc_dev = config->tcpc_dev; in numaker_vbus_discharge()
105 static int numaker_vbus_enable(const struct device *dev, bool enable) in numaker_vbus_enable()
[all …]
/Zephyr-latest/drivers/gpio/
Dgpio_sedi.c17 sedi_gpio_t device; member
32 static int gpio_sedi_init(const struct device *dev);
35 static int gpio_sedi_suspend_device(const struct device *dev) in gpio_sedi_suspend_device()
38 sedi_gpio_t gpio_dev = config->device; in gpio_sedi_suspend_device()
54 static int gpio_sedi_resume_device_from_suspend(const struct device *dev) in gpio_sedi_resume_device_from_suspend()
57 sedi_gpio_t gpio_dev = config->device; in gpio_sedi_resume_device_from_suspend()
68 static int gpio_sedi_pm_action(const struct device *dev, in gpio_sedi_pm_action()
94 struct device *dev = (struct device *)param; in gpio_sedi_callback()
102 static void gpio_sedi_write_raw(const struct device *dev, in gpio_sedi_write_raw()
108 sedi_gpio_t gpio_dev = config->device; in gpio_sedi_write_raw()
[all …]
/Zephyr-latest/include/zephyr/drivers/
Dptp_clock.h26 int (*set)(const struct device *dev, struct net_ptp_time *tm);
27 int (*get)(const struct device *dev, struct net_ptp_time *tm);
28 int (*adjust)(const struct device *dev, int increment);
29 int (*rate_adjust)(const struct device *dev, double ratio);
40 static inline int ptp_clock_set(const struct device *dev, in ptp_clock_set()
57 __syscall int ptp_clock_get(const struct device *dev, struct net_ptp_time *tm);
59 static inline int z_impl_ptp_clock_get(const struct device *dev, in z_impl_ptp_clock_get()
76 static inline int ptp_clock_adjust(const struct device *dev, int increment) in ptp_clock_adjust()
92 static inline int ptp_clock_rate_adjust(const struct device *dev, double rate) in ptp_clock_rate_adjust()
Dsmbus.h274 typedef void (*smbus_callback_handler_t)(const struct device *dev,
303 const struct device *bus;
341 typedef int (*smbus_api_configure_t)(const struct device *dev,
343 typedef int (*smbus_api_get_config_t)(const struct device *dev,
345 typedef int (*smbus_api_quick_t)(const struct device *dev,
347 typedef int (*smbus_api_byte_write_t)(const struct device *dev,
349 typedef int (*smbus_api_byte_read_t)(const struct device *dev,
351 typedef int (*smbus_api_byte_data_write_t)(const struct device *dev,
354 typedef int (*smbus_api_byte_data_read_t)(const struct device *dev,
357 typedef int (*smbus_api_word_data_write_t)(const struct device *dev,
[all …]
Ddai.h313 int (*probe)(const struct device *dev);
314 int (*remove)(const struct device *dev);
315 int (*config_set)(const struct device *dev, const struct dai_config *cfg,
317 int (*config_get)(const struct device *dev, struct dai_config *cfg,
320 const struct dai_properties *(*get_properties)(const struct device *dev,
324 int (*trigger)(const struct device *dev, enum dai_dir dir,
328 int (*ts_config)(const struct device *dev, struct dai_ts_cfg *cfg);
329 int (*ts_start)(const struct device *dev, struct dai_ts_cfg *cfg);
330 int (*ts_stop)(const struct device *dev, struct dai_ts_cfg *cfg);
331 int (*ts_get)(const struct device *dev, struct dai_ts_cfg *cfg,
[all …]
Dretained_mem.h44 typedef ssize_t (*retained_mem_size_api)(const struct device *dev);
51 typedef int (*retained_mem_read_api)(const struct device *dev, off_t offset, uint8_t *buffer,
59 typedef int (*retained_mem_write_api)(const struct device *dev, off_t offset,
67 typedef int (*retained_mem_clear_api)(const struct device *dev);
95 __syscall ssize_t retained_mem_size(const struct device *dev);
97 static inline ssize_t z_impl_retained_mem_size(const struct device *dev) in z_impl_retained_mem_size()
114 __syscall int retained_mem_read(const struct device *dev, off_t offset, uint8_t *buffer,
117 static inline int z_impl_retained_mem_read(const struct device *dev, off_t offset, in z_impl_retained_mem_read()
148 __syscall int retained_mem_write(const struct device *dev, off_t offset, const uint8_t *buffer,
151 static inline int z_impl_retained_mem_write(const struct device *dev, off_t offset, in z_impl_retained_mem_write()
[all …]
Ddisplay.h139 typedef int (*display_blanking_on_api)(const struct device *dev);
146 typedef int (*display_blanking_off_api)(const struct device *dev);
153 typedef int (*display_write_api)(const struct device *dev, const uint16_t x,
163 typedef int (*display_read_api)(const struct device *dev, const uint16_t x,
173 typedef void *(*display_get_framebuffer_api)(const struct device *dev);
180 typedef int (*display_set_brightness_api)(const struct device *dev,
188 typedef int (*display_set_contrast_api)(const struct device *dev,
196 typedef void (*display_get_capabilities_api)(const struct device *dev,
205 typedef int (*display_set_pixel_format_api)(const struct device *dev,
214 typedef int (*display_set_orientation_api)(const struct device *dev,
[all …]
Ddma.h190 typedef void (*dma_callback_t)(const struct device *dev, void *user_data,
315 typedef int (*dma_api_config)(const struct device *dev, uint32_t channel,
319 typedef int (*dma_api_reload)(const struct device *dev, uint32_t channel,
322 typedef int (*dma_api_reload)(const struct device *dev, uint32_t channel,
326 typedef int (*dma_api_start)(const struct device *dev, uint32_t channel);
328 typedef int (*dma_api_stop)(const struct device *dev, uint32_t channel);
330 typedef int (*dma_api_suspend)(const struct device *dev, uint32_t channel);
332 typedef int (*dma_api_resume)(const struct device *dev, uint32_t channel);
334 typedef int (*dma_api_get_status)(const struct device *dev, uint32_t channel,
337 typedef int (*dma_api_get_attribute)(const struct device *dev, uint32_t type, uint32_t *value);
[all …]
/Zephyr-latest/drivers/serial/
Dserial_esp32_usb.c43 const struct device *clock_dev;
62 static int serial_esp32_usb_poll_in(const struct device *dev, unsigned char *p_char) in serial_esp32_usb_poll_in()
73 static void serial_esp32_usb_poll_out(const struct device *dev, unsigned char c) in serial_esp32_usb_poll_out()
91 static int serial_esp32_usb_err_check(const struct device *dev) in serial_esp32_usb_err_check()
98 static int serial_esp32_usb_init(const struct device *dev) in serial_esp32_usb_init()
124 static int serial_esp32_usb_fifo_fill(const struct device *dev, const uint8_t *tx_data, int len) in serial_esp32_usb_fifo_fill()
135 static int serial_esp32_usb_fifo_read(const struct device *dev, uint8_t *rx_data, const int len) in serial_esp32_usb_fifo_read()
142 static void serial_esp32_usb_irq_tx_enable(const struct device *dev) in serial_esp32_usb_irq_tx_enable()
156 static void serial_esp32_usb_irq_tx_disable(const struct device *dev) in serial_esp32_usb_irq_tx_disable()
163 static int serial_esp32_usb_irq_tx_ready(const struct device *dev) in serial_esp32_usb_irq_tx_ready()
[all …]
/Zephyr-latest/include/zephyr/drivers/i2c/
Dstm32.h20 void i2c_stm32_set_smbus_mode(const struct device *dev, enum i2c_stm32_mode mode);
23 typedef void (*i2c_stm32_smbalert_cb_func_t)(const struct device *dev);
25 void i2c_stm32_smbalert_set_callback(const struct device *dev, i2c_stm32_smbalert_cb_func_t func,
26 const struct device *cb_dev);
27 void i2c_stm32_smbalert_enable(const struct device *dev);
28 void i2c_stm32_smbalert_disable(const struct device *dev);
/Zephyr-latest/drivers/stepper/step_dir/
Dstep_dir_stepper_common.h34 const struct device *counter;
68 const struct device *dev;
132 int step_dir_stepper_common_init(const struct device *dev);
141 int step_dir_stepper_common_move_by(const struct device *dev, const int32_t micro_steps);
150 int step_dir_stepper_common_set_max_velocity(const struct device *dev, const uint32_t velocity);
159 int step_dir_stepper_common_set_reference_position(const struct device *dev, const int32_t value);
168 int step_dir_stepper_common_get_actual_position(const struct device *dev, int32_t *value);
177 int step_dir_stepper_common_move_to(const struct device *dev, const int32_t value);
186 int step_dir_stepper_common_is_moving(const struct device *dev, bool *is_moving);
196 int step_dir_stepper_common_run(const struct device *dev, const enum stepper_direction direction,
[all …]
/Zephyr-latest/drivers/ethernet/
Deth_test.c17 struct net_stats_eth *vnd_ethernet_get_stats(const struct device *dev);
25 int vnd_ethernet_start(const struct device *dev) in vnd_ethernet_start()
32 int vnd_ethernet_stop(const struct device *dev) in vnd_ethernet_stop()
39 enum ethernet_hw_caps vnd_ethernet_get_capabilities(const struct device *dev) in vnd_ethernet_get_capabilities()
46 int vnd_ethernet_set_config(const struct device *dev, enum ethernet_config_type type, in vnd_ethernet_set_config()
56 int vnd_ethernet_get_config(const struct device *dev, enum ethernet_config_type type, in vnd_ethernet_get_config()
67 int vnd_ethernet_vlan_setup(const struct device *dev, struct net_if *iface, uint16_t tag, in vnd_ethernet_vlan_setup()
81 const struct device *vnd_ethernet_get_ptp_clock(const struct device *dev) in vnd_ethernet_get_ptp_clock()
89 const struct device *vnd_ethernet_get_phy(const struct device *dev) in vnd_ethernet_get_phy()
96 int vnd_ethernet_send(const struct device *dev, struct net_pkt *pkt) in vnd_ethernet_send()
/Zephyr-latest/subsys/usb/device/class/
DKconfig6 source "subsys/usb/device/class/Kconfig.cdc"
8 source "subsys/usb/device/class/Kconfig.msc"
10 source "subsys/usb/device/class/Kconfig.bt"
12 source "subsys/usb/device/class/Kconfig.test"
14 source "subsys/usb/device/class/netusb/Kconfig"
16 source "subsys/usb/device/class/hid/Kconfig"
18 source "subsys/usb/device/class/audio/Kconfig"
20 source "subsys/usb/device/class/dfu/Kconfig"
/Zephyr-latest/include/zephyr/drivers/sip_svc/
Dsip_svc_driver.h28 typedef void (*sip_supervisory_call_t)(const struct device *dev, unsigned long function_id,
37 typedef bool (*sip_svc_plat_func_id_valid_t)(const struct device *dev, uint32_t command,
44 typedef uint32_t (*sip_svc_plat_format_trans_id_t)(const struct device *dev, uint32_t client_idx,
51 typedef uint32_t (*sip_svc_plat_get_trans_idx_t)(const struct device *dev, uint32_t trans_id);
57 typedef void (*sip_svc_plat_update_trans_id_t)(const struct device *dev,
64 typedef void (*sip_svc_plat_free_async_memory_t)(const struct device *dev,
71 typedef int (*sip_svc_plat_async_res_req_t)(const struct device *dev, unsigned long *a0,
80 typedef int (*sip_svc_plat_async_res_res_t)(const struct device *dev, struct arm_smccc_res *res,
87 typedef uint32_t (*sip_svc_plat_get_error_code_t)(const struct device *dev,
120 __syscall void sip_supervisory_call(const struct device *dev, unsigned long function_id,
[all …]
/Zephyr-latest/include/zephyr/drivers/firmware/scmi/
Dtransport.h73 int (*init)(const struct device *transport);
74 int (*send_message)(const struct device *transport,
77 int (*setup_chan)(const struct device *transport,
80 int (*read_message)(const struct device *transport,
83 bool (*channel_is_free)(const struct device *transport,
85 struct scmi_channel *(*request_channel)(const struct device *transport,
110 scmi_transport_request_channel(const struct device *transport, in scmi_transport_request_channel()
142 static inline int scmi_transport_init(const struct device *transport) in scmi_transport_init()
170 static inline int scmi_transport_setup_chan(const struct device *transport, in scmi_transport_setup_chan()
199 static inline int scmi_transport_send_message(const struct device *transport, in scmi_transport_send_message()
[all …]
/Zephyr-latest/drivers/wifi/nrf_wifi/inc/
Dwifi_mgmt.h30 int nrf_wifi_set_power_save(const struct device *dev,
33 int nrf_wifi_set_twt(const struct device *dev,
51 int nrf_wifi_get_power_save_config(const struct device *dev,
59 int nrf_wifi_mode(const struct device *dev,
64 int nrf_wifi_channel(const struct device *dev,
69 int nrf_wifi_filter(const struct device *dev,
73 int nrf_wifi_set_rts_threshold(const struct device *dev,
76 int nrf_wifi_get_rts_threshold(const struct device *dev,
/Zephyr-latest/include/zephyr/drivers/interrupt_controller/
Dgicv3_its.h19 typedef unsigned int (*its_api_alloc_intid_t)(const struct device *dev);
20 typedef int (*its_api_setup_deviceid_t)(const struct device *dev, uint32_t device_id,
22 typedef int (*its_api_map_intid_t)(const struct device *dev, uint32_t device_id,
24 typedef int (*its_api_send_int_t)(const struct device *dev, uint32_t device_id, uint32_t event_id);
25 typedef uint32_t (*its_api_get_msi_addr_t)(const struct device *dev);
35 static inline int its_alloc_intid(const struct device *dev) in its_alloc_intid()
43 static inline int its_setup_deviceid(const struct device *dev, uint32_t device_id, in its_setup_deviceid()
52 static inline int its_map_intid(const struct device *dev, uint32_t device_id, in its_map_intid()
61 static inline int its_send_int(const struct device *dev, uint32_t device_id, uint32_t event_id) in its_send_int()
69 static inline uint32_t its_get_msi_addr(const struct device *dev) in its_get_msi_addr()
/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()
21 static inline uint32_t z_vrfy_ivshmem_get_id(const struct device *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()
37 static inline int z_vrfy_ivshmem_int_peer(const struct device *dev, in z_vrfy_ivshmem_int_peer()
46 static inline int z_vrfy_ivshmem_register_handler(const struct device *dev, in z_vrfy_ivshmem_register_handler()
59 static inline size_t z_vrfy_ivshmem_get_rw_mem_section(const struct device *dev, in z_vrfy_ivshmem_get_rw_mem_section()
69 static inline size_t z_vrfy_ivshmem_get_output_mem_section(const struct device *dev, in z_vrfy_ivshmem_get_output_mem_section()
80 static inline uint32_t z_vrfy_ivshmem_get_state(const struct device *dev, in z_vrfy_ivshmem_get_state()
89 static inline int z_vrfy_ivshmem_set_state(const struct device *dev, in z_vrfy_ivshmem_set_state()
98 static inline uint32_t z_vrfy_ivshmem_get_max_peers(const struct device *dev) in z_vrfy_ivshmem_get_max_peers()
[all …]
/Zephyr-latest/include/zephyr/drivers/can/
Dcan_sja1000.h90 typedef void (*can_sja1000_write_reg_t)(const struct device *dev, uint8_t reg, uint8_t val);
99 typedef uint8_t (*can_sja1000_read_reg_t)(const struct device *dev, uint8_t reg);
189 int can_sja1000_set_timing(const struct device *dev, const struct can_timing *timing);
195 int can_sja1000_get_capabilities(const struct device *dev, can_mode_t *cap);
201 int can_sja1000_start(const struct device *dev);
207 int can_sja1000_stop(const struct device *dev);
213 int can_sja1000_set_mode(const struct device *dev, can_mode_t mode);
219 int can_sja1000_send(const struct device *dev, const struct can_frame *frame, k_timeout_t timeout,
226 int can_sja1000_add_rx_filter(const struct device *dev, can_rx_callback_t callback, void *user_data,
233 void can_sja1000_remove_rx_filter(const struct device *dev, int filter_id);
[all …]
/Zephyr-latest/include/zephyr/drivers/pcie/endpoint/
Dpcie_ep.h60 int (*conf_read)(const struct device *dev, uint32_t offset,
62 void (*conf_write)(const struct device *dev, uint32_t offset,
64 int (*map_addr)(const struct device *dev, uint64_t pcie_addr,
67 void (*unmap_addr)(const struct device *dev, uint64_t mapped_addr);
68 int (*raise_irq)(const struct device *dev,
71 int (*register_reset_cb)(const struct device *dev,
74 int (*dma_xfer)(const struct device *dev, uint64_t mapped_addr,
91 static inline int pcie_ep_conf_read(const struct device *dev, in pcie_ep_conf_read()
110 static inline void pcie_ep_conf_write(const struct device *dev, in pcie_ep_conf_write()
144 static inline int pcie_ep_map_addr(const struct device *dev, in pcie_ep_map_addr()
[all …]
/Zephyr-latest/drivers/usb/uhc/
Duhc_common.h24 static inline void *uhc_get_private(const struct device *dev) in uhc_get_private()
39 static inline int uhc_lock_internal(const struct device *dev, in uhc_lock_internal()
54 static inline int uhc_unlock_internal(const struct device *dev) in uhc_unlock_internal()
70 void uhc_xfer_return(const struct device *dev,
83 struct uhc_transfer *uhc_xfer_get_next(const struct device *dev);
94 int uhc_xfer_append(const struct device *dev,
109 int uhc_submit_event(const struct device *dev,
/Zephyr-latest/include/zephyr/drivers/mfd/
Dad559x.h46 bool mfd_ad559x_has_pointer_byte_map(const struct device *dev);
58 int mfd_ad559x_read_raw(const struct device *dev, uint8_t *val, size_t len);
70 int mfd_ad559x_write_raw(const struct device *dev, uint8_t *val, size_t len);
83 int mfd_ad559x_read_reg(const struct device *dev, uint8_t reg, uint8_t reg_data, uint16_t *val);
95 int mfd_ad559x_write_reg(const struct device *dev, uint8_t reg, uint16_t val);
107 int mfd_ad559x_read_adc_chan(const struct device *dev, uint8_t channel, uint16_t *result);
119 int mfd_ad559x_write_dac_chan(const struct device *dev, uint8_t channel, uint16_t value);
131 int mfd_ad559x_gpio_port_get_raw(const struct device *dev, uint8_t gpio, uint16_t *value);
/Zephyr-latest/include/zephyr/drivers/usb_c/
Dusbc_vbus.h36 bool (*check_level)(const struct device *dev, enum tc_vbus_level level);
37 int (*measure)(const struct device *dev, int *vbus_meas);
38 int (*discharge)(const struct device *dev, bool enable);
39 int (*enable)(const struct device *dev, bool enable);
51 static inline bool usbc_vbus_check_level(const struct device *dev, enum tc_vbus_level level) in usbc_vbus_check_level()
67 static inline int usbc_vbus_measure(const struct device *dev, int *meas) in usbc_vbus_measure()
84 static inline int usbc_vbus_discharge(const struct device *dev, bool enable) in usbc_vbus_discharge()
101 static inline int usbc_vbus_enable(const struct device *dev, bool enable) in usbc_vbus_enable()
/Zephyr-latest/drivers/kscan/
Dkscan_handlers.c10 static inline int z_vrfy_kscan_config(const struct device *dev, in z_vrfy_kscan_config()
16 return z_impl_kscan_config((const struct device *)dev, callback_isr); in z_vrfy_kscan_config()
20 static inline int z_vrfy_kscan_disable_callback(const struct device *dev) in z_vrfy_kscan_disable_callback()
24 return z_impl_kscan_disable_callback((const struct device *)dev); in z_vrfy_kscan_disable_callback()
28 static int z_vrfy_kscan_enable_callback(const struct device *dev) in z_vrfy_kscan_enable_callback()
32 return z_impl_kscan_enable_callback((const struct device *)dev); in z_vrfy_kscan_enable_callback()

12345678910>>...183