Lines Matching refs:orig_phys_addr
486 dma_addr_t orig_phys_addr; in pci_endpoint_test_write() local
522 orig_phys_addr = dma_map_single(dev, orig_addr, size + alignment, in pci_endpoint_test_write()
524 if (dma_mapping_error(dev, orig_phys_addr)) { in pci_endpoint_test_write()
530 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_write()
531 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_write()
532 offset = phys_addr - orig_phys_addr; in pci_endpoint_test_write()
535 phys_addr = orig_phys_addr; in pci_endpoint_test_write()
562 dma_unmap_single(dev, orig_phys_addr, size + alignment, in pci_endpoint_test_write()
585 dma_addr_t orig_phys_addr; in pci_endpoint_test_read() local
618 orig_phys_addr = dma_map_single(dev, orig_addr, size + alignment, in pci_endpoint_test_read()
620 if (dma_mapping_error(dev, orig_phys_addr)) { in pci_endpoint_test_read()
626 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_read()
627 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_read()
628 offset = phys_addr - orig_phys_addr; in pci_endpoint_test_read()
631 phys_addr = orig_phys_addr; in pci_endpoint_test_read()
650 dma_unmap_single(dev, orig_phys_addr, size + alignment, in pci_endpoint_test_read()