/external/ltp/testcases/kernel/io/writetest/ |
writetest.c | 47 #define BLOCKSIZE (1024*1024) 70 for (i = 0; i < BLOCKSIZE; i++) { 81 uint8_t buf[BLOCKSIZE]; 97 rv = write(fd, buf, BLOCKSIZE); 98 if (rv != BLOCKSIZE) { 116 uint8_t buf_actual[BLOCKSIZE]; 117 char buf_read[BLOCKSIZE]; 133 rv = read(fd, buf_read, BLOCKSIZE); 134 if (rv != BLOCKSIZE) { 138 for (n = 0; n < BLOCKSIZE; n++) [all...] |
/external/e2fsprogs/e2fsck/ |
mtrace.h | 106 #define BLOCKSIZE (1 << BLOCKLOG) 107 #define BLOCKIFY(SIZE) (((SIZE) + BLOCKSIZE - 1) / BLOCKSIZE) 154 #define BLOCK(A) (((char *) (A) - _heapbase) / BLOCKSIZE + 1) 155 #define ADDRESS(B) ((__ptr_t) (((B) - 1) * BLOCKSIZE + _heapbase))
|
/system/extras/ext4_utils/ |
mkuserimg_mke2fs.sh | 16 BLOCKSIZE=4096 106 MKE2FS_EXTENDED_OPTS+="stripe_width=$(($2/BLOCKSIZE))" 115 MKE2FS_EXTENDED_OPTS+="stride=$((($2 > 8192 ? $2 : 8192) / BLOCKSIZE))" 166 SIZE=$((SIZE / BLOCKSIZE)) 176 MAKE_EXT4FS_CMD="mke2fs $MKE2FS_OPTS -t $EXT_VARIANT -b $BLOCKSIZE $OUTPUT_FILE $SIZE"
|
/external/python/cpython2/Modules/_ctypes/ |
malloc_closure.c | 14 /* BLOCKSIZE can be adjusted. Larger blocksize will take a larger memory 19 #define BLOCKSIZE _pagesize 56 count = BLOCKSIZE / sizeof(ITEM);
|
/external/python/cpython3/Modules/_ctypes/ |
malloc_closure.c | 14 /* BLOCKSIZE can be adjusted. Larger blocksize will take a larger memory 19 #define BLOCKSIZE _pagesize 56 count = BLOCKSIZE / sizeof(ITEM);
|
/bootable/recovery/updater/ |
blockimg.cpp | 68 static constexpr size_t BLOCKSIZE = 4096; 255 return tgt_.blocks() * BLOCKSIZE - bytes_written_; 310 off64_t offset = static_cast<off64_t>(range.first) * BLOCKSIZE; 311 current_range_left_ = (range.second - range.first) * BLOCKSIZE; 489 if (!check_lseek(fd, static_cast<off64_t>(range.first) * BLOCKSIZE, SEEK_SET)) { 493 size_t size = (range.second - range.first) * BLOCKSIZE; 507 off64_t offset = static_cast<off64_t>(range.first) * BLOCKSIZE; 508 size_t size = (range.second - range.first) * BLOCKSIZE; 609 CHECK_LE((buffer_index + 1) * BLOCKSIZE, buffer.size()); 612 SHA1(buffer.data() + buffer_index * BLOCKSIZE, BLOCKSIZE, digest) [all...] |
/external/ltp/testcases/kernel/syscalls/fsync/ |
fsync02.c | 59 #define BLOCKSIZE 8192 103 offset = i * ((BLOCKSIZE * max_block) / data_blocks); 174 f_bavail = (stat_buf.f_bavail * stat_buf.f_frsize) / BLOCKSIZE;
|
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/ |
ChunkedIntArray.java | 270 final int BLOCKSIZE = 64; 271 int[] m_map[] = new int[BLOCKSIZE][]; 272 int m_mapSize = BLOCKSIZE; 290 m_mapSize+=BLOCKSIZE;
|
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/compression/ |
CompressionTableGenerator.java | 88 final static int BLOCKSIZE = 0xFF; 98 int [] offsetTable = new int [ BLOCKSIZE + 1 ]; 139 boolean [] singleTagTable = new boolean [ BLOCKSIZE + 1 ]; 141 for( i = 0x00; i <= BLOCKSIZE; i++ ) { 186 boolean [] unicodeTagTable = new boolean [ BLOCKSIZE + 1 ]; 188 for( i = 0x00; i <= BLOCKSIZE; i++ ) {
|
/external/zlib/src/contrib/untgz/ |
untgz.c | 65 #define BLOCKSIZE 512 91 char buffer[BLOCKSIZE]; 394 char fname[BLOCKSIZE]; 404 len = gzread(in, &buffer, BLOCKSIZE); 411 if (len != BLOCKSIZE) 506 if (remaining < 0 || remaining >= BLOCKSIZE) 511 len = gzread(in, fname, BLOCKSIZE); 514 if (fname[BLOCKSIZE-1] != 0 || (int)strlen(fname) > remaining) 529 unsigned int bytes = (remaining > BLOCKSIZE) ? BLOCKSIZE : remaining [all...] |
/toolchain/binutils/binutils-2.27/zlib/contrib/untgz/ |
untgz.c | 65 #define BLOCKSIZE 512 91 char buffer[BLOCKSIZE]; 394 char fname[BLOCKSIZE]; 404 len = gzread(in, &buffer, BLOCKSIZE); 411 if (len != BLOCKSIZE) 506 if (remaining < 0 || remaining >= BLOCKSIZE) 511 len = gzread(in, fname, BLOCKSIZE); 514 if (fname[BLOCKSIZE-1] != 0 || (int)strlen(fname) > remaining) 529 unsigned int bytes = (remaining > BLOCKSIZE) ? BLOCKSIZE : remaining [all...] |
/external/elfutils/lib/ |
md5.c | 129 /* Important: BLOCKSIZE must be a multiple of 64. */ 130 #define BLOCKSIZE 4096 132 char buffer[BLOCKSIZE + 72]; 141 /* We read the file in blocks of BLOCKSIZE bytes. One call of the 150 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); 154 while (sum < BLOCKSIZE && n != 0); 162 /* Process buffer with BLOCKSIZE bytes. Note that 163 BLOCKSIZE % 64 == 0 165 md5_process_block (buffer, BLOCKSIZE, &ctx);
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_init/ |
s-c1.c | 79 #define BLOCKSIZE (1000 * SCALABILITY_FACTOR) 81 #define NSEM_LIMIT (1000 * BLOCKSIZE) 110 sem_t sems[BLOCKSIZE]; 182 for (i = 0; i < BLOCKSIZE; i++) { 293 for (i = 0; i < BLOCKSIZE; i++) {
|
/toolchain/binutils/binutils-2.27/libiberty/ |
sha1.c | 44 #define BLOCKSIZE 4096 45 #if BLOCKSIZE % 64 != 0 46 # error "invalid BLOCKSIZE" 123 char buffer[BLOCKSIZE + 72]; 132 /* We read the file in blocks of BLOCKSIZE bytes. One call of the 141 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); 145 if (sum == BLOCKSIZE) 165 /* Process buffer with BLOCKSIZE bytes. Note that 166 BLOCKSIZE % 64 == 0 168 sha1_process_block (buffer, BLOCKSIZE, &ctx) [all...] |
md5.c | 137 /* Important: BLOCKSIZE must be a multiple of 64. */ 138 #define BLOCKSIZE 4096 140 char buffer[BLOCKSIZE + 72]; 149 /* We read the file in blocks of BLOCKSIZE bytes. One call of the 158 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); 162 while (sum < BLOCKSIZE && n != 0); 170 /* Process buffer with BLOCKSIZE bytes. Note that 171 BLOCKSIZE % 64 == 0 173 md5_process_block (buffer, BLOCKSIZE, &ctx);
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/sem_open/ |
s-c1.c | 80 #define BLOCKSIZE (100 * SCALABILITY_FACTOR) 109 sem_t *sems[BLOCKSIZE]; 182 for (i = 0; i < BLOCKSIZE; i++) { 303 for (i = 0; i < BLOCKSIZE; i++) {
|
/external/python/cpython3/Lib/ |
tarfile.py | 80 BLOCKSIZE = 512 # length of processing blocks 81 RECORDSIZE = BLOCKSIZE * 20 # length of records 586 self.buf = self.fileobj.read(BLOCKSIZE) 938 buf = struct.pack("%ds" % BLOCKSIZE, b"".join(parts)) 939 chksum = calc_chksums(buf[-BLOCKSIZE:])[0] 948 blocks, remainder = divmod(len(payload), BLOCKSIZE) 950 payload += (BLOCKSIZE - remainder) * NUL [all...] |
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
tarfile.py | 68 BLOCKSIZE = 512 # length of processing blocks
69 RECORDSIZE = BLOCKSIZE * 20 # length of records
621 self.buf = self.fileobj.read(BLOCKSIZE)
646 blocksize = 16 * 1024
variable in class:_BZ2Proxy 668 raw = self.fileobj.read(self.blocksize)
783 blocksize = 1024
variable in class:ExFileObject 835 buf = self.fileobj.read(self.blocksize)
[all...] |
/external/python/cpython2/Lib/ |
tarfile.py | 68 BLOCKSIZE = 512 # length of processing blocks 69 RECORDSIZE = BLOCKSIZE * 20 # length of records 629 self.buf = self.fileobj.read(BLOCKSIZE) 654 blocksize = 16 * 1024 variable in class:_BZ2Proxy 676 raw = self.fileobj.read(self.blocksize) 797 blocksize = 1024 variable in class:ExFileObject 849 buf = self.fileobj.read(self.blocksize) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/ |
tarfile.py | 68 BLOCKSIZE = 512 # length of processing blocks 69 RECORDSIZE = BLOCKSIZE * 20 # length of records 623 self.buf = self.fileobj.read(BLOCKSIZE) 648 blocksize = 16 * 1024 variable in class:_BZ2Proxy 670 raw = self.fileobj.read(self.blocksize) 785 blocksize = 1024 variable in class:ExFileObject 837 buf = self.fileobj.read(self.blocksize) [all...] |
/prebuilts/gdb/linux-x86/lib/python2.7/ |
tarfile.py | 68 BLOCKSIZE = 512 # length of processing blocks 69 RECORDSIZE = BLOCKSIZE * 20 # length of records 623 self.buf = self.fileobj.read(BLOCKSIZE) 648 blocksize = 16 * 1024 variable in class:_BZ2Proxy 670 raw = self.fileobj.read(self.blocksize) 785 blocksize = 1024 variable in class:ExFileObject 837 buf = self.fileobj.read(self.blocksize) [all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
tarfile.py | 68 BLOCKSIZE = 512 # length of processing blocks 69 RECORDSIZE = BLOCKSIZE * 20 # length of records 623 self.buf = self.fileobj.read(BLOCKSIZE) 648 blocksize = 16 * 1024 variable in class:_BZ2Proxy 670 raw = self.fileobj.read(self.blocksize) 785 blocksize = 1024 variable in class:ExFileObject 837 buf = self.fileobj.read(self.blocksize) [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
tarfile.py | 68 BLOCKSIZE = 512 # length of processing blocks 69 RECORDSIZE = BLOCKSIZE * 20 # length of records 623 self.buf = self.fileobj.read(BLOCKSIZE) 648 blocksize = 16 * 1024 variable in class:_BZ2Proxy 670 raw = self.fileobj.read(self.blocksize) 785 blocksize = 1024 variable in class:ExFileObject 837 buf = self.fileobj.read(self.blocksize) [all...] |
/external/ImageMagick/coders/ |
djvu.c | 148 #define BLOCKSIZE 65536 153 int blocksize = BLOCKSIZE; 154 char data[BLOCKSIZE]; 158 while ((size = (size_t) ReadBlob(image,(size_t) blocksize,data)) == blocksize) { 171 size_t blocksize = BLOCKSIZE; 172 unsigned char data[BLOCKSIZE]; 179 && (size = (size_t) ReadBlob(image,(size_t) blocksize,data)) == blocksize) 168 size_t blocksize = BLOCKSIZE; local [all...] |
/external/libvncserver/common/ |
md5.c | 138 /* Important: BLOCKSIZE must be a multiple of 64. */ 139 #define BLOCKSIZE 4096 141 char buffer[BLOCKSIZE + 72]; 150 /* We read the file in blocks of BLOCKSIZE bytes. One call of the 159 n = fread (buffer + sum, 1, BLOCKSIZE - sum, stream); 163 while (sum < BLOCKSIZE && n != 0); 171 /* Process buffer with BLOCKSIZE bytes. Note that 172 BLOCKSIZE % 64 == 0 174 md5_process_block (buffer, BLOCKSIZE, &ctx);
|