Lines Matching full:alignment

125 	size_t alignment;  member
131 size_t alignment; member
363 struct pci_endpoint_test_xfer_param *param, size_t alignment) in pci_endpoint_test_validate_xfer_params() argument
370 if (param->size > SIZE_MAX - alignment) { in pci_endpoint_test_validate_xfer_params()
397 size_t alignment = test->alignment; in pci_endpoint_test_copy() local
409 err = pci_endpoint_test_validate_xfer_params(dev, &param, alignment); in pci_endpoint_test_copy()
424 orig_src_addr = kzalloc(size + alignment, GFP_KERNEL); in pci_endpoint_test_copy()
431 get_random_bytes(orig_src_addr, size + alignment); in pci_endpoint_test_copy()
433 size + alignment, DMA_TO_DEVICE); in pci_endpoint_test_copy()
440 if (alignment && !IS_ALIGNED(orig_src_phys_addr, alignment)) { in pci_endpoint_test_copy()
441 src_phys_addr = PTR_ALIGN(orig_src_phys_addr, alignment); in pci_endpoint_test_copy()
457 orig_dst_addr = kzalloc(size + alignment, GFP_KERNEL); in pci_endpoint_test_copy()
465 size + alignment, DMA_FROM_DEVICE); in pci_endpoint_test_copy()
472 if (alignment && !IS_ALIGNED(orig_dst_phys_addr, alignment)) { in pci_endpoint_test_copy()
473 dst_phys_addr = PTR_ALIGN(orig_dst_phys_addr, alignment); in pci_endpoint_test_copy()
497 dma_unmap_single(dev, orig_dst_phys_addr, size + alignment, in pci_endpoint_test_copy()
508 dma_unmap_single(dev, orig_src_phys_addr, size + alignment, in pci_endpoint_test_copy()
533 size_t alignment = test->alignment; in pci_endpoint_test_write() local
545 err = pci_endpoint_test_validate_xfer_params(dev, &param, alignment); in pci_endpoint_test_write()
560 orig_addr = kzalloc(size + alignment, GFP_KERNEL); in pci_endpoint_test_write()
567 get_random_bytes(orig_addr, size + alignment); in pci_endpoint_test_write()
569 orig_phys_addr = dma_map_single(dev, orig_addr, size + alignment, in pci_endpoint_test_write()
577 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_write()
578 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_write()
609 dma_unmap_single(dev, orig_phys_addr, size + alignment, in pci_endpoint_test_write()
634 size_t alignment = test->alignment; in pci_endpoint_test_read() local
645 err = pci_endpoint_test_validate_xfer_params(dev, &param, alignment); in pci_endpoint_test_read()
660 orig_addr = kzalloc(size + alignment, GFP_KERNEL); in pci_endpoint_test_read()
667 orig_phys_addr = dma_map_single(dev, orig_addr, size + alignment, in pci_endpoint_test_read()
675 if (alignment && !IS_ALIGNED(orig_phys_addr, alignment)) { in pci_endpoint_test_read()
676 phys_addr = PTR_ALIGN(orig_phys_addr, alignment); in pci_endpoint_test_read()
699 dma_unmap_single(dev, orig_phys_addr, size + alignment, in pci_endpoint_test_read()
830 test->alignment = 0; in pci_endpoint_test_probe()
841 test->alignment = data->alignment; in pci_endpoint_test_probe()
985 .alignment = SZ_4K,
991 .alignment = SZ_64K,
996 .alignment = 256,
1001 .alignment = SZ_64K,