Lines Matching full:alignment
117 size_t alignment; member
122 size_t alignment; member
347 size_t alignment = test->alignment; in pci_endpoint_test_copy() local
352 if (size > SIZE_MAX - alignment) in pci_endpoint_test_copy()
360 orig_src_addr = dma_alloc_coherent(dev, size + alignment, in pci_endpoint_test_copy()
368 if (alignment && !IS_ALIGNED(orig_src_phys_addr, alignment)) { in pci_endpoint_test_copy()
369 src_phys_addr = PTR_ALIGN(orig_src_phys_addr, alignment); in pci_endpoint_test_copy()
386 orig_dst_addr = dma_alloc_coherent(dev, size + alignment, in pci_endpoint_test_copy()
394 if (alignment && !IS_ALIGNED(orig_dst_phys_addr, alignment)) { in pci_endpoint_test_copy()
395 dst_phys_addr = PTR_ALIGN(orig_dst_phys_addr, alignment); in pci_endpoint_test_copy()
422 dma_free_coherent(dev, size + alignment, orig_dst_addr, in pci_endpoint_test_copy()
426 dma_free_coherent(dev, size + alignment, orig_src_addr, in pci_endpoint_test_copy()
444 size_t alignment = test->alignment; in pci_endpoint_test_write() local
448 if (size > SIZE_MAX - alignment) in pci_endpoint_test_write()
456 orig_addr = dma_alloc_coherent(dev, size + alignment, &orig_phys_addr, in pci_endpoint_test_write()
464 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_write()
465 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_write()
497 dma_free_coherent(dev, size + alignment, orig_addr, orig_phys_addr); in pci_endpoint_test_write()
513 size_t alignment = test->alignment; in pci_endpoint_test_read() local
517 if (size > SIZE_MAX - alignment) in pci_endpoint_test_read()
525 orig_addr = dma_alloc_coherent(dev, size + alignment, &orig_phys_addr, in pci_endpoint_test_read()
533 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_read()
534 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_read()
560 dma_free_coherent(dev, size + alignment, orig_addr, orig_phys_addr); in pci_endpoint_test_read()
669 test->alignment = 0; in pci_endpoint_test_probe()
680 test->alignment = data->alignment; in pci_endpoint_test_probe()
805 .alignment = SZ_64K,