Lines Matching refs:gadget

40 	struct usb_gadget	 gadget;  member
88 container_of(g, struct usbhsg_gpriv, gadget)
107 #define usbhsg_is_not_connected(gp) ((gp)->gadget.speed == USB_SPEED_UNKNOWN)
462 gpriv->gadget.speed = usbhs_bus_get_speed(priv); in usbhsg_irq_dev_state()
464 dev_dbg(dev, "state = %x : speed : %d\n", state, gpriv->gadget.speed); in usbhsg_irq_dev_state()
466 if (gpriv->gadget.speed != USB_SPEED_UNKNOWN && in usbhsg_irq_dev_state()
469 gpriv->driver->suspend(&gpriv->gadget); in usbhsg_irq_dev_state()
470 usb_gadget_set_state(&gpriv->gadget, USB_STATE_SUSPENDED); in usbhsg_irq_dev_state()
543 ret = gpriv->driver->setup(&gpriv->gadget, &ctrl); in usbhsg_irq_ctrl_stage()
906 gpriv->gadget.speed = USB_SPEED_UNKNOWN; in usbhsg_try_stop()
947 static int usbhsg_gadget_start(struct usb_gadget *gadget, in usbhsg_gadget_start() argument
950 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_gadget_start()
963 &gpriv->gadget); in usbhsg_gadget_start()
966 gpriv->gadget.name); in usbhsg_gadget_start()
980 static int usbhsg_gadget_stop(struct usb_gadget *gadget) in usbhsg_gadget_stop() argument
982 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_gadget_stop()
998 static int usbhsg_get_frame(struct usb_gadget *gadget) in usbhsg_get_frame() argument
1000 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_get_frame()
1006 static int usbhsg_pullup(struct usb_gadget *gadget, int is_on) in usbhsg_pullup() argument
1008 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_pullup()
1023 static int usbhsg_set_selfpowered(struct usb_gadget *gadget, int is_self) in usbhsg_set_selfpowered() argument
1025 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_set_selfpowered()
1032 gadget->is_selfpowered = (is_self != 0); in usbhsg_set_selfpowered()
1037 static int usbhsg_vbus_session(struct usb_gadget *gadget, int is_active) in usbhsg_vbus_session() argument
1039 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_vbus_session()
1071 gpriv->driver->disconnect(&gpriv->gadget); in usbhsg_stop()
1125 gpriv->gadget.dev.parent = dev; in usbhs_mod_gadget_probe()
1126 gpriv->gadget.name = "renesas_usbhs_udc"; in usbhs_mod_gadget_probe()
1127 gpriv->gadget.ops = &usbhsg_gadget_ops; in usbhs_mod_gadget_probe()
1128 gpriv->gadget.max_speed = USB_SPEED_HIGH; in usbhs_mod_gadget_probe()
1129 gpriv->gadget.quirk_avoids_skb_reserve = usbhs_get_dparam(priv, in usbhs_mod_gadget_probe()
1132 INIT_LIST_HEAD(&gpriv->gadget.ep_list); in usbhs_mod_gadget_probe()
1149 gpriv->gadget.ep0 = &uep->ep; in usbhs_mod_gadget_probe()
1162 list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list); in usbhs_mod_gadget_probe()
1168 ret = usb_add_gadget_udc(dev, &gpriv->gadget); in usbhs_mod_gadget_probe()
1190 usb_del_gadget_udc(&gpriv->gadget); in usbhs_mod_gadget_remove()