Home
last modified time | relevance | path

Searched refs:MAP_SIZE (Results 1 – 6 of 6) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise10.c53 #define MAP_SIZE (16 * 1024) macro
55 static char pattern[MAP_SIZE];
56 static char zero[MAP_SIZE];
66 {MAP_SIZE, MADV_NORMAL, MADV_WIPEONFORK, zero, 0,
70 {MAP_SIZE, MADV_NORMAL, MADV_WIPEONFORK, zero, 1,
72 {MAP_SIZE, MADV_WIPEONFORK, MADV_KEEPONFORK, pattern, 0,
116 ptr = SAFE_MMAP(NULL, MAP_SIZE, in mem_map()
121 memcpy(ptr, pattern, MAP_SIZE); in mem_map()
158 SAFE_MUNMAP(addr, MAP_SIZE); in test_madvise()
165 for (i = 0; i < MAP_SIZE; i++) in setup()
Dmadvise02.c47 #define MAP_SIZE (4 * 1024) macro
152 shared_anon = SAFE_MMAP(0, MAP_SIZE, PROT_READ, MAP_SHARED | in setup()
198 SAFE_MUNMAP(shared_anon, MAP_SIZE); in cleanup()
/third_party/skia/third_party/externals/d3d12allocator/tools/D3d12maDumpVis/
DD3d12maDumpVis.py32 MAP_SIZE = 24 variable
80 iImgSizeY += len(lDedicatedAllocations) * (IMG_MARGIN * 2 + FONT_SIZE + MAP_SIZE)
84 iImgSizeY += len(lDefaultPoolBlocks) * (IMG_MARGIN * 2 + FONT_SIZE + MAP_SIZE)
125 …draw.rectangle([IMG_MARGIN, y, IMG_MARGIN + iSizePixels, y + MAP_SIZE], fill=TypeToColor(tAlloc[0]…
132 …draw.rectangle([IMG_MARGIN, y, IMG_MARGIN + iSizePixels, y + MAP_SIZE], fill=TypeToColor('FREE', 0…
144 …draw.rectangle([IMG_MARGIN + iX, y, IMG_MARGIN + iXEnd, y + MAP_SIZE], fill=TypeToColor(sType, iFl…
147 … draw.line([IMG_MARGIN + iX, y, IMG_MARGIN + iX, y + MAP_SIZE], fill=COLOR_OUTLINE_HARD)
149 … draw.line([IMG_MARGIN + iX, y, IMG_MARGIN + iX, y + MAP_SIZE], fill=COLOR_OUTLINE_HARD)
243 y += MAP_SIZE + IMG_MARGIN
249 y += MAP_SIZE + IMG_MARGIN
/third_party/mesa3d/src/gallium/auxiliary/draw/
Ddraw_pt_vsplit.c34 #define MAP_SIZE 256 macro
57 unsigned fetches[MAP_SIZE];
58 ushort draws[MAP_SIZE];
94 hash = fetch % MAP_SIZE; in vsplit_add_cache()
133 unsigned hash = elt_idx % MAP_SIZE; in vsplit_add_cache_ubyte()
151 unsigned hash = elt_idx % MAP_SIZE; in vsplit_add_cache_ushort()
176 unsigned hash = elt_idx % MAP_SIZE; in vsplit_add_cache_uint()
/third_party/ltp/testcases/kernel/mem/tunable/
Dmin_free_kbytes.c40 #define MAP_SIZE (1UL<<20) macro
169 addrs = mmap(NULL, MAP_SIZE, PROT_READ | PROT_WRITE, in eatup_mem()
178 memset(addrs, 1, MAP_SIZE); in eatup_mem()
/third_party/glfw/examples/
Dheightmap.c43 #define MAP_SIZE (10.0f) macro
210 GLfloat step = MAP_SIZE / (MAP_NUM_VERTICES - 1); in init_map()
294 *center_x = (MAP_SIZE * rand()) / (1.0f * RAND_MAX); in generate_heightmap__circle()
295 *center_y = (MAP_SIZE * rand()) / (1.0f * RAND_MAX); in generate_heightmap__circle()