/external/fio/ |
fifo.h | 4 * A simple FIFO implementation. 25 struct fifo { struct 32 struct fifo *fifo_alloc(unsigned int); 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) 39 return fifo->in - fifo->out [all...] |
fifo.c | 2 * A simple kernel FIFO implementation. 26 #include "fifo.h" 28 struct fifo *fifo_alloc(unsigned int size) 30 struct fifo *fifo; local 32 fifo = malloc(sizeof(struct fifo)); 33 if (!fifo) 36 fifo->buffer = malloc(size); 37 fifo->size = size [all...] |
blktrace.c | 17 * fifo refill frontend, to avoid reading data in trace sized bites 19 static int refill_fifo(struct thread_data *td, struct fifo *fifo, int fd) 26 if (total > fifo_room(fifo)) 27 total = fifo_room(fifo); 36 ret = fifo_put(fifo, buf, ret); 43 * Retrieve 'len' bytes from the fifo, refilling if necessary. 45 static int trace_fifo_get(struct thread_data *td, struct fifo *fifo, int fd, 48 if (fifo_len(fifo) < len) 339 struct fifo *fifo; local [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
u_fifo.h | 42 struct util_fifo *fifo; local 43 fifo = MALLOC(sizeof(*fifo) + size * sizeof(void*)); 45 fifo->head = 0; 46 fifo->tail = 0; 47 fifo->num = 0; 48 fifo->size = size; 50 return fifo; 54 u_fifo_add(struct util_fifo *fifo, void *ptr) 56 void **array = (void**)&fifo[1] [all...] |
/system/media/audio_utils/ |
fifo.c | 22 #include <audio_utils/fifo.h> 27 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, 31 ALOG_ASSERT(fifo != NULL && frameCount > 0 && frameSize > 0 && buffer != NULL); 32 fifo->mFrameCount = frameCount; 33 fifo->mFrameCountP2 = roundup(frameCount); 34 fifo->mFudgeFactor = fifo->mFrameCountP2 - fifo->mFrameCount; 35 fifo->mFrameSize = frameSize; 36 fifo->mBuffer = buffer [all...] |
Android.mk | 11 fifo.c \ 39 fifo.c \ 90 fifo.c \
|
/cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/ |
fifo.c | 22 #include "fifo.h" 28 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, 32 ALOG_ASSERT(fifo != NULL && frameCount > 0 && frameSize > 0 && buffer != NULL); 33 fifo->mFrameCount = frameCount; 34 fifo->mFrameCountP2 = roundup(frameCount); 35 fifo->mFudgeFactor = fifo->mFrameCountP2 - fifo->mFrameCount; 36 fifo->mFrameSize = frameSize; 37 fifo->mBuffer = buffer [all...] |
fifo.h | 29 // Single writer, single reader non-blocking FIFO. 35 size_t mFrameCount; // max number of significant frames to be stored in the FIFO > 0 46 // Initialize a FIFO object. 48 // fifo Pointer to the FIFO object. 49 // frameCount Max number of significant frames to be stored in the FIFO > 0. 54 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, 57 // De-initialize a FIFO object. 59 // fifo Pointer to the FIFO object [all...] |
/external/libnl/lib/route/sch/ |
fifo.c | 2 * lib/route/sch/fifo.c (p|b)fifo 14 * @defgroup fifo Packet/Bytes FIFO (pfifo/bfifo) 17 * The FIFO qdisc comes in two flavours: 18 * @par bfifo (Byte FIFO) 22 * @par pfifo (Packet FIFO) 37 #include <netlink/route/sch/fifo.h> 59 struct rtnl_fifo *fifo; local 65 fifo = fifo_alloc(qdisc) 83 struct rtnl_fifo *fifo = fifo_qdisc(qdisc); local 91 struct rtnl_fifo *fifo = fifo_qdisc(qdisc); local 104 struct rtnl_fifo *fifo; local 141 struct rtnl_fifo *fifo; local 160 struct rtnl_fifo *fifo; local [all...] |
/system/media/audio_utils/include/audio_utils/ |
fifo.h | 29 // Single writer, single reader non-blocking FIFO. 35 size_t mFrameCount; // max number of significant frames to be stored in the FIFO > 0 47 * Initialize a FIFO object. 49 * \param fifo Pointer to the FIFO object. 50 * \param frameCount Max number of significant frames to be stored in the FIFO > 0. 56 void audio_utils_fifo_init(struct audio_utils_fifo *fifo, size_t frameCount, size_t frameSize, 60 * De-initialize a FIFO object. 62 * \param fifo Pointer to the FIFO object [all...] |
/external/toybox/tests/ |
find.test | 8 mkfifo fifo 9 ln -s fifo link 22 "find dir -type l -a -type d -o -type p" "dir/fifo\n" "" "" 24 "dir/fifo\n" "" "" 35 "find dir \( -type p -o -type d \) -type p" "dir/fifo\n" "" ""
|
/cts/apps/CtsVerifier/jni/audio_loopback/ |
Android.mk | 13 audio_utils/fifo.c \
|
sles.h | 32 #include <audio_utils/fifo.h> 59 struct audio_utils_fifo fifo; //(*) member in struct:__anon1281
|
/system/media/audio_utils/tests/ |
fifo_tests.cpp | 17 // Test program for audio_utils FIFO library. 23 #include <audio_utils/fifo.h> 37 case 'c': // FIFO frame count 40 case 'r': // maximum frame count per read from FIFO 43 case 'w': // maximum frame count per write to FIFO 90 struct audio_utils_fifo fifo; local 92 audio_utils_fifo_init(&fifo, frameCount, frameSize, fifoBuffer); 106 ssize_t actualWritten = audio_utils_fifo_write(&fifo, 109 fprintf(stderr, "write to FIFO failed\n"); 127 ssize_t actualRead = audio_utils_fifo_read(&fifo, [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/ |
parser.h | 70 typedef struct fifo { struct 72 fifo *prev; 73 } FIFO; 77 FIFO *m_fifoTail;
|
/system/core/crash_reporter/ |
warn_collector.l | 90 int fifo; /* 1 when reading from fifo (for devel) */ 147 if (!(testing || fifo || filter)) { 176 if (!fifo) { 208 if (*result > 0 || fifo || filter) 261 else if (argc == 2 && strcmp(argv[1], "--fifo") == 0) { 262 fifo = 1; 267 "--fifo\tinput is fifo \"fifo\", output is stdout\n [all...] |
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nv04_context.c | 82 struct nv04_fifo *fifo = hw->chan->data; local 88 PUSH_DATA (push, fifo->vram); 89 PUSH_DATA (push, fifo->vram); 95 PUSH_DATA (push, fifo->vram); 96 PUSH_DATA (push, fifo->gart); 103 PUSH_DATA (push, fifo->vram); 104 PUSH_DATA (push, fifo->gart);
|
nv04_surface.c | 206 struct nv04_fifo *fifo = hw->chan->data; local 234 PUSH_DATA (push, fifo->vram); 242 PUSH_RELOC(push, src->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); 286 struct nv04_fifo *fifo = hw->chan->data; local 298 PUSH_RELOC(push, src->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); 299 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); 434 struct nv04_fifo *fifo = hw->chan->data local [all...] |
/external/autotest/client/bin/ |
harness_autoserv.py | 52 fifo_dir = autotemp.tempdir(suffix='-fifo', unique_id='harness', 55 fifo_path = os.path.join(fifo_dir.name, 'autoserv.fifo') 63 fifo = open(fifo_path) 64 fifo.read(1) 65 fifo.close()
|
/external/curl/docs/examples/ |
hiperfifo.c | 36 When running, the program creates the named pipe "hiper.fifo" 38 Whenever there is input into the fifo, the program reads the input as a list 44 % echo http://www.yahoo.com > hiper.fifo 47 % cat my-url-list > hiper.fifo 49 The fifo buffer is handled almost instantly, so you can even add more URL's 349 /* This gets called whenever data is received from the fifo */ 372 static const char *fifo = "hiper.fifo"; variable 378 fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); 379 if(lstat (fifo, &st) == 0) [all...] |
evhiperfifo.c | 39 When running, the program creates the named pipe "hiper.fifo" 41 Whenever there is input into the fifo, the program reads the input as a list 47 % echo http://www.yahoo.com > hiper.fifo 50 % cat my-url-list > hiper.fifo 52 The fifo buffer is handled almost instantly, so you can even add more URL's 369 /* This gets called whenever data is received from the fifo */ 393 static const char *fifo = "hiper.fifo"; local 396 fprintf(MSG_OUT, "Creating named pipe \"%s\"\n", fifo); 397 if(lstat (fifo, &st) == 0) [all...] |
/external/autotest/server/site_tests/autoupdate_EndToEndTest/ |
update_engine_performance_monitor.py | 16 # The prefix of FIFO files used when using background processes. 233 # process, setup a FIFO and monitor until SIGTERM is 234 # called. When that happes, write the JSON result to the FIFO. 241 # Prepare the FIFO ahead of time since it'll serve as an extra 254 fifo = open(fifo_path, 'w') variable 255 fifo.write(json_str) 256 fifo.close() 259 # If stopping a background instance, check that the FIFO is 261 # wait for it to write the JSON result on the FIFO. 269 fifo = open(fifo_path, 'r' variable [all...] |
/external/fio/t/ |
btrace2fio.c | 11 #include "../fifo.h" 170 * fifo refill frontend, to avoid reading data in trace sized bites 172 static int refill_fifo(struct fifo *fifo, int fd) 179 if (total > fifo_room(fifo)) 180 total = fifo_room(fifo); 189 ret = fifo_put(fifo, buf, ret); 195 * Retrieve 'len' bytes from the fifo, refilling if necessary. 197 static int trace_fifo_get(struct fifo *fifo, int fd, void *buf 484 struct fifo *fifo; local [all...] |
/external/mesa3d/src/gallium/drivers/nv30/ |
nv30_transfer.c | 405 struct nv04_fifo *fifo = push->channel->data; local 439 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); 440 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); 450 PUSH_RELOC(push, dst->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); 460 PUSH_RELOC(push, src->bo, 0, NOUVEAU_BO_OR, fifo->vram, fifo->gart); 502 struct nv04_fifo *fifo = push->channel->data local 692 struct nv04_fifo *fifo = nv->screen->channel->data; local [all...] |
nv30_screen.c | 329 struct nv04_fifo *fifo; local 390 fifo = screen->base.channel->data; 447 ret = nouveau_bo_wrap(screen->base.device, fifo->notify, &screen->notify); 462 PUSH_DATA (push, fifo->vram); /* TEXTURE0 */ 463 PUSH_DATA (push, fifo->gart); /* TEXTURE1 */ 464 PUSH_DATA (push, fifo->vram); /* COLOR1 */ 466 PUSH_DATA (push, fifo->vram); /* COLOR0 */ 467 PUSH_DATA (push, fifo->vram); /* ZETA */ 468 PUSH_DATA (push, fifo->vram); /* VTXBUF0 */ 469 PUSH_DATA (push, fifo->gart); /* VTXBUF1 * [all...] |