Lines Matching refs:orig_phys_addr
426 dma_addr_t orig_phys_addr; in pci_endpoint_test_write() local
439 orig_addr = dma_alloc_coherent(dev, size + alignment, &orig_phys_addr, in pci_endpoint_test_write()
447 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_write()
448 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_write()
449 offset = phys_addr - orig_phys_addr; in pci_endpoint_test_write()
452 phys_addr = orig_phys_addr; in pci_endpoint_test_write()
480 dma_free_coherent(dev, size + alignment, orig_addr, orig_phys_addr); in pci_endpoint_test_write()
494 dma_addr_t orig_phys_addr; in pci_endpoint_test_read() local
507 orig_addr = dma_alloc_coherent(dev, size + alignment, &orig_phys_addr, in pci_endpoint_test_read()
515 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_read()
516 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_read()
517 offset = phys_addr - orig_phys_addr; in pci_endpoint_test_read()
520 phys_addr = orig_phys_addr; in pci_endpoint_test_read()
542 dma_free_coherent(dev, size + alignment, orig_addr, orig_phys_addr); in pci_endpoint_test_read()