Searched refs:sc_cmd_ring (Results 1 – 3 of 3) sorted by relevance
| /openbsd/src/sys/dev/usb/ |
| D | xhci.c | 358 error = xhci_ring_alloc(sc, &sc->sc_cmd_ring, XHCI_MAX_CMDS, in xhci_init() 371 xhci_ring_free(sc, &sc->sc_cmd_ring); in xhci_init() 383 xhci_ring_free(sc, &sc->sc_cmd_ring); in xhci_init() 405 xhci_ring_free(sc, &sc->sc_cmd_ring); in xhci_init() 436 paddr = (uint64_t)sc->sc_cmd_ring.dma.paddr; in xhci_config() 539 xhci_ring_free(sc, &sc->sc_cmd_ring); in xhci_detach() 674 xhci_ring_reset(sc, &sc->sc_cmd_ring); in xhci_reinit() 1115 trb_idx = (paddr - sc->sc_cmd_ring.dma.paddr) / sizeof(*trb); in xhci_event_command() 1116 if (trb_idx < 0 || trb_idx >= sc->sc_cmd_ring.ntrb) { in xhci_event_command() 1118 trb_idx, sc->sc_cmd_ring.ntrb - 1); in xhci_event_command() [all …]
|
| D | xhcivar.h | 108 struct xhci_ring sc_cmd_ring; /* Command ring */ member
|
| /openbsd/src/sys/dev/pci/ |
| D | if_nxe.c | 712 struct nxe_ring *sc_cmd_ring; member 1106 sc->sc_cmd_ring = nxe_ring_alloc(sc, in nxe_up() 1108 if (sc->sc_cmd_ring == NULL) in nxe_up() 1112 htole64(NXE_DMA_DVA(sc->sc_cmd_ring->nr_dmamem)); in nxe_up() 1113 ctx->ctx_cmd_ring.r_size = htole32(sc->sc_cmd_ring->nr_nentries); in nxe_up() 1149 nxe_ring_sync(sc, sc->sc_cmd_ring, BUS_DMASYNC_PREWRITE); in nxe_up() 1193 nxe_ring_free(sc, sc->sc_cmd_ring); in nxe_up() 1277 nxe_ring_sync(sc, sc->sc_cmd_ring, BUS_DMASYNC_POSTWRITE); in nxe_down() 1288 nxe_ring_free(sc, sc->sc_cmd_ring); in nxe_down() 1298 struct nxe_ring *nr = sc->sc_cmd_ring; in nxe_start() [all …]
|