Home
last modified time | relevance | path

Searched refs:memory_size (Results 1 – 25 of 29) sorted by relevance

12

/external/ltp/testcases/kernel/mem/page/
Dpage02.c73 int memory_size, half_memory_size; local
89 memory_size = 128 * 1024;
92 if (sscanf(argv[1], "%d", &memory_size) != 1)
101 half_memory_size = memory_size / 2;
129 memory_pointer = malloc(memory_size * sizeof(int));
148 memory_size, i);
155 (memory_size / 2);
178 (memory_size / 2);
Dpage01.c74 int memory_size; local
83 memory_size = 256 * 1024;
86 if (sscanf(argv[1], "%d", &memory_size) != 1)
121 memory_pointer = malloc(memory_size * sizeof(int));
146 for (j = 1; j <= memory_size; j++)
159 for (j = 1; j <= memory_size; j++) {
/external/e2fsprogs/intl/
Dprintf-parse.c88 size_t memory_size; \ in PRINTF_PARSE()
94 memory_size = xtimes (a_allocated, sizeof (argument)); \ in PRINTF_PARSE()
95 if (size_overflow_p (memory_size)) \ in PRINTF_PARSE()
99 ? realloc (a->arg, memory_size) \ in PRINTF_PARSE()
100 : malloc (memory_size)); \ in PRINTF_PARSE()
504 size_t memory_size; in PRINTF_PARSE() local
508 memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); in PRINTF_PARSE()
509 if (size_overflow_p (memory_size)) in PRINTF_PARSE()
512 memory = realloc (d->dir, memory_size); in PRINTF_PARSE()
Dvasnprintf.c187 size_t memory_size; \ in VASNPRINTF()
193 memory_size = xtimes (allocated, sizeof (CHAR_T)); \ in VASNPRINTF()
194 if (size_overflow_p (memory_size)) \ in VASNPRINTF()
197 memory = (CHAR_T *) malloc (memory_size); \ in VASNPRINTF()
199 memory = (CHAR_T *) realloc (result, memory_size); \ in VASNPRINTF()
/external/bison/lib/
Dprintf-parse.c105 size_t memory_size; \ in PRINTF_PARSE()
111 memory_size = xtimes (a_allocated, sizeof (argument)); \ in PRINTF_PARSE()
112 if (size_overflow_p (memory_size)) \ in PRINTF_PARSE()
116 ? realloc (a->arg, memory_size) \ in PRINTF_PARSE()
117 : malloc (memory_size)); \ in PRINTF_PARSE()
584 size_t memory_size; in PRINTF_PARSE() local
588 memory_size = xtimes (d_allocated, sizeof (DIRECTIVE)); in PRINTF_PARSE()
589 if (size_overflow_p (memory_size)) in PRINTF_PARSE()
593 ? realloc (d->dir, memory_size) in PRINTF_PARSE()
594 : malloc (memory_size)); in PRINTF_PARSE()
Dvasnprintf.c1850 size_t memory_size; \ in VASNPRINTF()
1856 memory_size = xtimes (allocated, sizeof (DCHAR_T)); \ in VASNPRINTF()
1857 if (size_overflow_p (memory_size)) \ in VASNPRINTF()
1860 memory = (DCHAR_T *) malloc (memory_size); \ in VASNPRINTF()
1862 memory = (DCHAR_T *) realloc (result, memory_size); \ in VASNPRINTF()
/external/syslinux/com32/gpllib/
Dmemory.c385 unsigned long memory_size = 0; in detect_memsize() local
391 memory_size = memsize_e820(map, count); in detect_memsize()
392 if (memory_size > 0) in detect_memsize()
393 return memory_size; in detect_memsize()
414 unsigned long memory_size = 0; in memsize_e820() local
445 memory_size += (end >> 12) - ((start + 4095) >> 12); in memsize_e820()
448 memory_size += nm[i].size >> 12; in memsize_e820()
451 return memory_size * 4; in memsize_e820()
/external/google-breakpad/src/client/linux/minidump_writer/
Dminidump_writer_unittest.cc134 const uint32_t memory_size = sysconf(_SC_PAGESIZE); in TEST() local
157 memory_size, in TEST()
186 info.size = memory_size; in TEST()
212 EXPECT_EQ(memory_size, module->size()); in TEST()
243 const int32_t memory_size = sysconf(_SC_PAGESIZE); in TEST() local
270 google_breakpad::scoped_array<char> buffer(new char[memory_size]); in TEST()
271 memset(buffer.get(), 0, memory_size); in TEST()
272 ASSERT_EQ(memory_size, write(fd, buffer.get(), memory_size)); in TEST()
277 memory_size, in TEST()
305 info.start_addr = kMemoryAddress - memory_size; in TEST()
[all …]
/external/google-breakpad/src/client/linux/microdump_writer/
Dmicrodump_writer_unittest.cc77 const uint32_t memory_size = sysconf(_SC_PAGESIZE); in TEST() local
85 info.start_addr = memory_size; in TEST()
86 info.size = memory_size; in TEST()
/external/google-breakpad/src/common/linux/tests/
Dcrash_generator.cc131 bool CrashGenerator::MapSharedMemory(size_t memory_size) { in MapSharedMemory() argument
135 void* mapped_memory = mmap(0, memory_size, PROT_READ | PROT_WRITE, in MapSharedMemory()
142 memset(mapped_memory, 0, memory_size); in MapSharedMemory()
144 shared_memory_size_ = memory_size; in MapSharedMemory()
Dcrash_generator.h94 bool MapSharedMemory(size_t memory_size);
/external/syslinux/com32/hdt/
Dhdt-menu-memory.c48 unsigned long memory_size = memsize_e820(map, count); in compute_e820() local
50 memory_size >> 10, memory_size); in compute_e820()
52 "Detected Memory : %lu MiB (%lu KiB)", memory_size >> 10, in compute_e820()
53 memory_size); in compute_e820()
/external/pdfium/core/fxge/win32/
Dcfx_windowsdib.h21 size_t memory_size; member
/external/swiftshader/third_party/LLVM/test/CodeGen/ARM/
D2008-05-19-ScavengerAssert.ll17 %memory_size.3555 = add i32 0, %tmp151 ; <i32> [#uses=0]
D2008-05-19-LiveIntervalsBug.ll52 …%memory_size.0.i = phi i32 [ %tmp23.i31, %get_mem3Dpel.exit.split.i ], [ %tmp50.i.i, %entry ] ; <…
53 %tmp41 = add i32 0, %memory_size.0.i ; <i32> [#uses=0]
/external/llvm/test/CodeGen/ARM/
D2008-05-19-ScavengerAssert.ll17 %memory_size.3555 = add i32 0, %tmp151 ; <i32> [#uses=0]
D2008-05-19-LiveIntervalsBug.ll52 …%memory_size.0.i = phi i32 [ %tmp23.i31, %get_mem3Dpel.exit.split.i ], [ %tmp50.i.i, %entry ] ; <…
53 %tmp41 = add i32 0, %memory_size.0.i ; <i32> [#uses=0]
/external/kernel-headers/original/uapi/linux/
Dvhost.h78 __u64 memory_size; /* bytes */ member
Dkvm.h92 __u64 memory_size; /* bytes */ member
100 __u64 memory_size; /* bytes */ member
/external/google-breakpad/src/client/linux/handler/
Dexception_handler_unittest.cc62 void FlushInstructionCache(const char* memory, uint32_t memory_size) { in FlushInstructionCache() argument
65 long end = begin + static_cast<long>(memory_size); in FlushInstructionCache()
82 long end = begin + static_cast<long>(memory_size); in FlushInstructionCache()
90 cacheflush(const_cast<char*>(memory), memory_size, ICACHE); in FlushInstructionCache()
/external/kernel-headers/original/uapi/asm-x86/asm/
Dkvm.h55 __u64 memory_size; member
/external/pdfium/core/fxge/android/
Dcfpf_skiafontmgr.cpp415 args.memory_size = szBuffer; in GetFontFace()
/external/pdfium/third_party/freetype/include/freetype/
Dfreetype.h1969 FT_Long memory_size; member
/external/freetype/include/freetype/
Dfreetype.h2010 FT_Long memory_size; member
/external/webp/src/dec/
Dvp8l_dec.c498 const uint64_t memory_size = sizeof(*dec->rescaler) + in AllocateAndInitRescaler() local
501 uint8_t* memory = (uint8_t*)WebPSafeMalloc(memory_size, sizeof(*memory)); in AllocateAndInitRescaler()

12