/external/ltp/testcases/kernel/io/direct_io/ |
diotest2.c | 26 * The bufsize should be in n*4k size for direct read, write. The offset 37 * diotest2 [-b bufsize] [-o offset] [-i iterations] [-f filename] 65 #define BUFSIZE 4096 74 int bufsize = BUFSIZE; variable 78 * For each iteration, write data starting at offse+iter*bufsize 88 if ((buf1 = valloc(bufsize)) == 0) { 92 if ((buf2 = valloc(bufsize)) == 0) { 97 /* seek bufsize*iteration and write. seek and read. verify. */ 99 fillbuf(buf1, bufsize, i) [all...] |
diotest3.c | 28 * determined by childnumber * bufsize. There is no need to use any locks. 37 * diotest3 [-b bufsize] [-o offset] [-n numchild] 65 #define BUFSIZE 4096 73 static int bufsize = BUFSIZE; /* Buffersize. Default 4k */ variable 80 "Usage: diotest3 [-b bufsize] [-o offset] [-n numchild] [-i iterations] [-f filename]\n"); 86 * For each iteration, write data starting at offse+iter*bufsize 99 seekoff = offset + bufsize * childnum; 100 if ((buf1 = valloc(bufsize)) == 0) { 104 if ((buf2 = valloc(bufsize)) == 0) [all...] |
diotest4.c | 82 #define BUFSIZE 4096 193 int bufsize = BUFSIZE; local 225 if ((buf0 = valloc(bufsize)) == NULL) { 230 fillbuf(buf0, bufsize, (char)i); 231 if (write(fd, buf0, bufsize) < 0) { 237 if ((buf2 = valloc(bufsize)) == NULL) { 248 count = bufsize; 285 offset = bufsize * (fblocks + 10); 286 count = bufsize; [all...] |
diotest5.c | 31 * The bufsize should be in n*4k size for direct readv, writev. The offset 39 * diotest5 [-b bufsize] [-o offset] [-i iterations] 68 #define BUFSIZE 4096 75 static int bufsize = BUFSIZE; /* Buffer size. Default 4k */ variable 102 if ((iovp->iov_base = valloc(bufsize)) == NULL) { 107 iovp->iov_len = bufsize; 110 if ((iovp->iov_base = valloc(bufsize)) == NULL) { 115 iovp->iov_len = bufsize; 161 "Usage: diotest5 [-b bufsize] [-o offset] [ -i iteration] [ -v nvector] [-f filename]\n") [all...] |
diotest6.c | 25 * determined by childnumber * bufsize. There is no need to use any locks. 33 * diotest6 [-b bufsize] [-o offset] [-n numchild] [-i iterations] 56 #define BUFSIZE 4096 64 static int bufsize = BUFSIZE; variable 76 "Usage: diotest6 [-b bufsize] [-o offset] [-n numchild] [-i iterations] [-v nvector] [-f filename]\n"); 82 * For each iteration, write data starting at offse+iter*bufsize 104 iov_r[i].iov_base = valloc(bufsize); 109 iov_r[i].iov_len = bufsize; 112 iov_w[i].iov_base = valloc(bufsize); [all...] |
/external/ltp/testcases/kernel/io/ltp-aiodio/ |
ltp-diorh.c | 118 int bufsize; local 128 bufsize = READSIZE; 130 bufsize = WRITESIZE; 131 err = posix_memalign((void **)&iobuf, pagesize, bufsize); 134 bufsize);
|
/external/ltp/testcases/kernel/module/query_module/ |
query_module02.c | 100 size_t bufsize; member in struct:test_case_t 156 tdat[testno].bufsize, &ret_size));
|
query_module03.c | 107 size_t bufsize; member in struct:test_case_t 172 tdat[testno].bufsize,
|
/external/tensorflow/tensorflow/core/kernels/ |
record_yielder.h | 41 // (opts.bufsize + opts.parellelism * 16). 47 // opts.bufsize = 1000000; // A randomized buffer with 1M records. 76 uint64 bufsize = 1; member in struct:tensorflow::RecordYielder::Options 138 return stop_ || buf_.size() < opts_.bufsize; 148 buf_.size() >= std::max<uint64>(1, opts_.bufsize / 2));
|
/external/vboot_reference/host/lib/ |
util_misc.c | 44 uint32_t bufsize; local 51 bufsize = (2 + nwords + nwords) * sizeof(uint32_t); 52 outbuf = malloc(bufsize); 57 *keyb_size = bufsize;
|
/system/vold/bench/ |
benchgen.py | 107 bufsize = 1048576 variable 172 print >>bench, "char* buf = (char*) malloc(%d);" % (bufsize) 221 count = min(int(e.args[2]), bufsize) 230 count = min(int(e.args[2]), bufsize) 239 count = min(int(e.args[2]), bufsize) 247 count = min(int(e.args[2]), bufsize) 266 count = min(int(e.args[1]), bufsize)
|
/cts/tests/tests/media/libmediandkjni/ |
native_media_decoder_source.cpp | 142 size_t bufsize; local 143 uint8_t *buf = AMediaCodec_getInputBuffer(mDec.get(), bufidx, &bufsize); 144 int sampleSize = AMediaExtractor_readSampleData(mEx.get(), buf, bufsize);
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
dynload_aix.c | 41 register int errflag, bufsize = 1024;
local 48 if ((ldibuf = malloc(bufsize)) == NULL) {
52 while ((errflag = loadquery(L_GETINFO, ldibuf, bufsize)) == -1
55 bufsize += 1024;
56 if ((ldibuf = malloc(bufsize)) == NULL) {
|
/external/freetype/builds/amiga/src/base/ |
ftsystem.c | 359 ULONG bufsize; local 361 bufsize = ( read_bytes > IOBUF_SIZE ) ? IOBUF_SIZE : read_bytes; 363 sysfile->iobuf_start = sysfile->iobuf_end - bufsize; 364 CopyMem( &buffer[read_bytes - bufsize] , sysfile->iobuf, bufsize );
|
/external/libdivsufsort/lib/ |
divsufsort.c | 46 saidx_t i, j, k, t, m, bufsize; local 105 buf = SA + m, bufsize = (n - (2 * m)) / tmp; 110 curbuf = buf + tmp * bufsize; 129 curbuf, bufsize, 2, n, *(SA + k) == (m - 1)); 133 buf = SA + m, bufsize = n - (2 * m); 139 buf, bufsize, 2, n, *(SA + i) == (m - 1));
|
/external/pdfium/fpdfsdk/ |
fpdfdoc_embeddertest.cpp | 154 unsigned long bufsize = FPDFAction_GetFilePath(action, nullptr, 0); local 155 ASSERT_EQ(kExpectedLength, bufsize); 158 EXPECT_EQ(bufsize, FPDFAction_GetFilePath(action, buf, bufsize));
|
/external/ppp/pppd/include/ |
pcap-int.h | 81 int bufsize; member in struct:pcap
|
/external/python/cpython2/Python/ |
dynload_aix.c | 41 register int errflag, bufsize = 1024; local 48 if ((ldibuf = malloc(bufsize)) == NULL) { 52 while ((errflag = loadquery(L_GETINFO, ldibuf, bufsize)) == -1 55 bufsize += 1024; 56 if ((ldibuf = malloc(bufsize)) == NULL) {
|
/external/python/cpython3/Modules/clinic/ |
zlibmodule.c.h | 47 "decompress($module, data, /, wbits=MAX_WBITS, bufsize=DEF_BUF_SIZE)\n" 56 " bufsize\n" 64 Py_ssize_t bufsize); 70 static const char * const _keywords[] = {"", "wbits", "bufsize", NULL}; 74 Py_ssize_t bufsize = DEF_BUF_SIZE; local 77 &data, &wbits, ssize_t_converter, &bufsize)) { 80 return_value = zlib_decompress_impl(module, &data, wbits, bufsize);
|
/external/python/cpython3/Python/ |
dynload_aix.c | 36 int errflag, bufsize = 1024; local 43 if ((ldibuf = malloc(bufsize)) == NULL) { 47 while ((errflag = loadquery(L_GETINFO, ldibuf, bufsize)) == -1 50 bufsize += 1024; 51 if ((ldibuf = malloc(bufsize)) == NULL) {
|
/external/tensorflow/tensorflow/core/util/ |
cuda_kernel_helper_test.cu.cc | 46 __global__ void Count1D(CudaLaunchConfig config, int bufsize, int* outbuf) { 51 atomicAdd(&outbuf[x % bufsize], 1); 54 __global__ void Count2D(Cuda2DLaunchConfig config, int bufsize, int* outbuf) { 64 atomicAdd(&outbuf[idx % bufsize], 1); 68 __global__ void Count3D(Cuda3DLaunchConfig config, int bufsize, int* outbuf) { 84 atomicAdd(&outbuf[idx % bufsize], 1); 132 const int bufsize = 1024; member in class:tensorflow::CudaLaunchConfigTest 138 cudaError_t err = cudaMallocManaged(&outbuf, sizeof(int) * bufsize); 154 cfg = GetCudaLaunchConfig(bufsize, d); \ 160 cfg, bufsize, outbuf); [all...] |
/external/vboot_reference/cgpt/ |
cgpt_nor.c | 99 const int bufsize = 4096; local 100 char *buf = malloc(bufsize); 123 if (to_read > bufsize) { 124 to_read = bufsize;
|
/external/vboot_reference/tests/ |
vb21_host_sig_tests.c | 54 uint32_t bufsize; local 121 bufsize = c_sig_offs + size; 122 buf = calloc(1, bufsize); 125 c->total_size = bufsize; 138 bufsize = c_sig_offs + size; 139 buf = calloc(1, bufsize); 142 c->total_size = bufsize;
|
/toolchain/binutils/binutils-2.27/opcodes/ |
s390-dis.c | 267 int status, opsize, bufsize, bytes_to_dump, i; local 280 for (bufsize = 0; bufsize < 6; bufsize++) 281 if (info->read_memory_func (memaddr, buffer, bufsize + 1, info) != 0) 283 if (bufsize <= 0) 289 status = opsize > bufsize; 293 bufsize = 6; 332 bytes_to_dump = bufsize >= 4 ? 4 : bufsize; [all...] |
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/ |
DLexerBase.h | 113 int bufsize;
member in class:DLGState 178 int bufsize() { return _bufsize; }
function in class:DLGLexerBase 184 unsigned bufsize=2000,
|