Home
last modified time | relevance | path

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

1234567

/external/drrickorang/LoopbackApp/app/src/main/cpp/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/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/libwebsockets/plugins/
Dprotocol_lws_raw_test.c81 int fifo; member
134 vhd->fifo = lws_open(vhd->fifo_path, O_NONBLOCK | O_RDONLY); in callback_raw_test()
135 if (vhd->fifo == -1) { in callback_raw_test()
141 u.filefd = vhd->fifo; in callback_raw_test()
147 close(vhd->fifo); in callback_raw_test()
156 if (vhd->fifo >= 0) { in callback_raw_test()
157 close(vhd->fifo); in callback_raw_test()
178 n = read(vhd->fifo, buf, sizeof(buf) - 1); in callback_raw_test()
209 close(vhd->fifo); in callback_raw_test()
213 vhd->fifo = lws_open(vhd->fifo_path, in callback_raw_test()
[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/igt-gpu-tools/tools/
Dintel_watermark.c45 int wm, wm1, dl, fifo, fbc, burst; member
708 wms[PRI_A].fifo = REG_DECODE2(dsparb, 0, 8, dsparb2, 0, 1) - 0; in vlv_wm_dump()
709 wms[SPR_A].fifo = REG_DECODE2(dsparb, 8, 8, dsparb2, 4, 1) - wms[PRI_A].fifo; in vlv_wm_dump()
710 wms[SPR_B].fifo = 512 - 1 - wms[SPR_A].fifo - wms[PRI_A].fifo; in vlv_wm_dump()
711 wms[CUR_A].fifo = 0x3f; in vlv_wm_dump()
713 wms[PRI_B].fifo = REG_DECODE2(dsparb, 16, 8, dsparb2, 8, 1) - 0; in vlv_wm_dump()
714 wms[SPR_C].fifo = REG_DECODE2(dsparb, 24, 8, dsparb2, 12, 1) - wms[PRI_B].fifo; in vlv_wm_dump()
715 wms[SPR_D].fifo = 512 - 1 - wms[SPR_C].fifo - wms[PRI_B].fifo; in vlv_wm_dump()
716 wms[CUR_B].fifo = 0x3f; in vlv_wm_dump()
719 wms[PRI_C].fifo = REG_DECODE2(dsparb3, 0, 8, dsparb2, 16, 1) - 0; in vlv_wm_dump()
[all …]
/external/ltp/testcases/kernel/syscalls/write/
Dwrite04.c25 static char fifo[100]; variable
55 sprintf(fifo, "%s.%d", fifo, getpid()); in setup()
57 SAFE_MKNOD(fifo, S_IFIFO | 0777, 0); in setup()
59 rfd = SAFE_OPEN(fifo, O_RDONLY | O_NONBLOCK); in setup()
60 wfd = SAFE_OPEN(fifo, O_WRONLY | O_NONBLOCK); in setup()
/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/swiftshader/tests/regres/testlists/
Dvk-wsi.txt2349 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.identity.opaque.reference
2350 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.identity.opaque.incremental_present
2351 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.identity.pre_multiplied.reference
2352 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.identity.pre_multiplied.incremental_present
2353 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.identity.post_multiplied.reference
2354 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.identity.post_multiplied.incremental_present
2355 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.identity.inherit.reference
2356 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.identity.inherit.incremental_present
2357 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.rotate_90.opaque.reference
2358 dEQP-VK.wsi.xlib.incremental_present.scale_none.fifo.rotate_90.opaque.incremental_present
[all …]
Dvk-wsi-NOT_SUPPORTED.txt2230 dEQP-VK.wsi.android.display_timing.fifo.display_timing
2231 dEQP-VK.wsi.android.display_timing.fifo.reference
2238 dEQP-VK.wsi.android.incremental_present.scale_down.fifo.horizontal_mirror.inherit.incremental_prese…
2239 dEQP-VK.wsi.android.incremental_present.scale_down.fifo.horizontal_mirror.inherit.reference
2240 dEQP-VK.wsi.android.incremental_present.scale_down.fifo.horizontal_mirror.opaque.incremental_present
2241 dEQP-VK.wsi.android.incremental_present.scale_down.fifo.horizontal_mirror.opaque.reference
2242 dEQP-VK.wsi.android.incremental_present.scale_down.fifo.horizontal_mirror.post_multiplied.increment…
2243 dEQP-VK.wsi.android.incremental_present.scale_down.fifo.horizontal_mirror.post_multiplied.reference
2244 dEQP-VK.wsi.android.incremental_present.scale_down.fifo.horizontal_mirror.pre_multiplied.incrementa…
2245 dEQP-VK.wsi.android.incremental_present.scale_down.fifo.horizontal_mirror.pre_multiplied.reference
[all …]
/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/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/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.c540 struct nv04_fifo *fifo; in nv30_screen_create() local
621 fifo = screen->base.channel->data; in nv30_screen_create()
678 ret = nouveau_bo_wrap(screen->base.device, fifo->notify, &screen->notify); in nv30_screen_create()
693 PUSH_DATA (push, fifo->vram); /* TEXTURE0 */ in nv30_screen_create()
694 PUSH_DATA (push, fifo->gart); /* TEXTURE1 */ in nv30_screen_create()
695 PUSH_DATA (push, fifo->vram); /* COLOR1 */ in nv30_screen_create()
697 PUSH_DATA (push, fifo->vram); /* COLOR0 */ in nv30_screen_create()
698 PUSH_DATA (push, fifo->vram); /* ZETA */ in nv30_screen_create()
699 PUSH_DATA (push, fifo->vram); /* VTXBUF0 */ in nv30_screen_create()
700 PUSH_DATA (push, fifo->gart); /* VTXBUF1 */ in nv30_screen_create()
[all …]
/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.c202 struct nv04_fifo *fifo = hw->chan->data; in nv04_surface_copy_swizzle() local
230 PUSH_DATA (push, fifo->vram); in nv04_surface_copy_swizzle()
238 PUSH_RELOC(push, src->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_copy_swizzle()
282 struct nv04_fifo *fifo = hw->chan->data; in nv04_surface_copy_m2mf() local
294 PUSH_RELOC(push, src->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_copy_m2mf()
295 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_copy_m2mf()
430 struct nv04_fifo *fifo = hw->chan->data; in nv04_surface_fill() local
437 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_fill()
438 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv04_surface_fill()
/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/curl/docs/examples/
Dhiperfifo.c388 static const char *fifo = "hiper.fifo"; variable
394 fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); in init_fifo()
395 if(lstat (fifo, &st) == 0) { in init_fifo()
402 unlink(fifo); in init_fifo()
403 if(mkfifo (fifo, 0600) == -1) { in init_fifo()
407 sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0); in init_fifo()
414 fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo); in init_fifo()
425 unlink(fifo); in clean_fifo()
Devhiperfifo.c393 static const char *fifo = "hiper.fifo"; in init_fifo() local
396 fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); in init_fifo()
397 if(lstat (fifo, &st) == 0) { in init_fifo()
404 unlink(fifo); in init_fifo()
405 if(mkfifo (fifo, 0600) == -1) { in init_fifo()
409 sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0); in init_fifo()
416 fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo); in init_fifo()
Dephiperfifo.c411 static const char *fifo = "hiper.fifo"; variable
418 fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); in init_fifo()
419 if(lstat (fifo, &st) == 0) { in init_fifo()
426 unlink(fifo); in init_fifo()
427 if(mkfifo (fifo, 0600) == -1) { in init_fifo()
431 sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0); in init_fifo()
444 fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo); in init_fifo()
452 unlink(fifo); in clean_fifo()
/external/libcxx/test/std/input.output/filesystems/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()
/external/llvm-project/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.is_empty/
Dis_empty.pass.cpp101 const path fifo = env.create_fifo("fifo"); in TEST_CASE() local
104 TEST_CHECK(is_empty(fifo, ec) == false); in TEST_CASE()
108 TEST_CHECK_THROW(filesystem_error, is_empty(fifo)); in TEST_CASE()
/external/autotest/client/bin/
Dharness_autoserv.py64 fifo = open(fifo_path)
65 fifo.read(1)
66 fifo.close()

1234567