Home
last modified time | relevance | path

Searched refs:usbd_context (Results 1 – 25 of 47) sorted by relevance

12

/Zephyr-latest/subsys/usb/device_next/
Dusbd_device.h23 struct usbd_vreq_node *usbd_device_get_vreq(struct usbd_context *const uds_ctx,
31 void usbd_device_unregister_all_vreq(struct usbd_context *const uds_ctx);
41 static inline uint8_t usbd_get_num_configs(const struct usbd_context *const uds_ctx, in usbd_get_num_configs()
65 static inline void usbd_set_num_configs(struct usbd_context *const uds_ctx, in usbd_set_num_configs()
89 static inline bool usbd_is_enabled(const struct usbd_context *const uds_ctx) in usbd_is_enabled()
101 static inline bool usbd_is_initialized(const struct usbd_context *const uds_ctx) in usbd_is_initialized()
112 static inline void usbd_status_suspended(struct usbd_context *const uds_ctx, in usbd_status_suspended()
123 static inline void usbd_device_lock(struct usbd_context *const uds_ctx) in usbd_device_lock()
133 static inline void usbd_device_unlock(struct usbd_context *const uds_ctx) in usbd_device_unlock()
145 int usbd_device_init_core(struct usbd_context *uds_ctx);
[all …]
Dusbd_ch9.h19 static inline bool usbd_state_is_default(const struct usbd_context *const uds_ctx) in usbd_state_is_default()
31 static inline bool usbd_state_is_address(const struct usbd_context *const uds_ctx) in usbd_state_is_address()
43 static inline bool usbd_state_is_configured(const struct usbd_context *const uds_ctx) in usbd_state_is_configured()
55 static inline uint8_t usbd_get_config_value(const struct usbd_context *const uds_ctx) in usbd_get_config_value()
66 static inline void usbd_set_config_value(struct usbd_context *const uds_ctx, in usbd_set_config_value()
81 static inline int usbd_get_alt_value(const struct usbd_context *const uds_ctx, in usbd_get_alt_value()
103 static inline int usbd_set_alt_value(struct usbd_context *const uds_ctx, in usbd_set_alt_value()
124 usbd_get_setup_pkt(struct usbd_context *const uds_ctx) in usbd_get_setup_pkt()
138 int usbd_handle_ctrl_xfer(struct usbd_context *uds_ctx,
148 int usbd_init_control_pipe(struct usbd_context *uds_ctx);
Dusbd_class.h21 int usbd_class_handle_xfer(struct usbd_context *const uds_ctx,
50 struct usbd_class_node *usbd_class_get_by_iface(struct usbd_context *uds_ctx,
63 struct usbd_class_node *usbd_class_get_by_config(struct usbd_context *uds_ctx,
78 struct usbd_class_node *usbd_class_get_by_ep(struct usbd_context *uds_ctx,
95 struct usbd_class_node *usbd_class_get_by_req(struct usbd_context *uds_ctx,
107 int usbd_class_remove_all(struct usbd_context *const uds_ctx,
Dusbd_device.c23 enum usbd_speed usbd_bus_speed(const struct usbd_context *const uds_ctx) in usbd_bus_speed()
28 enum usbd_speed usbd_caps_speed(const struct usbd_context *const uds_ctx) in usbd_caps_speed()
41 get_device_descriptor(struct usbd_context *const uds_ctx, in get_device_descriptor()
55 int usbd_device_set_bcd_usb(struct usbd_context *const uds_ctx, in usbd_device_set_bcd_usb()
76 int usbd_device_set_vid(struct usbd_context *const uds_ctx, in usbd_device_set_vid()
100 int usbd_device_set_pid(struct usbd_context *const uds_ctx, in usbd_device_set_pid()
124 int usbd_device_set_bcd_device(struct usbd_context *const uds_ctx, in usbd_device_set_bcd_device()
148 int usbd_device_set_code_triple(struct usbd_context *const uds_ctx, in usbd_device_set_code_triple()
173 int usbd_wakeup_request(struct usbd_context *const uds_ctx) in usbd_wakeup_request()
200 bool usbd_is_suspended(struct usbd_context *uds_ctx) in usbd_is_suspended()
[all …]
Dusbd_config.h50 struct usbd_config_node *usbd_config_get(struct usbd_context *uds_ctx,
63 struct usbd_config_node *usbd_config_get_current(struct usbd_context *uds_ctx);
74 bool usbd_config_exist(struct usbd_context *const uds_ctx,
90 int usbd_config_set(struct usbd_context *uds_ctx, uint8_t new_cfg);
Dusbd_interface.h20 int usbd_interface_shutdown(struct usbd_context *const uds_ctx,
34 int usbd_interface_default(struct usbd_context *const uds_ctx,
49 int usbd_interface_set(struct usbd_context *uds_ctx,
Dusbd_endpoint.c58 static void usbd_ep_ctrl_set_zlp(struct usbd_context *const uds_ctx, in usbd_ep_ctrl_set_zlp()
102 int usbd_ep_ctrl_enqueue(struct usbd_context *const uds_ctx, in usbd_ep_ctrl_enqueue()
128 struct usbd_context *uds_ctx = usbd_class_get_ctx(c_data); in usbd_ep_buf_alloc()
136 struct usbd_context *uds_ctx = usbd_class_get_ctx(c_data); in usbd_ep_enqueue()
150 int usbd_ep_buf_free(struct usbd_context *const uds_ctx, struct net_buf *buf) in usbd_ep_buf_free()
155 int usbd_ep_dequeue(struct usbd_context *const uds_ctx, const uint8_t ep) in usbd_ep_dequeue()
160 int usbd_ep_set_halt(struct usbd_context *const uds_ctx, const uint8_t ep) in usbd_ep_set_halt()
176 int usbd_ep_clear_halt(struct usbd_context *const uds_ctx, const uint8_t ep) in usbd_ep_clear_halt()
192 bool usbd_ep_is_halted(struct usbd_context *const uds_ctx, const uint8_t ep) in usbd_ep_is_halted()
Dusbd_config.c19 static sys_slist_t *usbd_configs(struct usbd_context *uds_ctx, in usbd_configs()
32 struct usbd_config_node *usbd_config_get(struct usbd_context *const uds_ctx, in usbd_config_get()
48 usbd_config_get_current(struct usbd_context *const uds_ctx) in usbd_config_get_current()
74 static int usbd_config_reset(struct usbd_context *const uds_ctx) in usbd_config_reset()
95 bool usbd_config_exist(struct usbd_context *const uds_ctx, in usbd_config_exist()
106 int usbd_config_set(struct usbd_context *const uds_ctx, in usbd_config_set()
146 int usbd_config_attrib_rwup(struct usbd_context *const uds_ctx, in usbd_config_attrib_rwup()
188 int usbd_config_attrib_self(struct usbd_context *const uds_ctx, in usbd_config_attrib_self()
222 int usbd_config_maxpower(struct usbd_context *const uds_ctx, in usbd_config_maxpower()
252 int usbd_add_configuration(struct usbd_context *const uds_ctx, in usbd_add_configuration()
Dusbd_desc.h23 struct usbd_desc_node *usbd_get_descriptor(struct usbd_context *const uds_ctx,
37 int usbd_desc_remove_all(struct usbd_context *const uds_ctx);
Dusbd_msg.h19 void usbd_msg_pub_simple(struct usbd_context *const ctx,
29 void usbd_msg_pub_device(struct usbd_context *const ctx,
Dusbd_class.c47 usbd_class_get_by_config(struct usbd_context *const uds_ctx, in usbd_class_get_by_config()
70 usbd_class_get_by_iface(struct usbd_context *const uds_ctx, in usbd_class_get_by_iface()
90 static bool xfer_owner_exist(struct usbd_context *const uds_ctx, in xfer_owner_exist()
117 int usbd_class_handle_xfer(struct usbd_context *const uds_ctx, in usbd_class_handle_xfer()
140 usbd_class_get_by_ep(struct usbd_context *const uds_ctx, in usbd_class_get_by_ep()
178 usbd_class_get_by_req(struct usbd_context *const uds_ctx, in usbd_class_get_by_req()
232 static int usbd_class_append(struct usbd_context *const uds_ctx, in usbd_class_append()
249 static int usbd_class_remove(struct usbd_context *const uds_ctx, in usbd_class_remove()
268 int usbd_class_remove_all(struct usbd_context *const uds_ctx, in usbd_class_remove_all()
295 int usbd_register_class(struct usbd_context *const uds_ctx, in usbd_register_class()
[all …]
Dusbd_msg.c25 struct usbd_context *ctx;
32 static inline void usbd_msg_pub(struct usbd_context *const ctx, in usbd_msg_pub()
90 int usbd_msg_register_cb(struct usbd_context *const uds_ctx, in usbd_msg_register_cb()
110 void usbd_msg_pub_simple(struct usbd_context *const ctx, in usbd_msg_pub_simple()
123 void usbd_msg_pub_device(struct usbd_context *const ctx, in usbd_msg_pub_device()
Dusbd_ch9.c33 static int nonstd_request(struct usbd_context *const uds_ctx,
46 static void ch9_set_ctrl_type(struct usbd_context *const uds_ctx, in ch9_set_ctrl_type()
52 static int ch9_get_ctrl_type(struct usbd_context *const uds_ctx) in ch9_get_ctrl_type()
57 static int post_status_stage(struct usbd_context *const uds_ctx) in post_status_stage()
84 static int sreq_set_address(struct usbd_context *const uds_ctx) in sreq_set_address()
127 static int sreq_set_configuration(struct usbd_context *const uds_ctx) in sreq_set_configuration()
182 static int sreq_set_interface(struct usbd_context *const uds_ctx) in sreq_set_interface()
218 static void sreq_feature_halt_notify(struct usbd_context *const uds_ctx, in sreq_feature_halt_notify()
228 static int sreq_clear_feature(struct usbd_context *const uds_ctx) in sreq_clear_feature()
283 static int set_feature_test_mode(struct usbd_context *const uds_ctx) in set_feature_test_mode()
[all …]
Dusbd_core.c40 static int event_handler_ep_request(struct usbd_context *const uds_ctx, in event_handler_ep_request()
62 static void usbd_class_bcast_event(struct usbd_context *const uds_ctx, in usbd_class_bcast_event()
95 static int event_handler_bus_reset(struct usbd_context *const uds_ctx) in event_handler_bus_reset()
136 static ALWAYS_INLINE void usbd_event_handler(struct usbd_context *const uds_ctx, in usbd_event_handler()
192 struct usbd_context *uds_ctx; in usbd_thread()
205 int usbd_device_init_core(struct usbd_context *const uds_ctx) in usbd_device_init_core()
226 int usbd_device_shutdown_core(struct usbd_context *const uds_ctx) in usbd_device_shutdown_core()
Dusbd_interface.c25 static int handle_ep_op(struct usbd_context *const uds_ctx, in handle_ep_op()
53 static int usbd_interface_modify(struct usbd_context *const uds_ctx, in usbd_interface_modify()
110 int usbd_interface_shutdown(struct usbd_context *const uds_ctx, in usbd_interface_shutdown()
142 int usbd_interface_default(struct usbd_context *const uds_ctx, in usbd_interface_default()
168 int usbd_interface_set(struct usbd_context *const uds_ctx, in usbd_interface_set()
Dusbd_init.h23 int usbd_init_configurations(struct usbd_context *const uds_ctx);
Dusbd_desc.c31 static int desc_add_and_update_idx(struct usbd_context *const uds_ctx, in desc_add_and_update_idx()
83 struct usbd_desc_node *usbd_get_descriptor(struct usbd_context *const uds_ctx, in usbd_get_descriptor()
105 int usbd_desc_remove_all(struct usbd_context *const uds_ctx) in usbd_desc_remove_all()
119 int usbd_add_descriptor(struct usbd_context *const uds_ctx, in usbd_add_descriptor()
Dusbd_init.c65 static int unassign_eps(struct usbd_context *const uds_ctx, in unassign_eps()
111 static int init_configuration_inst(struct usbd_context *const uds_ctx, in init_configuration_inst()
205 static int init_configuration(struct usbd_context *const uds_ctx, in init_configuration()
257 static void usbd_init_update_fs_mps0(struct usbd_context *const uds_ctx) in usbd_init_update_fs_mps0()
278 int usbd_init_configurations(struct usbd_context *const uds_ctx) in usbd_init_configurations()
Dusbd_data.ld3 ITERABLE_SECTION_RAM(usbd_context, Z_LINK_ITERABLE_SUBALIGN)
/Zephyr-latest/include/zephyr/usb/
Dusbd.h64 struct usbd_context;
137 int (*to_host)(const struct usbd_context *const ctx,
141 int (*to_dev)(const struct usbd_context *const ctx,
272 typedef void (*usbd_msg_cb_t)(struct usbd_context *const ctx,
281 struct usbd_context { struct
382 struct usbd_context *uds_ctx;
430 static inline struct usbd_context *usbd_class_get_ctx(const struct usbd_class_data *const c_data) in usbd_class_get_ctx()
505 static STRUCT_SECTION_ITERABLE(usbd_context, device_name) = { \
775 int usbd_add_descriptor(struct usbd_context *uds_ctx,
805 int usbd_add_configuration(struct usbd_context *uds_ctx,
[all …]
/Zephyr-latest/samples/subsys/usb/common/
Dsample_usbd.h30 struct usbd_context *sample_usbd_init_device(usbd_msg_cb_t msg_cb);
37 struct usbd_context *sample_usbd_setup_device(usbd_msg_cb_t msg_cb);
Dsample_usbd_init.c69 static void sample_fix_code_triple(struct usbd_context *uds_ctx, in sample_fix_code_triple()
89 struct usbd_context *sample_usbd_setup_device(usbd_msg_cb_t msg_cb) in sample_usbd_setup_device()
179 struct usbd_context *sample_usbd_init_device(usbd_msg_cb_t msg_cb) in sample_usbd_init_device()
/Zephyr-latest/samples/subsys/usb/webusb-next/src/
Dmain.c25 static void msg_cb(struct usbd_context *const usbd_ctx, in msg_cb()
47 struct usbd_context *sample_usbd; in main()
Dsfunc.c45 struct usbd_context *uds_ctx = usbd_class_get_ctx(c_data); in sfunc_get_bulk_out()
58 struct usbd_context *uds_ctx = usbd_class_get_ctx(c_data); in sfunc_get_bulk_in()
71 struct usbd_context *uds_ctx = usbd_class_get_ctx(c_data); in sfunc_request_handler()
118 struct usbd_context *uds_ctx = usbd_class_get_ctx(c_data); in sfunc_buf_alloc()
144 struct usbd_context *uds_ctx = usbd_class_get_ctx(c_data); in sfunc_enable()
/Zephyr-latest/samples/bluetooth/hci_usb/src/
Dmain.c17 struct usbd_context *sample_usbd = sample_usbd_init_device(NULL); in enable_usb_device_next()

12