/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/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/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/misc/ |
D | mk_hugefiles.c | 61 static blk64_t num_blocks; variable 419 num_blocks = parse_num_blocks2(t, fs->super->s_log_block_size); in mk_hugefiles() 436 num_blocks = round_up_align(num_blocks, align, 0); in mk_hugefiles() 466 if (num_blocks && num_blocks > fs_blocks) in mk_hugefiles() 468 if (num_blocks == 0 && num_files == 0) in mk_hugefiles() 471 if (num_files == 0 && num_blocks) { in mk_hugefiles() 472 num_files = fs_blocks / num_blocks; in mk_hugefiles() 474 fs_blocks -= calc_overhead(fs, num_blocks) * num_files; in mk_hugefiles() 475 num_files = fs_blocks / num_blocks; in mk_hugefiles() 478 if (num_blocks == 0 && num_files > 1) { in mk_hugefiles() [all …]
|
/external/brotli/enc/ |
D | block_splitter_inc.h | 77 size_t num_blocks = 1; in FN() local 147 ++num_blocks; in FN() 153 return num_blocks; in FN() 191 const size_t num_blocks, in FN() 194 uint32_t* histogram_symbols = BROTLI_ALLOC(m, uint32_t, num_blocks); in FN() 195 uint32_t* block_lengths = BROTLI_ALLOC(m, uint32_t, num_blocks); in FN() 197 (num_blocks + HISTOGRAMS_PER_BATCH - 1) / HISTOGRAMS_PER_BATCH; in FN() 207 BROTLI_MIN(size_t, num_blocks, HISTOGRAMS_PER_BATCH)); in FN() 225 memset(block_lengths, 0, num_blocks * sizeof(uint32_t)); in FN() 230 assert(block_idx < num_blocks); in FN() [all …]
|
/external/syslinux/gpxe/src/net/udp/ |
D | slam.c | 142 unsigned long num_blocks; member 255 unsigned long num_blocks; in slam_tx_nack() local 277 for ( num_blocks = 1 ; ; num_blocks++ ) { in slam_tx_nack() 278 if ( num_blocks >= SLAM_MAX_BLOCKS_PER_NACK ) in slam_tx_nack() 280 if ( ( first_block + num_blocks ) >= slam->num_blocks ) in slam_tx_nack() 283 ( first_block + num_blocks ) ) ) in slam_tx_nack() 289 ( first_block + num_blocks - 1 ) ); in slam_tx_nack() 292 "0-%ld\n", slam, ( num_blocks - 1 ) ); in slam_tx_nack() 296 if ( ( rc = slam_put_value ( slam, iobuf, num_blocks ) ) != 0 ) in slam_tx_nack() 445 slam->num_blocks = ( ( slam->total_bytes + slam->block_size - 1 ) / in slam_pull_header() [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/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() 140 lsd.num_blocks = 0; in do_lsdel() 174 delarray[num_delarray].num_blocks = lsd.num_blocks; in do_lsdel() 201 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() 93 bw.num_blocks = bw.blocks_left = argc-1; in do_icheck() 159 for (i=0, binfo = bw.barray; i < bw.num_blocks; i++, binfo++) { in do_icheck()
|
/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/syslinux/com32/lib/libpng/ |
D | pngmem.c | 175 int num_blocks; in png_malloc_default() local 188 num_blocks = (int)(1 << (png_ptr->zlib_window_bits - 14)); in png_malloc_default() 190 num_blocks = 1; in png_malloc_default() 192 num_blocks += (int)(1 << (png_ptr->zlib_mem_level - 7)); in png_malloc_default() 194 num_blocks++; in png_malloc_default() 196 total_size = ((png_uint_32)65536L) * (png_uint_32)num_blocks+16; in png_malloc_default() 225 png_ptr->offset_table_ptr = farmalloc(num_blocks * in png_malloc_default() 245 for (i = 0; i < num_blocks; i++) in png_malloc_default() 251 png_ptr->offset_table_number = num_blocks; in png_malloc_default()
|
/external/mesa3d/src/mesa/drivers/dri/i965/ |
D | brw_cfg.cpp | 159 num_blocks = 0; in cfg_t() 374 for (int b = block->num; b < this->num_blocks - 1; b++) { in remove_block() 379 this->blocks[this->num_blocks - 1]->num = this->num_blocks - 2; in remove_block() 380 this->num_blocks--; in remove_block() 400 block->num = num_blocks++; in set_next_block() 408 blocks = ralloc_array(mem_ctx, bblock_t *, num_blocks); in make_block_array() 414 assert(i == num_blocks); in make_block_array() 511 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/valgrind/memcheck/ |
D | mc_leakcheck.c | 1232 if (lr_a->num_blocks < lr_b->num_blocks) return -1; in cmp_LossRecords() 1233 if (lr_a->num_blocks > lr_b->num_blocks) return 1; in cmp_LossRecords() 1279 delta_considered = lr->num_blocks > 0; in get_printing_rules() 1285 || lr->num_blocks > lr->old_num_blocks; in get_printing_rules() 1290 || lr->num_blocks != lr->old_num_blocks; in get_printing_rules() 1319 ULong num_blocks; member 1353 xto->xt_lr[r].vid[d].num_blocks += xtl->xt_lr[r].vid[d].num_blocks; in MC_() 1365 xtl.xt_lr[i].vid[XT_Value].num_blocks = lr->num_blocks; in XT_insert_lr() 1377 if (lr->num_blocks > lr->old_num_blocks) in XT_insert_lr() 1378 xtl.xt_lr[i].vid[XT_Increase].num_blocks in XT_insert_lr() [all …]
|
/external/pdfium/third_party/libjpeg/ |
D | fpdfapi_jutils.c | 146 JDIMENSION num_blocks) in jcopy_block_row() argument 150 FMEMCOPY(output_row, input_row, num_blocks * (DCTSIZE2 * SIZEOF(JCOEF))); in jcopy_block_row() 157 for (count = (long) num_blocks * DCTSIZE2; count > 0; count--) { in jcopy_block_row()
|
/external/syslinux/core/fs/iso9660/ |
D | susp_rr.c | 185 block_t num_blocks, i; in susp_rr_switch_to_ca() local 188 num_blocks = (iter->next_offset + iter->next_length + 2047) / 2048; in susp_rr_switch_to_ca() 194 if (num_blocks > 1) { in susp_rr_switch_to_ca() 196 if (num_blocks > 50) { in susp_rr_switch_to_ca() 200 iter->ce_data = malloc(num_blocks * 2048); in susp_rr_switch_to_ca() 204 for (i = 0; i < num_blocks; i++) { in susp_rr_switch_to_ca()
|
/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()
|
/external/autotest/server/site_tests/brillo_StorageWriteSpeedTest/ |
D | brillo_StorageWriteSpeedTest.py | 24 num_blocks=_DEFAULT_NUM_BLOCKS, min_speed=_DEFAULT_MIN_SPEED): argument 39 (tmp_file, block_size, num_blocks))
|
/external/libjpeg-turbo/ |
D | jutils.c | 120 JDIMENSION num_blocks) in jcopy_block_row() argument 123 MEMCOPY(output_row, input_row, num_blocks * (DCTSIZE2 * sizeof(JCOEF))); in jcopy_block_row()
|
/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/boringssl/src/crypto/fipsmodule/rand/ |
D | ctrdrbg.c | 164 const size_t num_blocks = todo / AES_BLOCK_SIZE; in CTR_DRBG_generate() local 169 drbg->ctr(out, out, num_blocks, &drbg->ks, drbg->counter.bytes); in CTR_DRBG_generate() 170 ctr32_add(drbg, num_blocks - 1); in CTR_DRBG_generate()
|