Lines Matching full:composite

8 #include <linux/usb/composite.h>
50 struct usb_composite_driver composite; member
249 udc_name = gi->composite.gadget_driver.udc_name; in gadget_dev_desc_UDC_show()
260 if (!gi->composite.gadget_driver.udc_name) in unregister_gadget()
263 ret = usb_gadget_unregister_driver(&gi->composite.gadget_driver); in unregister_gadget()
266 kfree(gi->composite.gadget_driver.udc_name); in unregister_gadget()
267 gi->composite.gadget_driver.udc_name = NULL; in unregister_gadget()
295 if (gi->composite.gadget_driver.udc_name) { in gadget_dev_desc_UDC_store()
299 gi->composite.gadget_driver.udc_name = name; in gadget_dev_desc_UDC_store()
300 ret = usb_gadget_register_driver(&gi->composite.gadget_driver); in gadget_dev_desc_UDC_store()
302 gi->composite.gadget_driver.udc_name = NULL; in gadget_dev_desc_UDC_store()
317 enum usb_device_speed speed = to_gadget_info(item)->composite.max_speed; in gadget_dev_desc_max_speed_show()
330 if (gi->composite.gadget_driver.udc_name) in gadget_dev_desc_max_speed_store()
334 gi->composite.max_speed = USB_SPEED_SUPER_PLUS; in gadget_dev_desc_max_speed_store()
336 gi->composite.max_speed = USB_SPEED_SUPER; in gadget_dev_desc_max_speed_store()
338 gi->composite.max_speed = USB_SPEED_HIGH; in gadget_dev_desc_max_speed_store()
340 gi->composite.max_speed = USB_SPEED_FULL; in gadget_dev_desc_max_speed_store()
342 gi->composite.max_speed = USB_SPEED_LOW; in gadget_dev_desc_max_speed_store()
346 gi->composite.gadget_driver.max_speed = gi->composite.max_speed; in gadget_dev_desc_max_speed_store()
407 kfree(gi->composite.gadget_driver.function); in gadget_info_attr_release()
408 kfree(gi->composite.gadget_driver.driver.name); in gadget_info_attr_release()
446 if (gi->composite.gadget_driver.udc_name) { in config_usb_cfg_link()
501 if (gi->composite.gadget_driver.udc_name) in config_usb_cfg_unlink()
503 WARN_ON(gi->composite.gadget_driver.udc_name); in config_usb_cfg_unlink()
1254 if (gi->composite.gadget_driver.udc_name) in os_desc_unlink()
1257 WARN_ON(gi->composite.gadget_driver.udc_name); in os_desc_unlink()
1569 int composite_dev_prepare(struct usb_composite_driver *composite,
1681 struct usb_composite_driver *composite = to_cdriver(gdriver); in configfs_composite_bind() local
1682 struct gadget_info *gi = container_of(composite, in configfs_composite_bind()
1683 struct gadget_info, composite); in configfs_composite_bind()
1694 ret = composite_dev_prepare(composite, cdev); in configfs_composite_bind()
1702 gi->composite.name); in configfs_composite_bind()
1714 gi->composite.name); in configfs_composite_bind()
2011 gi->composite.bind = configfs_do_nothing; in gadgets_make()
2012 gi->composite.unbind = configfs_do_nothing; in gadgets_make()
2013 gi->composite.suspend = NULL; in gadgets_make()
2014 gi->composite.resume = NULL; in gadgets_make()
2015 gi->composite.max_speed = USB_SPEED_SUPER_PLUS; in gadgets_make()
2027 gi->composite.gadget_driver = configfs_driver_template; in gadgets_make()
2029 gi->composite.gadget_driver.driver.name = kasprintf(GFP_KERNEL, in gadgets_make()
2031 if (!gi->composite.gadget_driver.driver.name) in gadgets_make()
2034 gi->composite.gadget_driver.function = kstrdup(name, GFP_KERNEL); in gadgets_make()
2035 gi->composite.name = gi->composite.gadget_driver.function; in gadgets_make()
2037 if (!gi->composite.gadget_driver.function) in gadgets_make()
2043 kfree(gi->composite.gadget_driver.driver.name); in gadgets_make()