Home
last modified time | relevance | path

Searched refs:mapsize (Results 1 – 25 of 28) sorted by relevance

12

/external/elfutils/lib/
Dcrc32_file.c52 size_t mapsize = st.st_size; in crc32_file() local
53 void *mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0); in crc32_file()
57 mapsize = ((mapsize / 2) + pagesize - 1) & -pagesize; in crc32_file()
58 while (mapsize >= pagesize in crc32_file()
59 && (mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, in crc32_file()
61 mapsize /= 2; in crc32_file()
67 if (st.st_size <= (off_t) mapsize) in crc32_file()
70 munmap (mapped, mapsize); in crc32_file()
73 crc = crc32 (crc, mapped, mapsize); in crc32_file()
74 off += mapsize; in crc32_file()
[all …]
/external/mesa3d/src/mesa/main/
Dpixel.c102 store_pixelmap(struct gl_context *ctx, GLenum map, GLsizei mapsize, in store_pixelmap() argument
115 ctx->PixelMaps.StoS.Size = mapsize; in store_pixelmap()
116 for (i = 0; i < mapsize; i++) { in store_pixelmap()
122 ctx->PixelMaps.ItoI.Size = mapsize; in store_pixelmap()
123 for (i = 0; i < mapsize; i++) { in store_pixelmap()
129 pm->Size = mapsize; in store_pixelmap()
130 for (i = 0; i < mapsize; i++) { in store_pixelmap()
143 struct gl_pixelstore_attrib *pack, GLsizei mapsize, in validate_pbo_access() argument
154 ok = _mesa_validate_pbo_access(1, &ctx->DefaultPacking, mapsize, 1, 1, in validate_pbo_access()
176 _mesa_PixelMapfv( GLenum map, GLsizei mapsize, const GLfloat *values ) in _mesa_PixelMapfv() argument
[all …]
Dpixel.h44 _mesa_PixelMapfv( GLenum map, GLsizei mapsize, const GLfloat *values );
46 _mesa_PixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values );
48 _mesa_PixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values );
/external/ltp/testcases/kernel/syscalls/mmap/
Dmmap09.c43 #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) in setup()
105 maddr = mmap(0, mapsize, PROT_READ | PROT_WRITE, in setup()
111 memset(maddr, 'A', mapsize); in setup()
116 munmap(maddr, mapsize); in cleanup()
/external/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress01.c470 size_t mapsize; local
506 mapsize = (size_t) (statbuf.st_size - sparseoffset);
507 mappages = roundup(mapsize, pagesize) / pagesize;
513 mapsize -= byteoffset;
522 procno, getpid(), seed, filesize, mapsize,
527 procno, getpid(), seed, filesize, (long)mapsize,
532 if ((maddr = mmap64(0, mapsize, PROT_READ | PROT_WRITE, MAP_SHARED,
535 if ((maddr = mmap(0, mapsize, PROT_READ | PROT_WRITE, MAP_SHARED,
551 if (randpage < mappages - 1 || !(mapsize % pagesize))
554 validsize = mapsize % pagesize;
[all …]
Dmmapstress09.c104 int mapsize = MAPSIZE; variable
154 mapsize = atoi(optarg); in main()
155 if (mapsize < 0) { in main()
185 progname, mapsize, pattern); in main()
193 if ((mapaddr = mmap(0, mapsize, PROT_READ | PROT_WRITE, in main()
219 mappages = roundup(mapsize, pagesize) / pagesize; in main()
Dmmapstress10.c792 size_t mapsize; local
831 mapsize = (size_t) (statbuf.st_size - sparseoffset);
832 mappages = roundup(mapsize, pagesize) / pagesize;
844 if ((i * pagesize) + cnt != mapsize) {
847 (long)mapsize);
/external/python/cpython2/Lib/test/
Dtest_mmap.py121 mapsize = 10
122 open(TESTFN, "wb").write("a"*mapsize)
124 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ)
125 self.assertEqual(m[:], 'a'*mapsize, "Readonly memory map data incorrect.")
129 m[:] = 'b'*mapsize
163 m.resize(2*mapsize)
172 self.assertEqual(open(TESTFN, "rb").read(), 'a'*mapsize,
179 m = mmap.mmap(f.fileno(), mapsize+1)
196 f.truncate(mapsize)
201 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_WRITE)
[all …]
/external/python/cpython3/Lib/test/
Dtest_mmap.py125 mapsize = 10
127 fp.write(b"a"*mapsize)
129 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_READ)
130 self.assertEqual(m[:], b'a'*mapsize, "Readonly memory map data incorrect.")
134 m[:] = b'b'*mapsize
168 m.resize(2*mapsize)
176 self.assertEqual(fp.read(), b'a'*mapsize,
182 m = mmap.mmap(f.fileno(), mapsize+1)
198 f.truncate(mapsize)
202 m = mmap.mmap(f.fileno(), mapsize, access=mmap.ACCESS_WRITE)
[all …]
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap04.c53 static long long mapsize; variable
82 mapsize = (long long)freepages * huge_pagesize * 1024; in test_hugemmap()
83 addr = mmap(NULL, mapsize, PROT_READ | PROT_WRITE, in test_hugemmap()
104 munmap(addr, mapsize); in test_hugemmap()
/external/OpenCL-CTS/test_common/harness/
DtypeWrappers.h258 size_t mapsize; // Bytes allocated total, pointed to by map. variable
262 …explicit BufferOwningPtr(void *p = 0) : ptr(p), map(0), mapsize(0), allocsize(0), aligned(false) {} in ptr()
264 : ptr(p), map(m), mapsize(s), allocsize(0), aligned(false) in BufferOwningPtr()
277 int error = munmap(map, mapsize); in ~BufferOwningPtr()
294 int error = munmap(map, mapsize);
312 mapsize = mapsize_;
/external/llvm/test/CodeGen/PowerPC/
Dinlineasm-i64-reg.ll8 define zeroext i32 @Kernel_RanksToCoords(i64 %mapsize, %struct.BG_CoordinateMapping_t* %map, i64* %…
10 %mapsize.addr = alloca i64, align 8
18 store i64 %mapsize, i64* %mapsize.addr, align 8
22 %0 = load i64, i64* %mapsize.addr, align 8
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/PowerPC/
Dinlineasm-i64-reg.ll8 define zeroext i32 @Kernel_RanksToCoords(i64 %mapsize, %struct.BG_CoordinateMapping_t* %map, i64* %…
10 %mapsize.addr = alloca i64, align 8
18 store i64 %mapsize, i64* %mapsize.addr, align 8
22 %0 = load i64, i64* %mapsize.addr, align 8
/external/selinux/libsepol/src/
Debitmap.c368 uint32_t buf[3], mapsize, count, i; in ebitmap_read() local
377 mapsize = le32_to_cpu(buf[0]); in ebitmap_read()
381 if (mapsize != MAPSIZE) { in ebitmap_read()
384 mapsize, MAPSIZE, e->highbit); in ebitmap_read()
/external/ltp/testcases/kernel/io/aio/
Daio01.c74 #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/angle/src/libANGLE/
DContext_gl_1_0_autogen.h142 void pixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values); \
143 void pixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values); \
144 void pixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values); \
DvalidationGL1.cpp707 bool ValidatePixelMapfv(const Context *, GLenum map, GLsizei mapsize, const GLfloat *values) in ValidatePixelMapfv() argument
712 bool ValidatePixelMapuiv(const Context *, GLenum map, GLsizei mapsize, const GLuint *values) in ValidatePixelMapuiv() argument
717 bool ValidatePixelMapusv(const Context *, GLenum map, GLsizei mapsize, const GLushort *values) in ValidatePixelMapusv() argument
DvalidationGL1_autogen.h243 bool ValidatePixelMapfv(const Context *context, GLenum map, GLsizei mapsize, const GLfloat *values);
244 bool ValidatePixelMapuiv(const Context *context, GLenum map, GLsizei mapsize, const GLuint *values);
247 GLsizei mapsize,
DContext_gl.cpp1336 void Context::pixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values) in pixelMapfv() argument
1341 void Context::pixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values) in pixelMapuiv() argument
1346 void Context::pixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values) in pixelMapusv() argument
/external/angle/src/libGL/
Dentry_points_gl_1_0_autogen.h234 ANGLE_EXPORT void GL_APIENTRY PixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values);
235 ANGLE_EXPORT void GL_APIENTRY PixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values);
236 ANGLE_EXPORT void GL_APIENTRY PixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values);
Dentry_points_gl_1_0_autogen.cpp3342 void GL_APIENTRY PixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values) in PixelMapfv() argument
3348 CID(context), GLenumToString(GLenumGroup::PixelMap, map), mapsize, (uintptr_t)values); in PixelMapfv()
3354 (context->skipValidation() || ValidatePixelMapfv(context, map, mapsize, values)); in PixelMapfv()
3357 context->pixelMapfv(map, mapsize, values); in PixelMapfv()
3359 ANGLE_CAPTURE(PixelMapfv, isCallValid, context, map, mapsize, values); in PixelMapfv()
3363 void GL_APIENTRY PixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values) in PixelMapuiv() argument
3370 CID(context), GLenumToString(GLenumGroup::PixelMap, map), mapsize, (uintptr_t)values); in PixelMapuiv()
3376 (context->skipValidation() || ValidatePixelMapuiv(context, map, mapsize, values)); in PixelMapuiv()
3379 context->pixelMapuiv(map, mapsize, values); in PixelMapuiv()
3381 ANGLE_CAPTURE(PixelMapuiv, isCallValid, context, map, mapsize, values); in PixelMapuiv()
[all …]
DlibGL_autogen.cpp915 void GL_APIENTRY glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values) in glPixelMapfv() argument
917 return gl::PixelMapfv(map, mapsize, values); in glPixelMapfv()
920 void GL_APIENTRY glPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values) in glPixelMapuiv() argument
922 return gl::PixelMapuiv(map, mapsize, values); in glPixelMapuiv()
925 void GL_APIENTRY glPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values) in glPixelMapusv() argument
927 return gl::PixelMapusv(map, mapsize, values); in glPixelMapusv()
/external/mesa3d/src/gallium/frontends/wgl/
Dgldrv.h285 …void (APIENTRY *glPixelMapfv )( GLenum map, GLint mapsize, const GLfloat *values …
286 …void (APIENTRY *glPixelMapuiv )( GLenum map, GLint mapsize, const GLuint *values );
287 …void (APIENTRY *glPixelMapusv )( GLenum map, GLint mapsize, const GLushort *values…
/external/mesa3d/include/GL/
Dgl.h1194 GLAPI void GLAPIENTRY glPixelMapfv( GLenum map, GLsizei mapsize,
1196 GLAPI void GLAPIENTRY glPixelMapuiv( GLenum map, GLsizei mapsize,
1198 GLAPI void GLAPIENTRY glPixelMapusv( GLenum map, GLsizei mapsize,
/external/mesa3d/src/glx/tests/
Dindirect_api.cpp244 void __indirect_glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values) { } in __indirect_glPixelMapfv() argument
245 void __indirect_glPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values) { } in __indirect_glPixelMapuiv() argument
246 void __indirect_glPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values) { } in __indirect_glPixelMapusv() argument

12