/third_party/lz4/tests/ |
D | test_custom_block_sizes.sh | 19 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 …]
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | imager.c | 44 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() 97 if (check_zero_block(cp, fs->blocksize)) { in ext2fs_image_inode_write() 101 cp += fs->blocksize; in ext2fs_image_inode_write() 102 r = ext2fs_llseek(fd, fs->blocksize, in ext2fs_image_inode_write() 113 d * fs->blocksize, in ext2fs_image_inode_write() 114 fs->blocksize)) in ext2fs_image_inode_write() 118 actual = write(fd, cp, d * fs->blocksize); in ext2fs_image_inode_write() 123 if (actual != d * fs->blocksize) { in ext2fs_image_inode_write() [all …]
|
D | getsize.c | 76 errcode_t ext2fs_get_device_size2(const char *file, int blocksize, in ext2fs_get_device_size2() argument 105 *retblocks = pi.PartitionLength.QuadPart / blocksize; in ext2fs_get_device_size2() 115 gi.Cylinders.QuadPart / blocksize; in ext2fs_get_device_size2() 119 *retblocks = filesize.QuadPart / blocksize; in ext2fs_get_device_size2() 125 *retblocks = filesize / blocksize; 151 errcode_t ext2fs_get_device_size2(const char *file, int blocksize, in ext2fs_get_device_size2() argument 167 *retblocks = size64 * size / blocksize; in ext2fs_get_device_size2() 185 *retblocks = size64 / blocksize; in ext2fs_get_device_size2() 196 *retblocks = size / (blocksize / 512); in ext2fs_get_device_size2() 207 *retblocks = this_floppy.size / (blocksize / 512); in ext2fs_get_device_size2() [all …]
|
D | dir_iterate.c | 33 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 …]
|
D | mkjournal.c | 57 if ((retval = ext2fs_get_mem(fs->blocksize, &jsb))) in ext2fs_create_journal_superblock2() 60 memset (jsb, 0, fs->blocksize); in ext2fs_create_journal_superblock2() 67 jsb->s_blocksize = htonl(fs->blocksize); in ext2fs_create_journal_superblock2() 80 jsb->s_first = htonl(ext2fs_journal_sb_start(fs->blocksize) + 1); in ext2fs_create_journal_superblock2() 124 ret_size = write(fd, buf, fs->blocksize); in write_journal_file() 129 if (ret_size != (int) fs->blocksize) in write_journal_file() 131 memset(buf, 0, fs->blocksize); in write_journal_file() 137 ret_size = write(fd, buf, fs->blocksize); in write_journal_file() 142 if (ret_size != (int) fs->blocksize) in write_journal_file() 165 #define MAX_STRIDE_LENGTH (4194304 / (int) fs->blocksize) [all …]
|
/third_party/python/Lib/ |
D | hmac.py | 32 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 …]
|
/third_party/toybox/toys/pending/ |
D | mke2fs.c | 79 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 …]
|
/third_party/e2fsprogs/e2fsck/ |
D | extend.c | 31 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()
|
/third_party/e2fsprogs/debugfs/ |
D | logdump.c | 69 static void dump_fc_block(FILE *out_file, char *buf, int blocksize, 167 inodes_per_block = (current_fs->blocksize in do_logdump() 356 unsigned int blocksize = 1024; in dump_journal() local 381 blocksize = EXT2_BLOCK_SIZE(sb); in dump_journal() 382 blocknr = (blocksize == 1024) ? 2 : 1; in dump_journal() 387 fprintf(out_file, "\tblocksize=%d\n", blocksize); in dump_journal() 395 ((ext2_loff_t) blocknr) * blocksize, in dump_journal() 402 current_fs->blocksize, 0); in dump_journal() 412 blocksize = be32_to_cpu(jsb->s_blocksize); in dump_journal() 413 if ((current_fs && (blocksize != current_fs->blocksize)) || in dump_journal() [all …]
|
D | zap.c | 58 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()
|
/third_party/ffmpeg/libavcodec/ |
D | shorten.c | 108 int blocksize; member 136 if (s->blocksize + (uint64_t)s->nwrap >= UINT_MAX / sizeof(int32_t)) { in allocate_buffers() 147 if ((err = av_reallocp_array(&s->decoded_base[chan], (s->blocksize + s->nwrap), in allocate_buffers() 176 for (i = 0; i < s->blocksize; i++) in fix_bitshift() 179 for (i = 0; i < s->blocksize; i++) in fix_bitshift() 389 for (i = 0; i < s->blocksize; i++) { in decode_subframe_lpc() 399 for (i = 0; i < s->blocksize; i++) in decode_subframe_lpc() 416 s->blocksize = DEFAULT_BLOCK_SIZE; in read_header() 436 unsigned blocksize; in read_header() local 438 blocksize = get_uint(s, av_log2(DEFAULT_BLOCK_SIZE)); in read_header() [all …]
|
D | lpc.c | 165 s->lpc_apply_welch_window(samples, s->blocksize, s->windowed_samples); in ff_lpc_calc_ref_coefs() 166 s->lpc_compute_autocorr(s->windowed_samples, s->blocksize, order, autoc); in ff_lpc_calc_ref_coefs() 202 const int32_t *samples, int blocksize, int min_order, in ff_lpc_calc_coefs() argument 219 if (blocksize != s->blocksize || max_order != s->max_order || in ff_lpc_calc_coefs() 222 ff_lpc_init(s, blocksize, max_order, lpc_type); in ff_lpc_calc_coefs() 229 s->lpc_apply_welch_window(samples, blocksize, s->windowed_samples); in ff_lpc_calc_coefs() 231 s->lpc_compute_autocorr(s->windowed_samples, blocksize, max_order, autoc); in ff_lpc_calc_coefs() 254 for(i=max_order; i<blocksize; i++){ in ff_lpc_calc_coefs() 278 ref[i]= sqrt(m[(pass-1)&1].variance[i] / weight) * (blocksize - max_order) / 4000; in ff_lpc_calc_coefs() 301 av_cold int ff_lpc_init(LPCContext *s, int blocksize, int max_order, in ff_lpc_init() argument [all …]
|
D | flacdec.c | 58 int blocksize; ///< number of samples in the current frame member 231 samples = s->blocksize >> rice_order; in decode_residuals() 244 if (samples << rice_order != s->blocksize) { in decode_residuals() 246 rice_order, s->blocksize); in decode_residuals() 285 const int blocksize = s->blocksize; in decode_subframe_fixed() local 311 for (i = pred_order; i < blocksize; i++) in decode_subframe_fixed() 315 for (i = pred_order; i < blocksize; i++) in decode_subframe_fixed() 319 for (i = pred_order; i < blocksize; i++) in decode_subframe_fixed() 323 for (i = pred_order; i < blocksize; i++) in decode_subframe_fixed() 395 s->dsp.lpc16(decoded, coeffs, pred_order, qlevel, s->blocksize); in decode_subframe_lpc() [all …]
|
/third_party/libsnd/src/G72x/ |
D | g72x.c | 41 static int unpack_bytes (int bits, int blocksize, const unsigned char * block, short * samples) ; 134 struct g72x_state * g72x_reader_init (int codec, int *blocksize, int *samplesperblock) in g72x_reader_init() argument 147 *blocksize = G723_16_BYTES_PER_BLOCK ; in g72x_reader_init() 150 pstate->blocksize = G723_16_BYTES_PER_BLOCK ; in g72x_reader_init() 156 *blocksize = G723_24_BYTES_PER_BLOCK ; in g72x_reader_init() 159 pstate->blocksize = G723_24_BYTES_PER_BLOCK ; in g72x_reader_init() 165 *blocksize = G721_32_BYTES_PER_BLOCK ; in g72x_reader_init() 168 pstate->blocksize = G721_32_BYTES_PER_BLOCK ; in g72x_reader_init() 174 *blocksize = G721_40_BYTES_PER_BLOCK ; in g72x_reader_init() 177 pstate->blocksize = G721_40_BYTES_PER_BLOCK ; in g72x_reader_init() [all …]
|
/third_party/e2fsprogs/misc/ |
D | mke2fs.conf.in | 5 blocksize = 4096 17 blocksize = 1024 21 blocksize = 1024 35 blocksize = -1 39 blocksize = -1 42 blocksize = 4096
|
D | e2image.c | 142 static int check_block(int fd, void *buf, void *cbuf, int blocksize) in check_block() argument 145 int count = blocksize, ret; in check_block() 159 ret = memcmp(buf, cbuf, blocksize); in check_block() 160 seek_relative(fd, -blocksize); in check_block() 164 static void generic_write(int fd, void *buf, int blocksize, blk64_t block) in generic_write() argument 169 if (!blocksize) in generic_write() 174 err = ext2fs_get_arrayzero(1, blocksize, &buf); in generic_write() 184 seek_relative(fd, blocksize); in generic_write() 187 count = write(fd, buf, blocksize); in generic_write() 188 if (count != blocksize) { in generic_write() [all …]
|
/third_party/e2fsprogs/tests/ |
D | mke2fs.conf.in | 3 blocksize = 4096 21 blocksize = 1024 25 blocksize = 1024 33 blocksize = 4096 37 blocksize = 4096 40 blocksize = 4096
|
/third_party/ltp/testcases/kernel/syscalls/fallocate/ |
D | fallocate05.c | 34 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()
|
D | fallocate06.c | 62 static blksize_t blocksize; variable 97 blocksize = statbuf.st_blksize; in setup() 98 block_offset = MIN(blocksize / 2, 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()
|
/third_party/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 = malloc(blocksize); in refill_pool() 66 pool->end = ((unsigned char*)newblock) + blocksize; in refill_pool() 67 pool->total_allocated += blocksize; in refill_pool()
|
/third_party/boost/boost/container/detail/ |
D | node_pool_impl.hpp | 157 size_type blocksize = (get_rounded_size) in deallocate_free_blocks() local 165 const void *addr = get_block_from_hook(&*it, blocksize); in deallocate_free_blocks() 168 (is_between(addr, blocksize), push_in_list(free_nodes, last_it)); in deallocate_free_blocks() 217 size_type blocksize = (get_rounded_size) in purge_blocks() local 222 void *addr = get_block_from_hook(&m_blocklist.front(), blocksize); in purge_blocks() 309 size_type blocksize = in priv_alloc_block() local 317 (mp_segment_mngr_base->allocate(blocksize + sizeof(node_t))); in priv_alloc_block() 319 m_blocklist.push_front(get_block_hook(pBlock, blocksize)); in priv_alloc_block() 345 static node_t & get_block_hook (void *block, size_type blocksize) in get_block_hook() argument 347 return *reinterpret_cast<node_t*>(reinterpret_cast<char*>(block) + blocksize); in get_block_hook() [all …]
|
/third_party/gstreamer/gstplugins_bad/gst/adpcmdec/ |
D | adpcmdec.c | 80 int blocksize; member 110 if (!gst_structure_get_int (structure, "block_align", &dec->blocksize)) in adpcmdec_set_format() 111 dec->blocksize = -1; /* Not provided */ in adpcmdec_set_format() 334 adpcmdec_decode_block (ADPCMDec * dec, const guint8 * data, int blocksize) in adpcmdec_decode_block() argument 346 if (blocksize < 7 * dec->channels) in adpcmdec_decode_block() 348 samples = (blocksize - 7 * dec->channels) * 2 + 2 * dec->channels; in adpcmdec_decode_block() 358 if (blocksize < 4 * dec->channels) in adpcmdec_decode_block() 360 samples = (blocksize - 4 * dec->channels) * 2 + dec->channels; in adpcmdec_decode_block() 392 if (dec->blocksize < 0) { in adpcmdec_parse() 397 if (size >= dec->blocksize) { in adpcmdec_parse() [all …]
|
/third_party/ltp/lib/ |
D | tst_memutils.c | 21 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()
|
/third_party/pcre2/pcre2/src/ |
D | pcre2_serialize.c | 105 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()
|
/third_party/ffmpeg/libavformat/ |
D | shortendec.c | 31 int version, internal_ftype, channels, blocksize; in shn_probe() local 41 blocksize = 256; in shn_probe() 55 blocksize = get_ur_golomb_shorten(&gb, k); in shn_probe() 62 if (blocksize < 1 || blocksize > 65535) in shn_probe()
|