/external/mesa3d/src/gallium/state_trackers/xvmc/ |
D | block.c | 38 Status XvMCCreateBlocks(Display *dpy, XvMCContext *context, unsigned int num_blocks, XvMCBlockArray… in XvMCCreateBlocks() argument 44 if (num_blocks == 0) in XvMCCreateBlocks() 50 blocks->num_blocks = num_blocks; in XvMCCreateBlocks() 51 blocks->blocks = MALLOC(BLOCK_SIZE_BYTES * num_blocks); in XvMCCreateBlocks() 68 Status XvMCCreateMacroBlocks(Display *dpy, XvMCContext *context, unsigned int num_blocks, XvMCMacro… in XvMCCreateMacroBlocks() argument 74 if (num_blocks == 0) in XvMCCreateMacroBlocks() 80 blocks->num_blocks = num_blocks; in XvMCCreateMacroBlocks() 81 blocks->macro_blocks = MALLOC(sizeof(XvMCMacroBlock) * num_blocks); in XvMCCreateMacroBlocks()
|
/external/ltp/testcases/kernel/io/writetest/ |
D | writetest.c | 76 int write_file(off_t num_blocks, const char *filename) in write_file() argument 89 for (block = 0; block < num_blocks; block++) { in write_file() 94 (long long int)num_blocks, in write_file() 95 (long long int)(block * 100 / num_blocks)); in write_file() 105 (long long int)block, (long long int)num_blocks, in write_file() 106 (long long int)(block * 100 / num_blocks)); in write_file() 111 int verify_file(off_t num_blocks, const char *filename) in verify_file() argument 124 for (block = 0; block < num_blocks; block++) { in verify_file() 130 (long long int)num_blocks, in verify_file() 131 (long long int)(block * 100 / num_blocks)); in verify_file() [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | alloc_sb.c | 50 int old_desc_blocks, num_blocks; in ext2fs_reserve_super_and_bgd() local 68 num_blocks = old_desc_blocks; in ext2fs_reserve_super_and_bgd() 69 if (old_desc_blk + num_blocks >= ext2fs_blocks_count(fs->super)) in ext2fs_reserve_super_and_bgd() 70 num_blocks = ext2fs_blocks_count(fs->super) - in ext2fs_reserve_super_and_bgd() 72 ext2fs_mark_block_bitmap_range2(bmap, old_desc_blk, num_blocks); in ext2fs_reserve_super_and_bgd() 77 num_blocks = ext2fs_group_blocks_count(fs, group); in ext2fs_reserve_super_and_bgd() 78 num_blocks -= 2 + fs->inode_blocks_per_group + used_blks; in ext2fs_reserve_super_and_bgd() 80 return num_blocks ; in ext2fs_reserve_super_and_bgd()
|
D | i_block.c | 31 blk64_t num_blocks) in ext2fs_iblk_add_blocks() argument 40 num_blocks *= fs->blocksize / 512; in ext2fs_iblk_add_blocks() 41 num_blocks *= EXT2FS_CLUSTER_RATIO(fs); in ext2fs_iblk_add_blocks() 43 b += num_blocks; in ext2fs_iblk_add_blocks() 54 blk64_t num_blocks) in ext2fs_iblk_sub_blocks() argument 63 num_blocks *= fs->blocksize / 512; in ext2fs_iblk_sub_blocks() 64 num_blocks *= EXT2FS_CLUSTER_RATIO(fs); in ext2fs_iblk_sub_blocks() 66 if (num_blocks > b) in ext2fs_iblk_sub_blocks() 69 b -= num_blocks; in ext2fs_iblk_sub_blocks()
|
D | mkjournal.c | 47 __u32 num_blocks, int flags, in ext2fs_create_journal_superblock() argument 53 if (num_blocks < JFS_MIN_JOURNAL_BLOCKS) in ext2fs_create_journal_superblock() 67 jsb->s_maxlen = htonl(num_blocks); in ext2fs_create_journal_superblock() 91 blk_t num_blocks, int flags) in write_journal_file() argument 98 if ((retval = ext2fs_create_journal_superblock(fs, num_blocks, flags, in write_journal_file() 122 for (i = 1; i < num_blocks; i++) { in write_journal_file() 265 blk_t num_blocks, blk64_t goal, int flags) in write_journal_inode() argument 274 if ((retval = ext2fs_create_journal_superblock(fs, num_blocks, flags, in write_journal_inode() 298 inode_size = (unsigned long long)fs->blocksize * num_blocks; in write_journal_inode() 307 &inode, goal, 0, num_blocks); in write_journal_inode() [all …]
|
D | inode.c | 311 blk64_t *num_blocks) in check_for_inode_bad_blocks() argument 346 *num_blocks = 1; in check_for_inode_bad_blocks() 358 if ((blk + *num_blocks) > bb->list[scan->bad_block_ptr]) in check_for_inode_bad_blocks() 359 *num_blocks = (int) (bb->list[scan->bad_block_ptr] - blk); in check_for_inode_bad_blocks() 408 static void check_inode_block_sanity(ext2_inode_scan scan, blk64_t num_blocks) in check_inode_block_sanity() argument 422 inodes_in_buf = num_blocks * scan->fs->blocksize / scan->inode_size; in check_inode_block_sanity() 500 blk64_t num_blocks; in get_next_blocks() local 508 num_blocks = scan->inode_buffer_blocks; in get_next_blocks() 509 if (num_blocks > scan->blocks_left) in get_next_blocks() 510 num_blocks = scan->blocks_left; in get_next_blocks() [all …]
|
/external/brotli/c/enc/ |
D | block_splitter_inc.h | 76 size_t num_blocks = 1; in FN() local 146 ++num_blocks; in FN() 152 return num_blocks; in FN() 190 const size_t num_blocks, in FN() 193 uint32_t* histogram_symbols = BROTLI_ALLOC(m, uint32_t, num_blocks); in FN() 194 uint32_t* block_lengths = BROTLI_ALLOC(m, uint32_t, num_blocks); in FN() 196 (num_blocks + HISTOGRAMS_PER_BATCH - 1) / HISTOGRAMS_PER_BATCH; in FN() 206 BROTLI_MIN(size_t, num_blocks, HISTOGRAMS_PER_BATCH)); in FN() 224 memset(block_lengths, 0, num_blocks * sizeof(uint32_t)); in FN() 229 BROTLI_DCHECK(block_idx < num_blocks); in FN() [all …]
|
/external/e2fsprogs/misc/ |
D | mk_hugefiles.c | 61 static blk64_t num_blocks; variable 504 num_blocks = parse_num_blocks2(t, fs->super->s_log_block_size); in mk_hugefiles() 521 num_blocks = round_up_align(num_blocks, align, 0); in mk_hugefiles() 551 if (num_blocks && num_blocks > fs_blocks) in mk_hugefiles() 553 if (num_blocks == 0 && num_files == 0) in mk_hugefiles() 556 if (num_files == 0 && num_blocks) { in mk_hugefiles() 557 num_files = fs_blocks / num_blocks; in mk_hugefiles() 559 fs_blocks -= calc_overhead(fs, num_blocks) * num_files; in mk_hugefiles() 560 num_files = fs_blocks / num_blocks; in mk_hugefiles() 563 if (num_blocks == 0 && num_files > 1) { in mk_hugefiles() [all …]
|
/external/mesa3d/src/compiler/nir/ |
D | nir_phi_builder.c | 32 unsigned num_blocks; member 92 pb->num_blocks = impl->num_blocks; in nir_phi_builder_create() 93 pb->blocks = ralloc_array(pb, nir_block *, pb->num_blocks); in nir_phi_builder_create() 101 pb->work = rzalloc_array(pb, unsigned, pb->num_blocks); in nir_phi_builder_create() 102 pb->W = ralloc_array(pb, nir_block *, pb->num_blocks); in nir_phi_builder_create() 114 val = rzalloc_size(pb, sizeof(*val) + sizeof(val->defs[0]) * pb->num_blocks); in nir_phi_builder_add_value() 124 BITSET_FOREACH_SET(i, tmp, defs, pb->num_blocks) { in nir_phi_builder_add_value() 253 const unsigned num_blocks = pb->num_blocks; in nir_phi_builder_finish() local 254 NIR_VLA(nir_block *, preds, num_blocks); in nir_phi_builder_finish()
|
D | nir_worklist.c | 31 nir_block_worklist_init(nir_block_worklist *w, unsigned num_blocks, in nir_block_worklist_init() argument 34 w->size = num_blocks; in nir_block_worklist_init() 39 BITSET_WORDS(num_blocks)); in nir_block_worklist_init() 40 w->blocks = rzalloc_array(mem_ctx, nir_block *, num_blocks); in nir_block_worklist_init()
|
/external/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/ |
D | masked_autoregressive.py | 320 def _gen_slices(num_blocks, n_in, n_out, mask_type=MASK_EXCLUSIVE): argument 325 d_in = n_in // num_blocks 326 d_out = n_out // num_blocks 328 for _ in range(num_blocks): 345 def _gen_mask(num_blocks, argument 353 slices = _gen_slices(num_blocks, n_in, n_out, mask_type=mask_type) 369 num_blocks=None, argument 417 mask = _gen_mask(num_blocks, input_depth, units, 426 with ops.name_scope(name, "masked_dense", [inputs, units, num_blocks]): 538 num_blocks=input_depth, [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | redux_functor.h | 60 const int64 num_blocks = std::min(max_num_blocks, num_threads); in operator() local 63 const int64 outer_block_size = Eigen::divup(outer_dim, num_blocks); in operator() 68 Tensor buffer(DataTypeToEnum<AccumT>::v(), {num_blocks, inner_dim}); in operator() 80 const auto compute = [inner_dim, num_blocks, outer_block_size, buffer_data, in operator() 83 DCHECK(start >= 0 && limit <= num_blocks); in operator() 105 device.parallelFor(num_blocks, cost, compute); in operator() 110 for (int i = 1; i < num_blocks; ++i) { in operator()
|
D | scan_ops_gpu.h | 237 int num_blocks = dimx * dimz; in LaunchScan() local 247 num_blocks, block_size, 0, d.stream(), in.data(), in LaunchScan() 253 num_blocks, block_size, 0, d.stream(), in.data(), in LaunchScan() 259 num_blocks, block_size, 0, d.stream(), in.data(), in LaunchScan() 265 num_blocks, block_size, 0, d.stream(), in.data(), in LaunchScan() 271 num_blocks, block_size, 0, d.stream(), in.data(), in LaunchScan() 277 num_blocks, block_size, 0, d.stream(), in.data(), in LaunchScan()
|
/external/e2fsprogs/debugfs/ |
D | lsdel.c | 30 e2_blkcnt_t num_blocks; member 36 e2_blkcnt_t num_blocks; member 60 lsd->num_blocks++; in lsdel_proc() 141 lsd.num_blocks = 0; in do_lsdel() 175 delarray[num_delarray].num_blocks = lsd.num_blocks; in do_lsdel() 202 delarray[i].free_blocks, delarray[i].num_blocks, in do_lsdel()
|
D | icheck.c | 30 e2_blkcnt_t num_blocks; member 44 for (i=0; i < bw->num_blocks; i++) { in icheck_proc() 94 bw.num_blocks = bw.blocks_left = argc-1; in do_icheck() 160 for (i=0, binfo = bw.barray; i < bw.num_blocks; i++, binfo++) { in do_icheck()
|
/external/webp/src/dsp/ |
D | quant.h | 28 static WEBP_INLINE int IsFlat(const int16_t* levels, int num_blocks, in IsFlat() argument 33 for (int i = 0; i < num_blocks; ++i) { in IsFlat() 53 static WEBP_INLINE int IsFlat(const int16_t* levels, int num_blocks, in IsFlat() argument 56 while (num_blocks-- > 0) { // TODO(skal): refine positional scoring? in IsFlat()
|
/external/tensorflow/tensorflow/compiler/xla/service/ |
D | triangular_solve_expander.cc | 45 int64 num_blocks = n / block_size; in DiagonalBlocks() local 62 Transpose(Broadcast(Mul(Iota(builder, S32, num_blocks), in DiagonalBlocks() 133 int64 num_blocks = ShapeUtil::ElementsIn(shape) / in InvertDiagonalBlocks() local 135 diag_blocks = Reshape(diag_blocks, {num_blocks, block_size, block_size}); in InvertDiagonalBlocks() 175 /*broadcast_sizes=*/{num_blocks}); in InvertDiagonalBlocks() 184 {num_blocks, block_size, block_size}), in InvertDiagonalBlocks() 187 {num_blocks, block_size, block_size})}; in InvertDiagonalBlocks() 218 /*slice_sizes=*/{num_blocks, 1, block_size}); in InvertDiagonalBlocks() 265 int64 num_blocks = n / block_size + (n % block_size != 0); in SolveWithInvertedDiagonalBlocks() local 274 for (int i = 0; i < num_blocks; i++) { in SolveWithInvertedDiagonalBlocks() [all …]
|
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/ |
D | TensorReductionCuda.h | 293 const int num_blocks = divup<int>(num_coeffs, block_size * num_per_thread); 296 if (num_blocks > 1) { 301 … num_blocks, block_size, 0, device, reducer, self, num_coeffs, output, semaphore); 320 const int num_blocks = divup<int>(num_coeffs, block_size * num_per_thread); 323 if (num_blocks > 1) { 331 … num_blocks, block_size, 0, device, reducer, self, num_coeffs, output, scratch); 333 if (num_blocks > 1) { 564 const int num_blocks = numext::mini<int>(max_blocks, dyn_blocks); 566 if (num_blocks > 1) { 572 const int num_blocks = numext::mini<int>(max_blocks, dyn_blocks); [all …]
|
/external/boringssl/src/crypto/fipsmodule/sha/ |
D | internal.h | 31 size_t num_blocks); 39 size_t num_blocks); 41 size_t num_blocks);
|
/external/tensorflow/tensorflow/contrib/eager/python/examples/densenet/ |
D | densenet_test.py | 35 num_blocks = 3 42 model = densenet.DenseNet(depth, growth_rate, num_blocks, 58 num_blocks = 3 65 model = densenet.DenseNet(depth, growth_rate, num_blocks, 81 num_blocks = 4 88 model = densenet.DenseNet(depth, growth_rate, num_blocks, 188 self.num_blocks = 4 224 model = densenet.DenseNet(self.depth, self.growth_rate, self.num_blocks, 273 model = densenet.DenseNet(self.depth, self.growth_rate, self.num_blocks,
|
D | densenet_graph_test.py | 53 num_blocks = 3 59 model = densenet.DenseNet(depth, growth_rate, num_blocks, 80 self.num_blocks = 4 95 model = densenet.DenseNet(self.depth, self.growth_rate, self.num_blocks, 125 model = densenet.DenseNet(self.depth, self.growth_rate, self.num_blocks,
|
/external/mesa3d/src/intel/compiler/ |
D | brw_cfg.cpp | 160 num_blocks = 0; in cfg_t() 437 for (int b = block->num; b < this->num_blocks - 1; b++) { in remove_block() 442 this->blocks[this->num_blocks - 1]->num = this->num_blocks - 2; in remove_block() 443 this->num_blocks--; in remove_block() 463 block->num = num_blocks++; in set_next_block() 471 blocks = ralloc_array(mem_ctx, bblock_t *, num_blocks); in make_block_array() 477 assert(i == num_blocks); in make_block_array() 574 for (int b = 0; b < num_blocks; b++) { in dump_cfg()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_pax_common.c | 39 size_t num_blocks, left; in eap_pax_kdf() local 41 num_blocks = (output_len + EAP_PAX_MAC_LEN - 1) / EAP_PAX_MAC_LEN; in eap_pax_kdf() 42 if (identifier == NULL || num_blocks >= 255) in eap_pax_kdf() 58 for (counter = 1; counter <= (u8) num_blocks; counter++) { in eap_pax_kdf()
|
/external/mesa3d/src/gallium/auxiliary/vl/ |
D | vl_mpeg12_decoder.c | 179 res_tmpl.height0 = align(dec->num_blocks, dec->blocks_per_line) / dec->blocks_per_line; in init_zscan_buffer() 412 unsigned tb, x, y, num_blocks = 0; in UploadYcbcrBlocks() local 436 num_blocks++; in UploadYcbcrBlocks() 457 num_blocks++; in UploadYcbcrBlocks() 461 memcpy(buf->texels, mb->blocks, 64 * sizeof(short) * num_blocks); in UploadYcbcrBlocks() 462 buf->texels += 64 * num_blocks; in UploadYcbcrBlocks() 948 dec->blocks_per_line, dec->num_blocks, num_channels)) in init_zscan() 952 dec->blocks_per_line, dec->num_blocks, num_channels)) in init_zscan() 1133 dec->num_blocks = (dec->base.width * dec->base.height) / block_size_pixels; in vl_create_mpeg12_decoder() 1142 dec->num_blocks = dec->num_blocks * 2; in vl_create_mpeg12_decoder() [all …]
|
/external/e2fsprogs/e2fsck/ |
D | dx_dirinfo.c | 16 void e2fsck_add_dx_dir(e2fsck_t ctx, ext2_ino_t ino, int num_blocks) in e2fsck_add_dx_dir() argument 73 dir->numblocks = num_blocks; in e2fsck_add_dx_dir() 75 dir->dx_block = e2fsck_allocate_memory(ctx, num_blocks in e2fsck_add_dx_dir()
|