Home
last modified time | relevance | path

Searched refs:fifo (Results 1 – 25 of 95) sorted by relevance

1234

/external/drrickorang/LoopbackApp/app/src/main/jni/audio_utils/
Dfifo.c29 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, in audio_utils_fifo_init() argument
32 ALOG_ASSERT(fifo != NULL && frameCount > 0 && frameSize > 0 && buffer != NULL); in audio_utils_fifo_init()
33 fifo->mFrameCount = frameCount; in audio_utils_fifo_init()
34 fifo->mFrameCountP2 = roundup(frameCount); in audio_utils_fifo_init()
35 fifo->mFudgeFactor = fifo->mFrameCountP2 - fifo->mFrameCount; in audio_utils_fifo_init()
36 fifo->mFrameSize = frameSize; in audio_utils_fifo_init()
37 fifo->mBuffer = buffer; in audio_utils_fifo_init()
38 fifo->mFront = 0; in audio_utils_fifo_init()
39 fifo->mRear = 0; in audio_utils_fifo_init()
43 void audio_utils_fifo_deinit(struct audio_utils_fifo *fifo __unused) in audio_utils_fifo_deinit()
[all …]
Dfifo.h54 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize,
60 void audio_utils_fifo_deinit(struct audio_utils_fifo *fifo);
70 ssize_t audio_utils_fifo_write(struct audio_utils_fifo *fifo, const void *buffer, size_t count);
80 ssize_t audio_utils_fifo_read(struct audio_utils_fifo *fifo, void *buffer, size_t count);
82 size_t audio_utils_fifo_availToRead(struct audio_utils_fifo *fifo);
/external/fio/
Dfifo.c28 struct fifo *fifo_alloc(unsigned int size) in fifo_alloc()
30 struct fifo *fifo; in fifo_alloc() local
32 fifo = malloc(sizeof(struct fifo)); in fifo_alloc()
33 if (!fifo) in fifo_alloc()
36 fifo->buffer = malloc(size); in fifo_alloc()
37 fifo->size = size; in fifo_alloc()
38 fifo->in = fifo->out = 0; in fifo_alloc()
40 return fifo; in fifo_alloc()
43 void fifo_free(struct fifo *fifo) in fifo_free() argument
45 free(fifo->buffer); in fifo_free()
[all …]
Dfifo.h25 struct fifo { struct
32 struct fifo *fifo_alloc(unsigned int); argument
33 unsigned int fifo_put(struct fifo *, void *, unsigned int);
34 unsigned int fifo_get(struct fifo *, void *, unsigned int);
35 void fifo_free(struct fifo *);
37 static inline unsigned int fifo_len(struct fifo *fifo) in fifo_len() argument
39 return fifo->in - fifo->out; in fifo_len()
42 static inline unsigned int fifo_room(struct fifo *fifo) in fifo_room() argument
44 return fifo->size - fifo->in + fifo->out; in fifo_room()
Dblktrace.c21 static int refill_fifo(struct thread_data *td, struct fifo *fifo, int fd) in refill_fifo() argument
28 if (total > fifo_room(fifo)) in refill_fifo()
29 total = fifo_room(fifo); in refill_fifo()
38 ret = fifo_put(fifo, buf, ret); in refill_fifo()
47 static int trace_fifo_get(struct thread_data *td, struct fifo *fifo, int fd, in trace_fifo_get() argument
50 if (fifo_len(fifo) < len) { in trace_fifo_get()
51 int ret = refill_fifo(td, fifo, fd); in trace_fifo_get()
57 return fifo_get(fifo, buf, len); in trace_fifo_get()
63 static int discard_pdu(struct thread_data *td, struct fifo *fifo, int fd, in discard_pdu() argument
70 return trace_fifo_get(td, fifo, fd, NULL, t->pdu_len); in discard_pdu()
[all …]
/external/mesa3d/src/gallium/auxiliary/util/
Du_fifo.h42 struct util_fifo *fifo; in u_fifo_create() local
43 fifo = MALLOC(sizeof(*fifo) + size * sizeof(void*)); in u_fifo_create()
45 fifo->head = 0; in u_fifo_create()
46 fifo->tail = 0; in u_fifo_create()
47 fifo->num = 0; in u_fifo_create()
48 fifo->size = size; in u_fifo_create()
50 return fifo; in u_fifo_create()
54 u_fifo_add(struct util_fifo *fifo, void *ptr) in u_fifo_add() argument
56 void **array = (void**)&fifo[1]; in u_fifo_add()
57 if (fifo->num >= fifo->size) in u_fifo_add()
[all …]
/external/libnl/lib/route/qdisc/
Dfifo.c46 struct rtnl_fifo *fifo = data; in fifo_msg_parser() local
53 fifo->qf_limit = opt->limit; in fifo_msg_parser()
54 fifo->qf_mask = SCH_FIFO_ATTR_LIMIT; in fifo_msg_parser()
62 struct rtnl_fifo *fifo = data; in pfifo_dump_line() local
64 if (fifo) in pfifo_dump_line()
65 nl_dump(p, " limit %u packets", fifo->qf_limit); in pfifo_dump_line()
71 struct rtnl_fifo *fifo = data; in bfifo_dump_line() local
75 if (!fifo) in bfifo_dump_line()
78 r = nl_cancel_down_bytes(fifo->qf_limit, &unit); in bfifo_dump_line()
84 struct rtnl_fifo *fifo = data; in fifo_msg_fill() local
[all …]
/external/ltp/testcases/kernel/syscalls/read/
Dread03.c56 char fifo[100] = "fifo"; variable
113 sprintf(fifo, "%s.%d", fifo, getpid()); in setup()
118 if (mknod(fifo, S_IFIFO | 0777, 0) < 0) { in setup()
121 if (stat(fifo, &buf) != 0) { in setup()
128 rfd = open(fifo, O_RDONLY | O_NONBLOCK); in setup()
129 wfd = open(fifo, O_WRONLY | O_NONBLOCK); in setup()
141 unlink(fifo); in cleanup()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite04.c65 char fifo[100] = "fifo"; variable
91 if (mknod(fifo, S_IFIFO | 0777, 0) < 0) { in main()
95 if (stat(fifo, &buf) != 0) { in main()
128 rfd = open(fifo, O_RDONLY | O_NONBLOCK); in main()
143 wfd = open(fifo, O_WRONLY | O_NONBLOCK); in main()
196 unlink(fifo); in main()
227 sprintf(fifo, "%s.%d", fifo, getpid()); in setup()
236 unlink(fifo); in cleanup()
/external/libevent/sample/
Devent-read-fifo.c106 const char *fifo = "event.fifo"; in main() local
109 if (lstat(fifo, &st) == 0) { in main()
117 unlink(fifo); in main()
118 if (mkfifo(fifo, 0600) == -1) { in main()
123 socket = open(fifo, O_RDONLY | O_NONBLOCK, 0); in main()
130 fprintf(stderr, "Write data to %s\n", fifo); in main()
157 unlink(fifo); in main()
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_load_balance_test/
Dcpuset_load_balance_test.sh62 local fifo=
89 read fifo < ./myfifo
90 if [ $fifo -ne 0 ]; then
117 read fifo < ./myfifo
118 if [ $fifo -ne 0 ]; then
215 read fifo < ./myfifo
216 if [ $fifo -ne 0 ]; then
244 read fifo < ./myfifo
245 if [ $fifo -ne 0 ]; then
/external/python/cpython2/Doc/library/
Dasynchat.rst55 define a first-in-first-out queue (fifo) of *producers*. A producer need
60 :class:`async_chat` object removes the producer from the fifo and starts
61 using the next producer, if any. When the producer fifo is empty the
75 Pushes a ``None`` on to the producer fifo. When this producer is popped off
76 the fifo it causes the channel to be closed.
89 output buffers and the producer fifo.
107 Pushes data on to the channel's fifo to ensure its transmission.
115 Takes a producer object and adds it to the producer fifo associated with
148 .. class:: fifo([list=None])
150 A :class:`fifo` holding data which has been pushed by the application but
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv30/
Dnv30_transfer.c406 struct nv04_fifo *fifo = push->channel->data; in nv30_transfer_rect_sifm() local
440 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv30_transfer_rect_sifm()
441 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv30_transfer_rect_sifm()
451 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv30_transfer_rect_sifm()
461 PUSH_RELOC(push, src->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv30_transfer_rect_sifm()
503 struct nv04_fifo *fifo = push->channel->data; in nv30_transfer_rect_m2mf() local
513 PUSH_DATA (push, (src->domain == NOUVEAU_BO_VRAM) ? fifo->vram : fifo->gart); in nv30_transfer_rect_m2mf()
514 PUSH_DATA (push, (dst->domain == NOUVEAU_BO_VRAM) ? fifo->vram : fifo->gart); in nv30_transfer_rect_m2mf()
692 struct nv04_fifo *fifo = nv->screen->channel->data; in nv30_transfer_copy_data() local
704 PUSH_DATA (push, (s_dom == NOUVEAU_BO_VRAM) ? fifo->vram : fifo->gart); in nv30_transfer_copy_data()
[all …]
Dnv30_screen.c468 struct nv04_fifo *fifo; in nv30_screen_create() local
549 fifo = screen->base.channel->data; in nv30_screen_create()
606 ret = nouveau_bo_wrap(screen->base.device, fifo->notify, &screen->notify); in nv30_screen_create()
621 PUSH_DATA (push, fifo->vram); /* TEXTURE0 */ in nv30_screen_create()
622 PUSH_DATA (push, fifo->gart); /* TEXTURE1 */ in nv30_screen_create()
623 PUSH_DATA (push, fifo->vram); /* COLOR1 */ in nv30_screen_create()
625 PUSH_DATA (push, fifo->vram); /* COLOR0 */ in nv30_screen_create()
626 PUSH_DATA (push, fifo->vram); /* ZETA */ in nv30_screen_create()
627 PUSH_DATA (push, fifo->vram); /* VTXBUF0 */ in nv30_screen_create()
628 PUSH_DATA (push, fifo->gart); /* VTXBUF1 */ in nv30_screen_create()
[all …]
/external/e2fsprogs/tests/f_filetype/
Dexpect.12 Special (device/socket/fifo/symlink) file (inode 14) has immutable
5 Special (device/socket/fifo/symlink) file (inode 15) has immutable
8 Special (device/socket/fifo/symlink) file (inode 16) has immutable
11 Special (device/socket/fifo/symlink) file (inode 17) has immutable
20 Setting filetype for entry 'fifo' in / (2) to 5.
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv04_context.c82 struct nv04_fifo *fifo = hw->chan->data; in nv04_hwctx_init() local
88 PUSH_DATA (push, fifo->vram); in nv04_hwctx_init()
89 PUSH_DATA (push, fifo->vram); in nv04_hwctx_init()
95 PUSH_DATA (push, fifo->vram); in nv04_hwctx_init()
96 PUSH_DATA (push, fifo->gart); in nv04_hwctx_init()
103 PUSH_DATA (push, fifo->vram); in nv04_hwctx_init()
104 PUSH_DATA (push, fifo->gart); in nv04_hwctx_init()
Dnv04_surface.c206 struct nv04_fifo *fifo = hw->chan->data; in nv04_surface_copy_swizzle() local
234 PUSH_DATA (push, fifo->vram); in nv04_surface_copy_swizzle()
242 PUSH_RELOC(push, src->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_copy_swizzle()
286 struct nv04_fifo *fifo = hw->chan->data; in nv04_surface_copy_m2mf() local
298 PUSH_RELOC(push, src->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_copy_m2mf()
299 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_copy_m2mf()
434 struct nv04_fifo *fifo = hw->chan->data; in nv04_surface_fill() local
441 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_fill()
442 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_fill()
Dnv20_context.c101 struct nv04_fifo *fifo = hw->chan->data; in nv20_hwctx_init() local
109 PUSH_DATA (push, fifo->vram); in nv20_hwctx_init()
110 PUSH_DATA (push, fifo->gart); in nv20_hwctx_init()
112 PUSH_DATA (push, fifo->vram); in nv20_hwctx_init()
113 PUSH_DATA (push, fifo->vram); in nv20_hwctx_init()
115 PUSH_DATA (push, fifo->vram); in nv20_hwctx_init()
116 PUSH_DATA (push, fifo->gart); in nv20_hwctx_init()
173 PUSH_DATA (push, fifo->vram); in nv20_hwctx_init()
175 PUSH_DATA (push, fifo->vram); in nv20_hwctx_init()
/external/autotest/server/site_tests/autoupdate_EndToEndTest/
Dupdate_engine_performance_monitor.py256 fifo = open(fifo_path, 'w') variable
257 fifo.write(json_str)
258 fifo.close()
271 fifo = open(fifo_path, 'r') variable
272 json_str = fifo.read()
274 fifo.close()
/external/curl/docs/examples/
Dhiperfifo.c381 static const char *fifo = "hiper.fifo"; variable
387 fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); in init_fifo()
388 if(lstat (fifo, &st) == 0) { in init_fifo()
395 unlink(fifo); in init_fifo()
396 if(mkfifo (fifo, 0600) == -1) { in init_fifo()
400 sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0); in init_fifo()
407 fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo); in init_fifo()
417 unlink(fifo); in clean_fifo()
Devhiperfifo.c394 static const char *fifo = "hiper.fifo"; in init_fifo() local
397 fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); in init_fifo()
398 if(lstat (fifo, &st) == 0) { in init_fifo()
405 unlink(fifo); in init_fifo()
406 if(mkfifo (fifo, 0600) == -1) { in init_fifo()
410 sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0); in init_fifo()
417 fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo); in init_fifo()
Dghiper.c385 const char *fifo = "hiper.fifo"; in init_fifo() local
388 if(lstat (fifo, &st) == 0) { in init_fifo()
396 unlink(fifo); in init_fifo()
397 if(mkfifo (fifo, 0600) == -1) { in init_fifo()
402 socket = open(fifo, O_RDWR | O_NONBLOCK, 0); in init_fifo()
408 MSG_OUT("Now, pipe some URL's into > %s\n", fifo); in init_fifo()
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_compute.c38 struct nv04_fifo *fifo = (struct nv04_fifo *)chan->data; in nv50_screen_compute_setup() local
76 PUSH_DATA (push, fifo->vram); in nv50_screen_compute_setup()
92 PUSH_DATA (push, fifo->vram); in nv50_screen_compute_setup()
124 PUSH_DATA (push, fifo->vram); in nv50_screen_compute_setup()
131 PUSH_DATA (push, fifo->vram); in nv50_screen_compute_setup()
138 PUSH_DATA (push, fifo->vram); in nv50_screen_compute_setup()
145 PUSH_DATA (push, fifo->vram); in nv50_screen_compute_setup()
148 PUSH_DATA (push, fifo->vram); in nv50_screen_compute_setup()
/external/fio/t/
Dbtrace2fio.c172 static int refill_fifo(struct fifo *fifo, int fd) in refill_fifo() argument
179 if (total > fifo_room(fifo)) in refill_fifo()
180 total = fifo_room(fifo); in refill_fifo()
189 ret = fifo_put(fifo, buf, ret); in refill_fifo()
197 static int trace_fifo_get(struct fifo *fifo, int fd, void *buf, in trace_fifo_get() argument
200 if (fifo_len(fifo) < len) { in trace_fifo_get()
201 int ret = refill_fifo(fifo, fd); in trace_fifo_get()
207 return fifo_get(fifo, buf, len); in trace_fifo_get()
213 static int discard_pdu(struct fifo *fifo, int fd, struct blk_io_trace *t) in discard_pdu() argument
218 return trace_fifo_get(fifo, fd, NULL, t->pdu_len); in discard_pdu()
[all …]
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.is_empty/
Dis_empty.pass.cpp99 const path fifo = env.create_fifo("fifo"); in TEST_CASE() local
102 TEST_CHECK(is_empty(fifo, ec) == false); in TEST_CASE()
106 TEST_CHECK_THROW(filesystem_error, is_empty(fifo)); in TEST_CASE()

1234