Home
last modified time | relevance | path

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

/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.c292 void * map_addr = NULL; /* address where the file is mapped */ in map_and_thread() local
326 if ((map_addr = (void *) mmap(0, pagesize * pages_num, in map_and_thread()
341 map_addr); in map_and_thread()
355 th_args[1] = (long)map_addr; in map_and_thread()
378 remove_files(tmpfile, map_addr); in map_and_thread()
402 remove_files(tmpfile, map_addr); in map_and_thread()
411 remove_files(tmpfile, map_addr); in map_and_thread()
428 if (remove_files(tmpfile, map_addr) == FAILED) { in map_and_thread()