Lines Matching refs:my_uds_ctx

52 static struct usbd_context *my_uds_ctx = &sh_uds_ctx;  variable
60 err = usbd_wakeup_request(my_uds_ctx); in cmd_wakeup_request()
77 ret = usbd_register_class(my_uds_ctx, argv[1], current_cmd_speed, cfg); in cmd_register()
98 ret = usbd_unregister_class(my_uds_ctx, argv[1], current_cmd_speed, cfg); in cmd_unregister()
117 err = usbd_add_descriptor(my_uds_ctx, &lang); in cmd_usbd_default_strings()
118 err |= usbd_add_descriptor(my_uds_ctx, &mfr); in cmd_usbd_default_strings()
119 err |= usbd_add_descriptor(my_uds_ctx, &product); in cmd_usbd_default_strings()
120 err |= usbd_add_descriptor(my_uds_ctx, &sn); in cmd_usbd_default_strings()
136 err = usbd_register_class(my_uds_ctx, c_nd->c_data->name, in register_classes()
148 if (usbd_caps_speed(my_uds_ctx) != USBD_SPEED_HS) { in register_classes()
153 err = usbd_register_class(my_uds_ctx, c_nd->c_data->name, in register_classes()
173 err = usbd_init(my_uds_ctx); in cmd_usbd_init()
196 if (usbd_caps_speed(my_uds_ctx) == USBD_SPEED_HS) { in cmd_usbd_default_config()
197 err = usbd_add_configuration(my_uds_ctx, USBD_SPEED_HS, &config_1_hs); in cmd_usbd_default_config()
204 err = usbd_add_configuration(my_uds_ctx, USBD_SPEED_FS, &config_1_fs); in cmd_usbd_default_config()
223 err = usbd_enable(my_uds_ctx); in cmd_usbd_enable()
241 err = usbd_disable(my_uds_ctx); in cmd_usbd_disable()
258 err = usbd_shutdown(my_uds_ctx); in cmd_usbd_shutdown()
274 my_uds_ctx = ctx; in cmd_select()
295 ret = usbd_device_set_bcd_usb(my_uds_ctx, current_cmd_speed, bcd); in cmd_device_bcd_usb()
312 ret = usbd_device_set_pid(my_uds_ctx, pid); in cmd_device_pid()
327 ret = usbd_device_set_vid(my_uds_ctx, vid); in cmd_device_vid()
344 ret = usbd_device_set_code_triple(my_uds_ctx, current_cmd_speed, in cmd_device_code_triple()
364 ret = usbd_add_configuration(my_uds_ctx, in cmd_config_add()
386 ret = usbd_config_attrib_self(my_uds_ctx, current_cmd_speed, cfg, self); in cmd_config_set_selfpowered()
420 ret = usbd_config_attrib_rwup(my_uds_ctx, current_cmd_speed, cfg, rwup); in cmd_config_rwup()
461 ret = usbd_config_maxpower(my_uds_ctx, current_cmd_speed, cfg, power); in cmd_config_power()