Home
last modified time | relevance | path

Searched refs:csize (Results 1 – 25 of 40) 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.c81 static int csize; /* chunk size */ variable
139 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
256 #define CHUNK(i) ((i) * csize)
267 nchunks = max_size / csize; in dotest()
281 if ((buf = (calloc(csize, 1))) == 0) { in dotest()
286 if ((val_buf = (calloc(csize, 1))) == 0) { in dotest()
292 if ((zero_buf = (calloc(csize, 1))) == 0) { in dotest()
329 memset(val_buf, val, csize); in dotest()
330 memset(zero_buf, 0, csize); in dotest()
344 if ((xfr = read(fd, buf, csize)) < 0) { in dotest()
[all …]
Dftest05.c85 static int csize; /* chunk size */ variable
148 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
259 #define CHUNK(i) (((off64_t)i) * csize)
269 nchunks = max_size / csize; in dotest()
281 if ((buf = (calloc(csize, 1))) == NULL) { in dotest()
286 if ((val_buf = (calloc(csize, 1))) == NULL) { in dotest()
291 if ((zero_buf = (calloc(csize, 1))) == NULL) { in dotest()
326 memset(val_buf, val, csize); in dotest()
327 memset(zero_buf, 0, csize); in dotest()
340 if ((xfr = read(fd, buf, csize)) < 0) { in dotest()
[all …]
Dftest03.c87 static int csize; /* chunk size */ variable
162 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
281 #define CHUNK(i) ((i) * csize)
300 nchunks = max_size / csize; in dotest()
312 r_ioveclen = w_ioveclen = csize / MAXIOVCNT; in dotest()
425 if (xfr != csize) { in dotest()
429 me, xfr, csize); in dotest()
462 if (xfr != csize) { in dotest()
466 me, xfr, csize); in dotest()
508 writev(fd, &val_iovec[0], MAXIOVCNT)) < csize) { in dotest()
[all …]
Dftest07.c93 static int csize; /* chunk size */ variable
166 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
279 return (long long unsigned int) i * csize; in CHUNK()
300 nchunks = max_size / csize; in dotest()
312 r_ioveclen = w_ioveclen = csize / MAXIOVCNT; in dotest()
419 if (xfr != csize) { in dotest()
423 me, xfr, csize); in dotest()
456 if (xfr != csize) { in dotest()
460 me, xfr, csize); in dotest()
502 writev(fd, &val_iovec[0], MAXIOVCNT)) < csize) { in dotest()
[all …]
Dftest04.c71 static int csize; /* chunk size */ variable
135 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in setup()
218 #define CHUNK(i) (((i) * testers + me) * csize)
237 nchunks = max_size / (testers * csize); in dotest()
246 r_ioveclen = w_ioveclen = csize / MAXIOVCNT; in dotest()
350 if (xfr != csize) { in dotest()
354 me, xfr, csize); in dotest()
378 if (xfr != csize) { in dotest()
382 me, xfr, csize); in dotest()
415 writev(fd, &val_iovec[0], MAXIOVCNT)) < csize) { in dotest()
[all …]
Dftest08.c79 static int csize; /* chunk size */ variable
141 csize = K_2; /* should run with 1, 2, and 4 K sizes */ in init()
225 #define CHUNK(i) ((((off64_t)i) * testers + me) * csize)
244 nchunks = max_size / (testers * csize); in dotest()
252 r_ioveclen = w_ioveclen = csize / MAXIOVCNT; in dotest()
357 if (xfr != csize) { in dotest()
361 me, xfr, csize); in dotest()
387 if (xfr != csize) { in dotest()
391 me, xfr, csize); in dotest()
426 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/mesa/drivers/dri/i965/
Dbrw_vec4_live_variables.h89 const unsigned csize = DIV_ROUND_UP(type_sz(reg.type), 4); variable
92 (BRW_GET_SWZ(reg.swizzle, c) + k / csize * 4) * csize + k % csize;
103 const unsigned csize = DIV_ROUND_UP(type_sz(reg.type), 4); variable
106 (c + k / csize * 4) * csize + k % csize;
Dbrw_urb.c109 brw->urb.csize <= brw->urb.size; in check_urb_layout()
117 GLuint csize = brw->curbe.total_size; in recalculate_urb_fence() local
121 if (csize < limits[CS].min_entry_size) in recalculate_urb_fence()
122 csize = limits[CS].min_entry_size; in recalculate_urb_fence()
132 brw->urb.csize < csize || in recalculate_urb_fence()
135 brw->urb.csize > csize))) { in recalculate_urb_fence()
138 brw->urb.csize = csize; in recalculate_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/bison/lib/
Dabitset.c209 bitset_windex size = src->b.csize; in abitset_list()
309 ABITSET_WORDS (dst)[dst->b.csize - 1] &= in abitset_unused_clear()
320 bytes = sizeof (bitset_word) * dst->b.csize; in abitset_ones()
333 bytes = sizeof (bitset_word) * dst->b.csize; in abitset_zero()
345 for (i = 0; i < dst->b.csize; i++) in abitset_empty_p()
358 bitset_windex size = dst->b.csize; in abitset_copy1()
372 bitset_windex size = dst->b.csize; in abitset_not()
386 bitset_windex size = dst->b.csize; in abitset_equal_p()
401 bitset_windex size = dst->b.csize; in abitset_subset_p()
416 bitset_windex size = dst->b.csize; in abitset_disjoint_p()
[all …]
Dlbitset.c199 bset->b.csize = 0; in lbitset_elt_unlink()
230 bset->b.csize = 0; in lbitset_prune()
263 if (bset->b.csize) in lbitset_elt_link()
313 bset->b.csize = LBITSET_ELT_WORDS; in lbitset_elt_link()
325 if (bset->b.csize) in lbitset_elt_find()
329 if ((windex - bset->b.cindex) < bset->b.csize) in lbitset_elt_find()
358 bset->b.csize = LBITSET_ELT_WORDS; in lbitset_elt_find()
479 dst->b.csize = LBITSET_ELT_WORDS; in lbitset_copy()
1055 dst->b.csize = 0; in lbitset_op3_cmp()
Dbitset.h141 if (offset < bset->b.csize) in bitset_set()
155 if (offset < bset->b.csize) in bitset_reset()
169 if (offset < bset->b.csize) in bitset_test()
Dbitset_stats.c321 if (offset < bset->b.csize) in bitset_stats_set()
340 if (offset < bset->b.csize) in bitset_stats_reset()
367 if (offset < bset->b.csize) in bitset_stats_test()
686 bset->b.csize = 0; in bitset_stats_init()
/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.c528 unsigned i, ncopy, csize; in r600_dma_copy_buffer() local
543 csize = size < R600_DMA_COPY_MAX_SIZE_DW ? size : R600_DMA_COPY_MAX_SIZE_DW; in r600_dma_copy_buffer()
549 radeon_emit(cs, DMA_PACKET(DMA_PACKET_COPY, 0, 0, csize)); in r600_dma_copy_buffer()
554 dst_offset += csize << 2; in r600_dma_copy_buffer()
555 src_offset += csize << 2; in r600_dma_copy_buffer()
556 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/libedit/src/
Dchartype.c53 if (mincsize > conv->csize) { in ct_conv_buff_resize()
54 conv->csize = mincsize; in ct_conv_buff_resize()
55 p = el_realloc(conv->cbuff, conv->csize * sizeof(*conv->cbuff)); in ct_conv_buff_resize()
57 conv->csize = 0; in ct_conv_buff_resize()
92 used = (ssize_t)(conv->csize - (size_t)(dst - conv->cbuff)); in ct_encode_string()
95 ct_conv_buff_resize(conv, conv->csize + CT_BUFSIZ, in ct_encode_string()
/external/mesa3d/src/gallium/drivers/radeonsi/
Dcik_sdma.c39 unsigned i, ncopy, csize; in cik_sdma_copy_buffer() local
56 csize = MIN2(size, CIK_SDMA_COPY_MAX_SIZE); in cik_sdma_copy_buffer()
60 radeon_emit(cs, csize); in cik_sdma_copy_buffer()
66 dst_offset += csize; in cik_sdma_copy_buffer()
67 src_offset += csize; in cik_sdma_copy_buffer()
68 size -= csize; in cik_sdma_copy_buffer()
80 unsigned i, ncopy, csize; in cik_sdma_clear_buffer() local
100 csize = MIN2(size, CIK_SDMA_COPY_MAX_SIZE); in cik_sdma_clear_buffer()
106 radeon_emit(cs, csize); in cik_sdma_clear_buffer()
107 offset += csize; in cik_sdma_clear_buffer()
[all …]
Dsi_dma.c89 unsigned i, ncopy, csize; in si_dma_clear_buffer() local
109 csize = MIN2(size, SI_DMA_COPY_MAX_DWORD_ALIGNED_SIZE); in si_dma_clear_buffer()
111 csize / 4)); in si_dma_clear_buffer()
115 offset += csize; in si_dma_clear_buffer()
116 size -= csize; in si_dma_clear_buffer()
/external/icu/icu4c/source/common/
Dlocid.cpp298 int32_t csize = 0; in Locale() local
320 csize = (int32_t)uprv_strlen(newCountry); in Locale()
321 if ( csize < 0 || csize > ULOC_STRING_LIMIT ) { // int32 wrap in Locale()
325 size += csize; in Locale()
359 else if ( csize > 0 ) in Locale()
379 if ( ( vsize != 0 ) || (csize != 0) ) // at least: __v in Locale()
384 if ( csize != 0 ) in Locale()

12