Searched refs:dmah (Results 1 – 8 of 8) sorted by relevance
/drivers/gpu/drm/ |
D | drm_pci.c | 44 drm_dma_handle_t *dmah; in drm_pci_alloc() local 55 dmah = kmalloc(sizeof(drm_dma_handle_t), GFP_KERNEL); in drm_pci_alloc() 56 if (!dmah) in drm_pci_alloc() 59 dmah->size = size; in drm_pci_alloc() 60 dmah->vaddr = dma_alloc_coherent(&dev->pdev->dev, size, &dmah->busaddr, GFP_KERNEL | __GFP_COMP); in drm_pci_alloc() 62 if (dmah->vaddr == NULL) { in drm_pci_alloc() 63 kfree(dmah); in drm_pci_alloc() 67 memset(dmah->vaddr, 0, size); in drm_pci_alloc() 71 for (addr = (unsigned long)dmah->vaddr, sz = size; in drm_pci_alloc() 76 return dmah; in drm_pci_alloc() [all …]
|
D | drm_bufs.c | 141 drm_dma_handle_t *dmah; in drm_addmap_core() local 316 dmah = drm_pci_alloc(dev, map->size, map->size); in drm_addmap_core() 317 if (!dmah) { in drm_addmap_core() 321 map->handle = dmah->vaddr; in drm_addmap_core() 322 map->offset = (unsigned long)dmah->busaddr; in drm_addmap_core() 323 kfree(dmah); in drm_addmap_core() 434 drm_dma_handle_t dmah; in drm_legacy_rmmap_locked() local 475 dmah.vaddr = map->handle; in drm_legacy_rmmap_locked() 476 dmah.busaddr = map->offset; in drm_legacy_rmmap_locked() 477 dmah.size = map->size; in drm_legacy_rmmap_locked() [all …]
|
D | drm_vm.c | 254 drm_dma_handle_t dmah; in drm_vm_shm_close() local 269 dmah.vaddr = map->handle; in drm_vm_shm_close() 270 dmah.busaddr = map->offset; in drm_vm_shm_close() 271 dmah.size = map->size; in drm_vm_shm_close() 272 __drm_legacy_pci_free(dev, &dmah); in drm_vm_shm_close()
|
/drivers/usb/class/ |
D | cdc-acm.h | 67 dma_addr_t dmah; member
|
D | cdc-acm.c | 221 wb->urb->transfer_dma = wb->dmah; in acm_start_wb() 1068 usb_free_coherent(usb_dev, acm->writesize, wb->buf, wb->dmah); in acm_write_buffers_free() 1089 &wb->dmah); in acm_write_buffers_alloc() 1095 wb->buf, wb->dmah); in acm_write_buffers_alloc()
|
/drivers/net/wireless/brcm80211/brcmsmac/ |
D | dma.h | 104 void dma_walk_packets(struct dma_pub *dmah, void (*callback_fnc)
|
D | dma.c | 1549 void dma_walk_packets(struct dma_pub *dmah, void (*callback_fnc) in dma_walk_packets() argument 1552 struct dma_info *di = container_of(dmah, struct dma_info, dma); in dma_walk_packets()
|
D | main.c | 7577 struct dma_pub *dmah; in brcms_c_inval_dma_pkts() local 7580 dmah = hw->di[i]; in brcms_c_inval_dma_pkts() 7581 if (dmah != NULL) in brcms_c_inval_dma_pkts() 7582 dma_walk_packets(dmah, dma_callback_fn, sta); in brcms_c_inval_dma_pkts()
|