Lines Matching refs:dma_addr
371 static void alpha_pci_unmap_page(struct device *dev, dma_addr_t dma_addr, in alpha_pci_unmap_page() argument
383 if (dma_addr >= __direct_map_base in alpha_pci_unmap_page()
384 && dma_addr < __direct_map_base + __direct_map_size) { in alpha_pci_unmap_page()
388 dma_addr, size, __builtin_return_address(0)); in alpha_pci_unmap_page()
393 if (dma_addr > 0xffffffff) { in alpha_pci_unmap_page()
395 dma_addr, size, __builtin_return_address(0)); in alpha_pci_unmap_page()
400 if (!arena || dma_addr < arena->dma_base) in alpha_pci_unmap_page()
403 dma_ofs = (dma_addr - arena->dma_base) >> PAGE_SHIFT; in alpha_pci_unmap_page()
407 dma_addr, arena->dma_base, arena->size); in alpha_pci_unmap_page()
412 npages = iommu_num_pages(dma_addr, size, PAGE_SIZE); in alpha_pci_unmap_page()
422 alpha_mv.mv_pci_tbi(hose, dma_addr, dma_addr + size - 1); in alpha_pci_unmap_page()
427 dma_addr, size, npages, __builtin_return_address(0)); in alpha_pci_unmap_page()
481 void *cpu_addr, dma_addr_t dma_addr, in alpha_pci_free_coherent() argument
485 pci_unmap_single(pdev, dma_addr, size, PCI_DMA_BIDIRECTIONAL); in alpha_pci_free_coherent()
489 dma_addr, size, __builtin_return_address(0)); in alpha_pci_free_coherent()
938 static int alpha_pci_mapping_error(struct device *dev, dma_addr_t dma_addr) in alpha_pci_mapping_error() argument
940 return dma_addr == 0; in alpha_pci_mapping_error()