/external/elfutils/lib/ |
crc32_file.c | 51 size_t mapsize = st.st_size; local 52 void *mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0); 56 mapsize = ((mapsize / 2) + pagesize - 1) & -pagesize; 57 while (mapsize >= pagesize 58 && (mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, 60 mapsize /= 2; 66 if (st.st_size <= (off_t) mapsize) 69 munmap (mapped, mapsize); 72 crc = crc32 (crc, mapped, mapsize); [all...] |
/external/ltp/testcases/kernel/syscalls/mmap/ |
mmap09.c | 43 #define mapsize (1 << 14) macro 55 {mapsize - 8192, "ftruncate mmaped file to a smaller size"}, 56 {mapsize + 1024, "ftruncate mmaped file to a larger size"}, 102 if (ftruncate(fd, mapsize) < 0) 105 maddr = mmap(0, mapsize, PROT_READ | PROT_WRITE, 111 memset(maddr, 'A', mapsize); 116 munmap(maddr, mapsize);
|
/hardware/qcom/display/msm8994/libmemtrack/ |
kgsl.c | 88 unsigned long size, mapsize; local 99 * gpuaddr useraddr size id flags type usage sglen mapsize 103 &size, flags, line_type, line_usage, &mapsize); 111 accounted_size += mapsize; 112 unaccounted_size += size - mapsize;
|
/hardware/qcom/display/msm8996/libmemtrack/ |
kgsl.c | 86 unsigned long size, mapsize; local 97 * gpuaddr useraddr size id flags type usage sglen mapsize 101 &size, flags, line_type, line_usage, &mapsize); 109 accounted_size += mapsize; 110 unaccounted_size += size - mapsize;
|
/hardware/qcom/display/msm8998/libmemtrack/ |
kgsl.c | 75 unsigned long size, mapsize; local 86 * gpuaddr useraddr size id flags type usage sglen mapsize eglsrf eglimg 90 &size, flags, line_type, line_usage, &mapsize, 105 if (accounted_size + mapsize < accounted_size) 108 accounted_size += mapsize; 110 if (mapsize > size) 113 unaccounted_size += size - mapsize;
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
hugemmap04.c | 73 static long long mapsize; variable 133 mapsize = (long long)freepages *huge_pagesize * 1024; 134 addr = mmap(NULL, mapsize, PROT_READ | PROT_WRITE, 163 if (munmap(addr, mapsize) != 0)
|
/external/mesa3d/src/mesa/main/ |
pixel.c | 109 store_pixelmap(struct gl_context *ctx, GLenum map, GLsizei mapsize, 122 ctx->PixelMaps.StoS.Size = mapsize; 123 for (i = 0; i < mapsize; i++) { 129 ctx->PixelMaps.ItoI.Size = mapsize; 130 for (i = 0; i < mapsize; i++) { 136 pm->Size = mapsize; 137 for (i = 0; i < mapsize; i++) { 150 struct gl_pixelstore_attrib *pack, GLsizei mapsize, 161 ok = _mesa_validate_pbo_access(1, &ctx->DefaultPacking, mapsize, 1, 1, 184 _mesa_PixelMapfv( GLenum map, GLsizei mapsize, const GLfloat *values 341 GLint mapsize, i; local 392 GLint mapsize, i; local 443 GLint mapsize, i; local [all...] |
/toolchain/binutils/binutils-2.25/bfd/ |
archive64.c | 152 unsigned int mapsize = stringsize + ranlibsize; local 160 padding = BFD_ALIGN (mapsize, 8) - mapsize; 161 mapsize += padding; 164 archive_member_file_ptr = (mapsize 171 if (!_bfd_ar_sizepad (hdr.ar_size, sizeof (hdr.ar_size), mapsize))
|
archive.c | 2428 unsigned int mapsize = ranlibsize + stringsize + 8; local 2615 unsigned int mapsize = stringsize + ranlibsize; local [all...] |
ecoff.c | 3019 unsigned int mapsize; local [all...] |
elfnn-aarch64.c | 1695 unsigned int mapsize; member in struct:_aarch64_elf_section_data [all...] |
elf32-arm.c | 2707 unsigned int mapsize; member in struct:_arm_elf_section_data [all...] |
/external/selinux/libsepol/src/ |
ebitmap.c | 258 if ((n->startbit + MAPSIZE) > bit) { 273 uint32_t startbit = bit & ~(MAPSIZE - 1); 274 uint32_t highbit = startbit + MAPSIZE; 284 if ((n->startbit + MAPSIZE) > bit) { 300 MAPSIZE; 368 uint32_t buf[3], mapsize, count, i; local 377 mapsize = le32_to_cpu(buf[0]); 381 if (mapsize != MAPSIZE) { 384 mapsize, MAPSIZE, e->highbit) [all...] |
/frameworks/base/cmds/screencap/ |
screencap.cpp | 138 ssize_t mapsize = -1; local 215 munmap((void *)mapbase, mapsize);
|
/external/ltp/testcases/kernel/io/aio/aio01/ |
aio01.c | 74 #define mapsize (1 << 14) macro 93 mapsize - 8192, "ftruncate mmaped file to a smaller size"}, { 94 mapsize + 1024, "ftruncate mmaped file to a larger size"}, {
|
/external/ltp/testcases/kernel/mem/mmapstress/ |
mmapstress09.c | 58 * mmapstress09 -p nprocs [-t minutes -s mapsize -m msync -r -d] 67 * -s mapsize - mapsize (defaults to MAPSIZE) 76 #define MAPSIZE (64*1024) /* default mapsize set up by parent */ 95 char *usage = "-p nprocs [-t minutes -s mapsize -m -r -d]"; 104 int mapsize = MAPSIZE; variable 154 mapsize = atoi(optarg) [all...] |
mmapstress01.c | 471 size_t mapsize; local 507 mapsize = (size_t) (statbuf.st_size - sparseoffset); 508 mappages = roundup(mapsize, pagesize) / pagesize; 514 mapsize -= byteoffset; 522 "mapsize %d, off %Ld, loop %d\n", 523 procno, getpid(), seed, filesize, mapsize, 527 "mapsize %ld, off %ld, loop %d\n", 528 procno, getpid(), seed, filesize, (long)mapsize, 533 if ((maddr = mmap64(0, mapsize, PROT_READ | PROT_WRITE, MAP_SHARED, 536 if ((maddr = mmap(0, mapsize, PROT_READ | PROT_WRITE, MAP_SHARED 604 size_t mapsize; local [all...] |
mmapstress10.c | 614 "mapsize %d, off %Ld, loop %d\n", 619 "mapsize %ld, off %ld, loop %d\n", 794 size_t mapsize; local 833 mapsize = (size_t) (statbuf.st_size - sparseoffset); 834 mappages = roundup(mapsize, pagesize) / pagesize; 846 if ((i * pagesize) + cnt != mapsize) { 849 (long)mapsize);
|
/frameworks/native/cmds/servicemanager/ |
binder.c | 94 size_t mapsize; member in struct:binder_state 97 struct binder_state *binder_open(const char* driver, size_t mapsize) 123 bs->mapsize = mapsize; 124 bs->mapped = mmap(NULL, mapsize, PROT_READ, MAP_PRIVATE, bs->fd, 0); 142 munmap(bs->mapped, bs->mapsize);
|
/toolchain/binutils/binutils-2.25/binutils/ |
objdump.c | 1104 size_t mapsize; member in struct:print_file_list [all...] |