Home
last modified time | relevance | path

Searched refs:dmah (Results 1 – 6 of 6) sorted by relevance

/dragonfly/sys/dev/drm/
H A Ddrm_pci.c48 drm_dma_handle_t *dmah; in drm_pci_alloc() local
60 if (!dmah) in drm_pci_alloc()
63 dmah->size = size; in drm_pci_alloc()
66 if (dmah->vaddr == NULL) { in drm_pci_alloc()
67 kfree(dmah); in drm_pci_alloc()
82 return dmah; in drm_pci_alloc()
97 if (dmah->vaddr) { in __drm_legacy_pci_free()
100 for (addr = (unsigned long)dmah->vaddr, sz = dmah->size; in __drm_legacy_pci_free()
106 dma_free_coherent(&dev->pdev->dev, dmah->size, dmah->vaddr, in __drm_legacy_pci_free()
107 dmah->busaddr); in __drm_legacy_pci_free()
[all …]
H A Ddrm_bufs.c143 drm_dma_handle_t *dmah; in drm_addmap_core() local
323 if (!dmah) { in drm_addmap_core()
327 map->handle = dmah->vaddr; in drm_addmap_core()
329 kfree(dmah); in drm_addmap_core()
500 drm_dma_handle_t dmah; in drm_legacy_rmmap_locked() local
541 dmah.vaddr = map->handle; in drm_legacy_rmmap_locked()
542 dmah.busaddr = map->offset; in drm_legacy_rmmap_locked()
543 dmah.size = map->size; in drm_legacy_rmmap_locked()
544 __drm_legacy_pci_free(dev, &dmah); in drm_legacy_rmmap_locked()
860 drm_dma_handle_t *dmah; in drm_legacy_addbufs_pci() local
[all …]
/dragonfly/sys/dev/drm/include/drm/
H A Ddrm_pci.h44 void drm_pci_free(struct drm_device *dev, struct drm_dma_handle * dmah);
H A Ddrm_legacy.h188 void __drm_legacy_pci_free(struct drm_device *dev, drm_dma_handle_t * dmah);
/dragonfly/sys/dev/drm/radeon/
H A Dradeon_device.c806 if (rdev->dummy_page.dmah) in radeon_dummy_page_init()
808 rdev->dummy_page.dmah = drm_pci_alloc(rdev->ddev, PAGE_SIZE, PAGE_SIZE); in radeon_dummy_page_init()
809 if (rdev->dummy_page.dmah == NULL) in radeon_dummy_page_init()
811 rdev->dummy_page.addr = (dma_addr_t)rdev->dummy_page.dmah->busaddr; in radeon_dummy_page_init()
824 if (rdev->dummy_page.dmah == NULL) in radeon_dummy_page_fini()
826 drm_pci_free(rdev->ddev, rdev->dummy_page.dmah); in radeon_dummy_page_fini()
828 rdev->dummy_page.dmah = NULL; in radeon_dummy_page_fini()
H A Dradeon.h260 struct drm_dma_handle *dmah; member
656 struct drm_dma_handle *dmah; member