Lines Matching refs:gadget
48 struct usb_gadget gadget; member
96 container_of(g, struct usbhsg_gpriv, gadget)
115 #define usbhsg_is_not_connected(gp) ((gp)->gadget.speed == USB_SPEED_UNKNOWN)
469 gpriv->gadget.speed = usbhs_bus_get_speed(priv); in usbhsg_irq_dev_state()
473 gpriv->gadget.speed); in usbhsg_irq_dev_state()
544 ret = gpriv->driver->setup(&gpriv->gadget, &ctrl); in usbhsg_irq_ctrl_stage()
898 gpriv->gadget.speed = USB_SPEED_UNKNOWN; in usbhsg_try_stop()
939 static int usbhsg_gadget_start(struct usb_gadget *gadget, in usbhsg_gadget_start() argument
942 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_gadget_start()
955 &gpriv->gadget); in usbhsg_gadget_start()
958 gpriv->gadget.name); in usbhsg_gadget_start()
972 static int usbhsg_gadget_stop(struct usb_gadget *gadget) in usbhsg_gadget_stop() argument
974 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_gadget_stop()
990 static int usbhsg_get_frame(struct usb_gadget *gadget) in usbhsg_get_frame() argument
992 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_get_frame()
998 static int usbhsg_pullup(struct usb_gadget *gadget, int is_on) in usbhsg_pullup() argument
1000 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_pullup()
1015 static int usbhsg_set_selfpowered(struct usb_gadget *gadget, int is_self) in usbhsg_set_selfpowered() argument
1017 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_set_selfpowered()
1024 gadget->is_selfpowered = (is_self != 0); in usbhsg_set_selfpowered()
1029 static int usbhsg_vbus_session(struct usb_gadget *gadget, int is_active) in usbhsg_vbus_session() argument
1031 struct usbhsg_gpriv *gpriv = usbhsg_gadget_to_gpriv(gadget); in usbhsg_vbus_session()
1063 gpriv->driver->disconnect(&gpriv->gadget); in usbhsg_stop()
1118 gpriv->gadget.dev.parent = dev; in usbhs_mod_gadget_probe()
1119 gpriv->gadget.name = "renesas_usbhs_udc"; in usbhs_mod_gadget_probe()
1120 gpriv->gadget.ops = &usbhsg_gadget_ops; in usbhs_mod_gadget_probe()
1121 gpriv->gadget.max_speed = USB_SPEED_HIGH; in usbhs_mod_gadget_probe()
1122 gpriv->gadget.quirk_avoids_skb_reserve = usbhs_get_dparam(priv, in usbhs_mod_gadget_probe()
1125 INIT_LIST_HEAD(&gpriv->gadget.ep_list); in usbhs_mod_gadget_probe()
1141 gpriv->gadget.ep0 = &uep->ep; in usbhs_mod_gadget_probe()
1154 list_add_tail(&uep->ep.ep_list, &gpriv->gadget.ep_list); in usbhs_mod_gadget_probe()
1160 ret = usb_add_gadget_udc(dev, &gpriv->gadget); in usbhs_mod_gadget_probe()
1182 usb_del_gadget_udc(&gpriv->gadget); in usbhs_mod_gadget_remove()