Home
last modified time | relevance | path

Searched refs:CHUNK_SIZE (Results 1 – 25 of 48) sorted by relevance

12

/third_party/musl/porting/liteos_a/user_debug/src/malloc/
Dmalloc.c112 for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c))
114 c, CHUNK_SIZE(c), bin_index(CHUNK_SIZE(c)),
251 n1 = CHUNK_SIZE(self); in pretrim()
254 n1 = CHUNK_SIZE(self); in pretrim()
277 size_t n1 = CHUNK_SIZE(self); in trim()
324 insert_node(CHUNK_TO_MEM(c), CHUNK_SIZE(c)); in malloc()
340 x->csize + CHUNK_SIZE(c); in malloc()
360 insert_node(CHUNK_TO_MEM(c), CHUNK_SIZE(c)); in malloc()
413 n1 = n0 = CHUNK_SIZE(self); in realloc()
455 n1 += CHUNK_SIZE(next); in realloc()
[all …]
Dmemalign.c62 insert_node(CHUNK_TO_MEM(n), CHUNK_SIZE(n)); in __memalign()
81 insert_node(CHUNK_TO_MEM(n), CHUNK_SIZE(n)); in __memalign()
Dmemory_check.c402 checksum = CHUNK_SIZE(self) ^ CHUNK_PSIZE(self) ^ NODE_MAGIC; in is_invalid()
413 cur->checksum = CHUNK_SIZE(cur) ^ CHUNK_PSIZE(cur) ^ NODE_MAGIC; in calculate_checksum()
417 next->checksum = CHUNK_SIZE(next) ^ CHUNK_PSIZE(next) ^ NODE_MAGIC; in calculate_checksum()
447 } while (CHUNK_SIZE(next)); in check_heap_integrity()
464 if ((CHUNK_SIZE(next)) && is_invalid(next)) { in check_chunk_integrity()
796 memset(CHUNK_TO_MEM(self), FREE_MAGIC, CHUNK_SIZE(self) - OVERHEAD); in insert_free_tail()
798 g_recycle_size += CHUNK_SIZE(self); in insert_free_tail()
814 g_recycle_size -= CHUNK_SIZE(cur); in get_free_head()
/third_party/iowow/src/utils/
Diwsha2.c5 #define CHUNK_SIZE 64 macro
53 static int calc_chunk(uint8_t chunk[CHUNK_SIZE], struct buffer_state *state) { in calc_chunk() argument
60 if (state->len >= CHUNK_SIZE) { in calc_chunk()
61 memcpy(chunk, state->p, CHUNK_SIZE); in calc_chunk()
62 state->p += CHUNK_SIZE; in calc_chunk()
63 state->len -= CHUNK_SIZE; in calc_chunk()
69 space_in_chunk = CHUNK_SIZE - state->len; in calc_chunk()
/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev03.c30 #define CHUNK_SIZE 256 macro
31 #define BUF_SIZE (2 * CHUNK_SIZE)
71 iov[1].iov_len = CHUNK_SIZE; in thread_run()
72 iov[3].iov_base = map_ptr + CHUNK_SIZE; in thread_run()
73 iov[3].iov_len = CHUNK_SIZE; in thread_run()
/third_party/musl/porting/liteos_a/user/src/malloc/
Dmalloc.c110 for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c))
112 c, CHUNK_SIZE(c), bin_index(CHUNK_SIZE(c)),
245 n1 = CHUNK_SIZE(self); in pretrim()
248 n1 = CHUNK_SIZE(self); in pretrim()
268 size_t n1 = CHUNK_SIZE(self); in trim()
312 x->csize + CHUNK_SIZE(c); in malloc()
380 n1 = n0 = CHUNK_SIZE(self); in realloc()
412 n1 += CHUNK_SIZE(next); in realloc()
418 n1 += CHUNK_SIZE(self); in realloc()
447 final_size = new_size = CHUNK_SIZE(self); in __bin_chunk()
[all …]
/third_party/musl/src/malloc/
Dmalloc.c110 for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c))
112 c, CHUNK_SIZE(c), bin_index(CHUNK_SIZE(c)),
245 n1 = CHUNK_SIZE(self); in pretrim()
248 n1 = CHUNK_SIZE(self); in pretrim()
268 size_t n1 = CHUNK_SIZE(self); in trim()
315 x->csize + CHUNK_SIZE(c); in malloc()
383 n1 = n0 = CHUNK_SIZE(self); in realloc()
415 n1 += CHUNK_SIZE(next); in realloc()
421 n1 += CHUNK_SIZE(self); in realloc()
450 final_size = new_size = CHUNK_SIZE(self); in __bin_chunk()
[all …]
/third_party/libuv/test/
Dtest-tcp-writealot.c34 #define CHUNK_SIZE 10024 /* 10 kb */ macro
36 #define TOTAL_BYTES (WRITES * CHUNKS_PER_WRITE * CHUNK_SIZE)
108 bytes_sent_done += CHUNKS_PER_WRITE * CHUNK_SIZE; in write_cb()
129 send_bufs[j] = uv_buf_init(send_buffer + bytes_sent, CHUNK_SIZE); in connect_cb()
130 bytes_sent += CHUNK_SIZE; in connect_cb()
/third_party/flutter/skia/modules/canvaskit/htmlcanvas/
Dutil.js22 var CHUNK_SIZE = 0x8000; //arbitrary number
28 slice = bytes.slice(index, Math.min(index + CHUNK_SIZE, length));
30 index += CHUNK_SIZE;
/third_party/skia/modules/canvaskit/htmlcanvas/
Dutil.js22 var CHUNK_SIZE = 0x8000; //arbitrary number
28 slice = bytes.slice(index, Math.min(index + CHUNK_SIZE, length));
30 index += CHUNK_SIZE;
/third_party/musl/porting/linux/user/src/malloc/
Dmalloc.c218 malloc_iterate_visitor(CHUNK_TO_MEM(c), CHUNK_SIZE(c) - OVERHEAD, iterate_info); in malloc_iterate_occupied_bin()
373 size_t size = CHUNK_SIZE(c) - OVERHEAD - c->usize; in chunk_poison_set()
374 char val = get_poison(bin_index(CHUNK_SIZE(c))); in chunk_poison_set()
381 size_t csize = CHUNK_SIZE(c); in chunk_poison_check()
399 for (c = (void *)mal.heap; CHUNK_SIZE(c); c = NEXT_CHUNK(c))
401 c, CHUNK_SIZE(c), bin_index(CHUNK_SIZE(c)),
571 n1 = CHUNK_SIZE(self); in pretrim()
574 n1 = CHUNK_SIZE(self); in pretrim()
608 size_t n1 = CHUNK_SIZE(self); in trim()
688 x->csize + CHUNK_SIZE(c); in internal_malloc()
[all …]
/third_party/skia/third_party/externals/brotli/java/org/brotli/wrapper/enc/
DBrotliOutputStreamTest.java30 private static final int CHUNK_SIZE = 256; field in BrotliOutputStreamTest
81 if ((mode == TestMode.WRITE_CHUNKS) && (original.length <= CHUNK_SIZE)) { in run()
94 for (int offset = 0; offset < original.length; offset += CHUNK_SIZE) { in run()
95 encoder.write(original, offset, Math.min(CHUNK_SIZE, original.length - offset)); in run()
DBrotliEncoderChannelTest.java32 private static final int CHUNK_SIZE = 256; field in BrotliEncoderChannelTest
82 if ((mode == TestMode.WRITE_CHUNKS) && (original.length <= CHUNK_SIZE)) { in run()
97 int limit = Math.min(CHUNK_SIZE, src.remaining()); in run()
/third_party/ltp/testcases/kernel/controllers/memctl/
Drun_memctl_test.sh100 CHUNK_SIZE=6291456; # malloc n chunks of size m(6M)
104 MEM_TASK=`expr $CHUNK_SIZE \* $NUM_CHUNKS`; # memory allocated by a task
135 TEST_NUM=$TEST_NUM MYGROUP=$MYGROUP SCRIPT_PID=$SCRIPT_PID CHUNK_SIZE=$CHUNK_SIZE \
/third_party/skia/third_party/externals/brotli/python/tests/
Dcompressor_test.py18 CHUNK_SIZE = 2048 variable in _TestCompressor
47 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
58 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
Ddecompressor_test.py19 CHUNK_SIZE = 1 variable in TestDecompressor
37 read_chunk = functools.partial(in_file.read, self.CHUNK_SIZE)
/third_party/ffmpeg/libavformat/
Dty.c46 #define CHUNK_SIZE (128 * 1024) macro
98 uint8_t chunk[CHUNK_SIZE];
105 for (i = 0; i + 12 < p->buf_size; i += CHUNK_SIZE) { in ty_probe()
108 AV_RB32(p->buf + i + 8) == CHUNK_SIZE) { in ty_probe()
246 if (data_offset + hdrs[i].rec_size > CHUNK_SIZE) in analyze_chunk()
290 avio_read(pb, ty->chunk, CHUNK_SIZE); in ty_read_header()
347 read_size = avio_read(pb, ty->chunk, CHUNK_SIZE); in get_chunk()
376 if (num_recs * 16 >= CHUNK_SIZE - 4) in get_chunk()
677 if (ty->cur_chunk_pos + rec->rec_size > CHUNK_SIZE) in ty_read_packet()
Dact.c26 #define CHUNK_SIZE 512 macro
102 ctx->bytes_left_in_chunk=CHUNK_SIZE; in read_header()
192 ctx->bytes_left_in_chunk=CHUNK_SIZE; in read_packet()
/third_party/musl/src/internal/
Dmalloc_impl.h30 #define CHUNK_SIZE(c) ((c)->csize & -2) macro
33 #define NEXT_CHUNK(c) ((struct chunk *)((char *)(c) + CHUNK_SIZE(c)))
/third_party/skia/third_party/externals/brotli/research/
Ddeorummolae.cc10 #define CHUNK_SIZE 64 macro
17 #define CHUNK_MASK (CHUNK_SIZE - 1)
86 file_map->insert(file_map->end(), file.size() / CHUNK_SIZE, i); in buildFullText()
128 TextIdx f = file_map->at(pos / CHUNK_SIZE); in poisonData()
248 size_t f = file_map[sa[i] / CHUNK_SIZE]; in DM_generate()
/third_party/musl/porting/liteos_a/user_debug/src/internal/
Dmalloc_impl.h75 #define CHUNK_SIZE(c) ((c)->csize & -2) macro
78 #define NEXT_CHUNK(c) ((struct chunk *)((char *)(c) + CHUNK_SIZE(c)))
/third_party/quickjs/tests/
Dtest262.patch48 - const CHUNK_SIZE = 10000;
57 - if (length === CHUNK_SIZE) {
/third_party/musl/porting/linux/user/src/internal/
Dmalloc_impl.h103 #define CHUNK_SIZE(c) ((c)->csize & -2) macro
106 #define NEXT_CHUNK(c) ((struct chunk *)((char *)(c) + CHUNK_SIZE(c)))
/third_party/libsoup/tests/
Dchunk-io-test.c324 #define CHUNK_SIZE 1024 macro
333 for (i = 0; i < length; i += CHUNK_SIZE) { in chunkify()
334 size = MIN (CHUNK_SIZE, length - i); in chunkify()
468 chunk_length = MIN (CHUNK_SIZE, raw_contents->length - total); in do_io_tests()
513 chunk_length = MIN (CHUNK_SIZE, raw_contents->length - total); in do_io_tests()
/third_party/gstreamer/gstplugins_base/tests/examples/app/
Dappsrc-stream2.c74 #define CHUNK_SIZE 4096 macro
95 len = CHUNK_SIZE; in feed_data()

12