Lines Matching refs:dmat
924 bus_dma_tag_t dmat; in ahd_dma_tag_create() local
926 dmat = kmalloc(sizeof(*dmat), GFP_ATOMIC); in ahd_dma_tag_create()
927 if (dmat == NULL) in ahd_dma_tag_create()
937 dmat->alignment = alignment; in ahd_dma_tag_create()
938 dmat->boundary = boundary; in ahd_dma_tag_create()
939 dmat->maxsize = maxsize; in ahd_dma_tag_create()
940 *ret_tag = dmat; in ahd_dma_tag_create()
945 ahd_dma_tag_destroy(struct ahd_softc *ahd, bus_dma_tag_t dmat) in ahd_dma_tag_destroy() argument
947 kfree(dmat); in ahd_dma_tag_destroy()
951 ahd_dmamem_alloc(struct ahd_softc *ahd, bus_dma_tag_t dmat, void** vaddr, in ahd_dmamem_alloc() argument
954 *vaddr = dma_alloc_coherent(&ahd->dev_softc->dev, dmat->maxsize, mapp, in ahd_dmamem_alloc()
962 ahd_dmamem_free(struct ahd_softc *ahd, bus_dma_tag_t dmat, in ahd_dmamem_free() argument
965 dma_free_coherent(&ahd->dev_softc->dev, dmat->maxsize, vaddr, map); in ahd_dmamem_free()
969 ahd_dmamap_load(struct ahd_softc *ahd, bus_dma_tag_t dmat, bus_dmamap_t map, in ahd_dmamap_load() argument
980 stack_sg.ds_len = dmat->maxsize; in ahd_dmamap_load()
986 ahd_dmamap_destroy(struct ahd_softc *ahd, bus_dma_tag_t dmat, bus_dmamap_t map) in ahd_dmamap_destroy() argument
991 ahd_dmamap_unload(struct ahd_softc *ahd, bus_dma_tag_t dmat, bus_dmamap_t map) in ahd_dmamap_unload() argument