Lines Matching refs:dmah
48 drm_dma_handle_t *dmah = kmalloc(sizeof(drm_dma_handle_t), GFP_KERNEL); in drm_ati_alloc_pcigart_table() local
50 if (!dmah) in drm_ati_alloc_pcigart_table()
53 dmah->size = gart_info->table_size; in drm_ati_alloc_pcigart_table()
54 dmah->vaddr = dma_alloc_coherent(dev->dev, in drm_ati_alloc_pcigart_table()
55 dmah->size, in drm_ati_alloc_pcigart_table()
56 &dmah->busaddr, in drm_ati_alloc_pcigart_table()
59 if (!dmah->vaddr) { in drm_ati_alloc_pcigart_table()
60 kfree(dmah); in drm_ati_alloc_pcigart_table()
64 gart_info->table_handle = dmah; in drm_ati_alloc_pcigart_table()
71 drm_dma_handle_t *dmah = gart_info->table_handle; in drm_ati_free_pcigart_table() local
73 dma_free_coherent(dev->dev, dmah->size, dmah->vaddr, dmah->busaddr); in drm_ati_free_pcigart_table()
74 kfree(dmah); in drm_ati_free_pcigart_table()