Searched refs:map_addr (Results 1 – 3 of 3) sorted by relevance
/external/libdrm/tests/planetest/ |
D | bo.c | 34 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()
|
D | bo.h | 20 void *map_addr; member
|
/external/ltp/testcases/kernel/mem/mtest05/ |
D | mmstress.c | 371 caddr_t map_addr = NULL; /* address where the file is mapped */ in map_and_thread() local 407 if ((map_addr = (caddr_t) mmap(0, pagesize * pages_num, in map_and_thread() 420 retinfo->mapaddr = map_addr; in map_and_thread() 424 map_addr); in map_and_thread() 438 th_args[1] = (long)map_addr; in map_and_thread() 461 remove_files(tmpfile, map_addr); in map_and_thread() 486 remove_files(tmpfile, map_addr); in map_and_thread() 496 remove_files(tmpfile, map_addr); in map_and_thread() 513 if (remove_files(tmpfile, map_addr) == FAILED) { in map_and_thread()
|