Lines Matching refs:uds_ctx
65 static int unassign_eps(struct usbd_context *const uds_ctx, in unassign_eps() argument
111 static int init_configuration_inst(struct usbd_context *const uds_ctx, in init_configuration_inst() argument
162 unassign_eps(uds_ctx, config_ep_bm, &class_ep_bm); in init_configuration_inst()
172 ret = assign_ep_addr(uds_ctx->dev, ed, in init_configuration_inst()
205 static int init_configuration(struct usbd_context *const uds_ctx, in init_configuration() argument
218 ret = init_configuration_inst(uds_ctx, speed, c_nd, in init_configuration()
248 ret = unassign_eps(uds_ctx, &config_ep_bm, &c_nd->ep_active); in init_configuration()
257 static void usbd_init_update_fs_mps0(struct usbd_context *const uds_ctx) in usbd_init_update_fs_mps0() argument
259 struct udc_device_caps caps = udc_caps(uds_ctx->dev); in usbd_init_update_fs_mps0()
260 struct usb_device_descriptor *desc = uds_ctx->fs_desc; in usbd_init_update_fs_mps0()
278 int usbd_init_configurations(struct usbd_context *const uds_ctx) in usbd_init_configurations() argument
282 usbd_init_update_fs_mps0(uds_ctx); in usbd_init_configurations()
284 SYS_SLIST_FOR_EACH_CONTAINER(&uds_ctx->hs_configs, cfg_nd, node) { in usbd_init_configurations()
287 ret = init_configuration(uds_ctx, USBD_SPEED_HS, cfg_nd); in usbd_init_configurations()
295 usbd_get_num_configs(uds_ctx, USBD_SPEED_HS)); in usbd_init_configurations()
298 SYS_SLIST_FOR_EACH_CONTAINER(&uds_ctx->fs_configs, cfg_nd, node) { in usbd_init_configurations()
301 ret = init_configuration(uds_ctx, USBD_SPEED_FS, cfg_nd); in usbd_init_configurations()
309 usbd_get_num_configs(uds_ctx, USBD_SPEED_FS)); in usbd_init_configurations()