Home
last modified time | relevance | path

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

/external/elfutils/lib/
Dcrc32_file.c51 size_t mapsize = st.st_size; in crc32_file() local
52 void *mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, fd, 0); in crc32_file()
56 mapsize = ((mapsize / 2) + pagesize - 1) & -pagesize; in crc32_file()
57 while (mapsize >= pagesize in crc32_file()
58 && (mapped = mmap (NULL, mapsize, PROT_READ, MAP_PRIVATE, in crc32_file()
60 mapsize /= 2; in crc32_file()
66 if (st.st_size <= (off_t) mapsize) in crc32_file()
69 munmap (mapped, mapsize); in crc32_file()
72 crc = crc32 (crc, mapped, mapsize); in crc32_file()
73 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()
177 _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 );
Ddlist.c3284 save_PixelMapfv(GLenum map, GLint mapsize, const GLfloat *values) in save_PixelMapfv() argument
3292 n[2].i = mapsize; in save_PixelMapfv()
3293 save_pointer(&n[3], memdup(values, mapsize * sizeof(GLfloat))); in save_PixelMapfv()
3296 CALL_PixelMapfv(ctx->Exec, (map, mapsize, values)); in save_PixelMapfv()
3302 save_PixelMapuiv(GLenum map, GLint mapsize, const GLuint *values) in save_PixelMapuiv() argument
3307 for (i = 0; i < mapsize; i++) { in save_PixelMapuiv()
3312 for (i = 0; i < mapsize; i++) { in save_PixelMapuiv()
3316 save_PixelMapfv(map, mapsize, fvalues); in save_PixelMapuiv()
3321 save_PixelMapusv(GLenum map, GLint mapsize, const GLushort *values) in save_PixelMapusv() argument
3326 for (i = 0; i < mapsize; i++) { in save_PixelMapusv()
[all …]
/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.c471 size_t mapsize; local
507 mapsize = (size_t) (statbuf.st_size - sparseoffset);
508 mappages = roundup(mapsize, pagesize) / pagesize;
514 mapsize -= byteoffset;
523 procno, getpid(), seed, filesize, mapsize,
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,
552 if (randpage < mappages - 1 || !(mapsize % pagesize))
555 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.c794 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);
/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/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap04.c73 static long long mapsize; variable
133 mapsize = (long long)freepages *huge_pagesize * 1024; in main()
134 addr = mmap(NULL, mapsize, PROT_READ | PROT_WRITE, in main()
163 if (munmap(addr, mapsize) != 0) in main()
/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/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/aio01/
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/mesa3d/include/GL/
Dgl.h1199 GLAPI void GLAPIENTRY glPixelMapfv( GLenum map, GLsizei mapsize,
1201 GLAPI void GLAPIENTRY glPixelMapuiv( GLenum map, GLsizei mapsize,
1203 GLAPI void GLAPIENTRY glPixelMapusv( GLenum map, GLsizei mapsize,
/external/swiftshader/src/OpenGL/libGL/
DlibGL.cpp6918 void APIENTRY glPixelMapfv(GLenum map, GLsizei mapsize, const GLfloat *values) in glPixelMapfv() argument
6923 void APIENTRY glPixelMapuiv(GLenum map, GLsizei mapsize, const GLuint *values) in glPixelMapuiv() argument
6928 void APIENTRY glPixelMapusv(GLenum map, GLsizei mapsize, const GLushort *values) in glPixelMapusv() argument