Lines Matching refs:dmat
824 bus_dma_tag_t dmat; in ahc_dma_tag_create() local
826 dmat = kmalloc(sizeof(*dmat), GFP_ATOMIC); in ahc_dma_tag_create()
827 if (dmat == NULL) in ahc_dma_tag_create()
837 dmat->alignment = alignment; in ahc_dma_tag_create()
838 dmat->boundary = boundary; in ahc_dma_tag_create()
839 dmat->maxsize = maxsize; in ahc_dma_tag_create()
840 *ret_tag = dmat; in ahc_dma_tag_create()
845 ahc_dma_tag_destroy(struct ahc_softc *ahc, bus_dma_tag_t dmat) in ahc_dma_tag_destroy() argument
847 kfree(dmat); in ahc_dma_tag_destroy()
851 ahc_dmamem_alloc(struct ahc_softc *ahc, bus_dma_tag_t dmat, void** vaddr, in ahc_dmamem_alloc() argument
855 *vaddr = dma_alloc_coherent(ahc->dev, dmat->maxsize, mapp, GFP_ATOMIC); in ahc_dmamem_alloc()
862 ahc_dmamem_free(struct ahc_softc *ahc, bus_dma_tag_t dmat, in ahc_dmamem_free() argument
865 dma_free_coherent(ahc->dev, dmat->maxsize, vaddr, map); in ahc_dmamem_free()
869 ahc_dmamap_load(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map, in ahc_dmamap_load() argument
880 stack_sg.ds_len = dmat->maxsize; in ahc_dmamap_load()
886 ahc_dmamap_destroy(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map) in ahc_dmamap_destroy() argument
891 ahc_dmamap_unload(struct ahc_softc *ahc, bus_dma_tag_t dmat, bus_dmamap_t map) in ahc_dmamap_unload() argument