Lines Matching refs:endpoint
203 usb_gadget_giveback_request(&dep->endpoint, &req->request); in dwc3_gadget_giveback()
487 u32 burst = dep->endpoint.maxburst; in dwc3_gadget_set_ep_config()
583 dep->endpoint.desc = desc; in __dwc3_gadget_ep_enable()
661 dep->endpoint.desc = NULL; in __dwc3_gadget_ep_disable()
811 switch (usb_endpoint_type(dep->endpoint.desc)) { in dwc3_prepare_one_trb()
843 struct usb_ep *ep = &dep->endpoint; in dwc3_prepare_one_trb()
887 if (usb_endpoint_xfer_bulk(dep->endpoint.desc) && dep->stream_capable) in dwc3_prepare_one_trb()
1098 if (!dep->endpoint.desc) { in __dwc3_gadget_ep_queue()
1101 &req->request, dep->endpoint.name); in __dwc3_gadget_ep_queue()
1139 if (usb_endpoint_xfer_isoc(dep->endpoint.desc)) { in __dwc3_gadget_ep_queue()
1172 struct usb_ep *ep = &dep->endpoint; in __dwc3_gadget_ep_queue_zlp()
1270 if (usb_endpoint_xfer_isoc(dep->endpoint.desc)) { in __dwc3_gadget_ep_set_halt()
1827 dep->endpoint.name = dep->name; in dwc3_gadget_init_hw_endpoints()
1833 usb_ep_set_maxpacket_limit(&dep->endpoint, 512); in dwc3_gadget_init_hw_endpoints()
1834 dep->endpoint.maxburst = 1; in dwc3_gadget_init_hw_endpoints()
1835 dep->endpoint.ops = &dwc3_gadget_ep0_ops; in dwc3_gadget_init_hw_endpoints()
1837 dwc->gadget.ep0 = &dep->endpoint; in dwc3_gadget_init_hw_endpoints()
1841 usb_ep_set_maxpacket_limit(&dep->endpoint, 1024); in dwc3_gadget_init_hw_endpoints()
1842 dep->endpoint.max_streams = 15; in dwc3_gadget_init_hw_endpoints()
1843 dep->endpoint.ops = &dwc3_gadget_ep_ops; in dwc3_gadget_init_hw_endpoints()
1844 list_add_tail(&dep->endpoint.ep_list, in dwc3_gadget_init_hw_endpoints()
1853 dep->endpoint.caps.type_control = true; in dwc3_gadget_init_hw_endpoints()
1855 dep->endpoint.caps.type_iso = true; in dwc3_gadget_init_hw_endpoints()
1856 dep->endpoint.caps.type_bulk = true; in dwc3_gadget_init_hw_endpoints()
1857 dep->endpoint.caps.type_int = true; in dwc3_gadget_init_hw_endpoints()
1860 dep->endpoint.caps.dir_in = !!direction; in dwc3_gadget_init_hw_endpoints()
1861 dep->endpoint.caps.dir_out = !direction; in dwc3_gadget_init_hw_endpoints()
1913 list_del(&dep->endpoint.ep_list); in dwc3_gadget_free_endpoints()
2069 if (!dep->endpoint.desc) in dwc3_cleanup_done_reqs()
2072 if (usb_endpoint_xfer_isoc(dep->endpoint.desc) && in dwc3_cleanup_done_reqs()
2089 if (usb_endpoint_xfer_isoc(dep->endpoint.desc) && ioc) in dwc3_cleanup_done_reqs()
2108 if (clean_busy && (!dep->endpoint.desc || is_xfer_complete || in dwc3_endpoint_transfer_complete()
2109 usb_endpoint_xfer_isoc(dep->endpoint.desc))) in dwc3_endpoint_transfer_complete()
2142 if (!dep->endpoint.desc) in dwc3_endpoint_transfer_complete()
2145 if (!usb_endpoint_xfer_isoc(dep->endpoint.desc)) { in dwc3_endpoint_transfer_complete()
2174 if (usb_endpoint_xfer_isoc(dep->endpoint.desc)) { in dwc3_endpoint_interrupt()
2187 if (usb_endpoint_xfer_isoc(dep->endpoint.desc)) { in dwc3_endpoint_interrupt()
2210 if (!usb_endpoint_xfer_bulk(dep->endpoint.desc)) { in dwc3_endpoint_interrupt()
2531 dwc->eps[1]->endpoint.maxpacket = dwc->gadget.ep0->maxpacket; in dwc3_gadget_conndone_interrupt()