/linux-2.4.37.9/arch/ppc64/kernel/ |
D | vio.c | 333 dma_addr_t dma_handle = NO_TCE; in vio_map_single() local 354 dma_handle = get_tces(tbl, order, vaddr, nPages, direction); in vio_map_single() 355 dma_handle |= (uaddr & ~PAGE_MASK); in vio_map_single() 358 return dma_handle; in vio_map_single() 362 void vio_unmap_single(struct vio_dev *dev, dma_addr_t dma_handle, in vio_unmap_single() argument 370 nPages = PAGE_ALIGN( dma_handle + size ) - ( dma_handle & PAGE_MASK ); in vio_unmap_single() 377 …printk("VIO_DMA: vio_unmap_single 0x%lx size to large: 0x%lx \n",(unsigned long)dma_handle,(unsign… in vio_unmap_single() 382 if(tbl) tce_free(tbl, dma_handle, order, nPages); in vio_unmap_single() 423 dma_addr_t *dma_handle) in vio_alloc_consistent() argument 458 *dma_handle = tce; in vio_alloc_consistent() [all …]
|
D | pci_dma.c | 992 dma_addr_t *dma_handle) in pci_alloc_consistent() argument 1002 PPCDBG(PPCDBG_TCE, "\tdma_handle = 0x%16.16lx\n", dma_handle); in pci_alloc_consistent() 1030 *dma_handle = tce; in pci_alloc_consistent() 1039 PPCDBG(PPCDBG_TCE, "\tpci_alloc_consistent: dma_handle = 0x%16.16lx\n", *dma_handle); in pci_alloc_consistent() 1045 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument 1051 …ize = 0x%16.16lx, dma_handle = 0x%16.16lx, vaddr = 0x%16.16lx\n", hwdev, size, dma_handle, vaddr); in pci_free_consistent() 1067 tce_free(tbl, dma_handle, order, nPages); in pci_free_consistent() 1082 dma_addr_t dma_handle = NO_TCE; in pci_map_single() local 1100 return dma_handle; in pci_map_single() 1107 dma_handle = get_tces( tbl, order, vaddr, nPages, direction ); in pci_map_single() [all …]
|
/linux-2.4.37.9/arch/ia64/sn/io/machvec/ |
D | pci_dma.c | 145 sn_pci_alloc_consistent(struct pci_dev *hwdev, size_t size, dma_addr_t *dma_handle) in sn_pci_alloc_consistent() argument 154 *dma_handle = 0; in sn_pci_alloc_consistent() 184 *dma_handle = pciio_dmatrans_addr(vhdl, NULL, phys_addr, size, in sn_pci_alloc_consistent() 192 if (*dma_handle > hwdev->consistent_dma_mask) { in sn_pci_alloc_consistent() 201 if (!(*dma_handle)) { in sn_pci_alloc_consistent() 209 *dma_handle = (dma_addr_t) pciio_dmamap_addr(dma_map,phys_addr, in sn_pci_alloc_consistent() 212 sn_dma_map->dma_addr = *dma_handle; in sn_pci_alloc_consistent() 229 sn_pci_free_consistent(struct pci_dev *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) in sn_pci_free_consistent() argument 236 if (IS_PCI32_MAPPED(dma_handle)) in sn_pci_free_consistent() 237 sn_dma_map = find_sn_dma_map(dma_handle, hwdev->bus->number); in sn_pci_free_consistent() [all …]
|
/linux-2.4.37.9/arch/ppc/kernel/ |
D | pci-dma.c | 18 dma_addr_t *dma_handle) in pci_alloc_consistent() argument 27 ret = consistent_alloc(gfp, size, dma_handle); in pci_alloc_consistent() 35 *dma_handle = virt_to_bus(ret); in pci_alloc_consistent() 42 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument
|
/linux-2.4.37.9/arch/sh64/kernel/ |
D | pci-dma.c | 17 dma_addr_t *dma_handle) in pci_alloc_consistent() argument 33 *dma_handle = virt_to_bus(ret); in pci_alloc_consistent() 41 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument 45 alloc = bus_to_virt((unsigned long)dma_handle); in pci_free_consistent()
|
/linux-2.4.37.9/arch/sh/overdrive/ |
D | pcidma.c | 21 dma_addr_t * dma_handle) in pci_alloc_consistent() argument 37 *dma_handle = virt_to_bus(ret); in pci_alloc_consistent() 43 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument
|
/linux-2.4.37.9/arch/sh/stboards/ |
D | pcidma.c | 19 dma_addr_t * dma_handle) in pci_alloc_consistent() argument 29 *dma_handle = virt_to_bus(ret); in pci_alloc_consistent() 37 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument
|
/linux-2.4.37.9/arch/sh/kernel/ |
D | pci-dma.c | 19 dma_addr_t * dma_handle) in pci_alloc_consistent() argument 29 *dma_handle = virt_to_bus(ret); in pci_alloc_consistent() 37 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument
|
/linux-2.4.37.9/arch/i386/kernel/ |
D | pci-dma.c | 17 dma_addr_t *dma_handle) in pci_alloc_consistent() argument 28 *dma_handle = virt_to_bus(ret); in pci_alloc_consistent() 34 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument
|
/linux-2.4.37.9/arch/x86_64/kernel/ |
D | pci-nommu.c | 13 dma_addr_t *dma_handle) in pci_alloc_consistent() argument 26 *dma_handle = virt_to_bus(ret); in pci_alloc_consistent() 32 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument
|
/linux-2.4.37.9/arch/mips/kernel/ |
D | pci-dma.c | 20 dma_addr_t * dma_handle) in pci_alloc_consistent() argument 36 *dma_handle = bus_to_baddr(bus, __pa(ret)); in pci_alloc_consistent() 47 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument
|
/linux-2.4.37.9/arch/mips64/kernel/ |
D | pci-dma.c | 20 dma_addr_t * dma_handle) in pci_alloc_consistent() argument 36 *dma_handle = bus_to_baddr(bus, __pa(ret)); in pci_alloc_consistent() 47 void *vaddr, dma_addr_t dma_handle) in pci_free_consistent() argument
|
/linux-2.4.37.9/include/asm-arm/ |
D | pci.h | 79 dma_addr_t dma_handle) in pci_free_consistent() argument 81 consistent_free(vaddr, size, dma_handle); in pci_free_consistent() 202 pci_dma_sync_single(struct pci_dev *hwdev, dma_addr_t dma_handle, size_t size, int direction) in pci_dma_sync_single() argument 205 sa1111_dma_sync_single(dma_handle, size, direction); in pci_dma_sync_single() 209 consistent_sync(bus_to_virt(dma_handle), size, direction); in pci_dma_sync_single()
|
/linux-2.4.37.9/include/asm-sh64/ |
D | pci.h | 81 dma_addr_t *dma_handle); 93 void *vaddr, dma_addr_t dma_handle); 212 dma_addr_t dma_handle, in pci_dma_sync_single() argument 218 dma_cache_wback_inv((unsigned long) bus_to_virt(dma_handle), size); in pci_dma_sync_single()
|
/linux-2.4.37.9/drivers/net/e100/ |
D | e100_test.c | 285 dma_addr_t dma_handle; in e100_diag_loopback_alloc() local 294 &dma_handle); in e100_diag_loopback_alloc() 299 tcb->tcb_phys = dma_handle; in e100_diag_loopback_alloc() 320 rfd = pci_alloc_consistent(bdp->pdev, sizeof (rfd_t), &dma_handle); in e100_diag_loopback_alloc() 335 bdp->loopback.dma_handle = dma_handle; in e100_diag_loopback_alloc() 351 if(!e100_wait_exec_cmplx(bdp, bdp->loopback.dma_handle, SCB_RUC_START, 0)) in e100_diag_loopback_cu_ru_exec() 429 bdp->loopback.dma_handle); in e100_diag_loopback_free()
|
/linux-2.4.37.9/include/asm-sh/ |
D | pci.h | 72 dma_addr_t *dma_handle); 83 void *vaddr, dma_addr_t dma_handle); 191 dma_addr_t dma_handle, in pci_dma_sync_single() argument 198 dma_cache_wback_inv(bus_to_virt(dma_handle), size); in pci_dma_sync_single()
|
/linux-2.4.37.9/arch/parisc/kernel/ |
D | pci-dma.c | 355 static void * pa11_dma_alloc_consistent (struct pci_dev *hwdev, size_t size, dma_addr_t *dma_handle) in pa11_dma_alloc_consistent() argument 368 *dma_handle = (dma_addr_t) paddr; in pa11_dma_alloc_consistent() 381 …d pa11_dma_free_consistent (struct pci_dev *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle) in pa11_dma_free_consistent() argument 389 free_pages((unsigned long)__va(dma_handle), order); in pa11_dma_free_consistent() 403 static void pa11_dma_unmap_single(struct pci_dev *dev, dma_addr_t dma_handle, size_t size, int dire… in pa11_dma_unmap_single() argument 419 flush_kernel_dcache_range((unsigned long) phys_to_virt(dma_handle), size); in pa11_dma_unmap_single() 456 static void pa11_dma_sync_single(struct pci_dev *dev, dma_addr_t dma_handle, size_t size, int direc… in pa11_dma_sync_single() argument 461 flush_kernel_dcache_range((unsigned long) phys_to_virt(dma_handle), size); in pa11_dma_sync_single() 487 dma_addr_t *dma_handle) in fail_alloc_consistent() argument
|
/linux-2.4.37.9/include/asm-sparc/ |
D | pci.h | 44 extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, dma_addr_t *dma_handle); 54 …n void pci_free_consistent(struct pci_dev *hwdev, size_t size, void *vaddr, dma_addr_t dma_handle); 119 extern void pci_dma_sync_single(struct pci_dev *hwdev, dma_addr_t dma_handle, size_t size, int dire…
|
/linux-2.4.37.9/drivers/usb/host/ |
D | uhci-debug.h | 224 if (td->dma_handle != (qh->element & ~UHCI_PTR_BITS)) in uhci_show_qh() 328 if (td->dma_handle != (dma_addr_t)uhci->fl->frame[i]) { in uhci_sprint_schedule() 360 (uhci->skel_ls_control_qh->dma_handle | UHCI_PTR_QH)) { in uhci_sprint_schedule() 365 if (td->link != uhci->skeltd[i - 1]->dma_handle) { in uhci_sprint_schedule() 372 if (td->link != td->dma_handle) in uhci_sprint_schedule() 398 (uhci->skel_ls_control_qh->dma_handle | UHCI_PTR_QH)) in uhci_sprint_schedule() 401 if (td->link != uhci->skeltd[i - 1]->dma_handle) in uhci_sprint_schedule() 425 if (qh->element != uhci->skel_term_td->dma_handle) { in uhci_sprint_schedule() 434 (uhci->skelqh[i + 1]->dma_handle | UHCI_PTR_QH)) { in uhci_sprint_schedule() 458 (uhci->skelqh[i + 1]->dma_handle | UHCI_PTR_QH)) in uhci_sprint_schedule()
|
D | uhci.c | 164 dma_addr_t dma_handle; in uhci_alloc_td() local 167 td = pci_pool_alloc(uhci->td_pool, GFP_DMA | GFP_ATOMIC, &dma_handle); in uhci_alloc_td() 171 td->dma_handle = dma_handle; in uhci_alloc_td() 206 ltd->link = td->dma_handle; in uhci_insert_td() 241 ltd->link = td->dma_handle; in uhci_insert_td_frame_list() 245 uhci->fl->frame[framenum] = td->dma_handle; in uhci_insert_td_frame_list() 269 uhci->fl->frame[td->frame] = ntd->dma_handle; in uhci_remove_td() 309 qh->element = td->dma_handle | (breadth ? 0 : UHCI_PTR_DEPTH); in uhci_insert_tds_in_qh() 320 ptd->link = td->dma_handle | (breadth ? 0 : UHCI_PTR_DEPTH); in uhci_insert_tds_in_qh() 336 pci_pool_free(uhci->td_pool, td, td->dma_handle); in uhci_free_td() [all …]
|
/linux-2.4.37.9/include/asm-x86_64/ |
D | pci.h | 55 dma_addr_t *dma_handle); 66 void *vaddr, dma_addr_t dma_handle); 118 dma_addr_t dma_handle, in pci_dma_sync_single() argument 123 return swiotlb_sync_single(hwdev,dma_handle,size,direction); in pci_dma_sync_single() 203 dma_addr_t dma_handle, in pci_dma_sync_single() argument
|
/linux-2.4.37.9/include/asm-ppc64/ |
D | vio.h | 55 void vio_unmap_single(struct vio_dev *dev, dma_addr_t dma_handle, 62 dma_addr_t *dma_handle); 64 dma_addr_t dma_handle);
|
D | pci.h | 72 dma_addr_t *dma_handle); 74 void *vaddr, dma_addr_t dma_handle); 88 dma_addr_t dma_handle, in pci_dma_sync_single() argument
|
/linux-2.4.37.9/include/asm-ppc/ |
D | pci.h | 75 dma_addr_t *dma_handle); 86 void *vaddr, dma_addr_t dma_handle); 207 dma_addr_t dma_handle, in pci_dma_sync_single() argument 212 consistent_sync(bus_to_virt(dma_handle), size, direction); in pci_dma_sync_single()
|
/linux-2.4.37.9/drivers/sound/emu10k1/ |
D | voicemgr.c | 59 …if ((mem->addr[pagecount] = pci_alloc_consistent(card->pci_dev, PAGE_SIZE, &mem->dma_handle[pageco… in emu10k1_voice_alloc_buffer() 69 busaddx = (u32) mem->dma_handle[pagecount] + i * EMUPAGESIZE; in emu10k1_voice_alloc_buffer() 100 mem->dma_handle[pagecount]); in emu10k1_voice_free_buffer() 105 cpu_to_le32(((u32) card->silentpage.dma_handle * 2) | pageindex); in emu10k1_voice_free_buffer() 234 MAPA, MAP_PTI_MASK | ((u32) card->silentpage.dma_handle * 2), in emu10k1_voice_playback_setup() 235 MAPB, MAP_PTI_MASK | ((u32) card->silentpage.dma_handle * 2), in emu10k1_voice_playback_setup()
|