Lines Matching refs:dma_handle
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()
465 PPCDBG(PPCDBG_TCE, "\tvio_alloc_consistent: dma_handle = 0x%16.16lx\n", *dma_handle); in vio_alloc_consistent()
472 void *vaddr, dma_addr_t dma_handle) in vio_free_consistent() argument
478 …, size = 0x%16.16lx, dma_handle = 0x%16.16lx, vaddr = 0x%16.16lx\n", dev, size, dma_handle, vaddr); in vio_free_consistent()
494 tce_free(tbl, dma_handle, order, nPages); in vio_free_consistent()