Lines Matching refs:dmat
833 bus_dma_tag_t dmat; in ahc_dma_tag_create() local
835 dmat = kmalloc(sizeof(*dmat), GFP_ATOMIC); in ahc_dma_tag_create()
836 if (dmat == NULL) in ahc_dma_tag_create()
846 dmat->alignment = alignment; in ahc_dma_tag_create()
847 dmat->boundary = boundary; in ahc_dma_tag_create()
848 dmat->maxsize = maxsize; in ahc_dma_tag_create()
849 *ret_tag = dmat; in ahc_dma_tag_create()
854 ahc_dma_tag_destroy(struct ahc_softc *ahc, bus_dma_tag_t dmat) in ahc_dma_tag_destroy() argument
856 kfree(dmat); in ahc_dma_tag_destroy()
860 ahc_dmamem_alloc(struct ahc_softc *ahc, bus_dma_tag_t dmat, void** vaddr, in ahc_dmamem_alloc() argument
864 *vaddr = dma_alloc_coherent(ahc->dev, dmat->maxsize, mapp, GFP_ATOMIC); in ahc_dmamem_alloc()
871 ahc_dmamem_free(struct ahc_softc *ahc, bus_dma_tag_t dmat, in ahc_dmamem_free() argument
874 dma_free_coherent(ahc->dev, dmat->maxsize, vaddr, map); in ahc_dmamem_free()
878 ahc_dmamap_load(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map, in ahc_dmamap_load() argument
889 stack_sg.ds_len = dmat->maxsize; in ahc_dmamap_load()
895 ahc_dmamap_destroy(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map) in ahc_dmamap_destroy() argument
900 ahc_dmamap_unload(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map) in ahc_dmamap_unload() argument