Lines Matching refs:epid

274     unsigned int epid;  member
306 unsigned int epid, unsigned int streamid);
309 unsigned int epid);
615 ev_trb.control = (event->slotid << 24) | (event->epid << 16) | in xhci_write_event()
1073 trace_usb_xhci_ep_state(epctx->slotid, epctx->epid, in xhci_set_ep_state()
1088 unsigned int epid) in xhci_alloc_epctx() argument
1095 epctx->epid = epid; in xhci_alloc_epctx()
1127 unsigned int epid, dma_addr_t pctx, in xhci_enable_ep() argument
1133 trace_usb_xhci_ep_enable(slotid, epid); in xhci_enable_ep()
1135 assert(epid >= 1 && epid <= 31); in xhci_enable_ep()
1138 if (slot->eps[epid-1]) { in xhci_enable_ep()
1139 xhci_disable_ep(xhci, slotid, epid); in xhci_enable_ep()
1142 epctx = xhci_alloc_epctx(xhci, slotid, epid); in xhci_enable_ep()
1143 slot->eps[epid-1] = epctx; in xhci_enable_ep()
1147 "size is %d\n", epid/2, epid%2, epctx->type, epctx->max_psize); in xhci_enable_ep()
1228 unsigned int epid, TRBCCode report) in xhci_ep_nuke_xfers() argument
1236 assert(epid >= 1 && epid <= 31); in xhci_ep_nuke_xfers()
1238 DPRINTF("xhci_ep_nuke_xfers(%d, %d)\n", slotid, epid); in xhci_ep_nuke_xfers()
1242 if (!slot->eps[epid-1]) { in xhci_ep_nuke_xfers()
1246 epctx = slot->eps[epid-1]; in xhci_ep_nuke_xfers()
1268 unsigned int epid) in xhci_disable_ep() argument
1273 trace_usb_xhci_ep_disable(slotid, epid); in xhci_disable_ep()
1275 assert(epid >= 1 && epid <= 31); in xhci_disable_ep()
1279 if (!slot->eps[epid-1]) { in xhci_disable_ep()
1280 DPRINTF("xhci: slot %d ep %d already disabled\n", slotid, epid); in xhci_disable_ep()
1284 xhci_ep_nuke_xfers(xhci, slotid, epid, 0); in xhci_disable_ep()
1286 epctx = slot->eps[epid-1]; in xhci_disable_ep()
1299 slot->eps[epid-1] = NULL; in xhci_disable_ep()
1305 unsigned int epid) in xhci_stop_ep() argument
1310 trace_usb_xhci_ep_stop(slotid, epid); in xhci_stop_ep()
1313 if (epid < 1 || epid > 31) { in xhci_stop_ep()
1314 DPRINTF("xhci: bad ep %d\n", epid); in xhci_stop_ep()
1320 if (!slot->eps[epid-1]) { in xhci_stop_ep()
1321 DPRINTF("xhci: slot %d ep %d not enabled\n", slotid, epid); in xhci_stop_ep()
1325 if (xhci_ep_nuke_xfers(xhci, slotid, epid, CC_STOPPED) > 0) { in xhci_stop_ep()
1330 epctx = slot->eps[epid-1]; in xhci_stop_ep()
1342 unsigned int epid) in xhci_reset_ep() argument
1347 trace_usb_xhci_ep_reset(slotid, epid); in xhci_reset_ep()
1350 if (epid < 1 || epid > 31) { in xhci_reset_ep()
1351 DPRINTF("xhci: bad ep %d\n", epid); in xhci_reset_ep()
1357 if (!slot->eps[epid-1]) { in xhci_reset_ep()
1358 DPRINTF("xhci: slot %d ep %d not enabled\n", slotid, epid); in xhci_reset_ep()
1362 epctx = slot->eps[epid-1]; in xhci_reset_ep()
1366 epid, epctx->state); in xhci_reset_ep()
1370 if (xhci_ep_nuke_xfers(xhci, slotid, epid, 0) > 0) { in xhci_reset_ep()
1391 unsigned int epid, unsigned int streamid, in xhci_set_ep_dequeue() argument
1401 if (epid < 1 || epid > 31) { in xhci_set_ep_dequeue()
1402 DPRINTF("xhci: bad ep %d\n", epid); in xhci_set_ep_dequeue()
1406 trace_usb_xhci_ep_set_dequeue(slotid, epid, streamid, pdequeue); in xhci_set_ep_dequeue()
1411 if (!slot->eps[epid-1]) { in xhci_set_ep_dequeue()
1412 DPRINTF("xhci: slot %d ep %d not enabled\n", slotid, epid); in xhci_set_ep_dequeue()
1416 epctx = slot->eps[epid-1]; in xhci_set_ep_dequeue()
1419 DPRINTF("xhci: set EP dequeue pointer while EP %d not stopped\n", epid); in xhci_set_ep_dequeue()
1536 event.epid = xfer->epctx->epid; in xhci_xfer_report()
1690 xfer->epctx->epid, xfer->streamid); in xhci_fire_ctl_transfer()
1786 DPRINTF("xhci_submit(slotid=%d,epid=%d)\n", epctx->slotid, epctx->epid); in xhci_submit()
1837 xfer->epctx->epid, xfer->streamid); in xhci_fire_transfer()
1842 unsigned int epid, unsigned int streamid) in xhci_kick_ep() argument
1847 assert(epid >= 1 && epid <= 31); in xhci_kick_ep()
1853 epctx = xhci->slots[slotid-1].eps[epid-1]; in xhci_kick_ep()
1856 epid, slotid); in xhci_kick_ep()
1885 trace_usb_xhci_ep_kick(epctx->slotid, epctx->epid, streamid); in xhci_kick_epctx()
1971 ev.epid = epctx->epid; in xhci_kick_epctx()
1994 if (epctx->epid == 1) { in xhci_kick_epctx()
2532 unsigned int epid = (trb.control >> TRB_CR_EPID_SHIFT) in xhci_process_commands() local
2534 event.ccode = xhci_stop_ep(xhci, slotid, epid); in xhci_process_commands()
2540 unsigned int epid = (trb.control >> TRB_CR_EPID_SHIFT) in xhci_process_commands() local
2542 event.ccode = xhci_reset_ep(xhci, slotid, epid); in xhci_process_commands()
2548 unsigned int epid = (trb.control >> TRB_CR_EPID_SHIFT) in xhci_process_commands() local
2552 epid, streamid, in xhci_process_commands()
2582 event.epid = val >> 16; in xhci_process_commands()
3151 unsigned int epid, streamid; in xhci_doorbell_write() local
3170 epid = val & 0xff; in xhci_doorbell_write()
3174 } else if (epid == 0 || epid > 31) { in xhci_doorbell_write()
3178 xhci_kick_ep(xhci, reg, epid, streamid); in xhci_doorbell_write()
3316 token = (epctx->epid & 1) ? USB_TOKEN_IN : USB_TOKEN_OUT; in xhci_epid_to_usbep()
3317 return usb_ep_get(uport->dev, token, epctx->epid >> 1); in xhci_epid_to_usbep()
3478 int slotid, epid, state; in usb_xhci_post_load() local
3501 for (epid = 1; epid <= 31; epid++) { in usb_xhci_post_load()
3502 pctx = slot->ctx + 32 * epid; in usb_xhci_post_load()
3508 epctx = xhci_alloc_epctx(xhci, slotid, epid); in usb_xhci_post_load()
3509 slot->eps[epid-1] = epctx; in usb_xhci_post_load()
3560 VMSTATE_UINT8(epid, XHCIEvent),