Lines Matching refs:cdev
94 static int g_dnl_unbind(struct usb_composite_dev *cdev) in g_dnl_unbind() argument
96 struct usb_gadget *gadget = cdev->gadget; in g_dnl_unbind()
119 const char *s = c->cdev->driver->name; in g_dnl_do_config()
123 __func__, c, c->cdev); in g_dnl_do_config()
131 static int g_dnl_config_register(struct usb_composite_dev *cdev) in g_dnl_config_register() argument
148 return usb_add_config(cdev, config); in g_dnl_config_register()
196 static int g_dnl_get_bcd_device_number(struct usb_composite_dev *cdev) in g_dnl_get_bcd_device_number() argument
198 struct usb_gadget *gadget = cdev->gadget; in g_dnl_get_bcd_device_number()
221 static int g_dnl_bind(struct usb_composite_dev *cdev) in g_dnl_bind() argument
223 struct usb_gadget *gadget = cdev->gadget; in g_dnl_bind()
227 debug("%s: gadget: 0x%p cdev: 0x%p\n", __func__, gadget, cdev); in g_dnl_bind()
229 id = usb_string_id(cdev); in g_dnl_bind()
236 id = usb_string_id(cdev); in g_dnl_bind()
243 g_dnl_bind_fixup(&device_desc, cdev->driver->name); in g_dnl_bind()
246 id = usb_string_id(cdev); in g_dnl_bind()
254 ret = g_dnl_config_register(cdev); in g_dnl_bind()
258 gcnum = g_dnl_get_bcd_device_number(cdev); in g_dnl_bind()
274 g_dnl_unbind(cdev); in g_dnl_bind()