Home
last modified time | relevance | path

Searched refs:blocksize (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/external/lz4/tests/
Dtest_custom_block_sizes.sh19 for blocksize in 32 65535 65536
21 echo Testing -B$blocksize
22 $LZ4 -f -B$blocksize $TMPFILE1
23 $LZ4 -f -B$blocksize $TMPFILE2
25 $CHECKFRAME -B$blocksize -b4 $TMPFILE.lz4 || failures="$failures $blocksize "
28 for blocksize in 65537 262143 262144
30 echo Testing -B$blocksize
31 $LZ4 -f -B$blocksize $TMPFILE1
32 $LZ4 -f -B$blocksize $TMPFILE2
34 $CHECKFRAME -B$blocksize -b5 $TMPFILE.lz4 || failures="$failures $blocksize "
[all …]
/external/liburing/test/
Dfpos.c43 static int test_read(struct io_uring *ring, bool async, int blocksize) in test_read() argument
52 unsigned char buff[QUEUE_SIZE * blocksize]; in test_read()
53 unsigned char reordered[QUEUE_SIZE * blocksize]; in test_read()
68 buff + i * blocksize, in test_read()
69 blocksize, -1); in test_read()
92 buff + cqe->user_data * blocksize, blocksize); in test_read()
99 } else if (res < 0 || res > blocksize) { in test_read()
138 static int test_write(struct io_uring *ring, bool async, int blocksize) in test_write() argument
145 char data[blocksize+1]; in test_write()
146 char readbuff[QUEUE_SIZE*blocksize+1]; in test_write()
[all …]
/external/libdivsufsort/examples/
Dbwt.c88 saint_t i, blocksize = 32, needclose = 3; local
98 blocksize = atoi(argv[i + 1]);
99 if(blocksize < 0) { blocksize = 1; }
100 else if(512 < blocksize) { blocksize = 512; }
103 blocksize <<= 20;
164 if((blocksize == 0) || (n < blocksize)) { blocksize = (saidx_t)n; }
165 } else if(blocksize == 0) { blocksize = 32 << 20; }
168 T = (sauchar_t *)malloc(blocksize * sizeof(sauchar_t));
169 SA = (saidx_t *)malloc(blocksize * sizeof(saidx_t));
176 if(write_int(ofp, blocksize) != 4) {
[all …]
/external/python/cpython2/Lib/
Dhmac.py28 blocksize = 64 # 512-bit HMAC; can be changed in subclasses. variable in HMAC
57 blocksize = self.inner.block_size
58 if blocksize < 16:
62 'default of %d.' % (blocksize, self.blocksize),
64 blocksize = self.blocksize
67 'Assuming %d.' % (self.blocksize),
69 blocksize = self.blocksize
71 if len(key) > blocksize:
74 key = key + chr(0) * (blocksize - len(key))
/external/e2fsprogs/lib/ext2fs/
Dimager.c44 static int check_zero_block(char *buf, int blocksize) in check_zero_block() argument
47 int left = blocksize; in check_zero_block()
72 buf = malloc(fs->blocksize * BUF_BLOCKS); in ext2fs_image_inode_write()
102 if (check_zero_block(cp, fs->blocksize)) { in ext2fs_image_inode_write()
106 cp += fs->blocksize; in ext2fs_image_inode_write()
107 r = ext2fs_llseek(fd, fs->blocksize, in ext2fs_image_inode_write()
118 d * fs->blocksize, in ext2fs_image_inode_write()
119 fs->blocksize)) in ext2fs_image_inode_write()
123 actual = write(fd, cp, d * fs->blocksize); in ext2fs_image_inode_write()
128 if (actual != d * fs->blocksize) { in ext2fs_image_inode_write()
[all …]
Dgetsize.c74 errcode_t ext2fs_get_device_size2(const char *file, int blocksize, in ext2fs_get_device_size2() argument
97 *retblocks = pi.PartitionLength.QuadPart / blocksize; in ext2fs_get_device_size2()
107 gi.Cylinders.QuadPart / blocksize; in ext2fs_get_device_size2()
111 *retblocks = filesize.QuadPart / blocksize; in ext2fs_get_device_size2()
117 *retblocks = filesize / blocksize;
142 errcode_t ext2fs_get_device_size2(const char *file, int blocksize, in ext2fs_get_device_size2() argument
158 *retblocks = size64 * size / blocksize; in ext2fs_get_device_size2()
176 *retblocks = size64 / blocksize; in ext2fs_get_device_size2()
187 *retblocks = size / (blocksize / 512); in ext2fs_get_device_size2()
198 *retblocks = this_floppy.size / (blocksize / 512); in ext2fs_get_device_size2()
[all …]
Ddir_iterate.c33 if (fs->blocksize < 65536) in ext2fs_get_rec_len()
36 *rec_len = fs->blocksize; in ext2fs_get_rec_len()
46 if ((len > fs->blocksize) || (fs->blocksize > (1 << 18)) || (len & 3)) in ext2fs_set_rec_len()
52 if (len == fs->blocksize) { in ext2fs_set_rec_len()
53 if (fs->blocksize == 65536) in ext2fs_set_rec_len()
79 (offset <= fs->blocksize - DIRENT_MIN_LENGTH)) { in ext2fs_validate_entry()
100 int blocksize, in ext2fs_dir_iterate2() argument
119 retval = ext2fs_get_mem(fs->blocksize, &ctx.buf); in ext2fs_dir_iterate2()
142 int blocksize,
151 int blocksize, char *buf, void *priv_data) in xlate_func() argument
[all …]
/external/python/cpython3/Lib/
Dhmac.py32 blocksize = 64 # 512-bit HMAC; can be changed in subclasses. variable in HMAC
85 blocksize = self._inner.block_size
86 if blocksize < 16:
88 'default of %d.' % (blocksize, self.blocksize),
90 blocksize = self.blocksize
93 'Assuming %d.' % (self.blocksize),
95 blocksize = self.blocksize
97 if len(key) > blocksize:
102 self.block_size = blocksize
104 key = key.ljust(blocksize, b'\0')
[all …]
/external/e2fsprogs/debugfs/
Dlogdump.c76 static void dump_fc_block(FILE *out_file, char *buf, int blocksize,
174 inodes_per_block = (current_fs->blocksize in do_logdump()
363 unsigned int blocksize = 1024; in dump_journal() local
388 blocksize = EXT2_BLOCK_SIZE(sb); in dump_journal()
389 blocknr = (blocksize == 1024) ? 2 : 1; in dump_journal()
394 fprintf(out_file, "\tblocksize=%d\n", blocksize); in dump_journal()
402 ((ext2_loff_t) blocknr) * blocksize, in dump_journal()
409 current_fs->blocksize, 0); in dump_journal()
419 blocksize = be32_to_cpu(jsb->s_blocksize); in dump_journal()
420 if ((current_fs && (blocksize != current_fs->blocksize)) || in dump_journal()
[all …]
Dzap.c58 if (bit >= (int) current_fs->blocksize * 8) { in do_zap_block()
61 current_fs->blocksize); in do_zap_block()
81 if (offset >= (int) current_fs->blocksize) { in do_zap_block()
84 current_fs->blocksize); in do_zap_block()
109 length = current_fs->blocksize - offset; in do_zap_block()
110 if ((offset + length) > (int) current_fs->blocksize) { in do_zap_block()
142 buf = malloc(current_fs->blocksize); in do_zap_block()
226 buf = malloc(current_fs->blocksize); in do_block_dump()
241 block_xattr_dump(stdout, buf, current_fs->blocksize); in do_block_dump()
243 do_byte_hexdump(stdout, buf, current_fs->blocksize); in do_block_dump()
/external/toybox/toys/pending/
Dmke2fs.c79 long blocksize;
254 uint32_t dblocks = (uint32_t)((size+(TT.blocksize-1))/TT.blocksize); in file_blocks_used()
255 uint32_t idx=TT.blocksize/4, iblocks=0, diblocks=0, tiblocks=0; in file_blocks_used()
363 inodes = TT.blocksize/sizeof(struct ext2_inode); in get_inodespg()
375 for (temp = 0; temp < 4; temp++) if (TT.blocksize == 1024<<temp) break; in init_superblock()
386 sb->first_data_block = SWAP_LE32(TT.blocksize == 1024 ? 1 : 0); in init_superblock()
447 used += TT.blocksize - 1; in group_superblock_overhead()
448 used /= TT.blocksize; in group_superblock_overhead()
452 if (!group && TT.blocksize == 1024) used++; in group_superblock_overhead()
463 / (TT.blocksize/sizeof(struct ext2_inode)); in group_overhead()
[all …]
/external/e2fsprogs/e2fsck/
Dextend.c31 int nblocks, blocksize; in main() local
42 blocksize = strtoul(argv[3], 0, 0); in main()
49 retval = ext2fs_get_memzero(blocksize, &block); in main()
52 blocksize); in main()
61 ret = lseek(fd, nblocks*blocksize, SEEK_SET); in main()
66 ret = read(fd, block, blocksize); in main()
71 ret = lseek(fd, nblocks*blocksize, SEEK_SET); in main()
76 ret = write(fd, block, blocksize); in main()
/external/autotest/client/tests/disktest/src/
Ddisktest.c35 unsigned int blocksize = 4096; variable
70 offset = block; offset *= blocksize; // careful of overflow in write_block()
72 if (write(fd, buffer, blocksize) != blocksize) { in write_block()
92 offset = block; offset *= blocksize; // careful of overflow in verify_block()
94 if (read(fd, buffer, blocksize) != blocksize) { in verify_block()
150 buffer = malloc(blocksize); in write_file()
182 unsigned int align = (blocksize > 4096) ? blocksize : 4096; in verify_file()
183 void *buffer = memalign(align, blocksize); in verify_file()
270 blocksize = atoi(optarg); in main()
293 blocks = megabytes * (1024 * 1024 / blocksize); in main()
[all …]
/external/e2fsprogs/misc/
Dmke2fs.conf.in5 blocksize = 4096
17 blocksize = 1024
21 blocksize = 1024
35 blocksize = -1
39 blocksize = -1
42 blocksize = 4096
/external/e2fsprogs/tests/
Dmke2fs.conf.in3 blocksize = 4096
21 blocksize = 1024
25 blocksize = 1024
33 blocksize = 4096
37 blocksize = 4096
40 blocksize = 4096
/external/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate05.c34 static blksize_t blocksize; variable
49 blocksize = statbuf.st_blksize; in setup()
50 bufsize = FALLOCATE_BLOCKS * blocksize; in setup()
87 for (TST_RET = 0, extsize = 0; !TST_RET; extsize += blocksize) in run()
88 TEST(fallocate(fd, 0, bufsize + extsize, blocksize)); in run()
101 extsize -= blocksize; in run()
103 extsize / blocksize); in run()
120 tmp = DEALLOCATE_BLOCKS * blocksize; in run()
Dfallocate06.c62 static blksize_t blocksize; variable
97 blocksize = statbuf.st_blksize; in setup()
98 block_offset = MIN(blocksize / 2, (blksize_t)512); in setup()
99 wbuf_size = MAX(WRITE_BLOCKS, FALLOCATE_BLOCKS) * blocksize; in setup()
100 rbuf_size = (DEALLOCATE_BLOCKS + 1) * blocksize; in setup()
104 if (blocksize < 2) in setup()
105 tst_brk(TCONF, "Block size %ld too small for test", blocksize); in setup()
186 size = WRITE_BLOCKS * blocksize; in run()
191 size = FALLOCATE_BLOCKS * blocksize; in run()
213 size = DEALLOCATE_BLOCKS * blocksize; in run()
/external/zopfli/src/zopfli/
Dcache.c28 void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc) { in ZopfliInitCache() argument
30 lmc->length = (unsigned short*)malloc(sizeof(unsigned short) * blocksize); in ZopfliInitCache()
31 lmc->dist = (unsigned short*)malloc(sizeof(unsigned short) * blocksize); in ZopfliInitCache()
33 lmc->sublen = (unsigned char*)malloc(ZOPFLI_CACHE_LENGTH * 3 * blocksize); in ZopfliInitCache()
37 (unsigned long)ZOPFLI_CACHE_LENGTH * 3 * blocksize); in ZopfliInitCache()
43 for (i = 0; i < blocksize; i++) lmc->length[i] = 1; in ZopfliInitCache()
44 for (i = 0; i < blocksize; i++) lmc->dist[i] = 0; in ZopfliInitCache()
45 for (i = 0; i < ZOPFLI_CACHE_LENGTH * blocksize * 3; i++) lmc->sublen[i] = 0; in ZopfliInitCache()
/external/strace/tests-mx32/
Dnlattr_crypto_user_alg.c102 .blocksize = 0xabcdefdc, in main()
110 PRINT_FIELD_U(", ", rhash, blocksize); in main()
119 .blocksize = 0xabcdefac, in main()
129 PRINT_FIELD_U(", ", rblkcipher, blocksize); in main()
140 .blocksize = 0xbaefdbac, in main()
149 PRINT_FIELD_U(", ", raead, blocksize); in main()
172 .blocksize = 0xabcdefac, in main()
181 PRINT_FIELD_U(", ", rcipher, blocksize); in main()
/external/strace/tests-m32/
Dnlattr_crypto_user_alg.c102 .blocksize = 0xabcdefdc, in main()
110 PRINT_FIELD_U(", ", rhash, blocksize); in main()
119 .blocksize = 0xabcdefac, in main()
129 PRINT_FIELD_U(", ", rblkcipher, blocksize); in main()
140 .blocksize = 0xbaefdbac, in main()
149 PRINT_FIELD_U(", ", raead, blocksize); in main()
172 .blocksize = 0xabcdefac, in main()
181 PRINT_FIELD_U(", ", rcipher, blocksize); in main()
/external/strace/tests/
Dnlattr_crypto_user_alg.c102 .blocksize = 0xabcdefdc, in main()
110 PRINT_FIELD_U(", ", rhash, blocksize); in main()
119 .blocksize = 0xabcdefac, in main()
129 PRINT_FIELD_U(", ", rblkcipher, blocksize); in main()
140 .blocksize = 0xbaefdbac, in main()
149 PRINT_FIELD_U(", ", raead, blocksize); in main()
172 .blocksize = 0xabcdefac, in main()
181 PRINT_FIELD_U(", ", rcipher, blocksize); in main()
/external/mesa3d/src/gallium/drivers/r300/compiler/
Dmemory_pool.c55 unsigned int blocksize = pool->total_allocated; in refill_pool() local
58 if (!blocksize) in refill_pool()
59 blocksize = 2*POOL_LARGE_ALLOC; in refill_pool()
61 newblock = malloc(blocksize); in refill_pool()
66 pool->end = ((unsigned char*)newblock) + blocksize; in refill_pool()
67 pool->total_allocated += blocksize; in refill_pool()
/external/ltp/lib/
Dtst_memutils.c21 size_t i, map_count = 0, safety = 0, blocksize = BLOCKSIZE; in tst_pollute_memory() local
59 blocksize = MIN(maxsize, blocksize); in tst_pollute_memory()
60 map_count = maxsize / blocksize; in tst_pollute_memory()
68 map_blocks[i] = mmap(NULL, blocksize, PROT_READ | PROT_WRITE, in tst_pollute_memory()
76 memset(map_blocks[i], fillchar, blocksize); in tst_pollute_memory()
80 SAFE_MUNMAP(map_blocks[i], blocksize); in tst_pollute_memory()
/external/pcre/src/
Dpcre2_serialize.c105 total_size += re->blocksize; in pcre2_serialize_encode()
130 (void)memcpy(dst_bytes, (char *)re, re->blocksize); in pcre2_serialize_encode()
149 dst_bytes += re->blocksize; in pcre2_serialize_encode()
207 CODE_BLOCKSIZE_TYPE blocksize; in pcre2_serialize_decode() local
208 memcpy(&blocksize, src_bytes + offsetof(pcre2_real_code, blocksize), in pcre2_serialize_decode()
210 if (blocksize <= sizeof(pcre2_real_code)) in pcre2_serialize_decode()
215 dst_re = (pcre2_real_code *)PRIV(memctl_malloc)(blocksize, in pcre2_serialize_decode()
231 src_bytes + sizeof(pcre2_memctl), blocksize - sizeof(pcre2_memctl)); in pcre2_serialize_decode()
247 src_bytes += blocksize; in pcre2_serialize_decode()
/external/flac/src/libFLAC/
Dstream_encoder.c173 uint32_t blocksize,
184 uint32_t blocksize,
193 uint32_t blocksize,
204 uint32_t blocksize,
224 uint32_t blocksize,
241 uint32_t blocksize,
688 if(encoder->protected_->blocksize == 0) { in init_stream_internal_()
690 encoder->protected_->blocksize = 1152; in init_stream_internal_()
692 encoder->protected_->blocksize = 4096; in init_stream_internal_()
695 …if(encoder->protected_->blocksize < FLAC__MIN_BLOCK_SIZE || encoder->protected_->blocksize > FLAC_… in init_stream_internal_()
[all …]

12345678910>>...15