Home
last modified time | relevance | path

Searched refs:map_addr (Results 1 – 7 of 7) sorted by relevance

/external/u-boot/arch/x86/lib/
Dphysmem.c134 static void x86_phys_memset_page(phys_addr_t map_addr, uintptr_t offset, int c, in x86_phys_memset_page() argument
147 x86_phys_map_page(window, map_addr, 1); in x86_phys_memset_page()
176 phys_addr_t map_addr = start & ~(LARGE_PAGE_SIZE - 1); in arch_phys_memset() local
177 phys_addr_t offset = start - map_addr; in arch_phys_memset()
184 min(map_addr + LARGE_PAGE_SIZE, start + size); in arch_phys_memset()
186 x86_phys_memset_page(map_addr, offset, c, cur_size); in arch_phys_memset()
188 map_addr += LARGE_PAGE_SIZE; in arch_phys_memset()
192 x86_phys_memset_page(map_addr, 0, c, LARGE_PAGE_SIZE); in arch_phys_memset()
194 map_addr += LARGE_PAGE_SIZE; in arch_phys_memset()
198 x86_phys_memset_page(map_addr, 0, c, size); in arch_phys_memset()
/external/bcc/tests/cc/
Dtest_c_api.cc289 static int make_perf_map_file(string &path, unsigned long long map_addr) { in make_perf_map_file() argument
294 fprintf(file, "%llx 10 dummy_fn\n", map_addr); in make_perf_map_file()
295 fprintf(file, "%llx 10 right_next_door_fn\n", map_addr + 0x10); in make_perf_map_file()
338 static pid_t spawn_child(void *map_addr, bool own_pidns, bool own_mntns, in spawn_child() argument
347 /* stack grows down */ child_stack + STACK_SIZE, flags, (void*)map_addr); in spawn_child()
357 void *map_addr = mmap(NULL, map_sz, PROT_READ | PROT_EXEC, variable
359 REQUIRE(map_addr != MAP_FAILED);
365 child = spawn_child(map_addr, /* own_pidns */ false, false, perf_map_func);
371 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr,
377 REQUIRE(bcc_symcache_resolve(resolver, (unsigned long long)map_addr + 0x10,
[all …]
/external/u-boot/board/freescale/qemu-ppce500/
Dqemu-ppce500.c86 ulong map_addr; in pci_map_region() local
101 map_addr = *pmap_addr; in pci_map_region()
104 map_addr += size - 1; in pci_map_region()
105 map_addr &= ~(size - 1); in pci_map_region()
107 if (map_addr + size >= CONFIG_SYS_PCI_MAP_END) in pci_map_region()
111 assert(!tlb_map_range(map_addr, addr, size, TLB_MAP_IO)); in pci_map_region()
112 *pmap_addr = map_addr + size; in pci_map_region()
115 *pvaddr = map_addr; in pci_map_region()
127 ulong map_addr; in pci_init_board() local
132 map_addr = CONFIG_SYS_PCI_MAP_START; in pci_init_board()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/munmap/
D2-1.c33 void *map_addr; in main() local
44 map_addr = mmap(NULL, map_size, PROT_NONE, MAP_PRIVATE, fd, 0); in main()
45 if (map_addr == MAP_FAILED) { in main()
55 rc = munmap(map_addr, map_size); in main()
64 rc = munmap(map_addr, map_size); in main()
/external/libdrm/tests/planetest/
Dbo.c34 uint8_t *luma = bo->map_addr + i * bo->pitch; in draw_rect_yuv()
41 uint8_t *chroma = bo->map_addr + (i + height) * bo->pitch; in draw_rect_yuv()
69 uint8_t *row = bo->map_addr + i * bo->pitch; in draw_rect()
120 if (bo->map_addr) in map_sp_bo()
130 bo->map_addr = mmap(NULL, bo->size, PROT_READ | PROT_WRITE, MAP_SHARED, in map_sp_bo()
132 if (bo->map_addr == MAP_FAILED) { in map_sp_bo()
217 if (bo->map_addr) in free_sp_bo()
218 munmap(bo->map_addr, bo->size); in free_sp_bo()
Dbo.h20 void *map_addr; member
/external/ltp/testcases/kernel/mem/mtest05/
Dmmstress.c291 void * map_addr = NULL; /* address where the file is mapped */ in map_and_thread() local
325 if ((map_addr = (void *) mmap(0, pagesize * pages_num, in map_and_thread()
340 map_addr); in map_and_thread()
354 th_args[1] = (long)map_addr; in map_and_thread()
377 remove_files(tmpfile, map_addr); in map_and_thread()
401 remove_files(tmpfile, map_addr); in map_and_thread()
410 remove_files(tmpfile, map_addr); in map_and_thread()
427 if (remove_files(tmpfile, map_addr) == FAILED) { in map_and_thread()