Lines Matching refs:uds_ctx
23 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() argument
47 desc = uds_ctx->fs_desc; in usbd_get_num_configs()
49 desc = uds_ctx->hs_desc; in usbd_get_num_configs()
65 static inline void usbd_set_num_configs(struct usbd_context *const uds_ctx, in usbd_set_num_configs() argument
72 desc = uds_ctx->fs_desc; in usbd_set_num_configs()
74 desc = uds_ctx->hs_desc; in usbd_set_num_configs()
89 static inline bool usbd_is_enabled(const struct usbd_context *const uds_ctx) in usbd_is_enabled() argument
91 return uds_ctx->status.enabled; in usbd_is_enabled()
101 static inline bool usbd_is_initialized(const struct usbd_context *const uds_ctx) in usbd_is_initialized() argument
103 return uds_ctx->status.initialized; in usbd_is_initialized()
112 static inline void usbd_status_suspended(struct usbd_context *const uds_ctx, in usbd_status_suspended() argument
115 uds_ctx->status.suspended = value; in usbd_status_suspended()
123 static inline void usbd_device_lock(struct usbd_context *const uds_ctx) in usbd_device_lock() argument
125 k_mutex_lock(&uds_ctx->mutex, K_FOREVER); in usbd_device_lock()
133 static inline void usbd_device_unlock(struct usbd_context *const uds_ctx) in usbd_device_unlock() argument
135 k_mutex_unlock(&uds_ctx->mutex); in usbd_device_unlock()
145 int usbd_device_init_core(struct usbd_context *uds_ctx);
154 int usbd_device_shutdown_core(struct usbd_context *const uds_ctx);