• Home
  • Raw
  • Download

Lines Matching refs:gadget

91 		bdc->gadget.ep0->maxpacket = EP0_MAX_PKT_SIZE;  in bdc_uspc_connected()
92 bdc->gadget.speed = USB_SPEED_SUPER; in bdc_uspc_connected()
103 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected()
104 bdc->gadget.speed = USB_SPEED_HIGH; in bdc_uspc_connected()
109 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected()
110 bdc->gadget.speed = USB_SPEED_FULL; in bdc_uspc_connected()
115 bdc->gadget.ep0->maxpacket = 8; in bdc_uspc_connected()
116 bdc->gadget.speed = USB_SPEED_LOW; in bdc_uspc_connected()
130 usb_gadget_set_state(&bdc->gadget, USB_STATE_DEFAULT); in bdc_uspc_connected()
150 bdc->gadget_driver->disconnect(&bdc->gadget); in bdc_uspc_disconnected()
154 bdc->gadget.speed = USB_SPEED_UNKNOWN; in bdc_uspc_disconnected()
192 if ((bdc->gadget.speed != USB_SPEED_UNKNOWN) && in handle_link_state_change()
197 bdc->gadget_driver->suspend(&bdc->gadget); in handle_link_state_change()
204 if (bdc->gadget.speed == USB_SPEED_SUPER) { in handle_link_state_change()
225 bdc->gadget_driver->resume(&bdc->gadget); in handle_link_state_change()
260 usb_gadget_set_state(&bdc->gadget, USB_STATE_POWERED); in bdc_sr_uspc()
366 static int bdc_udc_start(struct usb_gadget *gadget, in bdc_udc_start() argument
369 struct bdc *bdc = gadget_to_bdc(gadget); in bdc_udc_start()
377 bdc->gadget.name, in bdc_udc_start()
393 bdc->gadget.dev.driver = &driver->driver; in bdc_udc_start()
400 static int bdc_udc_stop(struct usb_gadget *gadget) in bdc_udc_stop() argument
402 struct bdc *bdc = gadget_to_bdc(gadget); in bdc_udc_stop()
409 bdc->gadget.dev.driver = NULL; in bdc_udc_stop()
415 static int bdc_udc_pullup(struct usb_gadget *gadget, int is_on) in bdc_udc_pullup() argument
417 struct bdc *bdc = gadget_to_bdc(gadget); in bdc_udc_pullup()
422 if (!gadget) in bdc_udc_pullup()
450 static int bdc_udc_set_selfpowered(struct usb_gadget *gadget, in bdc_udc_set_selfpowered() argument
453 struct bdc *bdc = gadget_to_bdc(gadget); in bdc_udc_set_selfpowered()
457 gadget->is_selfpowered = (is_self != 0); in bdc_udc_set_selfpowered()
469 static int bdc_udc_wakeup(struct usb_gadget *gadget) in bdc_udc_wakeup() argument
471 struct bdc *bdc = gadget_to_bdc(gadget); in bdc_udc_wakeup()
495 if (bdc->gadget.speed == USB_SPEED_SUPER) in bdc_udc_wakeup()
527 bdc->gadget.ops = &bdc_gadget_ops; in bdc_udc_init()
528 bdc->gadget.max_speed = USB_SPEED_SUPER; in bdc_udc_init()
529 bdc->gadget.speed = USB_SPEED_UNKNOWN; in bdc_udc_init()
530 bdc->gadget.dev.parent = bdc->dev; in bdc_udc_init()
532 bdc->gadget.sg_supported = false; in bdc_udc_init()
535 bdc->gadget.name = BRCM_BDC_NAME; in bdc_udc_init()
551 ret = usb_add_gadget_udc(bdc->dev, &bdc->gadget); in bdc_udc_init()
556 usb_gadget_set_state(&bdc->gadget, USB_STATE_NOTATTACHED); in bdc_udc_init()
575 usb_del_gadget_udc(&bdc->gadget); in bdc_udc_init()
591 usb_del_gadget_udc(&bdc->gadget); in bdc_udc_exit()