Home
last modified time | relevance | path

Searched refs:cntr (Results 1 – 25 of 26) sorted by relevance

12

/third_party/alsa-utils/axfer/
Dcontainer.c42 int container_recursive_read(struct container_context *cntr, void *buf, in container_recursive_read() argument
49 while (consumed < byte_count && !cntr->interrupted) { in container_recursive_read()
50 result = read(cntr->fd, dst + consumed, byte_count - consumed); in container_recursive_read()
54 if (cntr->interrupted) in container_recursive_read()
62 cntr->eof = true; in container_recursive_read()
72 int container_recursive_write(struct container_context *cntr, void *buf, in container_recursive_write() argument
79 while (consumed < byte_count && !cntr->interrupted) { in container_recursive_write()
80 result = write(cntr->fd, src + consumed, byte_count - consumed); in container_recursive_write()
84 if (cntr->interrupted) in container_recursive_write()
116 int container_seek_offset(struct container_context *cntr, off64_t offset) in container_seek_offset() argument
[all …]
Dcontainer-voc.c431 static int detect_container_version(struct container_context *cntr) in detect_container_version() argument
433 struct parser_state *state = cntr->private_data; in detect_container_version()
438 memcpy(&header.magic, cntr->magic, sizeof(cntr->magic)); in detect_container_version()
439 err = container_recursive_read(cntr, in detect_container_version()
440 (char *)&header + sizeof(cntr->magic), in detect_container_version()
441 sizeof(header) - sizeof(cntr->magic)); in detect_container_version()
444 if (cntr->eof) in detect_container_version()
450 static int allocate_for_block_cache(struct container_context *cntr, in allocate_for_block_cache() argument
474 err = container_recursive_read(cntr, cache + sizeof(*header), in allocate_for_block_cache()
480 if (cntr->eof) { in allocate_for_block_cache()
[all …]
Dcontainer-riff-wave.c147 static int parse_riff_chunk(struct container_context *cntr, in parse_riff_chunk() argument
150 struct parser_state *state = cntr->private_data; in parse_riff_chunk()
158 memcpy(buf.chunk.id, cntr->magic, sizeof(cntr->magic)); in parse_riff_chunk()
159 err = container_recursive_read(cntr, in parse_riff_chunk()
160 (char *)&buf.chunk + sizeof(cntr->magic), in parse_riff_chunk()
161 sizeof(buf.chunk) - sizeof(cntr->magic)); in parse_riff_chunk()
164 if (cntr->eof) in parse_riff_chunk()
172 err = container_recursive_read(cntr, &buf, sizeof(buf.chunk_data)); in parse_riff_chunk()
175 if (cntr->eof) in parse_riff_chunk()
226 static int parse_wave_subchunk(struct container_context *cntr) in parse_wave_subchunk() argument
[all …]
Dcontainer-au.c70 static int au_parser_pre_process(struct container_context *cntr, in au_parser_pre_process() argument
76 struct parser_state *state = cntr->private_data; in au_parser_pre_process()
83 memcpy(&header.magic, cntr->magic, sizeof(cntr->magic)); in au_parser_pre_process()
84 err = container_recursive_read(cntr, in au_parser_pre_process()
85 (char *)&header + sizeof(cntr->magic), in au_parser_pre_process()
86 sizeof(header) - sizeof(cntr->magic)); in au_parser_pre_process()
89 if (cntr->eof) in au_parser_pre_process()
137 static int write_container_header(struct container_context *cntr, in write_container_header() argument
140 struct builder_state *state = cntr->private_data; in write_container_header()
146 return container_recursive_write(cntr, &header, sizeof(header)); in write_container_header()
[all …]
Dcontainer.h39 int (*process_bytes)(struct container_context *cntr,
63 int container_parser_init(struct container_context *cntr, int fd,
65 int container_builder_init(struct container_context *cntr, int fd,
67 void container_context_destroy(struct container_context *cntr);
68 int container_context_pre_process(struct container_context *cntr,
73 int container_context_process_frames(struct container_context *cntr,
76 int container_context_post_process(struct container_context *cntr,
82 int (*pre_process)(struct container_context *cntr,
87 int (*post_process)(struct container_context *cntr,
106 int container_recursive_read(struct container_context *cntr, void *buf,
[all …]
Dmapper-multiple.c29 struct container_context *cntr; in align_to_i() local
36 cntr = cntrs + i; in align_to_i()
40 src_pos = bytes_per_sample * cntr->samples_per_frame * j; in align_to_i()
57 struct container_context *cntr; in align_from_i() local
62 cntr = cntrs + i; in align_from_i()
67 dst_pos = bytes_per_sample * cntr->samples_per_frame * j; in align_from_i()
79 struct container_context *cntr; in multiple_pre_process() local
85 cntr = cntrs + i; in multiple_pre_process()
86 if (mapper->bytes_per_sample != cntr->bytes_per_sample) in multiple_pre_process()
117 cntr = cntrs + i; in multiple_pre_process()
[all …]
Dcontainer-raw.c16 static int raw_builder_pre_process(struct container_context *cntr, in raw_builder_pre_process() argument
27 static int raw_parser_pre_process(struct container_context *cntr, in raw_parser_pre_process() argument
36 if (cntr->stdio) { in raw_parser_pre_process()
41 err = fstat(cntr->fd, &buf); in raw_parser_pre_process()
Dsubcmd-transfer.c397 struct container_context *cntr; in context_process_frames() local
413 cntr = &ctx->cntrs[i]; in context_process_frames()
414 if (cntr->eof) in context_process_frames()
/third_party/node/test/parallel/
Dtest-buffer-copy.js9 let cntr = 0; variable
13 b.fill(++cntr);
14 c.fill(++cntr);
24 b.fill(++cntr);
25 c.fill(++cntr);
35 b.fill(++cntr);
36 c.fill(++cntr);
46 b.fill(++cntr);
47 c.fill(++cntr);
57 b.fill(++cntr);
[all …]
Dtest-buffer-inheritance.js16 let cntr = 0;
18 cntr += this[i];
19 return cntr;
32 let cntr = 0;
34 cntr += t[i];
35 assert.strictEqual(cntr, t.length * 5);
/third_party/libuv/test/
Dtest-metrics.c43 int cntr; in TEST_IMPL() local
45 cntr = 0; in TEST_IMPL()
46 timer.data = &cntr; in TEST_IMPL()
53 ASSERT_GT(cntr, 0); in TEST_IMPL()
71 int cntr; in metrics_routine_cb() local
73 cntr = 0; in metrics_routine_cb()
74 timer.data = &cntr; in metrics_routine_cb()
82 ASSERT_GT(cntr, 0); in metrics_routine_cb()
120 int cntr; in TEST_IMPL() local
122 cntr = 0; in TEST_IMPL()
[all …]
/third_party/alsa-utils/axfer/test/
Dcontainer-test.c32 struct container_context cntr; member
36 static void test_builder(struct container_context *cntr, int fd, in test_builder() argument
53 err = container_builder_init(cntr, fd, format, verbose); in test_builder()
60 err = container_context_pre_process(cntr, &sample, &channels, &rate, in test_builder()
69 err = container_context_process_frames(cntr, frame_buffer, in test_builder()
76 err = container_context_post_process(cntr, &total_frame_count); in test_builder()
80 container_context_destroy(cntr); in test_builder()
83 static void test_parser(struct container_context *cntr, int fd, in test_parser() argument
98 err = container_parser_init(cntr, fd, verbose); in test_parser()
105 err = container_context_pre_process(cntr, &sample, &channels, &rate, in test_parser()
[all …]
/third_party/skia/third_party/externals/brotli/scripts/dictionary/
Dstep-04-generate-java-literals.py27 cntr = skip_flip_offset variable
33 cntr += 1
36 hi.append(unichr(cntr))
37 cntr = skip_flip_offset + 1 variable
40 cntr += 1
43 hi.append(unichr(cntr))
44 cntr = skip_flip_offset + 1 variable
45 hi.append(unichr(cntr))
/third_party/node/test/sequential/
Dtest-timers-set-interval-excludes-callback-duration.js7 let cntr = 0; variable
10 cntr++;
11 if (cntr === 1) {
14 setImmediate(() => assert.strictEqual(cntr, 1));
16 } else if (cntr === 2) {
22 if (cntr === 2) {
/third_party/node/benchmark/fs/
Dbench-realpath.js24 (function r(cntr) { argument
25 if (cntr-- <= 0)
28 r(cntr);
34 (function r(cntr) { argument
35 if (cntr-- <= 0)
38 r(cntr);
Dbench-readdir.js17 (function r(cntr) { argument
18 if (cntr-- <= 0)
21 r(cntr);
Dbench-mkdirp.js15 (function r(cntr) { argument
16 if (cntr-- <= 0)
20 r(cntr);
Dbench-stat.js20 (function r(cntr, fn) { argument
21 if (cntr-- <= 0) {
28 r(cntr, fn);
/third_party/ltp/testcases/kernel/syscalls/eventfd2/
Deventfd2_03.c22 u_int64_t cntr; in xsem_wait() local
24 SAFE_READ(0, fd, &cntr, sizeof(cntr)); in xsem_wait()
29 u_int64_t cntr = count; in xsem_post() local
31 SAFE_WRITE(0, fd, &cntr, sizeof(cntr)); in xsem_post()
/third_party/mesa3d/src/mesa/main/
Dperformance_monitor.c116 struct gl_perf_counter_object *cntr = in init_perf_monitor() local
119 cntr->id = cid; in init_perf_monitor()
120 cntr->group_id = gid; in init_perf_monitor()
122 cntr->batch_index = num_batch_counters; in init_perf_monitor()
125 cntr->query = pipe->create_query(pipe, c->query_type, 0); in init_perf_monitor()
126 if (!cntr->query) in init_perf_monitor()
296 struct gl_perf_counter_object *cntr = &m->active_counters[i]; in get_perf_monitor_result() local
301 cid = cntr->id; in get_perf_monitor_result()
302 gid = cntr->group_id; in get_perf_monitor_result()
305 if (cntr->query) { in get_perf_monitor_result()
[all …]
/third_party/node/test/async-hooks/
Dinit-hooks.js11 (function exity(cntr) { argument
14 if (cntr < 4) setImmediate(() => exity(cntr + 1));
/third_party/openssl/test/recipes/
D80-test_ca.t234 my $cntr = 10;
237 1 while $cntr-- > 0 && print PIPE "y\n";
/third_party/ffmpeg/libavcodec/x86/
Dh264_idct.asm322 cglobal h264_idct8_add4_8, 5, 8 + npicregs, 10, dst1, block_offset, block, stride, nnzc, cntr, coef…
398 cglobal h264_idct_add8_422_8, 5, 8 + npicregs, 0, dst1, block_offset, block, stride, nnzc, cntr, co…
399 ; dst1, block_offset, block, stride, nnzc, cntr, coeff, dst2, picreg
Dpngdsp.asm93 cglobal add_png_paeth_prediction, 5, 7, %1, dst, src, top, w, bpp, end, cntr
/third_party/ffmpeg/libavcodec/
Dwmavoice.c303 int cntr[8] = { 0 }, n, res; in decode_vbmtree() local
308 if (cntr[res] > 3) // should be >= 3 + (res == 7)) in decode_vbmtree()
310 vbm_tree[res * 3 + cntr[res]++] = n; in decode_vbmtree()

12