/external/fio/ |
D | fifo.c | 28 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 …]
|
D | fifo.h | 21 struct fifo { struct 28 struct fifo *fifo_alloc(unsigned int); argument 29 unsigned int fifo_put(struct fifo *, void *, unsigned int); 30 unsigned int fifo_get(struct fifo *, void *, unsigned int); 31 void fifo_free(struct fifo *); 33 static inline unsigned int fifo_len(struct fifo *fifo) in fifo_len() argument 35 return fifo->in - fifo->out; in fifo_len() 38 static inline unsigned int fifo_room(struct fifo *fifo) in fifo_room() argument 40 return fifo->size - fifo->in + fifo->out; in fifo_room()
|
D | blktrace.c | 18 static int refill_fifo(struct thread_data *td, struct fifo *fifo, int fd) in refill_fifo() argument 25 if (total > fifo_room(fifo)) in refill_fifo() 26 total = fifo_room(fifo); in refill_fifo() 35 ret = fifo_put(fifo, buf, ret); in refill_fifo() 44 static int trace_fifo_get(struct thread_data *td, struct fifo *fifo, int fd, in trace_fifo_get() argument 47 if (fifo_len(fifo) < len) { in trace_fifo_get() 48 int ret = refill_fifo(td, fifo, fd); in trace_fifo_get() 54 return fifo_get(fifo, buf, len); in trace_fifo_get() 60 static int discard_pdu(struct thread_data *td, struct fifo *fifo, int fd, in discard_pdu() argument 67 return trace_fifo_get(td, fifo, fd, NULL, t->pdu_len); in discard_pdu() [all …]
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
D | fifo_test.cc | 46 FIFOChar fifo(kTestSize); in TEST() local 49 wr_offs += fifo.Write(temp_wr + wr_offs, kTestSize); in TEST() 53 rd_offs += fifo.Read(temp_rd + rd_offs, kHalfSize); in TEST() 59 wr_offs += fifo.Write(temp_wr + wr_offs, kQuarterSize); in TEST() 61 wr_offs += fifo.Write(temp_wr + wr_offs, kQuarterSize); in TEST() 65 rd_offs += fifo.Read(temp_rd + rd_offs, kTestSize); in TEST() 78 FIFOChar fifo(kTestSize); in TEST() local 84 EXPECT_TRUE(fifo.IsEmpty()); in TEST() 85 EXPECT_FALSE(fifo.IsFull()); in TEST() 88 EXPECT_EQ(0, fifo.ReadAvailable()); in TEST() [all …]
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
D | u_fifo.h | 42 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/mesa3d/src/gallium/auxiliary/util/ |
D | u_fifo.h | 42 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/chromium_org/media/base/ |
D | audio_fifo_unittest.cc | 30 AudioFifo fifo(kChannels, kMaxFrameCount); in TEST_F() local 31 EXPECT_EQ(fifo.frames(), 0); in TEST_F() 38 AudioFifo fifo(kChannels, kMaxFrameCount); in TEST_F() local 42 EXPECT_EQ(fifo.frames(), 0); in TEST_F() 43 fifo.Push(bus.get()); in TEST_F() 44 EXPECT_EQ(fifo.frames(), bus->frames()); in TEST_F() 45 fifo.Clear(); in TEST_F() 50 EXPECT_EQ(fifo.frames(), 0); in TEST_F() 51 fifo.Push(bus.get()); in TEST_F() 52 EXPECT_EQ(fifo.frames(), bus->frames()); in TEST_F() [all …]
|
D | audio_converter_perftest.cc | 30 bool fifo, in RunConvertBenchmark() argument 37 AudioConverter converter(in_params, out_params, !fifo); in RunConvertBenchmark()
|
/external/libnl/lib/route/sch/ |
D | fifo.c | 59 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/chromium_org/third_party/libevent/sample/ |
D | event-test.c | 89 const char *fifo = "event.fifo"; in main() local 92 if (lstat (fifo, &st) == 0) { in main() 100 unlink (fifo); in main() 101 if (mkfifo (fifo, 0600) == -1) { in main() 108 socket = open (fifo, O_RDWR | O_NONBLOCK, 0); in main() 110 socket = open (fifo, O_RDONLY | O_NONBLOCK, 0); in main() 118 fprintf(stderr, "Write data to %s\n", fifo); in main()
|
/external/oprofile/daemon/ |
D | opd_pipe.c | 24 static int fifo; variable 42 fifo = open(op_pipe_file, O_RDONLY | O_NONBLOCK); in opd_open_pipe() 43 if (fifo == -1) { in opd_open_pipe() 54 close(fifo); in opd_close_pipe() 69 fifo_fd = fdopen(fifo, "r"); in is_jitconv_requested()
|
/external/e2fsprogs/tests/f_filetype/ |
D | expect.1 | 2 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/chromium_org/third_party/mesa/src/src/gallium/drivers/nv30/ |
D | nv30_screen.c | 329 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 …]
|
D | nv30_transfer.c | 405 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/mesa3d/src/gallium/drivers/nv30/ |
D | nv30_screen.c | 329 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 …]
|
D | nv30_transfer.c | 405 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/mesa3d/src/mesa/drivers/dri/nouveau/ |
D | nv04_context.c | 82 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()
|
D | nv04_surface.c | 206 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()
|
D | nv20_context.c | 101 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()
|
D | nv10_context.c | 205 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/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/ |
D | nv04_context.c | 82 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()
|
D | nv04_surface.c | 206 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()
|
D | nv20_context.c | 101 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()
|
D | nv10_context.c | 205 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/mesa3d/src/gallium/drivers/nv50/ |
D | nv50_screen.c | 330 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()
|