Lines Matching refs:dmah
677 drm_dma_handle_t *dmah; in drm_cleanup_buf_error() local
683 dmah = entry->seglist[i]; in drm_cleanup_buf_error()
685 dmah->size, in drm_cleanup_buf_error()
686 dmah->vaddr, in drm_cleanup_buf_error()
687 dmah->busaddr); in drm_cleanup_buf_error()
688 kfree(dmah); in drm_cleanup_buf_error()
892 drm_dma_handle_t *dmah; in drm_legacy_addbufs_pci() local
987 dmah = kmalloc(sizeof(drm_dma_handle_t), GFP_KERNEL); in drm_legacy_addbufs_pci()
988 if (!dmah) { in drm_legacy_addbufs_pci()
999 dmah->size = total; in drm_legacy_addbufs_pci()
1000 dmah->vaddr = dma_alloc_coherent(dev->dev, in drm_legacy_addbufs_pci()
1001 dmah->size, in drm_legacy_addbufs_pci()
1002 &dmah->busaddr, in drm_legacy_addbufs_pci()
1004 if (!dmah->vaddr) { in drm_legacy_addbufs_pci()
1005 kfree(dmah); in drm_legacy_addbufs_pci()
1016 entry->seglist[entry->seg_count++] = dmah; in drm_legacy_addbufs_pci()
1020 (unsigned long)dmah->vaddr + PAGE_SIZE * i); in drm_legacy_addbufs_pci()
1022 = (unsigned long)dmah->vaddr + PAGE_SIZE * i; in drm_legacy_addbufs_pci()
1033 buf->address = (void *)(dmah->vaddr + offset); in drm_legacy_addbufs_pci()
1034 buf->bus_address = dmah->busaddr + offset; in drm_legacy_addbufs_pci()