Home
last modified time | relevance | path

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

12345678910>>...15

/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/cpython3/Lib/
Dhmac.py31 blocksize = 64 # 512-bit HMAC; can be changed in subclasses. variable in HMAC
70 blocksize = self.inner.block_size
71 if blocksize < 16:
73 'default of %d.' % (blocksize, self.blocksize),
75 blocksize = self.blocksize
78 'Assuming %d.' % (self.blocksize),
80 blocksize = self.blocksize
84 self.block_size = blocksize
86 if len(key) > blocksize:
89 key = key.ljust(blocksize, b'\0')
[all …]
/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()
71 buf = malloc(fs->blocksize * BUF_BLOCKS); in ext2fs_image_inode_write()
96 if (check_zero_block(cp, fs->blocksize)) { in ext2fs_image_inode_write()
100 cp += fs->blocksize; in ext2fs_image_inode_write()
101 r = ext2fs_llseek(fd, fs->blocksize, in ext2fs_image_inode_write()
111 if (check_zero_block(cp + d*fs->blocksize, fs->blocksize)) in ext2fs_image_inode_write()
115 actual = write(fd, cp, fs->blocksize * d); in ext2fs_image_inode_write()
120 if (actual != (ssize_t) (fs->blocksize * d)) { in ext2fs_image_inode_write()
126 cp += fs->blocksize * d; 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
98 *retblocks = pi.PartitionLength.QuadPart / blocksize; in ext2fs_get_device_size2()
108 gi.Cylinders.QuadPart / blocksize; in ext2fs_get_device_size2()
112 *retblocks = filesize.QuadPart / blocksize; in ext2fs_get_device_size2()
118 *retblocks = filesize / blocksize;
143 errcode_t ext2fs_get_device_size2(const char *file, int blocksize, in ext2fs_get_device_size2() argument
159 *retblocks = size64 * size / blocksize; in ext2fs_get_device_size2()
177 *retblocks = size64 / blocksize; in ext2fs_get_device_size2()
188 *retblocks = size / (blocksize / 512); in ext2fs_get_device_size2()
199 *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 …]
Dlink.c29 unsigned int blocksize; member
36 int blocksize, in link_proc() argument
63 if ((offset + (int) curr_rec_len < blocksize - (8 + csum_size)) && in link_proc()
65 (offset + (int) curr_rec_len + (int) next->rec_len <= blocksize)) { in link_proc()
82 curr_rec_len == ls->fs->blocksize && in link_proc()
88 t = EXT2_DIRENT_TAIL(buf, ls->fs->blocksize); in link_proc()
95 curr_rec_len == ls->fs->blocksize - EXT2_DIR_REC_LEN(1) && in link_proc()
102 t = EXT2_DIRENT_TAIL(buf, ls->fs->blocksize); in link_proc()
173 ls.blocksize = fs->blocksize; in ext2fs_link()
/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/e2fsck/
Dextend.c31 int nblocks, blocksize; in main() local
41 blocksize = strtoul(argv[3], 0, 0); in main()
48 block = malloc(blocksize); in main()
51 blocksize); in main()
54 memset(block, 0, 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/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()
365 inodes = TT.blocksize/sizeof(struct ext2_inode); in get_inodespg()
377 for (temp = 0; temp < 4; temp++) if (TT.blocksize == 1024<<temp) break; in init_superblock()
388 sb->first_data_block = SWAP_LE32(TT.blocksize == 1024 ? 1 : 0); in init_superblock()
449 used += TT.blocksize - 1; in group_superblock_overhead()
450 used /= TT.blocksize; in group_superblock_overhead()
454 if (!group && TT.blocksize == 1024) used++; in group_superblock_overhead()
465 / (TT.blocksize/sizeof(struct ext2_inode)); in group_overhead()
[all …]
/external/u-boot/cmd/
Donenand.c66 int blocksize = (1 << this->erase_shift); in onenand_block_read() local
74 ops.ooblen = blocksize; in onenand_block_read()
76 ops.len = blocksize; in onenand_block_read()
83 ofs += blocksize; in onenand_block_read()
96 ofs += blocksize; in onenand_block_read()
99 ofs += blocksize; in onenand_block_read()
100 buf += blocksize; in onenand_block_read()
137 int blocksize = (1 << this->erase_shift); in onenand_block_write() local
162 skip_ofs += blocksize; in onenand_block_write()
167 ret = mtd_write(mtd, ofs, blocksize, &_retlen, buf); in onenand_block_write()
[all …]
/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/u-boot/fs/ext4/
Dext4fs.c56 int blocksize = (1 << (log2_fs_blocksize + log2blksz)); in ext4fs_read_file() local
66 if (blocksize <= 0) in ext4fs_read_file()
73 blockcnt = lldiv(((len + pos) + blocksize - 1), blocksize); in ext4fs_read_file()
75 for (i = lldiv(pos, blocksize); i < blockcnt; i++) { in ext4fs_read_file()
77 int blockoff = pos - (blocksize * i); in ext4fs_read_file()
78 int blockend = blocksize; in ext4fs_read_file()
88 blockend = (len + pos) - (blocksize * i); in ext4fs_read_file()
92 blockend = blocksize; in ext4fs_read_file()
96 if (i == lldiv(pos, blocksize)) { in ext4fs_read_file()
144 n = blocksize - skipfirst; in ext4fs_read_file()
[all …]
/external/e2fsprogs/tests/
Dmke2fs.conf.in3 blocksize = 4096
21 blocksize = 1024
26 blocksize = 1024
35 blocksize = 4096
39 blocksize = 4096
42 blocksize = 4096
/external/e2fsprogs/misc/
Dmke2fs.conf.in5 blocksize = 4096
18 blocksize = 1024
23 blocksize = 1024
38 blocksize = -1
42 blocksize = -1
45 blocksize = 4096
/external/e2fsprogs/debugfs/
Dlogdump.c166 inodes_per_block = (current_fs->blocksize in do_logdump()
350 unsigned int blocksize = 1024; in dump_journal() local
372 blocksize = EXT2_BLOCK_SIZE(sb); in dump_journal()
373 blocknr = (blocksize == 1024) ? 2 : 1; in dump_journal()
378 fprintf(out_file, "\tblocksize=%d\n", blocksize); in dump_journal()
386 ((ext2_loff_t) blocknr) * blocksize, in dump_journal()
393 current_fs->blocksize, 0); in dump_journal()
403 blocksize = be32_to_cpu(jsb->s_blocksize); in dump_journal()
420 ((ext2_loff_t) blocknr) * blocksize, in dump_journal()
421 buf, 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()
141 buf = malloc(current_fs->blocksize); in do_zap_block()
222 buf = malloc(current_fs->blocksize); in do_block_dump()
236 block_xattr_dump(stdout, buf, current_fs->blocksize); in do_block_dump()
238 do_byte_hexdump(stdout, buf, current_fs->blocksize); in do_block_dump()
/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/u-boot/drivers/fpga/
Dzynqpl.c336 size_t bsize, u32 blocksize, u32 *swap, in zynq_validate_bitstream() argument
342 buf_start = check_data((u8 *)buf, blocksize, swap); in zynq_validate_bitstream()
420 loff_t blocksize, actread; in zynq_loadfs() local
425 blocksize = fsinfo->blocksize; in zynq_loadfs()
434 if (fs_read(filename, (u32) buf, pos, blocksize, &actread) < 0) in zynq_loadfs()
437 if (zynq_validate_bitstream(desc, buf, bsize, blocksize, &swap, in zynq_loadfs()
444 buf = zynq_align_dma_buffer((u32 *)buf, blocksize, swap); in zynq_loadfs()
446 if (zynq_dma_transfer((u32)buf | 1, blocksize >> 2, in zynq_loadfs()
450 bsize -= blocksize; in zynq_loadfs()
451 pos += blocksize; in zynq_loadfs()
[all …]
/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/fsverity-utils/
Dcmd_setup.c134 data_to_hash = xmalloc(params->blocksize); in build_merkle_tree()
135 pending_hashes = xmalloc(params->blocksize); in build_merkle_tree()
163 if (!full_pread(file, data_to_hash, params->blocksize, in build_merkle_tree()
166 hash_update(hash, data_to_hash, params->blocksize); in build_merkle_tree()
181 if (pending_hash_bytes + digest_size > params->blocksize in build_merkle_tree()
185 params->blocksize - pending_hash_bytes); in build_merkle_tree()
190 params->blocksize, in build_merkle_tree()
384 aligned_filesize = ALIGN(filesize, params->blocksize); in fsveritysetup()
482 if (!parse_blocksize_option(optarg, &params.blocksize)) in fsverity_cmd_setup()
513 if (params.blocksize == 0) { in fsverity_cmd_setup()
[all …]
/external/pcre/dist2/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/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 for (i = 0; i < blocksize; i++) lmc->length[i] = 1; in ZopfliInitCache()
38 for (i = 0; i < blocksize; i++) lmc->dist[i] = 0; in ZopfliInitCache()
39 for (i = 0; i < ZOPFLI_CACHE_LENGTH * blocksize * 3; i++) lmc->sublen[i] = 0; in ZopfliInitCache()
/external/flac/libFLAC/
Dstream_encoder.c162 unsigned blocksize,
171 unsigned blocksize,
182 unsigned blocksize,
203 unsigned blocksize,
221 unsigned blocksize,
661 if(encoder->protected_->blocksize == 0) { in init_stream_internal_()
663 encoder->protected_->blocksize = 1152; in init_stream_internal_()
665 encoder->protected_->blocksize = 4096; in init_stream_internal_()
668 …if(encoder->protected_->blocksize < FLAC__MIN_BLOCK_SIZE || encoder->protected_->blocksize > FLAC_… in init_stream_internal_()
674 if(encoder->protected_->blocksize < encoder->protected_->max_lpc_order) in init_stream_internal_()
[all …]

12345678910>>...15