Lines Matching refs:cdev
101 static int g_dnl_unbind(struct usb_composite_dev *cdev) in g_dnl_unbind() argument
103 struct usb_gadget *gadget = cdev->gadget; in g_dnl_unbind()
126 const char *s = c->cdev->driver->name; in g_dnl_do_config()
130 __func__, c, c->cdev); in g_dnl_do_config()
138 static int g_dnl_config_register(struct usb_composite_dev *cdev) in g_dnl_config_register() argument
155 return usb_add_config(cdev, config); in g_dnl_config_register()
203 static int g_dnl_get_bcd_device_number(struct usb_composite_dev *cdev) in g_dnl_get_bcd_device_number() argument
205 struct usb_gadget *gadget = cdev->gadget; in g_dnl_get_bcd_device_number()
228 static int g_dnl_bind(struct usb_composite_dev *cdev) in g_dnl_bind() argument
230 struct usb_gadget *gadget = cdev->gadget; in g_dnl_bind()
234 debug("%s: gadget: 0x%p cdev: 0x%p\n", __func__, gadget, cdev); in g_dnl_bind()
236 id = usb_string_id(cdev); in g_dnl_bind()
243 id = usb_string_id(cdev); in g_dnl_bind()
250 g_dnl_bind_fixup(&device_desc, cdev->driver->name); in g_dnl_bind()
253 id = usb_string_id(cdev); in g_dnl_bind()
261 ret = g_dnl_config_register(cdev); in g_dnl_bind()
265 gcnum = g_dnl_get_bcd_device_number(cdev); in g_dnl_bind()
281 g_dnl_unbind(cdev); in g_dnl_bind()