Lines Matching defs:cdev
143 static int gfs_bind(struct usb_composite_dev *cdev);
144 static int gfs_unbind(struct usb_composite_dev *cdev);
308 static int gfs_bind(struct usb_composite_dev *cdev)
318 if (can_support_ecm(cdev->gadget)) {
361 gether_set_gadget(net, cdev->gadget);
366 if (can_support_ecm(cdev->gadget)) {
383 ret = usb_string_ids_tab(cdev, gfs_strings);
388 if (gadget_is_otg(cdev->gadget) && !gfs_otg_desc[0]) {
391 usb_desc = usb_otg_descriptor_alloc(cdev->gadget);
396 usb_otg_descriptor_init(cdev->gadget, usb_desc);
412 ret = usb_add_config(cdev, &c->c, gfs_do_config);
416 usb_composite_overwrite_options(cdev, &coverwrite);
429 if (can_support_ecm(cdev->gadget))
440 static int gfs_unbind(struct usb_composite_dev *cdev)
450 if (can_support_ecm(cdev->gadget)) {
481 if (gadget_is_otg(c->cdev->gadget)) {
534 if (can_support_ecm(c->cdev->gadget)) {