Home
last modified time | relevance | path

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

12345678910>>...13

/external/syslinux/gpxe/src/crypto/
Dcbc.c63 size_t blocksize = raw_cipher->blocksize; in cbc_encrypt() local
65 assert ( ( len % blocksize ) == 0 ); in cbc_encrypt()
68 cbc_xor ( src, cbc_ctx, blocksize ); in cbc_encrypt()
69 cipher_encrypt ( raw_cipher, ctx, cbc_ctx, dst, blocksize ); in cbc_encrypt()
70 memcpy ( cbc_ctx, dst, blocksize ); in cbc_encrypt()
71 dst += blocksize; in cbc_encrypt()
72 src += blocksize; in cbc_encrypt()
73 len -= blocksize; in cbc_encrypt()
89 size_t blocksize = raw_cipher->blocksize; in cbc_decrypt() local
91 assert ( ( len % blocksize ) == 0 ); in cbc_decrypt()
[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/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 = lseek(fd, fs->blocksize, SEEK_CUR); in ext2fs_image_inode_write()
110 if (check_zero_block(cp + d*fs->blocksize, fs->blocksize)) in ext2fs_image_inode_write()
114 actual = write(fd, cp, fs->blocksize * d); in ext2fs_image_inode_write()
119 if (actual != (ssize_t) (fs->blocksize * d)) { in ext2fs_image_inode_write()
125 cp += fs->blocksize * d; in ext2fs_image_inode_write()
[all …]
Dgetsize.c74 errcode_t ext2fs_get_device_size(const char *file, int blocksize, in ext2fs_get_device_size() argument
98 *retblocks = pi.PartitionLength.QuadPart / blocksize; in ext2fs_get_device_size()
108 gi.Cylinders.QuadPart / blocksize; in ext2fs_get_device_size()
112 *retblocks = filesize.QuadPart / blocksize; in ext2fs_get_device_size()
118 *retblocks = filesize / blocksize;
143 errcode_t ext2fs_get_device_size2(const char *file, int blocksize, in ext2fs_get_device_size2() argument
156 *retblocks = size64 / (blocksize / 512); in ext2fs_get_device_size2()
174 *retblocks = size64 / blocksize; in ext2fs_get_device_size2()
185 *retblocks = size / (blocksize / 512); in ext2fs_get_device_size2()
196 *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()
Drw_bitmaps.c57 memset(block_buf, 0xff, fs->blocksize); in write_bitmaps()
65 memset(inode_buf, 0xff, fs->blocksize); in write_bitmaps()
88 for (j = nbits; j < fs->blocksize * 8; j++) in write_bitmaps()
214 if ((block_nbytes > (int) fs->blocksize) || in read_bitmaps()
215 (inode_nbytes > (int) fs->blocksize)) in read_bitmaps()
254 blk = (fs->image_header->offset_inodemap / fs->blocksize); in read_bitmaps()
261 cnt = fs->blocksize << 3; in read_bitmaps()
268 ino_itr += fs->blocksize << 3; in read_bitmaps()
269 ino_cnt -= fs->blocksize << 3; in read_bitmaps()
270 inode_nbytes -= fs->blocksize; in read_bitmaps()
[all …]
Dmkjournal.c56 if ((retval = ext2fs_get_mem(fs->blocksize, &jsb))) in ext2fs_create_journal_superblock()
59 memset (jsb, 0, fs->blocksize); in ext2fs_create_journal_superblock()
66 jsb->s_blocksize = htonl(fs->blocksize); in ext2fs_create_journal_superblock()
78 jsb->s_first = htonl(ext2fs_journal_sb_start(fs->blocksize) + 1); in ext2fs_create_journal_superblock()
110 ret_size = write(fd, buf, fs->blocksize); in write_journal_file()
115 if (ret_size != (int) fs->blocksize) in write_journal_file()
117 memset(buf, 0, fs->blocksize); in write_journal_file()
123 ret_size = write(fd, buf, fs->blocksize); in write_journal_file()
128 if (ret_size != (int) fs->blocksize) in write_journal_file()
151 #define MAX_STRIDE_LENGTH (4194304 / (int) fs->blocksize)
[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/toybox/toys/pending/
Dmke2fs.c79 long blocksize; in GLOBALS()
118 uint32_t dblocks = (uint32_t)((size+(TT.blocksize-1))/TT.blocksize); in file_blocks_used()
119 uint32_t idx=TT.blocksize/4, iblocks=0, diblocks=0, tiblocks=0; in file_blocks_used()
229 inodes = TT.blocksize/sizeof(struct ext2_inode); in get_inodespg()
241 for (temp = 0; temp < 4; temp++) if (TT.blocksize == 1024<<temp) break; in init_superblock()
252 sb->first_data_block = SWAP_LE32(TT.blocksize == 1024 ? 1 : 0); in init_superblock()
313 used += TT.blocksize - 1; in group_superblock_overhead()
314 used /= TT.blocksize; in group_superblock_overhead()
318 if (!group && TT.blocksize == 1024) used++; in group_superblock_overhead()
329 / (TT.blocksize/sizeof(struct ext2_inode)); in group_overhead()
[all …]
/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()
Drehash.c121 offset = blockcnt * fs->blocksize; in fill_dir_block()
122 if (offset + fs->blocksize > fd->inode->i_size) { in fill_dir_block()
129 memset(dir, 0, fs->blocksize); in fill_dir_block()
131 (void) ext2fs_set_rec_len(fs, fs->blocksize, dirent); in fill_dir_block()
148 while (dir_offset < fs->blocksize) { in fill_dir_block()
152 if (((dir_offset + rec_len) > fs->blocksize) || in fill_dir_block()
262 new_mem = realloc(outdir->buf, blocks * fs->blocksize); in alloc_size_dir()
272 outdir->buf = malloc(blocks * fs->blocksize); in alloc_size_dir()
298 *ret = outdir->buf + (outdir->num++ * fs->blocksize); in get_next_block()
299 memset(*ret, 0, fs->blocksize); in get_next_block()
[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/e2fsprogs/misc/
Dmke2fs.conf.in5 blocksize = 4096
23 blocksize = 1024
28 blocksize = 1024
43 blocksize = -1
47 blocksize = -1
50 blocksize = 4096
Dmke2fs.c257 sprintf(buf, "badblocks -b %d -X %s%s%s %llu", fs->blocksize, in test_disk()
516 if ((lpf_size += fs->blocksize) >= 16*1024 && in create_lost_and_found()
517 lpf_size >= 2 * fs->blocksize) in create_lost_and_found()
587 io_channel_set_blksize(fs->io, fs->blocksize); in zap_sector()
660 ext2fs_blocks_count(s), fs->blocksize >> 10, in show_stats()
676 printf(_("Block size=%u (log=%u)\n"), fs->blocksize, in show_stats()
680 fs->blocksize << fs->cluster_ratio_bits, in show_stats()
932 unsigned int gdpb, blocksize; in parse_extended_opts() local
959 blocksize = EXT2_BLOCK_SIZE(param); in parse_extended_opts()
962 bpg = blocksize * 8; in parse_extended_opts()
[all …]
/external/e2fsprogs/tests/
Dmke2fs.conf.in3 blocksize = 4096
26 blocksize = 1024
31 blocksize = 1024
40 blocksize = 4096
44 blocksize = 4096
47 blocksize = 4096
/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/fio/t/
Ddedupe.c67 static unsigned int blocksize = 4096; variable
97 return (ret & ~((uint64_t)blocksize - 1)); in get_size()
139 return __read_block(fd, buf, offset, blocksize); in read_block()
165 cbuf = fio_memalign(blocksize, blocksize); in col_check()
166 ibuf = fio_memalign(blocksize, blocksize); in col_check()
175 ret = memcmp(ibuf, cbuf, blocksize); in col_check()
177 fio_memfree(cbuf, blocksize); in col_check()
178 fio_memfree(ibuf, blocksize); in col_check()
266 fio_md5_update(&ctx, buf, blocksize); in crc_buf()
275 return size / blocksize; in read_blocks()
[all …]
/external/e2fsprogs/debugfs/
Dzap.c57 if (bit >= (int) current_fs->blocksize * 8) { in do_zap_block()
60 current_fs->blocksize); in do_zap_block()
80 if (offset >= (int) current_fs->blocksize) { in do_zap_block()
83 current_fs->blocksize); in do_zap_block()
108 length = current_fs->blocksize - offset; in do_zap_block()
109 if ((offset + length) > (int) current_fs->blocksize) { in do_zap_block()
140 buf = malloc(current_fs->blocksize); in do_zap_block()
217 buf = malloc(current_fs->blocksize); in do_block_dump()
230 do_byte_hexdump(stdout, buf, current_fs->blocksize); in do_block_dump()
Dlogdump.c161 inodes_per_block = (current_fs->blocksize in do_logdump()
345 unsigned int blocksize = 1024; in dump_journal() local
367 blocksize = EXT2_BLOCK_SIZE(sb); in dump_journal()
368 blocknr = (blocksize == 1024) ? 2 : 1; in dump_journal()
373 fprintf(out_file, "\tblocksize=%d\n", blocksize); in dump_journal()
381 ((ext2_loff_t) blocknr) * blocksize, in dump_journal()
392 blocksize = be32_to_cpu(jsb->s_blocksize); in dump_journal()
409 ((ext2_loff_t) blocknr) * blocksize, in dump_journal()
410 buf, blocksize); in dump_journal()
444 &blocknr, blocksize, in dump_journal()
[all …]
/external/pcre/dist2/src/
Dpcre2_serialize.c105 total_size += re->blocksize; in pcre2_serialize_encode()
130 memcpy(dst_bytes, (char *)re, re->blocksize); in pcre2_serialize_encode()
131 dst_bytes += re->blocksize; in pcre2_serialize_encode()
189 CODE_BLOCKSIZE_TYPE blocksize; in pcre2_serialize_decode() local
190 memcpy(&blocksize, src_bytes + offsetof(pcre2_real_code, blocksize), in pcre2_serialize_decode()
192 if (blocksize <= sizeof(pcre2_real_code)) in pcre2_serialize_decode()
197 dst_re = (pcre2_real_code *)PRIV(memctl_malloc)(blocksize, in pcre2_serialize_decode()
213 src_bytes + sizeof(pcre2_memctl), blocksize - sizeof(pcre2_memctl)); in pcre2_serialize_decode()
226 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.c158 unsigned blocksize,
167 unsigned blocksize,
178 unsigned blocksize,
199 unsigned blocksize,
217 unsigned blocksize,
664 if(encoder->protected_->blocksize == 0) { in init_stream_internal_()
666 encoder->protected_->blocksize = 1152; in init_stream_internal_()
668 encoder->protected_->blocksize = 4096; in init_stream_internal_()
671 …if(encoder->protected_->blocksize < FLAC__MIN_BLOCK_SIZE || encoder->protected_->blocksize > FLAC_… in init_stream_internal_()
677 if(encoder->protected_->blocksize < encoder->protected_->max_lpc_order) in init_stream_internal_()
[all …]
Dformat.c209 FLAC_API FLAC__bool FLAC__format_blocksize_is_subset(unsigned blocksize, unsigned sample_rate) in FLAC__format_blocksize_is_subset() argument
211 if(blocksize > 16384) in FLAC__format_blocksize_is_subset()
213 else if(sample_rate <= 48000 && blocksize > 4608) in FLAC__format_blocksize_is_subset()
518 unsigned FLAC__format_get_max_rice_partition_order(unsigned blocksize, unsigned predictor_order) in FLAC__format_get_max_rice_partition_order() argument
522 FLAC__format_get_max_rice_partition_order_from_blocksize(blocksize), in FLAC__format_get_max_rice_partition_order()
523 blocksize, in FLAC__format_get_max_rice_partition_order()
528 unsigned FLAC__format_get_max_rice_partition_order_from_blocksize(unsigned blocksize) in FLAC__format_get_max_rice_partition_order_from_blocksize() argument
531 while(!(blocksize & 1)) { in FLAC__format_get_max_rice_partition_order_from_blocksize()
533 blocksize >>= 1; in FLAC__format_get_max_rice_partition_order_from_blocksize()
538 …from_blocksize_limited_max_and_predictor_order(unsigned limit, unsigned blocksize, unsigned predic… in FLAC__format_get_max_rice_partition_order_from_blocksize_limited_max_and_predictor_order() argument
[all …]
/external/apache-xml/src/main/java/org/apache/xml/utils/
DIntVector.java65 public IntVector(int blocksize) in IntVector() argument
68 m_blocksize = blocksize; in IntVector()
69 m_mapSize = blocksize; in IntVector()
70 m_map = new int[blocksize]; in IntVector()
78 public IntVector(int blocksize, int increaseSize) in IntVector() argument
82 m_mapSize = blocksize; in IntVector()
83 m_map = new int[blocksize]; in IntVector()

12345678910>>...13