Home
last modified time | relevance | path

Searched refs:csize (Results 1 – 25 of 73) 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 …]
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 …]
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 …]
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/src/malloc/
Dmalloc.c113 c->csize & 15,
160 w->csize = 0 | C_INUSE; in expand_heap()
165 w->csize = n | C_INUSE; in expand_heap()
194 c->csize |= C_INUSE; in unbin()
202 while (!((k=c->csize) & C_INUSE)) { in alloc_fwd()
205 if (c->csize == k) { in alloc_fwd()
260 split->csize = n1-n; in pretrim()
262 self->csize = n | C_INUSE; in pretrim()
277 split->csize = n1-n | C_INUSE; in trim()
279 self->csize = n | C_INUSE; in trim()
[all …]
/third_party/musl/src/malloc/
Dmalloc.c113 c->csize & 15,
160 w->csize = 0 | C_INUSE; in expand_heap()
165 w->csize = n | C_INUSE; in expand_heap()
194 c->csize |= C_INUSE; in unbin()
202 while (!((k=c->csize) & C_INUSE)) { in alloc_fwd()
205 if (c->csize == k) { in alloc_fwd()
260 split->csize = n1-n; in pretrim()
262 self->csize = n | C_INUSE; in pretrim()
277 split->csize = n1-n | C_INUSE; in trim()
279 self->csize = n | C_INUSE; in trim()
[all …]
Dmemalign.c36 n->csize = c->csize - (new-mem); in __memalign()
47 n->psize = c->csize = C_INUSE | (new-mem); in __memalign()
48 n->csize = t->psize -= new-mem; in __memalign()
/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/musl/porting/liteos_a/user_debug/src/malloc/
Dmalloc.c115 c->csize & 15,
164 w->csize = 0 | C_INUSE; in expand_heap()
169 w->csize = n | C_INUSE; in expand_heap()
200 c->csize |= C_INUSE; in unbin()
208 while (!((k=c->csize) & C_INUSE)) { in alloc_fwd()
211 if (c->csize == k) { in alloc_fwd()
266 split->csize = n1-n; in pretrim()
269 self->csize = n | C_INUSE; in pretrim()
286 split->csize = n1-n | C_INUSE; in trim()
289 self->csize = n | C_INUSE; in trim()
[all …]
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/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()
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_urb.c109 brw->urb.csize <= brw->urb.size; in check_urb_layout()
116 brw_calculate_urb_fence(struct brw_context *brw, unsigned csize, in brw_calculate_urb_fence() argument
121 if (csize < limits[CS].min_entry_size) in brw_calculate_urb_fence()
122 csize = limits[CS].min_entry_size; in brw_calculate_urb_fence()
132 brw->urb.csize < csize || in brw_calculate_urb_fence()
135 brw->urb.csize > csize))) { in brw_calculate_urb_fence()
138 brw->urb.csize = csize; in brw_calculate_urb_fence()
/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/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/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/musl/porting/linux/user/src/malloc/
Dmalloc.c330 return (((size_t)c) ^ c->csize ^ c->usize ^ (c->state & M_STATE_MASK)) << M_CHECKSUM_SHIFT; in chunk_checksum_calculate()
381 size_t csize = CHUNK_SIZE(c); in chunk_poison_check() local
382 char poison = get_poison(bin_index(csize)); in chunk_poison_check()
383 size_t padding_size = csize - OVERHEAD - c->usize; in chunk_poison_check()
402 c->csize & 15,
456 w->csize = 0 | C_INUSE; in expand_heap()
461 w->csize = n | C_INUSE; in expand_heap()
520 c->csize |= C_INUSE; in unbin()
528 while (!((k=c->csize) & C_INUSE)) { in alloc_fwd()
531 if (c->csize == k) { in alloc_fwd()
[all …]
Dmemalign.c51 n->csize = c->csize - (new-mem); in __memalign()
67 n->psize = c->csize = C_INUSE | (new-mem); in __memalign()
68 n->csize = t->psize -= new-mem; in __memalign()
/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/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/src/internal/
Dmalloc_impl.h13 size_t psize, csize; member
30 #define CHUNK_SIZE(c) ((c)->csize & -2)
40 #define IS_MMAPPED(c) !((c)->csize & (C_INUSE))

123