• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/usr.sbin/bhyve/

Lines Matching defs:epid

635 pci_xhci_init_ep(struct pci_xhci_dev_emu *dev, int epid)
644 ep_ctx = &dev_ctx->ctx_ep[epid];
645 devep = &dev->eps[epid];
648 DPRINTF(("init_ep %d with pstreams %d", epid, pstreams));
663 DPRINTF(("init_ep %d with no pstreams", epid));
678 pci_xhci_disable_ep(struct pci_xhci_dev_emu *dev, int epid)
684 DPRINTF(("pci_xhci disable_ep %d", epid));
687 ep_ctx = &dev_ctx->ctx_ep[epid];
690 devep = &dev->eps[epid];
1116 uint32_t cmderr, epid;
1119 epid = XHCI_TRB_3_EP_GET(trb->dwTrb3);
1121 DPRINTF(("pci_xhci: reset ep %u: slot %u", epid, slot));
1135 if (epid < 1 || epid > 31) {
1136 DPRINTF(("pci_xhci: reset ep: invalid epid %u", epid));
1141 devep = &dev->eps[epid];
1148 ep_ctx = &dev_ctx->ctx_ep[epid];
1156 epid, ep_ctx->dwEpCtx0, ep_ctx->dwEpCtx1, ep_ctx->qwEpCtx2,
1212 uint32_t cmderr, epid;
1223 DPRINTF((" stream-id %u, slot %u, epid %u, C %u",
1228 epid = XHCI_TRB_3_EP_GET(trb->dwTrb3);
1229 if (epid < 1 || epid > 31) {
1230 DPRINTF(("pci_xhci: set_tr_deq: invalid epid %u", epid));
1238 ep_ctx = &dev_ctx->ctx_ep[epid];
1239 devep = &dev->eps[epid];
1533 uint32_t slot, uint32_t epid, int *do_intr)
1546 devep = &dev->eps[epid];
1551 ep_ctx = &dev_ctx->ctx_ep[epid];
1597 XHCI_TRB_3_SLOT_SET(slot) | XHCI_TRB_3_EP_SET(epid);
1655 struct xhci_endp_ctx *ep_ctx, uint32_t slot, uint32_t epid)
1673 epid & 0x1 ? USB_XFER_IN : USB_XFER_OUT, epid/2);
1679 err = pci_xhci_xfer_complete(sc, xfer, slot, epid,
1702 uint32_t epid, uint64_t addr, uint32_t ccs, uint32_t streamid)
1803 if ((epid > 1) && (trbflags & XHCI_TRB_3_IOC_BIT)) {
1833 if (epid == 1)
1844 if (epid == 1) {
1851 pci_xhci_try_usb_xfer(sc, dev, devep, ep_ctx, slot, epid);
1860 err = pci_xhci_xfer_complete(sc, xfer, slot, epid, &do_intr);
1882 if (epid == 1)
1890 uint32_t epid, uint32_t streamid)
1901 DPRINTF(("pci_xhci doorbell slot %u epid %u stream %u",
1902 slot, epid, streamid));
1909 if (epid == 0 || epid >= XHCI_MAX_ENDPOINTS) {
1910 DPRINTF(("pci_xhci: invalid endpoint %u", epid));
1915 devep = &dev->eps[epid];
1920 ep_ctx = &dev_ctx->ctx_ep[epid];
1925 epid, ep_ctx->dwEpCtx0, ep_ctx->dwEpCtx1, ep_ctx->qwEpCtx2,
1933 pci_xhci_try_usb_xfer(sc, dev, devep, ep_ctx, slot, epid);
1978 ep_ctx->qwEpCtx2, devep->ep_ringaddr, epid));
1982 pci_xhci_handle_transfer(sc, dev, devep, ep_ctx, trb, slot, epid,
2581 int epid;
2584 epid = epctx & ~0x80;
2586 /* HW endpoint contexts are 0-15; convert to epid based on dir */
2587 epid = (epid * 2) + (dir_in ? 1 : 0);
2589 assert(epid >= 1 && epid <= 31);
2619 ep_ctx = &dev_ctx->ctx_ep[epid];
2622 epid));
2626 DPRINTF(("xhci device interrupt on endpoint %d", epid));
2628 pci_xhci_device_doorbell(sc, hci->hci_port, epid, 0);