Lines Matching defs:cdev
138 if (gadget_is_otg(c->cdev->gadget)) {
185 static int rndis_config_register(struct usb_composite_dev *cdev)
195 return usb_add_config(cdev, &config, rndis_do_config);
200 static int rndis_config_register(struct usb_composite_dev *cdev)
220 if (gadget_is_otg(c->cdev->gadget)) {
268 static int cdc_config_register(struct usb_composite_dev *cdev)
278 return usb_add_config(cdev, &config, cdc_do_config);
283 static int cdc_config_register(struct usb_composite_dev *cdev)
294 static int multi_bind(struct usb_composite_dev *cdev)
296 struct usb_gadget *gadget = cdev->gadget;
307 if (!can_support_ecm(cdev->gadget)) {
350 gether_set_gadget(ecm_opts->net, cdev->gadget);
380 status = fsg_common_set_cdev(fsg_opts->common, cdev, config.can_stall);
393 status = usb_string_ids_tab(cdev, strings_dev);
412 status = rndis_config_register(cdev);
416 status = cdc_config_register(cdev);
419 usb_composite_overwrite_options(cdev, &coverwrite);
449 static int multi_unbind(struct usb_composite_dev *cdev)