Home
last modified time | relevance | path

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

12

/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.c19 static int refill_fifo(struct thread_data *td, struct fifo *fifo, int fd) in refill_fifo() argument
26 if (total > fifo_room(fifo)) in refill_fifo()
27 total = fifo_room(fifo); in refill_fifo()
36 ret = fifo_put(fifo, buf, ret); in refill_fifo()
45 static int trace_fifo_get(struct thread_data *td, struct fifo *fifo, int fd, in trace_fifo_get() argument
48 if (fifo_len(fifo) < len) { in trace_fifo_get()
49 int ret = refill_fifo(td, fifo, fd); in trace_fifo_get()
55 return fifo_get(fifo, buf, len); in trace_fifo_get()
61 static int discard_pdu(struct thread_data *td, struct fifo *fifo, int fd, in discard_pdu() argument
68 return trace_fifo_get(td, fifo, fd, NULL, t->pdu_len); in discard_pdu()
[all …]
DMakefile112 SOURCE += diskutil.c fifo.c blktrace.c cgroup.c trim.c engines/sg.c \
118 SOURCE += diskutil.c fifo.c blktrace.c trim.c profiles/tiobench.c \
198 T_BTRACE_FIO_OBJS += fifo.o lib/flist_sort.o t/log.o lib/linux-dev-lookup.o
/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/sch/
Dfifo.c59 struct rtnl_fifo *fifo; in fifo_msg_parser() local
65 fifo = fifo_alloc(qdisc); in fifo_msg_parser()
66 if (!fifo) in fifo_msg_parser()
70 fifo->qf_limit = opt->limit; in fifo_msg_parser()
71 fifo->qf_mask = SCH_FIFO_ATTR_LIMIT; in fifo_msg_parser()
83 struct rtnl_fifo *fifo = fifo_qdisc(qdisc); in pfifo_dump_line() local
85 if (fifo) in pfifo_dump_line()
86 nl_dump(p, " limit %u packets", fifo->qf_limit); in pfifo_dump_line()
91 struct rtnl_fifo *fifo = fifo_qdisc(qdisc); in bfifo_dump_line() local
93 if (fifo) { in bfifo_dump_line()
[all …]
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_screen.c329 struct nv04_fifo *fifo; in nv30_screen_create() local
390 fifo = screen->base.channel->data; in nv30_screen_create()
447 ret = nouveau_bo_wrap(screen->base.device, fifo->notify, &screen->notify); in nv30_screen_create()
462 PUSH_DATA (push, fifo->vram); /* TEXTURE0 */ in nv30_screen_create()
463 PUSH_DATA (push, fifo->gart); /* TEXTURE1 */ in nv30_screen_create()
464 PUSH_DATA (push, fifo->vram); /* COLOR1 */ in nv30_screen_create()
466 PUSH_DATA (push, fifo->vram); /* COLOR0 */ in nv30_screen_create()
467 PUSH_DATA (push, fifo->vram); /* ZETA */ in nv30_screen_create()
468 PUSH_DATA (push, fifo->vram); /* VTXBUF0 */ in nv30_screen_create()
469 PUSH_DATA (push, fifo->gart); /* VTXBUF1 */ in nv30_screen_create()
[all …]
Dnv30_transfer.c405 struct nv04_fifo *fifo = push->channel->data; in nv30_transfer_rect_sifm() local
439 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv30_transfer_rect_sifm()
440 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv30_transfer_rect_sifm()
450 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv30_transfer_rect_sifm()
460 PUSH_RELOC(push, src->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); in nv30_transfer_rect_sifm()
502 struct nv04_fifo *fifo = push->channel->data; in nv30_transfer_rect_m2mf() local
512 PUSH_DATA (push, (src->domain == NOUVEAU_BO_VRAM) ? fifo->vram : fifo->gart); in nv30_transfer_rect_m2mf()
513 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 …]
/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()
Dnv10_context.c205 struct nv04_fifo *fifo = hw->chan->data; in nv10_hwctx_init() local
214 PUSH_DATA (push, fifo->vram); in nv10_hwctx_init()
215 PUSH_DATA (push, fifo->gart); in nv10_hwctx_init()
216 PUSH_DATA (push, fifo->gart); in nv10_hwctx_init()
218 PUSH_DATA (push, fifo->vram); in nv10_hwctx_init()
219 PUSH_DATA (push, fifo->vram); in nv10_hwctx_init()
250 PUSH_DATA (push, fifo->vram); in nv10_hwctx_init()
251 PUSH_DATA (push, fifo->vram); in nv10_hwctx_init()
/external/autotest/server/site_tests/autoupdate_EndToEndTest/
Dupdate_engine_performance_monitor.py254 fifo = open(fifo_path, 'w') variable
255 fifo.write(json_str)
256 fifo.close()
269 fifo = open(fifo_path, 'r') variable
270 json_str = fifo.read()
272 fifo.close()
/external/curl/docs/examples/
Dhiperfifo.c366 static const char *fifo = "hiper.fifo"; variable
372 fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); in init_fifo()
373 if (lstat (fifo, &st) == 0) { in init_fifo()
380 unlink(fifo); in init_fifo()
381 if (mkfifo (fifo, 0600) == -1) { in init_fifo()
385 sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0); in init_fifo()
392 fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo); in init_fifo()
402 unlink(fifo); in clean_fifo()
Devhiperfifo.c381 static const char *fifo = "hiper.fifo"; in init_fifo() local
384 fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); in init_fifo()
385 if ( lstat (fifo, &st) == 0 ) in init_fifo()
394 unlink(fifo); in init_fifo()
395 if ( mkfifo (fifo, 0600) == -1 ) in init_fifo()
400 sockfd = open(fifo, O_RDWR | O_NONBLOCK, 0); in init_fifo()
408 fprintf(MSG_OUT, "Now, pipe some URL's into > %s\n", fifo); in init_fifo()
Dghiper.c394 const char *fifo = "hiper.fifo"; in init_fifo() local
397 if (lstat (fifo, &st) == 0) { in init_fifo()
405 unlink (fifo); in init_fifo()
406 if (mkfifo (fifo, 0600) == -1) { in init_fifo()
411 socket = open (fifo, O_RDWR | O_NONBLOCK, 0); in init_fifo()
417 MSG_OUT("Now, pipe some URL's into > %s\n", fifo); in init_fifo()
/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/autotest/client/bin/
Dharness_autoserv.py63 fifo = open(fifo_path)
64 fifo.read(1)
65 fifo.close()
/external/toybox/tests/
Dfind.test8 mkfifo fifo
9 ln -s fifo link
/external/mesa3d/src/gallium/drivers/nv50/
Dnv50_screen.c330 struct nv04_fifo *fifo; in nv50_screen_init_hwctx() local
333 fifo = (struct nv04_fifo *)screen->base.channel->data; in nv50_screen_init_hwctx()
339 PUSH_DATA (push, fifo->vram); in nv50_screen_init_hwctx()
340 PUSH_DATA (push, fifo->vram); in nv50_screen_init_hwctx()
346 PUSH_DATA (push, fifo->vram); in nv50_screen_init_hwctx()
347 PUSH_DATA (push, fifo->vram); in nv50_screen_init_hwctx()
348 PUSH_DATA (push, fifo->vram); in nv50_screen_init_hwctx()
368 PUSH_DATA(push, fifo->vram); in nv50_screen_init_hwctx()
371 PUSH_DATA(push, fifo->vram); in nv50_screen_init_hwctx()
/external/libdrm/nouveau/
Dpushbuf.c319 struct nouveau_fifo *fifo = chan->data; in pushbuf_submit() local
333 req.channel = fifo->channel; in pushbuf_submit()
346 pushbuf_dump(krec, krec_id++, fifo->channel); in pushbuf_submit()
364 pushbuf_dump(krec, krec_id++, fifo->channel); in pushbuf_submit()
541 struct nouveau_fifo *fifo = chan->data; in nouveau_pushbuf_new() local
553 req.channel = fifo->channel; in nouveau_pushbuf_new()
582 if (fifo->pushbuf & NOUVEAU_GEM_DOMAIN_GART) { in nouveau_pushbuf_new()
586 if (fifo->pushbuf & NOUVEAU_GEM_DOMAIN_VRAM) { in nouveau_pushbuf_new()
/external/e2fsprogs/tests/f_badsymlinks/
Dexpect.12 Special (device/socket/fifo/symlink) file (inode 18) has immutable
10 Special (device/socket/fifo/symlink) file (inode 20) has immutable
/external/e2fsprogs/tests/f_orphan_dotdot_ft/
Dexpect.12 Special (device/socket/fifo) inode 12 has non-zero size. Fix? yes
/external/libnl/include/
DMakefile.am38 netlink/route/sch/fifo.h \

12