/external/libdivsufsort/examples/ |
D | bwt.c | 88 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/ |
D | imager.c | 43 static int check_zero_block(char *buf, int blocksize) in check_zero_block() argument 46 int left = blocksize; in check_zero_block() 70 buf = malloc(fs->blocksize * BUF_BLOCKS); in ext2fs_image_inode_write() 95 if (check_zero_block(cp, fs->blocksize)) { in ext2fs_image_inode_write() 99 cp += fs->blocksize; in ext2fs_image_inode_write() 100 r = lseek(fd, fs->blocksize, SEEK_CUR); in ext2fs_image_inode_write() 109 if (check_zero_block(cp + d*fs->blocksize, fs->blocksize)) in ext2fs_image_inode_write() 113 actual = write(fd, cp, fs->blocksize * d); in ext2fs_image_inode_write() 118 if (actual != (ssize_t) (fs->blocksize * d)) { in ext2fs_image_inode_write() 124 cp += fs->blocksize * d; in ext2fs_image_inode_write() [all …]
|
D | getsize.c | 72 errcode_t ext2fs_get_device_size(const char *file, int blocksize, in ext2fs_get_device_size() argument 96 *retblocks = pi.PartitionLength.QuadPart / blocksize; in ext2fs_get_device_size() 106 gi.Cylinders.QuadPart / blocksize; in ext2fs_get_device_size() 110 *retblocks = filesize.QuadPart / blocksize; in ext2fs_get_device_size() 116 *retblocks = filesize / blocksize; 141 errcode_t ext2fs_get_device_size2(const char *file, int blocksize, in ext2fs_get_device_size2() argument 154 *retblocks = size64 / (blocksize / 512); in ext2fs_get_device_size2() 172 *retblocks = size64 / blocksize; in ext2fs_get_device_size2() 183 *retblocks = size / (blocksize / 512); in ext2fs_get_device_size2() 194 *retblocks = this_floppy.size / (blocksize / 512); in ext2fs_get_device_size2() [all …]
|
D | dir_iterate.c | 32 if (fs->blocksize < 65536) in ext2fs_get_rec_len() 35 *rec_len = fs->blocksize; in ext2fs_get_rec_len() 45 if ((len > fs->blocksize) || (fs->blocksize > (1 << 18)) || (len & 3)) in ext2fs_set_rec_len() 51 if (len == fs->blocksize) { in ext2fs_set_rec_len() 52 if (fs->blocksize == 65536) in ext2fs_set_rec_len() 78 (offset <= fs->blocksize - DIRENT_MIN_LENGTH)) { in ext2fs_validate_entry() 99 int blocksize, in ext2fs_dir_iterate2() argument 118 retval = ext2fs_get_mem(fs->blocksize, &ctx.buf); in ext2fs_dir_iterate2() 137 int blocksize, 146 int blocksize, char *buf, void *priv_data) in xlate_func() argument [all …]
|
D | rw_bitmaps.c | 58 memset(block_buf, 0xff, fs->blocksize); in write_bitmaps() 66 memset(inode_buf, 0xff, fs->blocksize); in write_bitmaps() 89 for (j = nbits; j < fs->blocksize * 8; j++) in write_bitmaps() 165 if ((block_nbytes > (int) fs->blocksize) || in read_bitmaps() 166 (inode_nbytes > (int) fs->blocksize)) in read_bitmaps() 207 blk = (fs->image_header->offset_inodemap / fs->blocksize); in read_bitmaps() 214 cnt = fs->blocksize << 3; in read_bitmaps() 221 ino_itr += fs->blocksize << 3; in read_bitmaps() 222 ino_cnt -= fs->blocksize << 3; in read_bitmaps() 223 inode_nbytes -= fs->blocksize; in read_bitmaps() [all …]
|
D | fileio.c | 34 #define BMAP_BUFFER (file->buf + fs->blocksize) 69 retval = ext2fs_get_array(3, fs->blocksize, &file->buf); in ext2fs_file_open2() 163 b = file->pos / file->fs->blocksize; in sync_buffer_position() 202 memset(file->buf, 0, fs->blocksize); in load_buffer() 246 start = file->pos % fs->blocksize; in ext2fs_file_read() 247 c = fs->blocksize - start; in ext2fs_file_read() 287 start = file->pos % fs->blocksize; in ext2fs_file_write() 288 c = fs->blocksize - start; in ext2fs_file_write() 296 retval = load_buffer(file, (c == fs->blocksize)); in ext2fs_file_write() 402 ext2_off64_t off = offset % fs->blocksize; in ext2fs_file_zero_past_offset() [all …]
|
D | dupfs.c | 65 retval = ext2fs_get_array(fs->desc_blocks, fs->blocksize, in ext2fs_dup_handle() 70 (size_t) fs->desc_blocks * fs->blocksize); in ext2fs_dup_handle() 93 retval = ext2fs_get_mem(src->blocksize, &fs->mmp_buf); in ext2fs_dup_handle() 96 memcpy(fs->mmp_buf, src->mmp_buf, src->blocksize); in ext2fs_dup_handle() 108 retval = ext2fs_get_memalign(src->blocksize, align, in ext2fs_dup_handle() 112 memcpy(fs->mmp_cmp, src->mmp_cmp, src->blocksize); in ext2fs_dup_handle()
|
/external/toybox/toys/pending/ |
D | mke2fs.c | 79 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/ |
D | extend.c | 30 int nblocks, blocksize; in main() local 40 blocksize = strtoul(argv[3], 0, 0); in main() 47 block = malloc(blocksize); in main() 50 blocksize); in main() 53 memset(block, 0, blocksize); in main() 60 ret = lseek(fd, nblocks*blocksize, SEEK_SET); in main() 65 ret = read(fd, block, blocksize); in main() 70 ret = lseek(fd, nblocks*blocksize, SEEK_SET); in main() 75 ret = write(fd, block, blocksize); in main()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_rect.c | 58 int blocksize = util_format_get_blocksize(format); in util_copy_rect() local 62 assert(blocksize > 0); in util_copy_rect() 73 dst += dst_x * blocksize; in util_copy_rect() 74 src += src_x * blocksize; in util_copy_rect() 77 width *= blocksize; in util_copy_rect() 103 int blocksize = desc->block.bits / 8; in util_fill_rect() local 107 assert(blocksize > 0); in util_fill_rect() 116 dst += dst_x * blocksize; in util_fill_rect() 118 width_size = width * blocksize; in util_fill_rect() 120 switch (blocksize) { in util_fill_rect() [all …]
|
/external/autotest/client/tests/disktest/src/ |
D | disktest.c | 35 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/opencv/cv/src/ |
D | cvtemplmatch.cpp | 61 CvSize dftsize, blocksize; in icvCrossCorr() local 112 blocksize.width = cvRound(templ->cols*block_scale); in icvCrossCorr() 113 blocksize.width = MAX( blocksize.width, min_block_size - templ->cols + 1 ); in icvCrossCorr() 114 blocksize.width = MIN( blocksize.width, corr->cols ); in icvCrossCorr() 115 blocksize.height = cvRound(templ->rows*block_scale); in icvCrossCorr() 116 blocksize.height = MAX( blocksize.height, min_block_size - templ->rows + 1 ); in icvCrossCorr() 117 blocksize.height = MIN( blocksize.height, corr->rows ); in icvCrossCorr() 119 dftsize.width = cvGetOptimalDFTSize(blocksize.width + templ->cols - 1); in icvCrossCorr() 122 dftsize.height = cvGetOptimalDFTSize(blocksize.height + templ->rows - 1); in icvCrossCorr() 127 blocksize.width = dftsize.width - templ->cols + 1; in icvCrossCorr() [all …]
|
/external/e2fsprogs/misc/ |
D | mke2fs.conf.in | 5 blocksize = 4096 24 blocksize = 1024 29 blocksize = 1024 44 blocksize = -1 48 blocksize = -1 51 blocksize = 4096
|
D | mke2fs.c | 220 sprintf(buf, "badblocks -b %d -X %s%s%s %llu", fs->blocksize, in test_disk() 420 if ((lpf_size += fs->blocksize) >= 16*1024 && in create_lost_and_found() 421 lpf_size >= 2 * fs->blocksize) in create_lost_and_found() 491 io_channel_set_blksize(fs->io, fs->blocksize); in zap_sector() 573 printf(_("Block size=%u (log=%u)\n"), fs->blocksize, in show_stats() 578 fs->blocksize << fs->cluster_ratio_bits, in show_stats() 763 unsigned int gdpb, blocksize; in parse_extended_opts() local 790 blocksize = EXT2_BLOCK_SIZE(param); in parse_extended_opts() 793 bpg = blocksize * 8; in parse_extended_opts() 1235 int blocksize; in get_device_geometry() local [all …]
|
D | e2image.c | 133 static int check_block(int fd, void *buf, void *cbuf, int blocksize) in check_block() argument 136 int count = blocksize, ret; in check_block() 150 ret = memcmp(buf, cbuf, blocksize); in check_block() 151 seek_relative(fd, -blocksize); in check_block() 155 static void generic_write(int fd, void *buf, int blocksize, blk64_t block) in generic_write() argument 160 if (!blocksize) in generic_write() 165 err = ext2fs_get_arrayzero(1, blocksize, &buf); in generic_write() 175 seek_relative(fd, blocksize); in generic_write() 178 count = write(fd, buf, blocksize); in generic_write() 179 if (count != blocksize) { in generic_write() [all …]
|
/external/e2fsprogs/tests/ |
D | mke2fs.conf.in | 3 blocksize = 4096 26 blocksize = 1024 31 blocksize = 1024 40 blocksize = 4096 44 blocksize = 4096 47 blocksize = 4096
|
/external/e2fsprogs/debugfs/ |
D | logdump.c | 156 inodes_per_block = (current_fs->blocksize in do_logdump() 339 unsigned int blocksize = 1024; in dump_journal() local 364 blocksize = EXT2_BLOCK_SIZE(sb); in dump_journal() 365 blocknr = (blocksize == 1024) ? 2 : 1; in dump_journal() 370 fprintf(out_file, "\tblocksize=%d\n", blocksize); in dump_journal() 378 retval = read_journal_block(cmdname, source, blocknr*blocksize, in dump_journal() 389 blocksize = be32_to_cpu(jsb->s_blocksize); in dump_journal() 402 blocknr*blocksize, buf, in dump_journal() 403 blocksize, &got); in dump_journal() 404 if (retval || got != blocksize) in dump_journal() [all …]
|
D | zap.c | 56 if (bit >= (int) current_fs->blocksize * 8) { in do_zap_block() 59 current_fs->blocksize); in do_zap_block() 79 if (offset >= (int) current_fs->blocksize) { in do_zap_block() 82 current_fs->blocksize); in do_zap_block() 107 length = current_fs->blocksize - offset; in do_zap_block() 108 if ((offset + length) > (int) current_fs->blocksize) { in do_zap_block() 139 buf = malloc(current_fs->blocksize); in do_zap_block() 218 buf = malloc(current_fs->blocksize); in do_block_dump() 231 for (i=0; i < current_fs->blocksize; i += 16) { in do_block_dump()
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | memory_pool.c | 55 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 = (struct memory_block*)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/ |
D | dedupe.c | 67 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/zopfli/src/zopfli/ |
D | cache.c | 28 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/ |
D | stream_encoder.c | 158 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 …]
|
D | format.c | 209 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/ |
D | IntVector.java | 65 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()
|
D | ObjectVector.java | 65 public ObjectVector(int blocksize) in ObjectVector() argument 68 m_blocksize = blocksize; in ObjectVector() 69 m_mapSize = blocksize; in ObjectVector() 70 m_map = new Object[blocksize]; in ObjectVector() 78 public ObjectVector(int blocksize, int increaseSize) in ObjectVector() argument 82 m_mapSize = blocksize; in ObjectVector() 83 m_map = new Object[blocksize]; in ObjectVector()
|