Home
last modified time | relevance | path

Searched refs:READSIZE (Results 1 – 4 of 4) sorted by relevance

/external/ltp/testcases/kernel/io/ltp-aiodio/
Dltp-diorh.c46 #define READSIZE 32*1024*1024 macro
89 for (offset = 0; offset + READSIZE <= BIGSIZE; offset += READSIZE) { in do_direct_reads()
90 rc = pread(fd, iobuf, READSIZE, offset); in do_direct_reads()
92 if (rc != READSIZE) { in do_direct_reads()
94 pass, rc, READSIZE); in do_direct_reads()
97 for (i = 0, p = (int *)iobuf; i < READSIZE; i += 4) { in do_direct_reads()
128 bufsize = READSIZE; in main()
129 if (WRITESIZE > READSIZE) in main()
/external/flac/examples/cpp/encode/file/
Dmain.cpp49 #define READSIZE 1024 macro
52 static FLAC__byte buffer[READSIZE/*samples*/ * 2/*bytes_per_sample*/ * 2/*channels*/]; /* we read t…
53 static FLAC__int32 pcm[READSIZE/*samples*/ * 2/*channels*/];
140 size_t need = (left>READSIZE? (size_t)READSIZE : (size_t)left); in main()
/external/flac/examples/c/encode/file/
Dmain.c41 #define READSIZE 1024 macro
44 static FLAC__byte buffer[READSIZE/*samples*/ * 2/*bytes_per_sample*/ * 2/*channels*/]; /* we read t…
45 static FLAC__int32 pcm[READSIZE/*samples*/ * 2/*channels*/];
132 size_t need = (left>READSIZE? (size_t)READSIZE : (size_t)left); in main()
/external/ltp/testcases/kernel/io/direct_io/
Ddma_thread_diotest.c109 #define READSIZE (1024*1024) macro
119 #define MAX_WORKERS (READSIZE/PAGE_SIZE)
268 for (offset = 0; offset < FILESIZE; offset += READSIZE) { in dma_thread_diotest_verify()
269 memset(buffer, PATTERN, READSIZE + align); in dma_thread_diotest_verify()
278 READSIZE - PAGE_SIZE * (workers - 1); in dma_thread_diotest_verify()
422 if (posix_memalign((void **)&buffer, PAGE_SIZE, READSIZE + align) != 0) in setup()