Home
last modified time | relevance | path

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

12

/external/jemalloc/src/
Dbase.c55 size_t csize, nsize; in base_chunk_alloc() local
63 csize = CHUNK_CEILING(minsize + nsize); in base_chunk_alloc()
64 addr = chunk_alloc_base(csize); in base_chunk_alloc()
70 base_mapped += csize; in base_chunk_alloc()
74 csize -= nsize; in base_chunk_alloc()
80 base_extent_node_init(node, addr, csize); in base_chunk_alloc()
93 size_t csize, usize; in base_alloc() local
101 csize = CACHELINE_CEILING(size); in base_alloc()
103 usize = s2u(csize); in base_alloc()
112 node = base_chunk_alloc(tsdn, csize); in base_alloc()
[all …]
/external/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 …]
/external/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()
254 #define CHUNK(i) ((i) * csize)
265 nchunks = max_size / csize; in dotest()
279 if ((buf = (calloc(csize, 1))) == 0) { in dotest()
284 if ((val_buf = (calloc(csize, 1))) == 0) { in dotest()
290 if ((zero_buf = (calloc(csize, 1))) == 0) { in dotest()
327 memset(val_buf, val, csize); in dotest()
328 memset(zero_buf, 0, csize); in dotest()
342 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()
255 #define CHUNK(i) (((off64_t)i) * csize)
265 nchunks = max_size / csize; in dotest()
277 if ((buf = (calloc(csize, 1))) == NULL) { in dotest()
282 if ((val_buf = (calloc(csize, 1))) == NULL) { in dotest()
287 if ((zero_buf = (calloc(csize, 1))) == NULL) { in dotest()
322 memset(val_buf, val, csize); in dotest()
323 memset(zero_buf, 0, csize); in dotest()
336 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 …]
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 …]
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 …]
Dlibftest.c100 void ft_dumpbuf(char *buf, int csize) in ft_dumpbuf() argument
110 for (i = 0; i < csize; i++) { in ft_dumpbuf()
Dlibftest.h48 void ft_dumpbuf(char *buf, int csize);
/external/mesa3d/src/intel/compiler/
Dbrw_vec4_live_variables.h92 const unsigned csize = DIV_ROUND_UP(type_sz(reg.type), 4); variable
95 (BRW_GET_SWZ(reg.swizzle, c) + k / csize * 4) * csize + k % csize;
106 const unsigned csize = DIV_ROUND_UP(type_sz(reg.type), 4); variable
109 (c + k / csize * 4) * csize + k % csize;
/external/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()
Dbrw_curbe.c171 if (brw->urb.csize == 0) { in brw_upload_cs_urb_state()
176 OUT_BATCH((brw->urb.csize - 1) << 4 | brw->urb.nr_cs_entries); in brw_upload_cs_urb_state()
/external/deqp/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 …]
/external/deqp/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 …]
/external/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()
71 radeon_emit(cs, DMA_PACKET(DMA_PACKET_COPY, sub_cmd, csize)); in evergreen_dma_copy_buffer()
76 dst_offset += csize << shift; in evergreen_dma_copy_buffer()
77 src_offset += csize << shift; in evergreen_dma_copy_buffer()
78 size -= csize; in evergreen_dma_copy_buffer()
Dr600_hw_context.c576 unsigned i, ncopy, csize; in r600_dma_copy_buffer() local
591 csize = size < R600_DMA_COPY_MAX_SIZE_DW ? size : R600_DMA_COPY_MAX_SIZE_DW; in r600_dma_copy_buffer()
597 radeon_emit(cs, DMA_PACKET(DMA_PACKET_COPY, 0, 0, csize)); in r600_dma_copy_buffer()
602 dst_offset += csize << 2; in r600_dma_copy_buffer()
603 src_offset += csize << 2; in r600_dma_copy_buffer()
604 size -= csize; in r600_dma_copy_buffer()
/external/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 …]
/external/mesa3d/src/gallium/drivers/radeonsi/
Dcik_sdma.c36 unsigned i, ncopy, csize; in cik_sdma_copy_buffer() local
53 csize = MIN2(size, CIK_SDMA_COPY_MAX_SIZE); in cik_sdma_copy_buffer()
57 radeon_emit(cs, ctx->b.chip_class >= GFX9 ? csize - 1 : csize); in cik_sdma_copy_buffer()
63 dst_offset += csize; in cik_sdma_copy_buffer()
64 src_offset += csize; in cik_sdma_copy_buffer()
65 size -= csize; in cik_sdma_copy_buffer()
77 unsigned i, ncopy, csize; in cik_sdma_clear_buffer() local
98 csize = MIN2(size, CIK_SDMA_COPY_MAX_SIZE); in cik_sdma_clear_buffer()
104 radeon_emit(cs, sctx->b.chip_class >= GFX9 ? csize - 1 : csize); in cik_sdma_clear_buffer()
105 offset += csize; in cik_sdma_clear_buffer()
[all …]
Dsi_dma.c86 unsigned i, ncopy, csize; in si_dma_clear_buffer() local
107 csize = MIN2(size, SI_DMA_COPY_MAX_DWORD_ALIGNED_SIZE); in si_dma_clear_buffer()
109 csize / 4)); in si_dma_clear_buffer()
113 offset += csize; in si_dma_clear_buffer()
114 size -= csize; in si_dma_clear_buffer()
/external/u-boot/fs/jffs2/
Djffs2_nand_1pass.c148 new->csize = node->csize; in insert_inode()
306 len += jNode->csize; in jffs2_1pass_read_inode()
336 rtime_decompress(src, dst, inode->csize, inode->dsize); in jffs2_1pass_read_inode()
341 dynrubin_decompress(src, dst, inode->csize, inode->dsize); in jffs2_1pass_read_inode()
344 ret = zlib_decompress(src, dst, inode->csize, inode->dsize); in jffs2_1pass_read_inode()
348 ret = lzo_decompress(src, dst, inode->csize, inode->dsize); in jffs2_1pass_read_inode()
594 size_t len = jNode->csize; in jffs2_1pass_resolve_inode()
598 tmp[jNode->csize] = '\0'; in jffs2_1pass_resolve_inode()
722 putLabeledWord("\tbuild_list: csize = ", jNode->csize); in dump_fragments()
/external/tensorflow/tensorflow/core/kernels/
Dpooling_ops_3d.cc238 int cindex, csize; in launch() local
241 padding[2], &cindex, &csize)); in launch()
244 {cindex, csize}, in launch()
258 Eigen::array<int, 5> bcast = {1, csize, rsize, psize, 1}; in launch()
263 bcast.set(1, csize); in launch()
413 int cindex, csize; in launch() local
416 padding[2], &cindex, &csize)); in launch()
419 {cindex, csize}, in launch()
431 Eigen::array<int, 5> bcast = {1, csize, rsize, psize, 1}; in launch()
436 bcast.set(1, csize); in launch()
[all …]
/external/icu/icu4c/source/common/
Dlocid.cpp304 int32_t csize = 0; in Locale() local
326 csize = (int32_t)uprv_strlen(newCountry); in Locale()
327 if ( csize < 0 || csize > ULOC_STRING_LIMIT ) { // int32 wrap in Locale()
331 size += csize; in Locale()
365 else if ( csize > 0 ) in Locale()
385 if ( ( vsize != 0 ) || (csize != 0) ) // at least: __v in Locale()
390 if ( csize != 0 ) in Locale()
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_constant_folding_test.cc125 for (auto csize : test_config.concat_sizes) { in TEST_F() local
126 dimensions[test_config.concat_dimension] = csize; in TEST_F()
127 concat_size += csize; in TEST_F()

12