Lines Matching refs:source

931 assert_allocate_copy_return(mach_vm_address_t source, mach_vm_size_t size, mach_vm_address_t * dest…  in assert_allocate_copy_return()  argument
934 …assert_mach_return(mach_vm_copy(mach_task_self(), source, size, *dest), expected_kr, "mach_vm_copy… in assert_allocate_copy_return()
937 assert_allocate_copy_success(mach_vm_address_t source, mach_vm_size_t size, mach_vm_address_t * des… in assert_allocate_copy_success() argument
939 assert_allocate_copy_return(source, size, dest, KERN_SUCCESS); in assert_allocate_copy_success()
943 assert_copy_return(mach_vm_address_t source, mach_vm_size_t size, mach_vm_address_t dest, kern_retu… in assert_copy_return() argument
945 …assert_mach_return(mach_vm_copy(mach_task_self(), source, size, dest), expected_kr, "mach_vm_copy(… in assert_copy_return()
949 assert_copy_success(mach_vm_address_t source, mach_vm_size_t size, mach_vm_address_t dest) in assert_copy_success() argument
951 assert_copy_return(source, size, dest, KERN_SUCCESS); in assert_copy_success()
1401 mach_vm_address_t source = get_vm_address(); in copy_deallocate() local
1405 (uintmax_t)source); in copy_deallocate()
1406 assert_allocate_copy_success(source, size, &dest); in copy_deallocate()
1414 deallocate_range(mach_vm_trunc_page(source), size + 1); in copy_deallocate()
1429 mach_vm_address_t source = get_vm_address(); in copy_region() local
1436 (uintmax_t)source, (uintmax_t)size, (uintmax_t)size, (uintmax_t)dest); in copy_region()
1437 assert_copy_success(source, size, dest); in copy_region()
2596 mach_vm_address_t source = get_vm_address(); in test_copy_null_map() local
2603 (uintmax_t)dest, (uintmax_t)size, (uintmax_t)size, (uintmax_t)source); in test_copy_null_map()
2604 …assert_mach_return(mach_vm_copy(VM_MAP_NULL, source, size, dest), MACH_SEND_INVALID_DEST, "mach_vm… in test_copy_null_map()
2707 mach_vm_address_t source = get_vm_address(); in write_copy_verify_pattern() local
2709 write_pattern(filter, reversed, source, src_size, pattern_name); in write_copy_verify_pattern()
2717 (uintmax_t)source, (uintmax_t)dst_size, (uintmax_t)dst_size, (uintmax_t)dest); in write_copy_verify_pattern()
2718 assert_copy_success(source, dst_size, dest); in write_copy_verify_pattern()
2723 filter_addresses_do_else(filter, reversed, dest, dst_size, verify_address, read_zero, source); in write_copy_verify_pattern()
2763 mach_vm_address_t source = get_vm_address(); in test_copy_partially_deallocated_range() local
2765 mach_vm_address_t mid_point = mach_vm_trunc_page(source + size / 2); in test_copy_partially_deallocated_range()
2773 (uintmax_t)source); in test_copy_partially_deallocated_range()
2775 assert_allocate_copy_return(source, size, &dest, KERN_INVALID_ADDRESS); in test_copy_partially_deallocated_range()
2786 mach_vm_address_t source = get_vm_address(); in test_copy_partially_unreadable_range() local
2788 mach_vm_address_t mid_point = mach_vm_trunc_page(source + size / 2); in test_copy_partially_unreadable_range()
2801 (uintmax_t)source); in test_copy_partially_unreadable_range()
2802 assert_allocate_copy_return(source, size, &dest, kr_expected); in test_copy_partially_unreadable_range()
2813 mach_vm_address_t source = get_buffer_address(); in test_copy_dest_partially_deallocated_region() local
2827 (uintmax_t)source, (uintmax_t)size, (uintmax_t)size, (uintmax_t)dest); in test_copy_dest_partially_deallocated_region()
2828 assert_copy_return(source, size, dest, KERN_INVALID_ADDRESS); in test_copy_dest_partially_deallocated_region()
2841 mach_vm_address_t source = get_vm_address(); in test_copy_source_partially_deallocated_region() local
2844 mach_vm_address_t source_mid_point = (mach_vm_address_t)mach_vm_trunc_page(source + size / 2); in test_copy_source_partially_deallocated_region()
2856 (uintmax_t)source, (uintmax_t)size, (uintmax_t)size, (uintmax_t)dest); in test_copy_source_partially_deallocated_region()
2857 assert_copy_return(source, size, dest, KERN_INVALID_ADDRESS); in test_copy_source_partially_deallocated_region()
2865 mach_vm_address_t source = get_vm_address(); in test_copy_source_partially_unreadable_region() local
2868 mach_vm_address_t mid_point = (mach_vm_address_t)mach_vm_trunc_page(source + size / 2); in test_copy_source_partially_unreadable_region()
2881 (uintmax_t)source, (uintmax_t)size, (uintmax_t)size, (uintmax_t)dest); in test_copy_source_partially_unreadable_region()
2883 assert_copy_return(source, size, dest, kr); in test_copy_source_partially_unreadable_region()
2893 mach_vm_address_t source = get_buffer_address(); in test_copy_dest_partially_unwriteable_region() local
2907 (uintmax_t)source, (uintmax_t)size, (uintmax_t)size, (uintmax_t)dest); in test_copy_dest_partially_unwriteable_region()
2913 assert_copy_return(source, size, dest, kr); in test_copy_dest_partially_unwriteable_region()
2926 mach_vm_address_t source = get_vm_address(); in test_copy_source_on_partially_deallocated_range() local
2928 mach_vm_address_t start = mach_vm_trunc_page(source); in test_copy_source_on_partially_deallocated_range()
2941 (uintmax_t)dest, (uintmax_t)size, (uintmax_t)size, (uintmax_t)source); in test_copy_source_on_partially_deallocated_range()
2942 assert_copy_return(source, size, dest, KERN_INVALID_ADDRESS); in test_copy_source_on_partially_deallocated_range()
2950 mach_vm_address_t source = get_vm_address(); in test_copy_dest_on_partially_deallocated_range() local
2965 (uintmax_t)dest, (uintmax_t)size, (uintmax_t)size, (uintmax_t)source); in test_copy_dest_on_partially_deallocated_range()
2966 assert_copy_return(source, size, dest, KERN_INVALID_ADDRESS); in test_copy_dest_on_partially_deallocated_range()
2974 mach_vm_address_t source = get_vm_address(); in test_copy_dest_on_partially_unwritable_range() local
2995 (uintmax_t)dest, (uintmax_t)size, (uintmax_t)size, (uintmax_t)source); in test_copy_dest_on_partially_unwritable_range()
2996 assert_copy_return(source, size, dest, kr_expected); in test_copy_dest_on_partially_unwritable_range()
3004 mach_vm_address_t source = get_vm_address(); in test_copy_source_on_partially_unreadable_range() local
3006 mach_vm_address_t start = mach_vm_trunc_page(source); in test_copy_source_on_partially_unreadable_range()
3025 (uintmax_t)dest, (uintmax_t)size, (uintmax_t)size, (uintmax_t)source); in test_copy_source_on_partially_unreadable_range()
3026 assert_copy_return(source, size, dest, kr_expected); in test_copy_source_on_partially_unreadable_range()