Lines Matching refs:dmat
816 bus_dma_tag_t dmat; in ahc_dma_tag_create() local
818 dmat = kmalloc(sizeof(*dmat), GFP_ATOMIC); in ahc_dma_tag_create()
819 if (dmat == NULL) in ahc_dma_tag_create()
829 dmat->alignment = alignment; in ahc_dma_tag_create()
830 dmat->boundary = boundary; in ahc_dma_tag_create()
831 dmat->maxsize = maxsize; in ahc_dma_tag_create()
832 *ret_tag = dmat; in ahc_dma_tag_create()
837 ahc_dma_tag_destroy(struct ahc_softc *ahc, bus_dma_tag_t dmat) in ahc_dma_tag_destroy() argument
839 kfree(dmat); in ahc_dma_tag_destroy()
843 ahc_dmamem_alloc(struct ahc_softc *ahc, bus_dma_tag_t dmat, void** vaddr, in ahc_dmamem_alloc() argument
847 *vaddr = dma_alloc_coherent(ahc->dev, dmat->maxsize, mapp, GFP_ATOMIC); in ahc_dmamem_alloc()
854 ahc_dmamem_free(struct ahc_softc *ahc, bus_dma_tag_t dmat, in ahc_dmamem_free() argument
857 dma_free_coherent(ahc->dev, dmat->maxsize, vaddr, map); in ahc_dmamem_free()
861 ahc_dmamap_load(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map, in ahc_dmamap_load() argument
872 stack_sg.ds_len = dmat->maxsize; in ahc_dmamap_load()
878 ahc_dmamap_destroy(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map) in ahc_dmamap_destroy() argument
883 ahc_dmamap_unload(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map) in ahc_dmamap_unload() argument