Lines Matching defs:cdev
143 static int gfs_bind(struct usb_composite_dev *cdev);
144 static int gfs_unbind(struct usb_composite_dev *cdev);
312 static int gfs_bind(struct usb_composite_dev *cdev)
324 if (can_support_ecm(cdev->gadget)) {
367 gether_set_gadget(net, cdev->gadget);
372 if (can_support_ecm(cdev->gadget)) {
389 ret = usb_string_ids_tab(cdev, gfs_strings);
394 if (gadget_is_otg(cdev->gadget) && !gfs_otg_desc[0]) {
397 usb_desc = usb_otg_descriptor_alloc(cdev->gadget);
400 usb_otg_descriptor_init(cdev->gadget, usb_desc);
416 ret = usb_add_config(cdev, &c->c, gfs_do_config);
420 usb_composite_overwrite_options(cdev, &coverwrite);
433 if (can_support_ecm(cdev->gadget))
444 static int gfs_unbind(struct usb_composite_dev *cdev)
457 if (can_support_ecm(cdev->gadget)) {
488 if (gadget_is_otg(c->cdev->gadget)) {
541 if (can_support_ecm(c->cdev->gadget)) {