Home
last modified time | relevance | path

Searched refs:mem_total (Results 1 - 7 of 7) sorted by relevance

/third_party/ltp/testcases/kernel/mem/mtest06/
H A Dmmap1.c187 size_t mem_total; in setup() local
190 mem_total = SAFE_READ_MEMINFO("MemTotal:"); in setup()
191 mem_total *= 1024; in setup()
196 distant_mmap_size = (mem_total > 4 * GIGABYTE) ? 2 * GIGABYTE : mem_total / 2; in setup()
/third_party/ltp/testcases/kernel/mem/tunable/
H A Dovercommit_memory.c89 long mem_total, swap_total; in setup() local
99 mem_total = SAFE_READ_MEMINFO("MemTotal:"); in setup()
100 tst_res(TINFO, "MemTotal is %ld kB", mem_total); in setup()
103 sum_total = mem_total + swap_total; in setup()
/third_party/ltp/libs/libltpnuma/
H A Dtst_numa.c130 long mem_total = -1; in node_has_enough_memory() local
153 mem_total = val; in node_has_enough_memory()
164 if (mem_total == -1 || mem_used == -1) { in node_has_enough_memory()
169 mem_avail = mem_total - mem_used + (9 * file_pages)/10; in node_has_enough_memory()
/third_party/libuv/src/unix/
H A Daix.c379 perfstat_memory_total_t mem_total; in uv_get_free_memory() local
380 int result = perfstat_memory_total(NULL, &mem_total, sizeof(mem_total), 1); in uv_get_free_memory()
384 return mem_total.real_free * 4096; in uv_get_free_memory()
389 perfstat_memory_total_t mem_total; in uv_get_total_memory() local
390 int result = perfstat_memory_total(NULL, &mem_total, sizeof(mem_total), 1); in uv_get_total_memory()
394 return mem_total.real_total * 4096; in uv_get_total_memory()
/third_party/node/deps/uv/src/unix/
H A Daix.c368 perfstat_memory_total_t mem_total; in uv_get_free_memory() local
369 int result = perfstat_memory_total(NULL, &mem_total, sizeof(mem_total), 1); in uv_get_free_memory()
373 return mem_total.real_free * 4096; in uv_get_free_memory()
378 perfstat_memory_total_t mem_total; in uv_get_total_memory() local
379 int result = perfstat_memory_total(NULL, &mem_total, sizeof(mem_total), 1); in uv_get_total_memory()
383 return mem_total.real_total * 4096; in uv_get_total_memory()
/third_party/backends/backend/
H A Dhp3900_types.c707 SANE_Int mem_total; variable
H A Dhp3900_rts8822.c3769 mem_total = 0x80000; in Init_Registers()
8869 mem_available = mem_total - ((table_size * 3) * 16); in RTS_Setup_Shading()
8912 Regs[0x01c8] = _B0 ((mem_total - 1) / 16); in RTS_Setup_Shading()
8913 Regs[0x01c9] = _B1 ((mem_total - 1) / 16); in RTS_Setup_Shading()
8914 Regs[0x01c7] |= (_B2 ((mem_total - 1) / 16) & 0x0f) << 4; in RTS_Setup_Shading()

Completed in 20 milliseconds