Lines Matching refs:src_addr
185 void *src_addr = NULL; in get_source_mapping() local
200 src_addr = mmap((void *) addr, c.region_size, PROT_READ | PROT_WRITE, in get_source_mapping()
203 if (src_addr == MAP_FAILED) { in get_source_mapping()
216 if (((unsigned long long) src_addr & (c.src_alignment - 1)) || in get_source_mapping()
217 !((unsigned long long) src_addr & c.src_alignment)) { in get_source_mapping()
218 munmap(src_addr, c.region_size); in get_source_mapping()
222 if (!src_addr) in get_source_mapping()
225 return src_addr; in get_source_mapping()
387 void *addr, *src_addr, *dest_addr, *dest_preamble_addr; in remap_region() local
399 src_addr = get_source_mapping(c); in remap_region()
400 if (!src_addr) { in remap_region()
406 memcpy(src_addr, rand_addr, threshold); in remap_region()
412 addr = (void *) (((unsigned long long) src_addr + c.region_size in remap_region()
450 dest_addr = mremap(src_addr, c.region_size, c.region_size, in remap_region()
557 munmap(src_addr, c.region_size); in remap_region()