Searched refs:ep0 (Results 1 - 25 of 91) sorted by last modified time

1234

/linux-master/sound/soc/generic/
H A Daudio-graph-card2.c947 struct device_node *ep0, *ep1; local
1000 ep0 = port_to_endpoint(port0);
1003 codec0_port = of_graph_get_remote_port(ep0);
1024 of_node_put(ep0);
1201 struct device_node *ep0 = port_to_endpoint(port0); local
1203 struct device_node *codec0 = of_graph_get_remote_port(ep0);
1226 of_node_put(ep0);
/linux-master/drivers/gpu/drm/bridge/analogix/
H A Danx7625.c1673 struct device_node *np = dev->of_node, *ep0; local
1688 ep0 = of_graph_get_endpoint_by_regs(np, 0, 0);
1689 if (ep0) {
1690 if (of_property_read_u32(ep0, "bus-type", &bus_type))
1693 mipi_lanes = drm_of_get_data_lanes_count(ep0, 1, MAX_LANES_SUPPORT);
1694 of_node_put(ep0);
/linux-master/drivers/usb/gadget/function/
H A Df_fs.c298 /* Control file aka ep0 *****************************************************/
335 ret = usb_ep_queue(ffs->gadget->ep0, req, GFP_ATOMIC);
341 usb_ep_dequeue(ffs->gadget->ep0, req);
352 pr_vdebug("ep0 stall\n");
353 usb_ep_set_halt(ffs->gadget->ep0);
357 pr_debug("bogus ep0 stall!\n");
1940 if (!ffs_sb_create_file(sb, "ep0", ffs, &ffs_ep0_operations))
2295 ffs->ep0req = usb_ep_alloc_request(cdev->gadget->ep0, GFP_KERNEL);
2320 usb_ep_dequeue(ffs->gadget->ep0, ffs->ep0req);
2322 usb_ep_free_request(ffs->gadget->ep0, ff
[all...]
H A Df_ncm.c844 value = usb_ep_queue(cdev->gadget->ep0, req, GFP_ATOMIC);
H A Df_mass_storage.c90 * ep0 requests are handled at interrupt time, but SetInterface,
147 * One subtle point concerns sending status-stage responses for ep0
151 * the original ep0 request and issue a new one. When that happens the
154 * assigns to each ep0 request a unique tag, and it keeps track of the
158 * only if the current ep0 request tag is equal to the exception request
159 * tag. Thus only the most recently received ep0 request will get a
247 struct usb_ep *ep0; /* Copy of gadget->ep0 */ member in struct:fsg_common
399 rc = usb_ep_queue(common->ep0, common->ep0req, GFP_ATOMIC);
400 common->ep0
[all...]
/linux-master/drivers/usb/gadget/
H A Dcomposite.c261 ERROR(cdev, "ep0 bMaxBurst must be 0\n");
921 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket;
1582 * REVIST The same ep0 requests are shared with function drivers
1606 ret = usb_ep_queue(cdev->gadget->ep0, req, gfp_flags);
1770 * The setup() callback implements all the ep0 functionality that's
1811 gadget->ep0->driver_data = cdev;
1832 cdev->gadget->ep0->maxpacket;
2284 composite_setup_complete(gadget->ep0, req);
2425 cdev->req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL);
2439 gadget->ep0
2465 composite_os_desc_req_prepare(struct usb_composite_dev *cdev, struct usb_ep *ep0) argument
[all...]
/linux-master/drivers/usb/dwc3/
H A Dgadget.c719 /* Clear existing TXFIFO for all IN eps except ep0 */
771 /* resize IN endpoints except ep0 */
1041 /* Clear out the ep descriptors for non-ep0 */
3152 dwc->gadget->ep0 = &dep->endpoint;
3701 struct usb_ep *ep0 = &dwc->eps[0]->endpoint; local
3705 __dwc3_gadget_ep0_set_halt(ep0, 1);
4104 dwc->gadget->ep0->maxpacket = 512;
4130 dwc->gadget->ep0->maxpacket = 512;
4140 dwc->gadget->ep0->maxpacket = 64;
4145 dwc->gadget->ep0
[all...]
H A Dep0.c3 * ep0.c - DesignWare USB3 DRD Controller Endpoint 0 Handling
209 /* we share one TRB for ep0/1 */
864 struct dwc3_ep *ep0; local
871 ep0 = dwc->eps[0];
875 trace_dwc3_complete_trb(ep0, trb);
877 r = next_request(&ep0->pending_list);
885 dwc3_gadget_giveback(ep0, r, -ECONNRESET);
896 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) &&
900 trace_dwc3_complete_trb(ep0, trb);
913 dwc3_gadget_giveback(ep0,
[all...]
/linux-master/drivers/usb/core/
H A Dhub.c2326 usb_remove_ep_devs(&udev->ep0);
2682 (void) usb_create_ep_devs(&udev->dev, &udev->ep0, udev);
4695 usb_enable_endpoint(udev, &udev->ep0, true);
4910 /* USB 2.0 section 5.5.3 talks about ep0 maxpacket ...
4916 udev->ep0.desc.wMaxPacketSize = cpu_to_le16(512);
4919 udev->ep0.desc.wMaxPacketSize = cpu_to_le16(64);
4922 /* to determine the ep0 maxpacket size, try to read
4926 udev->ep0.desc.wMaxPacketSize = cpu_to_le16(64);
4929 udev->ep0.desc.wMaxPacketSize = cpu_to_le16(8);
4982 * first 8 bytes of the device descriptor to get the ep0 maxpacke
[all...]
H A Dusb.c675 INIT_LIST_HEAD(&dev->ep0.urb_list);
676 dev->ep0.desc.bLength = USB_DT_ENDPOINT_SIZE;
677 dev->ep0.desc.bDescriptorType = USB_DT_ENDPOINT;
678 /* ep0 maxpacket comes later, from device descriptor */
679 usb_enable_endpoint(dev, &dev->ep0, false);
H A Dhcd.c970 usb_dev->ep0.desc.wMaxPacketSize = cpu_to_le16(64);
2146 urb->ep = &udev->ep0;
2211 "%s SETUP stage timed out on ep0\n", __func__);
2227 "%s IN stage timed out on ep0\n", __func__);
/linux-master/drivers/usb/gadget/udc/
H A Dfsl_udc_core.c513 /* Setup qh structure and ep register for ep0. */
537 * ep0 doesn't use this routine. It is always enabled.
624 * @ep : the ep being unconfigured. May not be ep0
1257 /* Set protocol stall on ep0, protocol stall will automatically be cleared
1271 /* Prime a status phase for ep0 */
1522 /* Process request for Data or Status phase of ep0
1524 static void ep0_req_complete(struct fsl_udc *udc, struct fsl_ep *ep0, argument
1534 done(ep0, req, 0);
1550 dev_err(&udc->gadget.dev, "Unexpected ep0 packets\n");
1893 /* Setup package, we only support ep0 a
[all...]
H A Dtegra-xudc.c2503 struct tegra_xudc_ep *ep0 = &xudc->ep[0]; local
2525 ep_ctx_write_devaddr(ep0->context, addr);
2805 struct tegra_xudc_ep *ep0 = &xudc->ep[0]; local
2822 ep0->deq_ptr = ep0->enq_ptr;
2823 ep0->ring_full = false;
2828 ep_ctx_write_rsvd(ep0->context, 0);
2829 ep_ctx_write_partial_td(ep0->context, 0);
2830 ep_ctx_write_splitxstate(ep0->context, 0);
2831 ep_ctx_write_seq_num(ep0
2847 struct tegra_xudc_ep *ep0 = &xudc->ep[0]; local
[all...]
H A Dpxa27x_udc.c121 /* registers for device and ep0 */
391 * A specific case is applied to ep0 : the ACM bit is always set to 1, for
471 * set_ep0state - Set ep0 automata state
549 * Setup all pxa physical endpoints, except ep0
963 * Special ep0 version of the above read_fifo. Reads as many bytes from control
993 * write_ep0_fifo - Send a request to control endpoint (ep0 in)
999 * Sends a request (or a part of the request) to the control endpoint (ep0 in).
1037 * special case of ep0 setup :
1661 /* device/ep0 records init */
1663 INIT_LIST_HEAD(&dev->gadget.ep0
[all...]
H A Dnet2272.c41 static const char ep0name[] = "ep0";
979 if (ep->desc /* not ep0 */ && usb_endpoint_xfer_isoc(ep->desc))
1402 dev->gadget.ep0 = &dev->ep[0].ep;
1404 INIT_LIST_HEAD(&dev->gadget.ep0->ep_list);
1410 struct net2272_ep *ep0 = &dev->ep[0]; local
1412 net2272_ep_write(ep0, EP_RSPSET,
1415 net2272_ep_write(ep0, EP_RSPCLR,
1456 /* ... then enable host detection and ep0; and we're ready
1931 /* stall ep0 on error */
H A Dmax3420_udc.c1175 snprintf(ep->name, MAX3420_EPNAME_SIZE, "ep0");
1230 udc->gadget.ep0 = &udc->ep[0].ep_usb;
H A Domap_udc.c1053 /* just use protocol stalls for ep0; real halts are annoying */
1396 struct omap_ep *ep0 = &udc->ep[0]; local
1399 ep0->irqs++;
1407 nuke(ep0, 0);
1415 * This driver uses only uses protocol stalls (ep0 never halts),
1422 if (!list_empty(&ep0->queue))
1423 req = container_of(ep0->queue.next, struct omap_req, queue);
1438 stat = write_fifo(ep0, req);
1451 done(ep0, req, 0);
1475 stat = read_fifo(ep0, re
[all...]
H A Dpch_udc.c1727 /* ep0 in requests are allocated from data pool here */
2331 dev->gadget.ep0 = &dev->ep[UDC_EP0IN_IDX].ep;
2333 dev->gadget.ep0 = &ep->ep;
2347 /* ep0 in returns data on IN phase */
2754 /* enable ep0 interrupts */
2815 /* remove ep0 in and out from the list. They have own pointer */
2819 dev->gadget.ep0 = &dev->ep[UDC_EP0IN_IDX].ep;
2820 INIT_LIST_HEAD(&dev->gadget.ep0->ep_list);
2912 /* get ready for ep0 traffic */
H A Dpxa25x_udc.c197 * There are fifteen endpoints, in addition to ep0.
225 static const char ep0name [] = "ep0";
645 /* caller asserts req->pending (ep0 irq status nyet cleared); starts
646 * ep0 data stage. these chips want very simple state transitions.
791 * special ep0 version of the above. no UBCR0 or double buffering; status
880 if (ep->ep.desc == NULL/* ep0 */) {
894 DBG(DBG_VERBOSE, "ep0 config ack%s\n",
915 DMSG("ep0 i/o, odd state %d\n", dev->ep0state);
1029 /* ep0 needs special care */
1251 /* registers for device and ep0 */
[all...]
/linux-master/drivers/usb/dwc2/
H A Dgadget.c1209 dev_dbg(hsotg->dev, "ep0 state:%d\n", hsotg->ep0_state);
1673 struct dwc2_hsotg_ep *ep0 = hsotg->eps_out[0]; local
1681 if (!ep0->dir_in) {
1715 ret = dwc2_hsotg_send_reply(hsotg, ep0, &reply, 2);
1777 struct dwc2_hsotg_ep *ep0 = hsotg->eps_out[0]; local
1816 ret = dwc2_hsotg_send_reply(hsotg, ep0, NULL, 0);
1839 ret = dwc2_hsotg_send_reply(hsotg, ep0, NULL, 0);
1888 * dwc2_hsotg_stall_ep0 - stall ep0
1891 * Set stall for ep0 as response for setup request.
1895 struct dwc2_hsotg_ep *ep0 local
1935 struct dwc2_hsotg_ep *ep0 = hsotg->eps_out[0]; local
[all...]
/linux-master/include/linux/usb/
H A Dgadget.h160 * @type_control:Endpoint supports control type (reserved for ep0).
223 * gadget->ep_list. the control endpoint (gadget->ep0) is not in that list,
343 * @ep0: Endpoint zero, used when reading or writing responses to
419 struct usb_ep *ep0; member in struct:usb_gadget
658 * @setup: Invoked for ep0 control requests that aren't handled by
663 * queues a response to ep0, or returns negative to stall.
695 * are in descriptors the ep0 implementation returns from setup() calls.
697 * Except for ep0 implementation, most driver code shouldn't need change to
699 * that ep0 implementation.
717 * ep0 withi
[all...]
/linux-master/drivers/usb/musb/
H A Dmusb_gadget.c1128 * Reused by ep0 code.
1149 * Reused by ep0 code.
1326 * exported to ep0 code
1717 musb->g.ep0 = &ep->end_point;
/linux-master/drivers/usb/host/
H A Dxhci.c1471 max_packet_size = usb_endpoint_maxp(&vdev->udev->ep0.desc);
1518 dev_dbg(&vdev->udev->dev, "incorrect max packet size %d for ep0\n",
1910 * deal with ep0 max packet size changing once we get the
3120 * Usb core assumes a max packet value for ep0 on FS devices until the
3122 * mismatch. Reconfigure the xhci ep0 endpoint context here in that case
3126 udev = container_of(host_ep, struct usb_device, ep0);
3136 /* Nothing else should be done here for ep0 during ep reset */
4858 if (xhci_update_timeout_for_endpoint(xhci, udev, &udev->ep0.desc,
/linux-master/include/linux/
H A Dusb.h590 * @ep0: endpoint 0 data (default control pipe)
668 struct usb_host_endpoint ep0; member in struct:usb_device
/linux-master/drivers/usb/usbip/
H A Dvudc_dev.c23 #define VIRTUAL_ENDPOINTS (1 /* ep0 */ + 15 /* in eps */ + 15 /* out eps */)
527 /* create ep0 and 15 in, 15 out general purpose eps */
546 /* ep0 */
551 udc->gadget.ep0 = &ep->ep;

Completed in 1105 milliseconds

1234