Lines Matching refs:alignment

105 	size_t alignment;  member
110 size_t alignment; member
332 size_t alignment = test->alignment; in pci_endpoint_test_copy() local
336 if (size > SIZE_MAX - alignment) in pci_endpoint_test_copy()
344 orig_src_addr = dma_alloc_coherent(dev, size + alignment, in pci_endpoint_test_copy()
352 if (alignment && !IS_ALIGNED(orig_src_phys_addr, alignment)) { in pci_endpoint_test_copy()
353 src_phys_addr = PTR_ALIGN(orig_src_phys_addr, alignment); in pci_endpoint_test_copy()
370 orig_dst_addr = dma_alloc_coherent(dev, size + alignment, in pci_endpoint_test_copy()
378 if (alignment && !IS_ALIGNED(orig_dst_phys_addr, alignment)) { in pci_endpoint_test_copy()
379 dst_phys_addr = PTR_ALIGN(orig_dst_phys_addr, alignment); in pci_endpoint_test_copy()
406 dma_free_coherent(dev, size + alignment, orig_dst_addr, in pci_endpoint_test_copy()
410 dma_free_coherent(dev, size + alignment, orig_src_addr, in pci_endpoint_test_copy()
428 size_t alignment = test->alignment; in pci_endpoint_test_write() local
431 if (size > SIZE_MAX - alignment) in pci_endpoint_test_write()
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()
480 dma_free_coherent(dev, size + alignment, orig_addr, orig_phys_addr); in pci_endpoint_test_write()
496 size_t alignment = test->alignment; in pci_endpoint_test_read() local
499 if (size > SIZE_MAX - alignment) in pci_endpoint_test_read()
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()
542 dma_free_coherent(dev, size + alignment, orig_addr, orig_phys_addr); in pci_endpoint_test_read()
653 test->alignment = 0; in pci_endpoint_test_probe()
663 test->alignment = data->alignment; in pci_endpoint_test_probe()
788 .alignment = SZ_64K,