Home
last modified time | relevance | path

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

/drivers/gpu/drm/
Ddrm_pci.c54 drm_dma_handle_t *dmah; in drm_pci_alloc() local
67 dmah = kmalloc(sizeof(drm_dma_handle_t), GFP_KERNEL); in drm_pci_alloc()
68 if (!dmah) in drm_pci_alloc()
71 dmah->size = size; in drm_pci_alloc()
72 dmah->vaddr = dma_alloc_coherent(&dev->pdev->dev, size, &dmah->busaddr, GFP_KERNEL | __GFP_COMP); in drm_pci_alloc()
74 if (dmah->vaddr == NULL) { in drm_pci_alloc()
75 kfree(dmah); in drm_pci_alloc()
79 memset(dmah->vaddr, 0, size); in drm_pci_alloc()
83 for (addr = (unsigned long)dmah->vaddr, sz = size; in drm_pci_alloc()
88 return dmah; in drm_pci_alloc()
[all …]
Ddrm_bufs.c143 drm_dma_handle_t *dmah; in drm_addmap_core() local
319 dmah = drm_pci_alloc(dev, map->size, map->size); in drm_addmap_core()
320 if (!dmah) { in drm_addmap_core()
324 map->handle = dmah->vaddr; in drm_addmap_core()
325 map->offset = (unsigned long)dmah->busaddr; in drm_addmap_core()
326 kfree(dmah); in drm_addmap_core()
429 drm_dma_handle_t dmah; in drm_rmmap_locked() local
474 dmah.vaddr = map->handle; in drm_rmmap_locked()
475 dmah.busaddr = map->offset; in drm_rmmap_locked()
476 dmah.size = map->size; in drm_rmmap_locked()
[all …]
Ddrm_vm.c248 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_pci_free(dev, &dmah); in drm_vm_shm_close()
/drivers/usb/class/
Dcdc-acm.h67 dma_addr_t dmah; member
Dcdc-acm.c205 wb->urb->transfer_dma = wb->dmah; in acm_start_wb()
900 usb_free_coherent(usb_dev, acm->writesize, wb->buf, wb->dmah); in acm_write_buffers_free()
921 &wb->dmah); in acm_write_buffers_alloc()
927 wb->buf, wb->dmah); in acm_write_buffers_alloc()
/drivers/net/wireless/brcm80211/brcmsmac/
Ddma.h104 void dma_walk_packets(struct dma_pub *dmah, void (*callback_fnc)
Ddma.c1540 void dma_walk_packets(struct dma_pub *dmah, void (*callback_fnc) in dma_walk_packets() argument
1543 struct dma_info *di = (struct dma_info *) dmah; in dma_walk_packets()
Dmain.c7620 struct dma_pub *dmah; in brcms_c_inval_dma_pkts() local
7623 dmah = hw->di[i]; in brcms_c_inval_dma_pkts()
7624 if (dmah != NULL) in brcms_c_inval_dma_pkts()
7625 dma_walk_packets(dmah, dma_callback_fn, sta); in brcms_c_inval_dma_pkts()