Home | History | Annotate | Download | only in usb

Lines Matching refs:dci

501     const u_int dci)
503 return KERNADDR(&xs->xs_dc_dma, sc->sc_ctxsz * dci);
509 const u_int dci)
511 return DMAADDR(&xs->xs_dc_dma, sc->sc_ctxsz * dci);
578 u_int dci)
583 cp = xhci_slot_get_dcv(sc, xs, dci);
711 size_t i, j, bn, dci;
760 for (dci = XHCI_DCI_SLOT; dci <= XHCI_MAX_DCI; dci++) {
763 if (xhci_get_epstate(sc, xs, dci) !=
769 err = xhci_stop_endpoint_cmd(sc, xs, dci,
774 " slot %zu dci %zu err %d\n",
775 i, dci, err);
937 size_t i, j, bn, dci;
1115 for (dci = XHCI_DCI_SLOT; dci <= XHCI_MAX_DCI; dci++) {
1117 dci) !=
1122 xhci_db_write_4(sc, XHCI_DOORBELL(xs->xs_idx), dci);
1893 const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
1899 XHCIHIST_CALLARGS("slot %ju dci %ju epaddr 0x%02jx attr 0x%02jx",
1900 xs->xs_idx, dci, pipe->up_endpoint->ue_edesc->bEndpointAddress,
1913 xhci_dci_to_ici(dci)), sc->sc_ctxsz * 1);
1923 HEXDUMP("output context", xhci_slot_get_dcv(sc, xs, dci),
1950 const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
1954 XHCIHIST_CALLARGS("slot %ju dci %ju", xs->xs_idx, dci, 0, 0);
1961 XHCI_TRB_3_EP_SET(dci) |
1976 xhci_stop_endpoint_cmd(struct xhci_softc *sc, struct xhci_slot *xs, u_int dci,
1983 XHCIHIST_CALLARGS("slot %ju dci %ju", xs->xs_idx, dci, 0, 0);
1990 XHCI_TRB_3_EP_SET(dci) |
2004 const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
2007 XHCIHIST_CALLARGS("slot %ju dci %ju", xs->xs_idx, dci, 0, 0);
2011 return xhci_stop_endpoint_cmd(sc, xs, dci, 0);
2027 const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
2028 struct xhci_ring * const xr = xs->xs_xr[dci];
2032 XHCIHIST_CALLARGS("slot %ju dci %ju", xs->xs_idx, dci, 0, 0);
2043 XHCI_TRB_3_EP_SET(dci) |
2065 const u_int dci = xhci_ep_get_dci(ed);
2072 DPRINTFN(1, " dci %ju type 0x%02jx epaddr 0x%02jx attr 0x%02jx",
2123 KASSERT(xs->xs_xr[dci] == NULL);
2126 err = xhci_ring_init(sc, &xs->xs_xr[dci], XHCI_TRANSFER_RING_TRBS,
2152 const u_int dci = xhci_ep_get_dci(ed);
2168 XHCIHIST_CALLARGS("pipe %#jx slot %ju dci %ju",
2169 (uintptr_t)pipe, xs->xs_idx, dci, 0);
2177 if (dci == XHCI_DCI_EP_CONTROL) {
2184 if (xhci_get_epstate(sc, xs, dci) != XHCI_EPSTATE_STOPPED)
2193 cp[0] = htole32(XHCI_INCTX_0_DROP_MASK(dci));
2196 /* XXX should be most significant one, not dci? */
2198 cp[0] = htole32(XHCI_SCTX_0_CTX_NUM_SET(dci));
2201 xhci_host_dequeue(xs->xs_xr[dci]);
2214 xhci_ring_free(sc, &xs->xs_xr[dci]);
2215 xs->xs_xr[dci] = NULL;
2265 const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
2268 XHCIHIST_CALLARGS("pipe %#jx slot %ju dci %ju",
2269 (uintptr_t)pipe, xs->xs_idx, dci, 0);
2281 switch (xhci_get_epstate(sc, xs, dci)) {
2292 switch (xhci_get_epstate(sc, xs, dci)) {
2315 const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
2316 struct xhci_ring * const tr = xs->xs_xr[dci];
2365 const u_int dci = xhci_ep_get_dci(pipe->up_endpoint->ue_edesc);
2366 struct xhci_ring * const tr = xs->xs_xr[dci];
2421 u_int slot, dci;
2435 dci = XHCI_TRB_3_EP_GET(trb_3);
2437 xr = xs->xs_xr[dci];
2460 DPRINTFN(1, "Ignore #%ju: cookie %#jx cc %ju dci %ju",
2461 idx, (uintptr_t)xx, trbcode, dci);
2553 DPRINTFN(1, "ERR %ju slot %ju dci %ju", trbcode, slot, dci, 0);
2558 DPRINTFN(1, "ERR %ju slot %ju dci %ju", trbcode, slot, dci, 0);
3557 u_int dci;
3563 for (dci = XHCI_DCI_SLOT; dci <= XHCI_MAX_DCI; dci++) {
3564 if (xs->xs_xr[dci] != NULL)
3565 xhci_ring_free(sc, &xs->xs_xr[dci]);
3615 const u_int dci = xhci_ep_get_dci(ed);
3621 XHCIHIST_CALLARGS("pipe %#jx: slot %ju dci %ju speed %ju",
3622 (uintptr_t)pipe, xs->xs_idx, dci, speed);
3627 cp[1] = htole32(XHCI_INCTX_1_ADD_MASK(dci));
3634 XHCI_SCTX_0_CTX_NUM_SET(dci) |
3648 cp = xhci_slot_get_icv(sc, xs, xhci_dci_to_ici(dci));
3665 DPRINTFN(4, "setting on dci %ju ival %ju mult %ju mps %#jx",
3666 dci, XHCI_EPCTX_0_IVAL_GET(cp[0]), XHCI_EPCTX_0_MULT_GET(cp[0]),
3677 xhci_ring_trbp(xs->xs_xr[dci], 0) |
3685 struct xhci_ring *xr = xs->xs_xr[dci];
4476 const u_int dci = xhci_ep_get_dci(xfer->ux_pipe->up_endpoint->ue_edesc);
4477 struct xhci_ring * const tr = xs->xs_xr[dci];
4546 xhci_db_write_4(sc, XHCI_DOORBELL(xs->xs_idx), dci);
4607 const u_int dci = xhci_ep_get_dci(xfer->ux_pipe->up_endpoint->ue_edesc);
4608 struct xhci_ring * const tr = xs->xs_xr[dci];
4623 XHCIHIST_CALLARGS("%#jx slot %ju dci %ju",
4624 (uintptr_t)xfer, xs->xs_idx, dci, 0);
4705 xhci_db_write_4(sc, XHCI_DOORBELL(xs->xs_idx), dci);
4733 const u_int dci = xhci_ep_get_dci(xfer->ux_pipe->up_endpoint->ue_edesc);
4738 XHCIHIST_CALLARGS("%#jx slot %ju dci %ju",
4739 (uintptr_t)xfer, xs->xs_idx, dci, 0);
4762 const u_int dci = xhci_ep_get_dci(xfer->ux_pipe->up_endpoint->ue_edesc);
4763 struct xhci_ring * const tr = xs->xs_xr[dci];
4774 XHCIHIST_CALLARGS("%#jx slot %ju dci %ju",
4775 (uintptr_t)xfer, xs->xs_idx, dci, 0);
4826 xhci_db_write_4(sc, XHCI_DOORBELL(xs->xs_idx), dci);
4847 const u_int dci = xhci_ep_get_dci(xfer->ux_pipe->up_endpoint->ue_edesc);
4852 XHCIHIST_CALLARGS("%#jx slot %ju dci %ju",
4853 (uintptr_t)xfer, xs->xs_idx, dci, 0);
4892 const u_int dci = xhci_ep_get_dci(xfer->ux_pipe->up_endpoint->ue_edesc);
4893 struct xhci_ring * const tr = xs->xs_xr[dci];
4904 XHCIHIST_CALLARGS("%#jx slot %ju dci %ju",
4905 (uintptr_t)xfer, xs->xs_idx, dci, 0);
4937 xhci_db_write_4(sc, XHCI_DOORBELL(xs->xs_idx), dci);
4959 const u_int dci = xhci_ep_get_dci(xfer->ux_pipe->up_endpoint->ue_edesc);
4964 XHCIHIST_CALLARGS("%#jx slot %ju dci %ju",
4965 (uintptr_t)xfer, xs->xs_idx, dci, 0);