• Home
  • Raw
  • Download

Lines Matching refs:gadget

429 	ret = usb_gadget_map_request(&ci->gadget, &hwreq->req, hwep->dir);  in _hardware_enqueue()
585 usb_gadget_unmap_request(&hwep->ci->gadget, &hwreq->req, hwep->dir); in _hardware_dequeue()
685 static int _gadget_stop_activity(struct usb_gadget *gadget) in _gadget_stop_activity() argument
688 struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); in _gadget_stop_activity()
692 ci->gadget.speed = USB_SPEED_UNKNOWN; in _gadget_stop_activity()
698 gadget_for_each_ep(ep, gadget) { in _gadget_stop_activity()
705 gadget_for_each_ep(ep, gadget) { in _gadget_stop_activity()
733 if (ci->gadget.speed != USB_SPEED_UNKNOWN) { in isr_reset_handler()
735 ci->driver->disconnect(&ci->gadget); in isr_reset_handler()
738 retval = _gadget_stop_activity(&ci->gadget); in isr_reset_handler()
750 usb_gadget_set_state(&ci->gadget, USB_STATE_DEFAULT); in isr_reset_handler()
908 usb_gadget_set_state(&ci->gadget, USB_STATE_ADDRESS); in isr_setup_status_complete()
976 dev_warn(&ci->gadget.dev, in otg_a_alt_hnp_support()
1108 ci->gadget.b_hnp_enable = 1; in isr_setup_packet_handler()
1130 err = ci->driver->setup(&ci->gadget, &req); in isr_setup_packet_handler()
1393 usb_gadget_unmap_request(&hwep->ci->gadget, req, hwep->dir); in ep_dequeue()
1480 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_session()
1498 ci->driver->disconnect(&ci->gadget); in ci_udc_vbus_session()
1503 _gadget_stop_activity(&ci->gadget); in ci_udc_vbus_session()
1514 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_wakeup()
1535 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_draw()
1547 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_pullup()
1560 static int ci_udc_start(struct usb_gadget *gadget,
1562 static int ci_udc_stop(struct usb_gadget *gadget,
1625 list_add_tail(&hwep->ep.ep_list, &ci->gadget.ep_list); in init_eps()
1651 static int ci_udc_start(struct usb_gadget *gadget, in ci_udc_start() argument
1654 struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); in ci_udc_start()
1680 pm_runtime_get_sync(&ci->gadget.dev); in ci_udc_start()
1685 pm_runtime_put_sync(&ci->gadget.dev); in ci_udc_start()
1692 pm_runtime_put_sync(&ci->gadget.dev); in ci_udc_start()
1700 static int ci_udc_stop(struct usb_gadget *gadget, in ci_udc_stop() argument
1703 struct ci_hdrc *ci = container_of(gadget, struct ci_hdrc, gadget); in ci_udc_stop()
1714 _gadget_stop_activity(&ci->gadget); in ci_udc_stop()
1716 pm_runtime_put(&ci->gadget.dev); in ci_udc_stop()
1759 ci->gadget.speed = hw_port_is_high_speed(ci) ? in udc_irq()
1763 ci->driver->resume(&ci->gadget); in udc_irq()
1773 if (ci->gadget.speed != USB_SPEED_UNKNOWN && in udc_irq()
1777 ci->driver->suspend(&ci->gadget); in udc_irq()
1778 usb_gadget_set_state(&ci->gadget, in udc_irq()
1801 ci->gadget.ops = &usb_gadget_ops; in udc_start()
1802 ci->gadget.speed = USB_SPEED_UNKNOWN; in udc_start()
1803 ci->gadget.max_speed = USB_SPEED_HIGH; in udc_start()
1804 ci->gadget.is_otg = ci->is_otg ? 1 : 0; in udc_start()
1805 ci->gadget.name = ci->platdata->name; in udc_start()
1807 INIT_LIST_HEAD(&ci->gadget.ep_list); in udc_start()
1828 ci->gadget.ep0 = &ci->ep0in->ep; in udc_start()
1830 retval = usb_add_gadget_udc(dev, &ci->gadget); in udc_start()
1834 pm_runtime_no_callbacks(&ci->gadget.dev); in udc_start()
1835 pm_runtime_enable(&ci->gadget.dev); in udc_start()
1858 usb_del_gadget_udc(&ci->gadget); in ci_hdrc_gadget_destroy()