/external/mesa3d/src/gallium/frontends/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/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 …]
|
/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/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() 229 memset(block_lengths, 0, num_blocks * sizeof(uint32_t)); in FN() 234 BROTLI_DCHECK(block_idx < num_blocks); in FN() [all …]
|
/external/e2fsprogs/misc/ |
D | mk_hugefiles.c | 61 static blk64_t num_blocks; variable 505 num_blocks = parse_num_blocks2(t, fs->super->s_log_block_size); in mk_hugefiles() 522 num_blocks = round_up_align(num_blocks, align, 0); in mk_hugefiles() 552 if (num_blocks && num_blocks > fs_blocks) in mk_hugefiles() 554 if (num_blocks == 0 && num_files == 0) in mk_hugefiles() 557 if (num_files == 0 && num_blocks) { in mk_hugefiles() 558 num_files = fs_blocks / num_blocks; in mk_hugefiles() 560 fs_blocks -= calc_overhead(fs, num_blocks) * num_files; in mk_hugefiles() 561 num_files = fs_blocks / num_blocks; in mk_hugefiles() 564 if (num_blocks == 0 && num_files > 1) { in mk_hugefiles() [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | redux_functor.h | 73 const Eigen::Index num_blocks = num_threads; in operator() local 76 const Eigen::Index inner_block_size = Eigen::divup(inner_dim, num_blocks); in operator() 93 const auto compute = [inner_dim, outer_dim, num_blocks, inner_block_size, in operator() 96 DCHECK(start >= 0 && limit <= num_blocks); in operator() 121 device.parallelFor(num_blocks, cost, compute); in operator() 139 const Eigen::Index num_blocks = std::min(max_num_blocks, num_threads); in operator() local 142 const Eigen::Index outer_block_size = Eigen::divup(outer_dim, num_blocks); in operator() 147 Tensor buffer(DataTypeToEnum<AccumT>::v(), {num_blocks, inner_dim}); in operator() 159 const auto compute = [inner_dim, num_blocks, outer_block_size, in operator() 162 DCHECK(start >= 0 && limit <= num_blocks); in operator() [all …]
|
D | debug_ops_gpu.cu.cc | 159 const int32 num_blocks = in Run() local 163 TF_CHECK_OK(GpuLaunchKernel(CurtHealthKernel<Tin, Tout>, num_blocks, in Run() 183 const int32 num_blocks = in Run() local 187 TF_CHECK_OK(GpuLaunchKernel(ConciseHealthKernel<Tin, Tout>, num_blocks, in Run() 207 const int32 num_blocks = in Run() local 211 TF_CHECK_OK(GpuLaunchKernel(FullHealthKernel<Tin, Tout>, num_blocks, in Run() 231 const int32 num_blocks = in Run() local 236 num_blocks, block_size, 0, d.stream(), data, in Run()
|
D | check_numerics_op_gpu.cu.cc | 89 const int32 num_blocks = in Run() local 93 TF_CHECK_OK(GpuLaunchKernel(CheckNumericsKernel<T>, num_blocks, block_size, in Run() 107 const int32 num_blocks = in Run() local 111 TF_CHECK_OK(GpuLaunchKernel(CheckNumericsKernelV2<T>, num_blocks, in Run()
|
/external/mesa3d/src/compiler/nir/ |
D | nir_phi_builder.c | 32 unsigned num_blocks; member 101 pb->num_blocks = impl->num_blocks; in nir_phi_builder_create() 102 pb->blocks = ralloc_array(pb, nir_block *, pb->num_blocks); in nir_phi_builder_create() 110 pb->work = rzalloc_array(pb, unsigned, pb->num_blocks); in nir_phi_builder_create() 111 pb->W = ralloc_array(pb, nir_block *, pb->num_blocks); in nir_phi_builder_create() 135 BITSET_FOREACH_SET(i, defs, pb->num_blocks) { in nir_phi_builder_add_value() 278 const unsigned num_blocks = pb->num_blocks; in nir_phi_builder_finish() local 279 nir_block **preds = rzalloc_array(pb, nir_block *, 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/flac/src/flac/ |
D | foreign_metadata.c | 78 …safe_realloc_muladd2_(fm->blocks, sizeof(foreign_block_t), /*times (*/fm->num_blocks, /*+*/1/*)*/); in append_block_() 80 fb[fm->num_blocks].offset = offset; in append_block_() 81 fb[fm->num_blocks].size = size; in append_block_() 82 fm->num_blocks++; in append_block_() 130 fm->format_block = fm->num_blocks; in read_from_aiff_() 141 fm->audio_block = fm->num_blocks; in read_from_aiff_() 231 fm->format_block = fm->num_blocks; in read_from_wave_() 242 fm->audio_block = fm->num_blocks; in read_from_wave_() 243 if(fm->is_rf64 && fm->num_blocks < 2) { in read_from_wave_() 251 if(fm->is_rf64 && fm->num_blocks == 2) { in read_from_wave_() [all …]
|
/external/ruy/ruy/ |
D | block_map_test.cc | 168 const int num_blocks = num_blocks_per_side * num_blocks_per_side; in GetBlockByIndexSquareTest() local 169 EXPECT_EQ(num_blocks, NumBlocks(block_map)); in GetBlockByIndexSquareTest() 175 std::vector<int> block_hit_counts(num_blocks); in GetBlockByIndexSquareTest() 182 for (int block_index = 0; block_index < num_blocks; block_index++) { in GetBlockByIndexSquareTest() 207 EXPECT_EQ(total_l1_distance, num_blocks - 1); in GetBlockByIndexSquareTest() 215 EXPECT_EQ(discontinuity_count, num_blocks > 1 ? (num_blocks / 2 - 1) : 0); in GetBlockByIndexSquareTest()
|
/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()
|
/external/icing/icing/index/main/ |
D | flash-index-storage_test.cc | 116 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(1)); in TEST_F() 130 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(1)); in TEST_F() 159 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(2)); in TEST_F() 182 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(2)); in TEST_F() 208 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(2)); in TEST_F() 255 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(2)); in TEST_F() 278 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(2)); in TEST_F() 304 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(2)); in TEST_F() 353 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(2)); in TEST_F() 376 EXPECT_THAT(flash_index_storage.num_blocks(), Eq(2)); in TEST_F() [all …]
|
/external/webp/src/dsp/ |
D | quant.h | 30 static WEBP_INLINE int IsFlat(const int16_t* levels, int num_blocks, in IsFlat() argument 35 for (int i = 0; i < num_blocks; ++i) { in IsFlat() 55 static WEBP_INLINE int IsFlat(const int16_t* levels, int num_blocks, in IsFlat() argument 58 while (num_blocks-- > 0) { // TODO(skal): refine positional scoring? in IsFlat()
|
/external/mesa3d/src/compiler/glsl/ |
D | gl_nir_lower_buffers.c | 84 unsigned num_blocks; in get_block_array_index() local 87 num_blocks = linked_shader->Program->info.num_ubos; in get_block_array_index() 91 num_blocks = linked_shader->Program->info.num_ssbos; in get_block_array_index() 98 for (unsigned i = 0; i < num_blocks; i++) { in get_block_array_index() 129 unsigned num_blocks; in get_block_index_offset() local 132 num_blocks = linked_shader->Program->info.num_ubos; in get_block_index_offset() 136 num_blocks = linked_shader->Program->info.num_ssbos; in get_block_index_offset() 143 for (unsigned i = 0; i < num_blocks; i++) { in get_block_index_offset()
|
/external/boringssl/src/crypto/fipsmodule/sha/ |
D | internal.h | 34 size_t num_blocks); 43 size_t num_blocks); 45 size_t num_blocks);
|
/external/rust/crates/quiche/deps/boringssl/src/crypto/fipsmodule/sha/ |
D | internal.h | 34 size_t num_blocks); 43 size_t num_blocks); 45 size_t num_blocks);
|
/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/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/intel/compiler/ |
D | brw_cfg.cpp | 175 num_blocks = 0; in cfg_t() 461 for (int b = block->num; b < this->num_blocks - 1; b++) { in remove_block() 466 this->blocks[this->num_blocks - 1]->num = this->num_blocks - 2; in remove_block() 467 this->num_blocks--; in remove_block() 486 block->num = num_blocks++; in set_next_block() 494 blocks = ralloc_array(mem_ctx, bblock_t *, num_blocks); in make_block_array() 500 assert(i == num_blocks); in make_block_array() 542 num_parents(s->cfg->num_blocks), in idom_tree() 607 for (int b = 0; b < num_blocks; b++) { in dump_cfg()
|
/external/flac/src/libFLAC++/ |
D | stream_encoder.cpp | 192 bool Stream::set_metadata(::FLAC__StreamMetadata **metadata, uint32_t num_blocks) in set_metadata() argument 195 return static_cast<bool>(::FLAC__stream_encoder_set_metadata(encoder_, metadata, num_blocks)); in set_metadata() 198 bool Stream::set_metadata(FLAC::Metadata::Prototype **metadata, uint32_t num_blocks) in set_metadata() argument 205 ::FLAC__StreamMetadata **m = new ::FLAC__StreamMetadata*[num_blocks]; in set_metadata() 207 ::FLAC__StreamMetadata *m[num_blocks]; in set_metadata() 209 for(uint32_t i = 0; i < num_blocks; i++) { in set_metadata() 215 const bool ok = static_cast<bool>(::FLAC__stream_encoder_set_metadata(encoder_, m, num_blocks)); in set_metadata() 219 return static_cast<bool>(::FLAC__stream_encoder_set_metadata(encoder_, m, num_blocks)); in set_metadata()
|
/external/tensorflow/tensorflow/python/keras/applications/ |
D | nasnet.py | 67 num_blocks=6, argument 230 for i in range(num_blocks): 234 x, p, filters * filter_multiplier, block_id='reduce_%d' % (num_blocks)) 238 for i in range(num_blocks): 240 x, p, filters * filter_multiplier, block_id='%d' % (num_blocks + i + 1)) 246 block_id='reduce_%d' % (2 * num_blocks)) 250 for i in range(num_blocks): 255 block_id='%d' % (2 * num_blocks + i + 1)) 386 num_blocks=4, 463 num_blocks=6,
|