Home
last modified time | relevance | path

Searched refs:num_blocks (Results 1 – 25 of 73) sorted by relevance

123

/external/ceres-solver/include/ceres/
Dgradient_checker.h123 const int num_blocks = block_sizes.size(); in Probe() local
125 CHECK_LE(num_blocks, 5) << "Unable to test functions that take more " in Probe()
129 CHECK_GE(num_blocks, 1); in Probe()
131 CHECK_LT(num_blocks, 1); in Probe()
135 CHECK_GE(num_blocks, 2); in Probe()
137 CHECK_LT(num_blocks, 2); in Probe()
141 CHECK_GE(num_blocks, 3); in Probe()
143 CHECK_LT(num_blocks, 3); in Probe()
147 CHECK_GE(num_blocks, 4); in Probe()
149 CHECK_LT(num_blocks, 4); in Probe()
[all …]
/external/mesa3d/src/gallium/state_trackers/xvmc/
Dblock.c38 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/
Dalloc_sb.c49 int old_desc_blocks, num_blocks; in ext2fs_reserve_super_and_bgd() local
69 num_blocks = old_desc_blocks; in ext2fs_reserve_super_and_bgd()
70 if (old_desc_blk + num_blocks >= ext2fs_blocks_count(fs->super)) in ext2fs_reserve_super_and_bgd()
71 num_blocks = ext2fs_blocks_count(fs->super) - in ext2fs_reserve_super_and_bgd()
73 ext2fs_mark_block_bitmap_range2(bmap, old_desc_blk, num_blocks); in ext2fs_reserve_super_and_bgd()
78 num_blocks = ext2fs_group_blocks_count(fs, group); in ext2fs_reserve_super_and_bgd()
79 num_blocks -= 2 + fs->inode_blocks_per_group + used_blks; in ext2fs_reserve_super_and_bgd()
81 return num_blocks ; in ext2fs_reserve_super_and_bgd()
Di_block.c30 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
64 num_blocks *= fs->blocksize / 512; in ext2fs_iblk_sub_blocks()
65 num_blocks *= EXT2FS_CLUSTER_RATIO(fs); in ext2fs_iblk_sub_blocks()
67 if (num_blocks > b) in ext2fs_iblk_sub_blocks()
70 b -= num_blocks; in ext2fs_iblk_sub_blocks()
Dmkjournal.c45 __u32 num_blocks, int flags, in ext2fs_create_journal_superblock() argument
51 if (num_blocks < 1024) in ext2fs_create_journal_superblock()
65 jsb->s_maxlen = htonl(num_blocks); in ext2fs_create_journal_superblock()
93 blk_t num_blocks, int flags) in write_journal_file() argument
100 if ((retval = ext2fs_create_journal_superblock(fs, num_blocks, flags, in write_journal_file()
124 for (i = 1; i < num_blocks; i++) { in write_journal_file()
217 int num_blocks; member
256 es->num_blocks--; in mkjournal_proc()
289 if (es->num_blocks == 0) in mkjournal_proc()
300 blk_t num_blocks, int flags) in write_journal_inode() argument
[all …]
Dinode.c272 blk64_t *num_blocks) in check_for_inode_bad_blocks() argument
307 *num_blocks = 1; in check_for_inode_bad_blocks()
319 if ((blk + *num_blocks) > bb->list[scan->bad_block_ptr]) in check_for_inode_bad_blocks()
320 *num_blocks = (int) (bb->list[scan->bad_block_ptr] - blk); in check_for_inode_bad_blocks()
331 blk64_t num_blocks; in get_next_blocks() local
339 num_blocks = scan->inode_buffer_blocks; in get_next_blocks()
340 if (num_blocks > scan->blocks_left) in get_next_blocks()
341 num_blocks = scan->blocks_left; in get_next_blocks()
357 retval = check_for_inode_bad_blocks(scan, &num_blocks); in get_next_blocks()
365 (size_t) num_blocks * scan->fs->blocksize); in get_next_blocks()
[all …]
/external/ceres-solver/internal/ceres/
Dblock_random_access_dense_matrix.cc43 const int num_blocks = blocks.size(); in BlockRandomAccessDenseMatrix() local
44 block_layout_.resize(num_blocks, 0); in BlockRandomAccessDenseMatrix()
46 for (int i = 0; i < num_blocks; ++i) { in BlockRandomAccessDenseMatrix()
53 cell_infos_.reset(new CellInfo[num_blocks * num_blocks]); in BlockRandomAccessDenseMatrix()
54 for (int i = 0; i < num_blocks * num_blocks; ++i) { in BlockRandomAccessDenseMatrix()
Dcompressed_col_sparse_matrix_utils.cc97 const int num_blocks = blocks.size(); in BlockOrderingToScalarOrdering() local
100 vector<int> block_starts(num_blocks); in BlockOrderingToScalarOrdering()
101 for (int i = 0, cursor = 0; i < num_blocks ; ++i) { in BlockOrderingToScalarOrdering()
108 for (int i = 0; i < num_blocks; ++i) { in BlockOrderingToScalarOrdering()
Dschur_jacobi_preconditioner.cc53 const int num_blocks = bs.cols.size() - options_.elimination_groups[0]; in SchurJacobiPreconditioner() local
54 CHECK_GT(num_blocks, 0) in SchurJacobiPreconditioner()
58 block_size_.resize(num_blocks); in SchurJacobiPreconditioner()
59 for (int i = 0; i < num_blocks; ++i) { in SchurJacobiPreconditioner()
/external/e2fsprogs/debugfs/
Dlsdel.c29 e2_blkcnt_t num_blocks; member
35 e2_blkcnt_t num_blocks; member
59 lsd->num_blocks++; in lsdel_proc()
139 lsd.num_blocks = 0; in do_lsdel()
169 delarray[num_delarray].num_blocks = lsd.num_blocks; in do_lsdel()
196 delarray[i].free_blocks, delarray[i].num_blocks, in do_lsdel()
Dicheck.c29 e2_blkcnt_t num_blocks; member
43 for (i=0; i < bw->num_blocks; i++) { in icheck_proc()
92 bw.num_blocks = bw.blocks_left = argc-1; in do_icheck()
158 for (i=0, binfo = bw.barray; i < bw.num_blocks; i++, binfo++) { in do_icheck()
/external/mesa3d/src/gallium/auxiliary/util/
Du_slab.c64 for (i = 0; i < pool->num_blocks-1; i++) { in util_slab_add_new_page()
70 block = util_slab_get_block(pool, page, pool->num_blocks-1); in util_slab_add_new_page()
139 unsigned num_blocks, in util_slab_create() argument
145 pool->num_blocks = num_blocks; in util_slab_create()
149 num_blocks * pool->block_size; in util_slab_create()
Du_slab.h67 unsigned num_blocks; member
76 unsigned num_blocks,
/external/libnfc-nci/src/nfa/rw/
Dnfa_rw_api.c722 tNFA_STATUS NFA_RwT3tRead (UINT8 num_blocks, tNFA_T3T_BLOCK_DESC *t3t_blocks) in NFA_RwT3tRead() argument
727 NFA_TRACE_API1 ("NFA_RwT3tRead (): num_blocks to read: %i", num_blocks); in NFA_RwT3tRead()
730 if ((num_blocks == 0) || (t3t_blocks == NULL)) in NFA_RwT3tRead()
733 …FA_RW_OPERATION *) GKI_getbuf ((UINT16) (sizeof (tNFA_RW_OPERATION) + (num_blocks * sizeof (tNFA_T… in NFA_RwT3tRead()
742 p_msg->params.t3t_read.num_blocks = num_blocks; in NFA_RwT3tRead()
746 memcpy (p_block_desc, t3t_blocks, (num_blocks * sizeof (tNFA_T3T_BLOCK_DESC))); in NFA_RwT3tRead()
771 tNFA_STATUS NFA_RwT3tWrite (UINT8 num_blocks, tNFA_T3T_BLOCK_DESC *t3t_blocks, UINT8 *p_data) in NFA_RwT3tWrite() argument
776 NFA_TRACE_API1 ("NFA_RwT3tWrite (): num_blocks to write: %i", num_blocks); in NFA_RwT3tWrite()
779 if ((num_blocks == 0) || (t3t_blocks == NULL) | (p_data == NULL)) in NFA_RwT3tWrite()
782 …FA_RW_OPERATION *) GKI_getbuf ((UINT16) (sizeof (tNFA_RW_OPERATION) + (num_blocks * (sizeof (tNFA_… in NFA_RwT3tWrite()
[all …]
/external/libnfc-nci/src/nfc/tags/
Dce_t3t.c243 for (i = 0; i < p_cb->cur_cmd.num_blocks; i++) in ce_t3t_handle_update_cmd()
272 if (p_cb->cur_cmd.num_blocks > p_cb->ndef_info.nbw) in ce_t3t_handle_update_cmd()
274 …ted too many blocks to update (requested: %i, max: %i)", p_cb->cur_cmd.num_blocks, p_cb->ndef_info… in ce_t3t_handle_update_cmd()
436 UINT8_TO_STREAM (p_dst, p_cb->cur_cmd.num_blocks); in ce_t3t_handle_check_cmd()
438 for (i = 0; i < p_cb->cur_cmd.num_blocks; i++) in ce_t3t_handle_check_cmd()
459 if (p_cb->cur_cmd.num_blocks > p_cb->ndef_info.nbr) in ce_t3t_handle_check_cmd()
462 …sted too many blocks to check (requested: %i, max: %i)", p_cb->cur_cmd.num_blocks, p_cb->ndef_info… in ce_t3t_handle_check_cmd()
766 STREAM_TO_UINT8 (p_cb->cur_cmd.num_blocks, p); in ce_t3t_data_cback()
769 for (i = 0; i < p_cb->cur_cmd.num_blocks; i++) in ce_t3t_data_cback()
822 if (remaining < p_cb->cur_cmd.num_blocks*T3T_MSG_BLOCKSIZE) in ce_t3t_data_cback()
[all …]
/external/opencv3/3rdparty/libpng/
Dpngmem.c187 int num_blocks; variable
205 num_blocks = (int)(1 << (window_bits - 14));
208 num_blocks = 1;
215 num_blocks += (int)(1 << (mem_level - 7));
218 num_blocks++;
220 total_size = ((png_uint_32)65536L) * (png_uint_32)num_blocks+16;
251 png_ptr->offset_table_ptr = farmalloc(num_blocks *
273 for (i = 0; i < num_blocks; i++)
279 png_ptr->offset_table_number = num_blocks;
/external/wpa_supplicant_8/src/eap_common/
Deap_pax_common.c39 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/mesa/drivers/dri/i965/
Dbrw_fs_live_variables.cpp54 for (int b = 0; b < cfg->num_blocks; b++) { in setup_def_use()
108 for (int b = 0; b < cfg->num_blocks; b++) { in compute_live_variables()
141 bd = rzalloc_array(mem_ctx, struct block_data, cfg->num_blocks); in fs_live_variables()
143 for (int i = 0; i < cfg->num_blocks; i++) { in fs_live_variables()
209 for (int b = 0; b < cfg.num_blocks; b++) { in calculate_live_intervals()
Dbrw_fs_cfg.cpp73 num_blocks = 0; in fs_cfg()
234 block->block_num = num_blocks++; in set_next_block()
242 blocks = ralloc_array(mem_ctx, fs_bblock *, num_blocks); in make_block_array()
249 assert(i == num_blocks); in make_block_array()
/external/opencv3/3rdparty/libjpeg/
Djutils.c212 JDIMENSION num_blocks) in jcopy_block_row() argument
216 FMEMCOPY(output_row, input_row, num_blocks * (DCTSIZE2 * SIZEOF(JCOEF))); in jcopy_block_row()
223 for (count = (long) num_blocks * DCTSIZE2; count > 0; count--) { in jcopy_block_row()
/external/pdfium/third_party/libjpeg/
Dfpdfapi_jutils.c146 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/e2fsprogs/e2fsck/
Ddx_dirinfo.c16 void e2fsck_add_dx_dir(e2fsck_t ctx, ext2_ino_t ino, int num_blocks) in e2fsck_add_dx_dir() argument
69 dir->numblocks = num_blocks; in e2fsck_add_dx_dir()
71 dir->dx_block = e2fsck_allocate_memory(ctx, num_blocks in e2fsck_add_dx_dir()
/external/e2fsprogs/lib/quota/
Dquotaio.c106 blk64_t *num_blocks = private; in compute_num_blocks_proc() local
108 *num_blocks += 1; in compute_num_blocks_proc()
138 blk64_t num_blocks = 0; in compute_inode_size() local
144 &num_blocks); in compute_inode_size()
145 return num_blocks * fs->blocksize; in compute_inode_size()
/external/autotest/server/site_tests/brillo_StorageWriteSpeedTest/
Dbrillo_StorageWriteSpeedTest.py24 num_blocks=_DEFAULT_NUM_BLOCKS, min_speed=_DEFAULT_MIN_SPEED): argument
39 (tmp_file, block_size, num_blocks))
/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_mpeg12_decoder.c100 res_tmpl.height0 = align(dec->num_blocks, dec->blocks_per_line) / dec->blocks_per_line; in init_zscan_buffer()
333 unsigned tb, x, y, num_blocks = 0; in UploadYcbcrBlocks() local
357 num_blocks++; in UploadYcbcrBlocks()
378 num_blocks++; in UploadYcbcrBlocks()
382 memcpy(buf->texels, mb->blocks, 64 * sizeof(short) * num_blocks); in UploadYcbcrBlocks()
383 buf->texels += 64 * num_blocks; in UploadYcbcrBlocks()
864 dec->blocks_per_line, dec->num_blocks, num_channels)) in init_zscan()
868 dec->blocks_per_line, dec->num_blocks, num_channels)) in init_zscan()
1057 dec->num_blocks = (dec->base.width * dec->base.height) / block_size_pixels; in vl_create_mpeg12_decoder()
1067 dec->num_blocks = dec->num_blocks * 2; in vl_create_mpeg12_decoder()
[all …]

123