Home
last modified time | relevance | path

Searched refs:sc_dma_kva (Results 1 – 2 of 2) sorted by relevance

/openbsd/sys/dev/pci/
H A Dif_vic.c281 caddr_t sc_dma_kva; member
283 #define VIC_DMA_KVA(_sc) ((void *)(_sc)->sc_dma_kva)
1376 sc->sc_dma_size, &sc->sc_dma_kva, BUS_DMA_NOWAIT) != 0) in vic_alloc_dmamem()
1379 if (bus_dmamap_load(sc->sc_dmat, sc->sc_dma_map, sc->sc_dma_kva, in vic_alloc_dmamem()
1386 bus_dmamem_unmap(sc->sc_dmat, sc->sc_dma_kva, sc->sc_dma_size); in vic_alloc_dmamem()
1399 bus_dmamem_unmap(sc->sc_dmat, sc->sc_dma_kva, sc->sc_dma_size); in vic_free_dmamem()
/openbsd/sys/dev/pv/
H A Dif_vio.c246 caddr_t sc_dma_kva; member
266 #define VIO_DMAMEM_OFFSET(sc, p) ((caddr_t)(p) - (sc)->sc_dma_kva)
365 sc->sc_dma_size, &sc->sc_dma_kva, BUS_DMA_NOWAIT) != 0) in vio_alloc_dmamem()
367 if (bus_dmamap_load(vsc->sc_dmat, sc->sc_dma_map, sc->sc_dma_kva, in vio_alloc_dmamem()
373 bus_dmamem_unmap(vsc->sc_dmat, sc->sc_dma_kva, sc->sc_dma_size); in vio_alloc_dmamem()
388 bus_dmamem_unmap(vsc->sc_dmat, sc->sc_dma_kva, sc->sc_dma_size); in vio_free_dmamem()
452 kva = sc->sc_dma_kva; in vio_alloc_mem()