Lines Matching refs:gadget
139 struct usb_gadget gadget; member
171 static inline struct s3c_hsudc *to_hsudc(struct usb_gadget *gadget) in to_hsudc() argument
173 return container_of(gadget, struct s3c_hsudc, gadget); in to_hsudc()
242 hsudc->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsudc_stop_activity()
617 ret = hsudc->driver->setup(&hsudc->gadget, &ctrl); in s3c_hsudc_process_setup()
720 if (!hsudc->driver || hsudc->gadget.speed == USB_SPEED_UNKNOWN) in s3c_hsudc_ep_enable()
831 if (!hsudc->driver || hsudc->gadget.speed == USB_SPEED_UNKNOWN) in s3c_hsudc_queue()
945 list_add_tail(&hsep->ep.ep_list, &hsudc->gadget.ep_list); in s3c_hsudc_initep()
986 INIT_LIST_HEAD(&hsudc->gadget.ep_list); in s3c_hsudc_setup_ep()
1044 hsudc->gadget.speed = (sys_status & S3C_SSR_HSP) ? in s3c_hsudc_irq()
1050 if (hsudc->gadget.speed != USB_SPEED_UNKNOWN in s3c_hsudc_irq()
1052 hsudc->driver->suspend(&hsudc->gadget); in s3c_hsudc_irq()
1057 if (hsudc->gadget.speed != USB_SPEED_UNKNOWN in s3c_hsudc_irq()
1059 hsudc->driver->resume(&hsudc->gadget); in s3c_hsudc_irq()
1100 static int s3c_hsudc_start(struct usb_gadget *gadget, in s3c_hsudc_start() argument
1103 struct s3c_hsudc *hsudc = to_hsudc(gadget); in s3c_hsudc_start()
1129 &hsudc->gadget); in s3c_hsudc_start()
1132 hsudc->gadget.name); in s3c_hsudc_start()
1155 static int s3c_hsudc_stop(struct usb_gadget *gadget) in s3c_hsudc_stop() argument
1157 struct s3c_hsudc *hsudc = to_hsudc(gadget); in s3c_hsudc_stop()
1164 hsudc->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsudc_stop()
1191 static int s3c_hsudc_gadget_getframe(struct usb_gadget *gadget) in s3c_hsudc_gadget_getframe() argument
1193 return s3c_hsudc_read_frameno(to_hsudc(gadget)); in s3c_hsudc_gadget_getframe()
1196 static int s3c_hsudc_vbus_draw(struct usb_gadget *gadget, unsigned mA) in s3c_hsudc_vbus_draw() argument
1198 struct s3c_hsudc *hsudc = to_hsudc(gadget); in s3c_hsudc_vbus_draw()
1253 hsudc->gadget.max_speed = USB_SPEED_HIGH; in s3c_hsudc_probe()
1254 hsudc->gadget.ops = &s3c_hsudc_gadget_ops; in s3c_hsudc_probe()
1255 hsudc->gadget.name = dev_name(dev); in s3c_hsudc_probe()
1256 hsudc->gadget.ep0 = &hsudc->ep[0].ep; in s3c_hsudc_probe()
1257 hsudc->gadget.is_otg = 0; in s3c_hsudc_probe()
1258 hsudc->gadget.is_a_peripheral = 0; in s3c_hsudc_probe()
1259 hsudc->gadget.speed = USB_SPEED_UNKNOWN; in s3c_hsudc_probe()
1288 ret = usb_add_gadget_udc(&pdev->dev, &hsudc->gadget); in s3c_hsudc_probe()