Lines Matching refs:epid

632 pci_xhci_init_ep(struct pci_xhci_dev_emu *dev, int epid)
641 ep_ctx = &dev_ctx->ctx_ep[epid];
642 devep = &dev->eps[epid];
645 DPRINTF(("init_ep %d with pstreams %d\r\n", epid, pstreams));
660 DPRINTF(("init_ep %d with no pstreams\r\n", epid));
675 pci_xhci_disable_ep(struct pci_xhci_dev_emu *dev, int epid)
681 DPRINTF(("pci_xhci disable_ep %d\r\n", epid));
684 ep_ctx = &dev_ctx->ctx_ep[epid];
687 devep = &dev->eps[epid];
1113 uint32_t cmderr, epid;
1116 epid = XHCI_TRB_3_EP_GET(trb->dwTrb3);
1118 DPRINTF(("pci_xhci: reset ep %u: slot %u\r\n", epid, slot));
1132 if (epid < 1 || epid > 31) {
1133 DPRINTF(("pci_xhci: reset ep: invalid epid %u\r\n", epid));
1138 devep = &dev->eps[epid];
1145 ep_ctx = &dev_ctx->ctx_ep[epid];
1153 epid, ep_ctx->dwEpCtx0, ep_ctx->dwEpCtx1, ep_ctx->qwEpCtx2,
1209 uint32_t cmderr, epid;
1218 " stream-id %u, slot %u, epid %u, C %u\r\n",
1224 epid = XHCI_TRB_3_EP_GET(trb->dwTrb3);
1225 if (epid < 1 || epid > 31) {
1226 DPRINTF(("pci_xhci: set_tr_deq: invalid epid %u\r\n", epid));
1234 ep_ctx = &dev_ctx->ctx_ep[epid];
1235 devep = &dev->eps[epid];
1529 uint32_t slot, uint32_t epid, int *do_intr)
1542 devep = &dev->eps[epid];
1547 ep_ctx = &dev_ctx->ctx_ep[epid];
1593 XHCI_TRB_3_SLOT_SET(slot) | XHCI_TRB_3_EP_SET(epid);
1651 struct xhci_endp_ctx *ep_ctx, uint32_t slot, uint32_t epid)
1669 epid & 0x1 ? USB_XFER_IN : USB_XFER_OUT, epid/2);
1675 err = pci_xhci_xfer_complete(sc, xfer, slot, epid,
1698 uint32_t epid, uint64_t addr, uint32_t ccs, uint32_t streamid)
1799 if ((epid > 1) && (trbflags & XHCI_TRB_3_IOC_BIT)) {
1829 if (epid == 1)
1837 if (epid == 1) {
1844 pci_xhci_try_usb_xfer(sc, dev, devep, ep_ctx, slot, epid);
1852 err = pci_xhci_xfer_complete(sc, xfer, slot, epid, &do_intr);
1874 if (epid == 1)
1882 uint32_t epid, uint32_t streamid)
1893 DPRINTF(("pci_xhci doorbell slot %u epid %u stream %u\r\n",
1894 slot, epid, streamid));
1902 devep = &dev->eps[epid];
1907 ep_ctx = &dev_ctx->ctx_ep[epid];
1912 epid, ep_ctx->dwEpCtx0, ep_ctx->dwEpCtx1, ep_ctx->qwEpCtx2,
1920 pci_xhci_try_usb_xfer(sc, dev, devep, ep_ctx, slot, epid);
1944 ep_ctx->qwEpCtx2, devep->ep_ringaddr, epid));
1948 pci_xhci_handle_transfer(sc, dev, devep, ep_ctx, trb, slot, epid,
2545 int epid;
2548 epid = epctx & ~0x80;
2550 /* HW endpoint contexts are 0-15; convert to epid based on dir */
2551 epid = (epid * 2) + (dir_in ? 1 : 0);
2553 assert(epid >= 1 && epid <= 31);
2581 DPRINTF(("xhci device interrupt on endpoint %d\r\n", epid));
2583 pci_xhci_device_doorbell(sc, hci->hci_port, epid, 0);