/third_party/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()
|
/third_party/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 …]
|
/third_party/skia/third_party/externals/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 …]
|
/third_party/node/deps/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 …]
|
/third_party/ffmpeg/libavcodec/ |
D | eac3enc.c | 70 if (s->num_blocks < 6) { in ff_eac3_get_frame_exp_strategy() 101 for (blk = 0; blk < s->num_blocks; blk++) { in ff_eac3_set_cpl_states() 116 for (blk = 0; blk < s->num_blocks; blk++) { in ff_eac3_set_cpl_states() 191 if (s->num_blocks != 6) in ff_eac3_output_frame_header() 196 if (s->num_blocks == 6) { in ff_eac3_output_frame_header() 212 for (blk = 1; blk < s->num_blocks; blk++) { in ff_eac3_output_frame_header() 224 for (blk = 0; blk < s->num_blocks; blk++) in ff_eac3_output_frame_header() 229 for (blk = 0; blk < s->num_blocks; blk++) in ff_eac3_output_frame_header() 233 if (s->num_blocks != 6) { in ff_eac3_output_frame_header() 247 if (s->num_blocks > 1) in ff_eac3_output_frame_header()
|
D | ac3enc_template.c | 70 memcpy(&s->planar_samples[ch][0], &s->planar_samples[ch][AC3_BLOCK_SIZE * s->num_blocks], in copy_input_samples() 76 AC3_BLOCK_SIZE * s->num_blocks * sizeof(s->planar_samples[0][0])); in copy_input_samples() 91 for (blk = 0; blk < s->num_blocks; blk++) { in apply_mdct() 135 for (blk = 0; blk < s->num_blocks; blk++) { in apply_channel_coupling() 160 for (blk = 0; blk < s->num_blocks; blk++) { in apply_channel_coupling() 175 for (blk = 0; blk < s->num_blocks; blk++) { in apply_channel_coupling() 190 for (blk = 0; blk < s->num_blocks; blk++) { in apply_channel_coupling() 230 while (blk < s->num_blocks) { in apply_channel_coupling() 246 while (blk1 < s->num_blocks && !s->blocks[blk1].new_cpl_coords[ch]) { in apply_channel_coupling() 260 for (blk = 0; blk < s->num_blocks; blk++) { in apply_channel_coupling() [all …]
|
D | ac3enc.c | 316 s->samples_written += AC3_BLOCK_SIZE * s->num_blocks; in ff_ac3_adjust_frame_size() 333 for (blk = 0; blk < s->num_blocks; blk++) { in ff_ac3_compute_coupling_strategy() 343 for (blk = 0; blk < s->num_blocks; blk++) { in ff_ac3_compute_coupling_strategy() 379 for (blk = 0; blk < s->num_blocks; blk++) { in ff_ac3_compute_coupling_strategy() 406 for (blk = 0; blk < s->num_blocks; blk++) { in ac3_apply_rematrixing() 452 int chan_size = AC3_MAX_COEFS * s->num_blocks * (s->channels - ch + 1); in extract_exponents() 492 for (blk = 1; blk < s->num_blocks; blk++, exp += AC3_MAX_COEFS) { in compute_exp_strategy() 516 while (blk < s->num_blocks) { in compute_exp_strategy() 518 while (blk1 < s->num_blocks && exp_strategy[blk1] == EXP_REUSE) in compute_exp_strategy() 527 for (blk = 1; blk < s->num_blocks; blk++) in compute_exp_strategy() [all …]
|
D | eac3dec.c | 419 for (blk = 0; blk < s->num_blocks; blk++) { in ff_eac3_parse_header() 420 if (s->num_blocks == 1 || get_bits1(gbc)) { in ff_eac3_parse_header() 453 if (s->frame_type == EAC3_FRAME_TYPE_INDEPENDENT && s->num_blocks != 6) { in ff_eac3_parse_header() 459 (s->num_blocks == 6 || get_bits1(gbc))) { in ff_eac3_parse_header() 473 if (s->num_blocks == 6) { in ff_eac3_parse_header() 515 for (blk = 0; blk < s->num_blocks; blk++) { in ff_eac3_parse_header() 531 for (blk = 0; blk < s->num_blocks; blk++) { in ff_eac3_parse_header() 547 for (blk = 0; blk < s->num_blocks; blk++) { in ff_eac3_parse_header() 553 (s->num_blocks == 6 || get_bits1(gbc))) { in ff_eac3_parse_header() 607 if (s->num_blocks > 1 && get_bits1(gbc)) { in ff_eac3_parse_header() [all …]
|
D | adxdec.c | 105 int num_blocks, ch, ret; in adx_decode_frame() local 146 num_blocks = buf_size / (BLOCK_SIZE * c->channels); in adx_decode_frame() 150 if (!num_blocks || buf_size % (BLOCK_SIZE * c->channels)) { in adx_decode_frame() 160 frame->nb_samples = num_blocks * BLOCK_SAMPLES; in adx_decode_frame() 166 while (num_blocks--) { in adx_decode_frame()
|
D | ralf.c | 66 int num_blocks; ///< number of blocks inside the frame member 471 ctx->num_blocks = 0; in decode_frame() 473 if (ctx->num_blocks >= FF_ARRAY_ELEMS(ctx->block_size)) in decode_frame() 475 ctx->block_size[ctx->num_blocks] = get_bits(&gb, 13 + avctx->ch_layout.nb_channels); in decode_frame() 477 ctx->block_pts[ctx->num_blocks] = get_bits(&gb, 9); in decode_frame() 479 ctx->block_pts[ctx->num_blocks] = 0; in decode_frame() 481 ctx->num_blocks++; in decode_frame() 487 for (i = 0; i < ctx->num_blocks; i++) { in decode_frame()
|
D | atrac1.c | 112 int band_num, band_samples, log2_block_count, nbits, num_blocks, block_size; in at1_imdct_block() local 124 num_blocks = 1 << log2_block_count; in at1_imdct_block() 126 if (num_blocks == 1) { in at1_imdct_block() 143 for (j=0; j < num_blocks; j++) { in at1_imdct_block() 155 if (num_blocks == 1) in at1_imdct_block()
|
/third_party/node/deps/openssl/openssl/crypto/modes/ |
D | ocb128.c | 272 size_t num_blocks, last_len; in CRYPTO_ocb128_aad() local 276 num_blocks = len / 16; in CRYPTO_ocb128_aad() 277 all_num_blocks = num_blocks + ctx->sess.blocks_hashed; in CRYPTO_ocb128_aad() 334 size_t num_blocks, last_len; in CRYPTO_ocb128_encrypt() local 340 num_blocks = len / 16; in CRYPTO_ocb128_encrypt() 341 all_num_blocks = num_blocks + ctx->sess.blocks_processed; in CRYPTO_ocb128_encrypt() 343 if (num_blocks && all_num_blocks == (size_t)all_num_blocks in CRYPTO_ocb128_encrypt() 356 ctx->stream(in, out, num_blocks, ctx->keyenc, in CRYPTO_ocb128_encrypt() 426 size_t num_blocks, last_len; in CRYPTO_ocb128_decrypt() local 432 num_blocks = len / 16; in CRYPTO_ocb128_decrypt() [all …]
|
/third_party/openssl/crypto/modes/ |
D | ocb128.c | 272 size_t num_blocks, last_len; in CRYPTO_ocb128_aad() local 276 num_blocks = len / 16; in CRYPTO_ocb128_aad() 277 all_num_blocks = num_blocks + ctx->sess.blocks_hashed; in CRYPTO_ocb128_aad() 334 size_t num_blocks, last_len; in CRYPTO_ocb128_encrypt() local 340 num_blocks = len / 16; in CRYPTO_ocb128_encrypt() 341 all_num_blocks = num_blocks + ctx->sess.blocks_processed; in CRYPTO_ocb128_encrypt() 343 if (num_blocks && all_num_blocks == (size_t)all_num_blocks in CRYPTO_ocb128_encrypt() 356 ctx->stream(in, out, num_blocks, ctx->keyenc, in CRYPTO_ocb128_encrypt() 426 size_t num_blocks, last_len; in CRYPTO_ocb128_decrypt() local 432 num_blocks = len / 16; in CRYPTO_ocb128_decrypt() [all …]
|
/third_party/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()
|
/third_party/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() 130 unsigned num_blocks; in get_block_index_offset() local 133 num_blocks = linked_shader->Program->info.num_ubos; in get_block_index_offset() 137 num_blocks = linked_shader->Program->info.num_ssbos; in get_block_index_offset() 144 for (unsigned i = 0; i < num_blocks; i++) { in get_block_index_offset()
|
D | gl_nir_link_uniform_blocks.c | 416 struct gl_uniform_block **out_blks, unsigned *num_blocks, in allocate_uniform_blocks() argument 422 *num_blocks = 0; in allocate_uniform_blocks() 435 *num_blocks += buffer_count; in allocate_uniform_blocks() 443 if (*num_blocks == 0) { in allocate_uniform_blocks() 451 rzalloc_array(mem_ctx, struct gl_uniform_block, *num_blocks); in allocate_uniform_blocks() 548 unsigned *num_blocks, in link_linked_shader_uniform_blocks() argument 555 blocks, num_blocks, in link_linked_shader_uniform_blocks() 581 assert(block_index == *num_blocks); in link_linked_shader_uniform_blocks()
|
/third_party/skia/third_party/externals/libwebp/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()
|
/third_party/mesa3d/src/intel/compiler/ |
D | brw_cfg.cpp | 175 num_blocks = 0; in cfg_t() 463 for (int b = block->num; b < this->num_blocks - 1; b++) { in remove_block() 468 this->blocks[this->num_blocks - 1]->num = this->num_blocks - 2; in remove_block() 469 this->num_blocks--; in remove_block() 488 block->num = num_blocks++; in set_next_block() 496 blocks = ralloc_array(mem_ctx, bblock_t *, num_blocks); in make_block_array() 502 assert(i == num_blocks); in make_block_array() 544 num_parents(s->cfg->num_blocks), in idom_tree() 609 for (int b = 0; b < num_blocks; b++) { in dump_cfg()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
|
/third_party/ffmpeg/libavformat/ |
D | argo_cvg.c | 58 uint32_t num_blocks; member 193 ctx->num_blocks = (ctx->header.size - 8) / ARGO_CVG_BLOCK_ALIGN; in argo_cvg_read_header() 195 av_log(s, AV_LOG_TRACE, "num blocks = %u\n", ctx->num_blocks); in argo_cvg_read_header() 200 st->duration = ctx->num_blocks * ARGO_CVG_SAMPLES_PER_BLOCK; in argo_cvg_read_header() 201 st->nb_frames = ctx->num_blocks; in argo_cvg_read_header() 211 if (ctx->blocks_read >= ctx->num_blocks) in argo_cvg_read_packet() 215 FFMIN(ARGO_CVG_NB_BLOCKS, ctx->num_blocks - ctx->blocks_read)); in argo_cvg_read_packet()
|
D | argo_asf.c | 75 hdr->num_blocks = AV_RL32(buf + 0); in ff_argo_asf_parse_chunk_header() 137 st->duration = ckhdr->num_blocks * ckhdr->num_samples; in ff_argo_asf_fill_stream() 138 st->nb_frames = ckhdr->num_blocks; in ff_argo_asf_fill_stream() 226 if (asf->blocks_read >= asf->ckhdr.num_blocks) in argo_asf_read_packet() 230 FFMIN(ASF_NB_BLOCKS, asf->ckhdr.num_blocks - asf->blocks_read)); in argo_asf_read_packet() 256 if (block >= asf->ckhdr.num_blocks) in argo_asf_seek() 342 avio_wl32(pb, ckhdr->num_blocks); in argo_asf_write_chunk_header() 384 chdr.num_blocks = 0; in argo_asf_write_header()
|
/third_party/mesa3d/src/amd/common/ |
D | ac_perfcounter.c | 1034 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { in ac_lookup_counter() 1055 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { in ac_lookup_group() 1157 unsigned num_blocks; in ac_init_perfcounters() local 1162 num_blocks = ARRAY_SIZE(groups_CIK); in ac_init_perfcounters() 1166 num_blocks = ARRAY_SIZE(groups_VI); in ac_init_perfcounters() 1170 num_blocks = ARRAY_SIZE(groups_gfx9); in ac_init_perfcounters() 1175 num_blocks = ARRAY_SIZE(groups_gfx10); in ac_init_perfcounters() 1185 pc->blocks = CALLOC(num_blocks, sizeof(struct ac_pc_block)); in ac_init_perfcounters() 1188 pc->num_blocks = num_blocks; in ac_init_perfcounters() 1190 for (unsigned i = 0; i < num_blocks; i++) { in ac_init_perfcounters() [all …]
|
/third_party/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() 949 dec->blocks_per_line, dec->num_blocks, num_channels)) in init_zscan() 953 dec->blocks_per_line, dec->num_blocks, num_channels)) in init_zscan() 1135 dec->num_blocks = (dec->base.width * dec->base.height) / block_size_pixels; in vl_create_mpeg12_decoder() 1144 dec->num_blocks = dec->num_blocks * 2; in vl_create_mpeg12_decoder() [all …]
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
D | r600_perfcounter.c | 44 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { in lookup_counter() 65 for (bid = 0; bid < pc->num_blocks; ++bid, ++block) { in lookup_group() 528 for (bid = 0; bid < pc->num_blocks; ++bid) { in r600_get_perfcounter_info() 590 unsigned num_blocks) in r600_perfcounters_init() argument 592 pc->blocks = CALLOC(num_blocks, sizeof(struct r600_perfcounter_block)); in r600_perfcounters_init() 608 struct r600_perfcounter_block *block = &pc->blocks[pc->num_blocks]; in r600_perfcounters_add_block() 635 ++pc->num_blocks; in r600_perfcounters_add_block() 643 for (i = 0; i < pc->num_blocks; ++i) { in r600_perfcounters_do_destroy()
|