/third_party/python/Lib/ |
D | hmac.py | 32 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 …]
|
/third_party/e2fsprogs/lib/ext2fs/ |
D | getsize.c | 74 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 …]
|
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 | 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 | link.c | 29 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()
|
D | mkjournal.c | 56 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 …]
|
/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/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/misc/ |
D | mke2fs.conf.in | 5 blocksize = 4096 18 blocksize = 1024 23 blocksize = 1024 38 blocksize = -1 42 blocksize = -1 45 blocksize = 4096
|
/third_party/e2fsprogs/tests/ |
D | mke2fs.conf.in | 3 blocksize = 4096 21 blocksize = 1024 26 blocksize = 1024 35 blocksize = 4096 39 blocksize = 4096 42 blocksize = 4096
|
/third_party/uboot/u-boot-2020.01/cmd/ |
D | onenand.c | 66 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 …]
|
/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 | 164 s->lpc_apply_welch_window(samples, s->blocksize, s->windowed_samples); in ff_lpc_calc_ref_coefs() 165 s->lpc_compute_autocorr(s->windowed_samples, s->blocksize, order, autoc); in ff_lpc_calc_ref_coefs() 201 const int32_t *samples, int blocksize, int min_order, in ff_lpc_calc_coefs() argument 218 if (blocksize != s->blocksize || max_order != s->max_order || in ff_lpc_calc_coefs() 221 ff_lpc_init(s, blocksize, max_order, lpc_type); in ff_lpc_calc_coefs() 228 s->lpc_apply_welch_window(samples, blocksize, s->windowed_samples); in ff_lpc_calc_coefs() 230 s->lpc_compute_autocorr(s->windowed_samples, blocksize, max_order, autoc); in ff_lpc_calc_coefs() 253 for(i=max_order; i<blocksize; i++){ in ff_lpc_calc_coefs() 277 ref[i]= sqrt(m[(pass-1)&1].variance[i] / weight) * (blocksize - max_order) / 4000; in ff_lpc_calc_coefs() 300 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/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 | 53 static blksize_t blocksize; variable 88 blocksize = statbuf.st_blksize; in setup() 89 block_offset = MIN(blocksize / 2, 512); in setup() 90 wbuf_size = MAX(WRITE_BLOCKS, FALLOCATE_BLOCKS) * blocksize; in setup() 91 rbuf_size = (DEALLOCATE_BLOCKS + 1) * blocksize; in setup() 95 if (blocksize < 2) in setup() 96 tst_brk(TCONF, "Block size %ld too small for test", blocksize); in setup() 177 size = WRITE_BLOCKS * blocksize; in run() 182 size = FALLOCATE_BLOCKS * blocksize; in run() 204 size = DEALLOCATE_BLOCKS * blocksize; in run()
|
/third_party/uboot/u-boot-2020.01/fs/ext4/ |
D | ext4fs.c | 56 int blocksize = (1 << (log2_fs_blocksize + log2blksz)); in ext4fs_read_file() local 74 if (blocksize <= 0 || len <= 0) { in ext4fs_read_file() 79 blockcnt = lldiv(((len + pos) + blocksize - 1), blocksize); in ext4fs_read_file() 81 for (i = lldiv(pos, blocksize); i < blockcnt; i++) { in ext4fs_read_file() 83 int blockoff = pos - (blocksize * i); in ext4fs_read_file() 84 int blockend = blocksize; in ext4fs_read_file() 96 blockend = (len + pos) - (blocksize * i); in ext4fs_read_file() 100 blockend = blocksize; in ext4fs_read_file() 104 if (i == lldiv(pos, blocksize)) { in ext4fs_read_file() 157 n = blocksize - skipfirst; in ext4fs_read_file() [all …]
|
/third_party/e2fsprogs/debugfs/ |
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() 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()
|
D | logdump.c | 166 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 …]
|
/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 105 if (!gst_structure_get_int (structure, "block_align", &dec->blocksize)) in adpcmdec_set_format() 106 dec->blocksize = -1; /* Not provided */ in adpcmdec_set_format() 329 adpcmdec_decode_block (ADPCMDec * dec, const guint8 * data, int blocksize) in adpcmdec_decode_block() argument 341 if (blocksize < 7 * dec->channels) in adpcmdec_decode_block() 343 samples = (blocksize - 7 * dec->channels) * 2 + 2 * dec->channels; in adpcmdec_decode_block() 353 if (blocksize < 4 * dec->channels) in adpcmdec_decode_block() 355 samples = (blocksize - 4 * dec->channels) * 2 + dec->channels; in adpcmdec_decode_block() 387 if (dec->blocksize < 0) { in adpcmdec_parse() 392 if (size >= dec->blocksize) { in adpcmdec_parse() [all …]
|
/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()
|
/third_party/uboot/u-boot-2020.01/drivers/fpga/ |
D | zynqpl.c | 338 size_t bsize, u32 blocksize, u32 *swap, in zynq_validate_bitstream() argument 344 buf_start = check_data((u8 *)buf, blocksize, swap); in zynq_validate_bitstream() 424 loff_t blocksize, actread; in zynq_loadfs() local 430 blocksize = fsinfo->blocksize; in zynq_loadfs() 439 if (fs_read(filename, (u32) buf, pos, blocksize, &actread) < 0) in zynq_loadfs() 442 if (zynq_validate_bitstream(desc, buf, bsize, blocksize, &swap, in zynq_loadfs() 449 buf = zynq_align_dma_buffer((u32 *)buf, blocksize, swap); in zynq_loadfs() 451 if (zynq_dma_transfer((u32)buf | 1, blocksize >> 2, in zynq_loadfs() 455 bsize -= blocksize; in zynq_loadfs() 456 pos += blocksize; in zynq_loadfs() [all …]
|