Lines Matching refs:cpu_addr
217 pci_map_single_1(struct pci_dev *pdev, void *cpu_addr, size_t size, in pci_map_single_1() argument
227 paddr = __pa(cpu_addr); in pci_map_single_1()
236 cpu_addr, size, ret, __builtin_return_address(0)); in pci_map_single_1()
247 cpu_addr, size, ret, __builtin_return_address(0)); in pci_map_single_1()
282 ret += (unsigned long)cpu_addr & ~PAGE_MASK; in pci_map_single_1()
285 cpu_addr, size, npages, ret, __builtin_return_address(0)); in pci_map_single_1()
291 pci_map_single(struct pci_dev *pdev, void *cpu_addr, size_t size, int dir) in pci_map_single() argument
299 return pci_map_single_1(pdev, cpu_addr, size, dac_allowed); in pci_map_single()
396 void *cpu_addr; in pci_alloc_consistent() local
401 cpu_addr = (void *)__get_free_pages(gfp, order); in pci_alloc_consistent()
402 if (! cpu_addr) { in pci_alloc_consistent()
410 memset(cpu_addr, 0, size); in pci_alloc_consistent()
412 *dma_addrp = pci_map_single_1(pdev, cpu_addr, size, 0); in pci_alloc_consistent()
414 free_pages((unsigned long)cpu_addr, order); in pci_alloc_consistent()
424 size, cpu_addr, *dma_addrp, __builtin_return_address(0)); in pci_alloc_consistent()
426 return cpu_addr; in pci_alloc_consistent()
436 pci_free_consistent(struct pci_dev *pdev, size_t size, void *cpu_addr, in pci_free_consistent() argument
440 free_pages((unsigned long)cpu_addr, get_order(size)); in pci_free_consistent()