Home
last modified time | relevance | path

Searched refs:csize (Results 1 – 25 of 67) sorted by relevance

123

/third_party/ltp/testcases/kernel/mem/vmtests/
Dstack_space.c61 int csize; /* chunk size */ variable
98 csize = K_1;
109 if (sscanf(argv[i++], "%d", &csize) != 1)
111 if (csize > MAXSIZE) {
203 #define CHUNK(i) ((i) * csize)
217 nchunks = MAXSIZE / csize; in dotest()
219 val_buf = (char *)(malloc(csize)); in dotest()
220 zero_buf = (char *)(malloc(csize)); in dotest()
248 bfill(zero_buf, 0, csize); in dotest()
254 bfill(val_buf, val, csize); in dotest()
[all …]
Ddata_space.c70 int csize; /* chunk size */ variable
114 csize = K_4;
121 if (sscanf(argv[i++], "%d", &csize) != 1)
216 #define CHUNK(i) ((i) * csize)
242 nchunks = max_size / csize;
246 val_buf = (char *)(malloc(csize));
249 zero_buf = (char *)(malloc(csize));
280 bfill(zero_buf, 0, csize);
286 bfill(val_buf, val, csize);
299 if (memcmp(buf, zero_buf, csize)) {
[all …]
/third_party/ltp/testcases/kernel/fs/ftest/
Dftest01.c83 static int csize; /* chunk size */ variable
140 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
253 #define CHUNK(i) ((i) * csize)
264 nchunks = max_size / csize; in dotest()
278 if ((buf = (calloc(csize, 1))) == 0) { in dotest()
283 if ((val_buf = (calloc(csize, 1))) == 0) { in dotest()
289 if ((zero_buf = (calloc(csize, 1))) == 0) { in dotest()
326 memset(val_buf, val, csize); in dotest()
327 memset(zero_buf, 0, csize); in dotest()
341 if ((xfr = read(fd, buf, csize)) < 0) { in dotest()
[all …]
Dftest05.c87 static int csize; /* chunk size */ variable
148 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
254 #define CHUNK(i) (((off64_t)i) * csize)
264 nchunks = max_size / csize; in dotest()
276 if ((buf = (calloc(csize, 1))) == NULL) { in dotest()
281 if ((val_buf = (calloc(csize, 1))) == NULL) { in dotest()
286 if ((zero_buf = (calloc(csize, 1))) == NULL) { in dotest()
321 memset(val_buf, val, csize); in dotest()
322 memset(zero_buf, 0, csize); in dotest()
335 if ((xfr = read(fd, buf, csize)) < 0) { in dotest()
[all …]
Dftest07.c94 static int csize; /* chunk size */ variable
164 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
273 return (long long unsigned int) i * csize; in CHUNK()
294 nchunks = max_size / csize; in dotest()
306 r_ioveclen = w_ioveclen = csize / MAXIOVCNT; in dotest()
413 if (xfr != csize) { in dotest()
417 me, xfr, csize); in dotest()
450 if (xfr != csize) { in dotest()
454 me, xfr, csize); in dotest()
496 writev(fd, &val_iovec[0], MAXIOVCNT)) < csize) { in dotest()
[all …]
Dftest03.c88 static int csize; /* chunk size */ variable
160 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
274 #define CHUNK(i) ((i) * csize)
293 nchunks = max_size / csize; in dotest()
305 r_ioveclen = w_ioveclen = csize / MAXIOVCNT; in dotest()
418 if (xfr != csize) { in dotest()
422 me, xfr, csize); in dotest()
455 if (xfr != csize) { in dotest()
459 me, xfr, csize); in dotest()
501 writev(fd, &val_iovec[0], MAXIOVCNT)) < csize) { in dotest()
[all …]
Dftest08.c80 static int csize; /* chunk size */ variable
137 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in init()
221 #define CHUNK(i) ((((off64_t)i) * testers + me) * csize)
240 nchunks = max_size / (testers * csize); in dotest()
248 r_ioveclen = w_ioveclen = csize / MAXIOVCNT; in dotest()
353 if (xfr != csize) { in dotest()
357 me, xfr, csize); in dotest()
383 if (xfr != csize) { in dotest()
387 me, xfr, csize); in dotest()
422 writev(fd, &val_iovec[0], MAXIOVCNT)) < csize) { in dotest()
[all …]
Dftest04.c72 static int csize; /* chunk size */ variable
132 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
208 #define CHUNK(i) (((i) * testers + me) * csize)
227 nchunks = max_size / (testers * csize); in dotest()
236 r_ioveclen = w_ioveclen = csize / MAXIOVCNT; in dotest()
340 if (xfr != csize) { in dotest()
344 me, xfr, csize); in dotest()
368 if (xfr != csize) { in dotest()
372 me, xfr, csize); in dotest()
405 writev(fd, &val_iovec[0], MAXIOVCNT)) < csize) { in dotest()
[all …]
/third_party/mesa3d/src/intel/compiler/
Dbrw_vec4_live_variables.h118 const unsigned csize = DIV_ROUND_UP(type_sz(reg.type), 4); variable
121 (BRW_GET_SWZ(reg.swizzle, c) + k / csize * 4) * csize + k % csize;
132 const unsigned csize = DIV_ROUND_UP(type_sz(reg.type), 4); variable
135 (c + k / csize * 4) * csize + k % csize;
/third_party/musl/porting/liteos_a/user_debug/src/malloc/oldmalloc/
Dmalloc.c121 c->csize & 15,
228 w->csize = 0 | C_INUSE; in expand_heap()
233 w->csize = n | C_INUSE; in expand_heap()
263 c->csize |= C_INUSE; in unbin()
288 split->csize = n1-n; in trim()
291 self->csize = n | C_INUSE; in trim()
328 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
331 c->csize -= PAGE_SIZE << 1; in malloc()
422 self->csize = newlen - extra; in realloc()
429 if (next->psize != self->csize) a_crash(); in realloc()
[all …]
Daligned_alloc.c38 n->csize = c->csize - (new-mem); in aligned_alloc()
49 n->psize = c->csize = C_INUSE | (new-mem); in aligned_alloc()
50 n->csize = t->psize -= new-mem; in aligned_alloc()
/third_party/musl/porting/liteos_a/user/src/malloc/oldmalloc/
Dmalloc.c119 c->csize & 15,
224 w->csize = 0 | C_INUSE; in expand_heap()
229 w->csize = n | C_INUSE; in expand_heap()
256 c->csize |= C_INUSE; in unbin()
281 split->csize = n1-n; in trim()
283 self->csize = n | C_INUSE; in trim()
307 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
384 self->csize = newlen - extra; in realloc()
391 if (next->psize != self->csize) a_crash(); in realloc()
399 self->csize = split->psize = n | C_INUSE; in realloc()
[all …]
/third_party/musl/src/malloc/oldmalloc/
Dmalloc.c119 c->csize & 15,
224 w->csize = 0 | C_INUSE; in expand_heap()
229 w->csize = n | C_INUSE; in expand_heap()
256 c->csize |= C_INUSE; in unbin()
281 split->csize = n1-n; in trim()
283 self->csize = n | C_INUSE; in trim()
307 c->csize = len - (SIZE_ALIGN - OVERHEAD); in malloc()
384 self->csize = newlen - extra; in realloc()
391 if (next->psize != self->csize) a_crash(); in realloc()
399 self->csize = split->psize = n | C_INUSE; in realloc()
[all …]
Daligned_alloc.c37 n->csize = c->csize - (new-mem); in aligned_alloc()
48 n->psize = c->csize = C_INUSE | (new-mem); in aligned_alloc()
49 n->csize = t->psize -= new-mem; in aligned_alloc()
Dmalloc_impl.h8 size_t psize, csize; member
25 #define CHUNK_SIZE(c) ((c)->csize & -2)
35 #define IS_MMAPPED(c) !((c)->csize & (C_INUSE))
/third_party/ffmpeg/libavcodec/x86/
Djpeg2000dsp_init.c27 void ff_ict_float_sse(void *src0, void *src1, void *src2, int csize);
28 void ff_ict_float_avx(void *src0, void *src1, void *src2, int csize);
29 void ff_ict_float_fma3(void *src0, void *src1, void *src2, int csize);
30 void ff_ict_float_fma4(void *src0, void *src1, void *src2, int csize);
31 void ff_rct_int_sse2 (void *src0, void *src1, void *src2, int csize);
32 void ff_rct_int_avx2 (void *src0, void *src1, void *src2, int csize);
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cTextureGatherTests.cpp438 const GLint csize = base_level ? 64 : 32; in CreateTexture2DRgb() local
439 GLint size = csize; in CreateTexture2DRgb()
449 std::vector<Vec3> pixels(csize * csize, Vec3(1.0)); in CreateTexture2DRgb()
450 glTexSubImage2D(target, 0, 0, 0, csize, csize, format, tex_type, &pixels[0]); in CreateTexture2DRgb()
471 const GLint csize = base_level ? 64 : 32; in CreateTexture2DRg() local
472 GLint size = csize; in CreateTexture2DRg()
482 std::vector<Vec2> pixels(csize * csize, Vec2(1.0)); in CreateTexture2DRg()
483 glTexSubImage2D(target, 0, 0, 0, csize, csize, format, tex_type, &pixels[0]); in CreateTexture2DRg()
504 const GLint csize = base_level ? 64 : 32; in CreateTexture2DR() local
505 GLint size = csize; in CreateTexture2DR()
[all …]
/third_party/ffmpeg/libavcodec/
Djpeg2000dsp.c43 static void ict_float(void *_src0, void *_src1, void *_src2, int csize) in ict_float() argument
49 for (i = 0; i < csize; i++) { in ict_float()
60 static void ict_int(void *_src0, void *_src1, void *_src2, int csize) in ict_int() argument
66 for (i = 0; i < csize; i++) { in ict_int()
77 static void rct_int(void *_src0, void *_src1, void *_src2, int csize) in rct_int() argument
83 for (i = 0; i < csize; i++) { in rct_int()
Dtarga.c118 int first_clr, colors, csize; in decode_frame() local
129 csize = bytestream2_get_byte(&s->gb); in decode_frame()
137 if (!pal && (first_clr || colors || csize)) { in decode_frame()
140 first_clr = colors = csize = 0; in decode_frame()
197 switch (csize) { in decode_frame()
203 av_log(avctx, AV_LOG_ERROR, "Palette entry size %i bits is not supported\n", csize); in decode_frame()
/third_party/vk-gl-cts/external/openglcts/modules/gles31/
Des31cTextureGatherTests.cpp371 const GLint csize = base_level ? 64 : 32; in CreateTexture2DRgb() local
372 GLint size = csize; in CreateTexture2DRgb()
408 const GLint csize = base_level ? 64 : 32; in CreateTexture2DRg() local
409 GLint size = csize; in CreateTexture2DRg()
446 const GLint csize = base_level ? 64 : 32; in CreateTexture2DR() local
447 GLint size = csize; in CreateTexture2DR()
481 const GLint csize = 32; in CreateTexture2DInt() local
482 GLint size = csize; in CreateTexture2DInt()
492 std::vector<IVec4> pixels(csize * csize, IVec4(999)); in CreateTexture2DInt()
493 glTexSubImage2D(target, 0, 0, 0, csize, csize, GL_RGBA_INTEGER, tex_type, &pixels[0]); in CreateTexture2DInt()
[all …]
/third_party/ntfs-3g/ntfsprogs/
Dntfsclone.c735 static void read_rescue(void *fd, char *buff, u32 csize, u32 bytes_per_sector, argument
740 if (read_all(fd, buff, csize) == -1) {
747 rescue_pos = (off_t)(rescue_lcn * csize);
748 for (i = 0; i < csize; i += bytes_per_sector)
762 s32 csize = le32_to_cpu(image_hdr.cluster_size); local
771 csize = vol->cluster_size;
776 rescue_pos = (off_t)(rescue_lcn * csize);
777 buff = (char*)ntfs_malloc(csize);
782 backup_bootsector = (lcn + 1)*csize >= full_device_size;
784 csize = full_device_size - lcn*csize;
[all …]
/third_party/mesa3d/src/gallium/drivers/r600/
Devergreen_hw_context.c39 unsigned i, ncopy, csize, sub_cmd, shift; in evergreen_dma_copy_buffer() local
65 csize = size < EG_DMA_COPY_MAX_SIZE ? size : EG_DMA_COPY_MAX_SIZE; in evergreen_dma_copy_buffer()
69 radeon_emit(cs, DMA_PACKET(DMA_PACKET_COPY, sub_cmd, csize)); in evergreen_dma_copy_buffer()
74 dst_offset += csize << shift; in evergreen_dma_copy_buffer()
75 src_offset += csize << shift; in evergreen_dma_copy_buffer()
76 size -= csize; in evergreen_dma_copy_buffer()
/third_party/lz4/tests/
Dtest-lz4-speed.py129 csize = []
137 csize = []
141 csize.append(int(words[1]))
144 return commit, csize, cspeed, dspeed
167 commit, csize, cspeed, dspeed = get_last_results(resultsFileName)
170 …[i], dspeed[i], last_dspeed[i], dspeed[i]/last_dspeed[i], float(last_csize[i])/csize[i], fileName))
175 if (float(last_csize[i])/csize[i] < args.ratioLimit):
176 …t_cSize=%d diff=%.4f %s\n" % (executableName, i+1, csize[i], last_csize[i], float(last_csize[i])/c…
194 last_commit, csize, cspeed, dspeed = get_last_results(resultsFileName)
196 …xecutableName, md5sum, compilerVersion, resultsFileName, filePath, fileName, csize, cspeed, dspeed)
[all …]
/third_party/musl/porting/liteos_a/user_debug/src/malloc/
Dmemalign.c60 n->csize = c->csize - (new-mem); in __memalign()
75 n->psize = c->csize = C_INUSE | (new-mem); in __memalign()
76 n->csize = t->psize -= new-mem; in __memalign()
/third_party/musl/src/network/
Drecvmmsg.c29 socklen_t csize[vlen]; in recvmmsg() local
30 for (int i=0; i<vlen; i++) csize[i] = msgvec[i].msg_hdr.msg_controllen; in recvmmsg()
34 __convert_scm_timestamps(&msgvec[i].msg_hdr, csize[i]); in recvmmsg()

123