Home
last modified time | relevance | path

Searched refs:block_size (Results 1 – 25 of 234) sorted by relevance

12345678910

/external/valgrind/none/tests/ppc64/
Ddata-cache-instructions.c21 int block_size, test_block_size = 4 * MAX_DCBZL_SZB, err; in query_block_size() local
34 for (block_size = 0, p = rb; (p - rb) < test_block_size; p++) in query_block_size()
36 block_size++; in query_block_size()
37 assert(block_size == 16 || block_size == 32 || block_size == 64 || block_size == 128); in query_block_size()
40 return block_size; in query_block_size()
44 static void test_dcbzl_at(char *addr, char *buffer, int block_size) in test_dcbzl_at() argument
49 memset(buffer, 0xff, 3 * block_size); in test_dcbzl_at()
51 for (i = 0; i < block_size; i++) { in test_dcbzl_at()
53 assert(buffer[block_size + i] == 0x00); in test_dcbzl_at()
54 assert(buffer[2 * block_size + i] == 0xff); in test_dcbzl_at()
[all …]
/external/valgrind/none/tests/ppc32/
Ddata-cache-instructions.c21 int block_size, test_block_size = 4 * MAX_DCBZL_SZB, err; in query_block_size() local
34 for (block_size = 0, p = rb; (p - rb) < test_block_size; p++) in query_block_size()
36 block_size++; in query_block_size()
37 assert(block_size == 16 || block_size == 32 || block_size == 64 || block_size == 128); in query_block_size()
40 return block_size; in query_block_size()
44 static void test_dcbzl_at(char *addr, char *buffer, int block_size) in test_dcbzl_at() argument
49 memset(buffer, 0xff, 3 * block_size); in test_dcbzl_at()
51 for (i = 0; i < block_size; i++) { in test_dcbzl_at()
53 assert(buffer[block_size + i] == 0x00); in test_dcbzl_at()
54 assert(buffer[2 * block_size + i] == 0xff); in test_dcbzl_at()
[all …]
/external/squashfs-tools/squashfs-tools/
Dcompressor.h47 int block_size, int datablock) in compressor_init() argument
51 return comp->init(stream, block_size, datablock); in compressor_init()
56 void *dest, void *src, int size, int block_size, int *error) in compressor_compress() argument
58 return comp->compress(strm, dest, src, size, block_size, error); in compressor_compress()
63 void *src, int size, int block_size, int *error) in compressor_uncompress() argument
65 return comp->uncompress(dest, src, size, block_size, error); in compressor_uncompress()
83 static inline int compressor_options_post(struct compressor *comp, int block_size) in compressor_options_post() argument
87 return comp->options_post(block_size); in compressor_options_post()
92 int block_size, int *size) in compressor_dump_options() argument
96 return comp->dump_options(block_size, size); in compressor_dump_options()
[all …]
Dxz_wrapper.c164 static int xz_options_post(int block_size) in xz_options_post() argument
174 if(dictionary_size > block_size) { in xz_options_post()
180 dictionary_size = block_size * dictionary_percent / 100; in xz_options_post()
207 dictionary_size = block_size; in xz_options_post()
226 static void *xz_dump_options(int block_size, int *size) in xz_dump_options() argument
241 if(dictionary_size == block_size && filter_count == 1) in xz_dump_options()
277 static int xz_extract_options(int block_size, void *buffer, int size) in xz_extract_options() argument
284 dictionary_size = block_size; in xz_extract_options()
383 static int xz_init(void **strm, int block_size, int datablock) in xz_init() argument
410 filter[j].buffer = malloc(block_size); in xz_init()
[all …]
Dlz4_wrapper.c77 static void *lz4_dump_options(int block_size, int *size) in lz4_dump_options() argument
110 static int lz4_extract_options(int block_size, void *buffer, int size) in lz4_extract_options() argument
162 static int lz4_check_options(int block_size, void *buffer, int size) in lz4_check_options() argument
224 int block_size, int *error) in lz4_compress() argument
229 res = LZ4_compressHC_limitedOutput(src, dest, size, block_size); in lz4_compress()
231 res = LZ4_compress_limitedOutput(src, dest, size, block_size); in lz4_compress()
/external/protobuf/src/google/protobuf/io/
Dprinter_unittest.cc55 const int block_size = 100; in TEST() local
56 ArrayOutputStream output(buffer, GOOGLE_ARRAYSIZE(buffer), block_size); in TEST()
64 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
65 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
89 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
90 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
117 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
118 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
174 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
175 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
Dzero_copy_stream_impl_lite.cc57 int block_size) in ArrayInputStream() argument
60 block_size_(block_size > 0 ? block_size : size), in ArrayInputStream()
110 ArrayOutputStream::ArrayOutputStream(void* data, int size, int block_size) in ArrayOutputStream() argument
113 block_size_(block_size > 0 ? block_size : size), in ArrayOutputStream()
217 CopyingInputStream* copying_stream, int block_size) in CopyingInputStreamAdaptor() argument
222 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingInputStreamAdaptor()
323 CopyingOutputStream* copying_stream, int block_size) in CopyingOutputStreamAdaptor() argument
328 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingOutputStreamAdaptor()
/external/opencv/cxcore/src/
Dcxmean.cpp133 #define ICV_MEAN_ENTRY_BLOCK_COMMON( block_size ) \ argument
134 int remaining = block_size; \
137 #define ICV_MEAN_ENTRY_BLOCK_C1( sumtype, worktype, block_size )\ argument
140 ICV_MEAN_ENTRY_BLOCK_COMMON( block_size )
142 #define ICV_MEAN_ENTRY_BLOCK_C2( sumtype, worktype, block_size )\ argument
145 ICV_MEAN_ENTRY_BLOCK_COMMON( block_size )
147 #define ICV_MEAN_ENTRY_BLOCK_C3( sumtype, worktype, block_size )\ argument
150 ICV_MEAN_ENTRY_BLOCK_COMMON( block_size )
152 #define ICV_MEAN_ENTRY_BLOCK_C4( sumtype, worktype, block_size )\ argument
155 ICV_MEAN_ENTRY_BLOCK_COMMON( block_size )
[all …]
Dcxmeansdv.cpp270 #define ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size ) \ argument
271 int remaining = block_size; \
275 worktype, sqworktype, block_size ) \ argument
280 ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size )
283 worktype, sqworktype, block_size ) \ argument
288 ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size )
291 worktype, sqworktype, block_size ) \ argument
296 ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size )
299 worktype, sqworktype, block_size ) \ argument
304 ICV_MEAN_SDV_ENTRY_BLOCK_COMMON( block_size )
[all …]
Dcxnorm.cpp139 post_func, arrtype, normtype, worktype, block_size ) \ argument
143 int remaining = block_size; \
159 remaining = block_size; \
173 post_func, arrtype, normtype, worktype, block_size ) \ argument
197 post_func, arrtype, normtype, worktype, block_size ) \ argument
218 normtype, worktype, block_size ) \ argument
222 int remaining = block_size; \
240 remaining = block_size; \
255 arrtype, normtype, worktype, block_size ) \ argument
277 normtype, worktype, block_size ) \ argument
[all …]
Dcxsumpixels.cpp141 #define ICV_SUM_ENTRY_BLOCK_COMMON( block_size ) \ argument
142 int remaining = block_size; \
145 #define ICV_SUM_ENTRY_BLOCK_C1( sumtype, worktype, block_size ) \ argument
148 ICV_SUM_ENTRY_BLOCK_COMMON( block_size )
150 #define ICV_SUM_ENTRY_BLOCK_C2( sumtype, worktype, block_size ) \ argument
153 ICV_SUM_ENTRY_BLOCK_COMMON( block_size )
155 #define ICV_SUM_ENTRY_BLOCK_C3( sumtype, worktype, block_size ) \ argument
158 ICV_SUM_ENTRY_BLOCK_COMMON( block_size )
160 #define ICV_SUM_ENTRY_BLOCK_C4( sumtype, worktype, block_size ) \ argument
163 ICV_SUM_ENTRY_BLOCK_COMMON( block_size )
[all …]
/external/e2fsprogs/misc/
Dbadblocks.c351 static int do_read (int dev, unsigned char * buffer, int try, int block_size, in do_read() argument
362 set_o_direct(dev, buffer, try * block_size, in do_read()
363 ((ext2_loff_t) current_block) * block_size); in do_read()
369 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_read()
370 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_read()
376 got = read (dev, buffer, try * block_size); in do_read()
383 got /= block_size; in do_read()
427 static int do_write(int dev, unsigned char * buffer, int try, int block_size, in do_write() argument
435 set_o_direct(dev, buffer, try * block_size, in do_write()
436 ((ext2_loff_t) current_block) * block_size); in do_write()
[all …]
/external/e2fsprogs/ext2ed/
Dfile_com.c34 file_info.global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_file_info()
36 file_info.blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_file_info()
44 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in init_file_info()
85 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___nextblock()
86 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___nextblock()
88 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_file___nextblock()
106 if (file_info.offset_in_block+offset < file_system_info.block_size) { in type_file___next()
133 if (offset < file_system_info.block_size) { in type_file___offset()
186 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___prevblock()
187 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___prevblock()
[all …]
Dinode_com.c39 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___prev()
46 …entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inod… in type_ext2_inode___prev()
87 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___next()
94 …entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inod… in type_ext2_inode___next()
129 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___show()
136 …entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inod… in type_ext2_inode___show()
295 block_num=device_offset/file_system_info.block_size; in type_ext2_inode___entry()
302 …entry_num=(device_offset-desc.bg_inode_table*file_system_info.block_size)/sizeof (struct ext2_inod… in type_ext2_inode___entry()
377 block_num=inode_offset/file_system_info.block_size; in inode_offset_to_group_num()
405 block_num=inode_offset/file_system_info.block_size; in inode_offset_to_inode_num()
[all …]
/external/libvpx/libvpx/test/
Dvp9_error_block_test.cc35 intptr_t block_size,
65 intptr_t block_size; in TEST_P() local
72 block_size = 16 << (i % 9); // All block sizes from 4x4, 8x4 ..64x64 in TEST_P()
73 for (int j = 0; j < block_size; j++) { in TEST_P()
77 ref_ret = ref_error_block_op_(coeff, dqcoeff, block_size, &ref_ssz, in TEST_P()
79 ASM_REGISTER_STATE_CHECK(ret = error_block_op_(coeff, dqcoeff, block_size, in TEST_P()
98 intptr_t block_size; in TEST_P() local
112 block_size = 16 << (i % 9); // All block sizes from 4x4, 8x4 ..64x64 in TEST_P()
113 for (int j = 0; j < block_size; j++) { in TEST_P()
122 ref_ret = ref_error_block_op_(coeff, dqcoeff, block_size, &ref_ssz, in TEST_P()
[all …]
Dpartial_idct_test.cc84 const int block_size = size * size; in TEST_P() local
92 memset(dst1, 0, sizeof(*dst1) * block_size); in TEST_P()
93 memset(dst2, 0, sizeof(*dst2) * block_size); in TEST_P()
94 memset(test_coef_block1, 0, sizeof(*test_coef_block1) * block_size); in TEST_P()
95 memset(test_coef_block2, 0, sizeof(*test_coef_block2) * block_size); in TEST_P()
102 for (int j = 0; j < block_size; ++j) in TEST_P()
105 for (int j = 0; j < block_size; ++j) in TEST_P()
108 for (int j = 0; j < block_size; ++j) { in TEST_P()
125 for (int j = 0; j < block_size; ++j) { in TEST_P()
163 const int block_size = size * size; in TEST_P() local
[all …]
/external/ceres-solver/internal/ceres/
Dschur_jacobi_preconditioner.cc115 const int block_size = block_size_[i]; in RightMultiply() local
116 ConstMatrixRef block(lhs_values, block_size, block_size); in RightMultiply()
118 VectorRef(y, block_size) = in RightMultiply()
122 .solve(ConstVectorRef(x, block_size)); in RightMultiply()
124 x += block_size; in RightMultiply()
125 y += block_size; in RightMultiply()
126 lhs_values += block_size * block_size; in RightMultiply()
/external/vboot_reference/host/lib/
Dhost_common.c28 uint64_t block_size = signed_size + siglen_map[signing_key->algorithm]; in CreateFirmwarePreamble() local
35 h = (VbFirmwarePreambleHeader *)malloc(block_size); in CreateFirmwarePreamble()
39 Memset(h, 0, block_size); in CreateFirmwarePreamble()
46 h->preamble_size = block_size; in CreateFirmwarePreamble()
88 uint64_t block_size = signed_size + siglen_map[signing_key->algorithm]; in CreateKernelPreamble() local
94 if (block_size < desired_size) in CreateKernelPreamble()
95 block_size = desired_size; in CreateKernelPreamble()
98 h = (VbKernelPreambleHeader *)malloc(block_size); in CreateKernelPreamble()
102 Memset(h, 0, block_size); in CreateKernelPreamble()
108 h->preamble_size = block_size; in CreateKernelPreamble()
/external/mesa3d/src/gallium/state_trackers/clover/api/
Dkernel.cpp168 kern->block_size()); in clGetKernelWorkGroupInfo()
193 const size_t *grid_size, const size_t *block_size, in kernel_validate() argument
226 if (block_size) { in kernel_validate()
229 }, block_size, block_size + dims, in kernel_validate()
235 }, block_size, block_size + dims, grid_size)) in kernel_validate()
239 block_size, block_size + dims) > in kernel_validate()
252 const std::vector<size_t> &block_size) { in kernel_op() argument
255 block_size.begin()); in kernel_op()
258 kern->launch(*q, grid_offset, reduced_grid_size, block_size); in kernel_op()
280 const std::vector<size_t> block_size = opt_vector(pblock_size, dims); in clEnqueueNDRangeKernel() local
[all …]
/external/e2fsprogs/lib/ext2fs/
Dundo_io.c144 int block_size ; in write_file_system_identity() local
148 block_size = channel->block_size; in write_file_system_identity()
178 io_channel_set_blksize(channel, block_size); in write_file_system_identity()
182 static errcode_t write_block_size(TDB_CONTEXT *tdb, int block_size) in write_block_size() argument
189 tdb_data.dptr = (unsigned char *)&(block_size); in write_block_size()
190 tdb_data.dsize = sizeof(block_size); in write_block_size()
223 size = channel->block_size; in undo_write_tdb()
228 size = count * channel->block_size; in undo_write_tdb()
236 offset = (block * channel->block_size) + data->offset ; in undo_write_tdb()
261 backing_blk_num = (offset - data->offset) / channel->block_size; in undo_write_tdb()
[all …]
Dunix_io.c171 size = (count < 0) ? -count : count * channel->block_size; in raw_read_blk()
173 location = ((ext2_loff_t) block * channel->block_size) + data->offset; in raw_read_blk()
202 actual = read(data->dev, data->bounce, channel->block_size); in raw_read_blk()
203 if (actual != channel->block_size) in raw_read_blk()
206 if (size > channel->block_size) in raw_read_blk()
207 actual = channel->block_size; in raw_read_blk()
234 size = channel->block_size; in raw_write_blk()
239 size = count * channel->block_size; in raw_write_blk()
243 location = ((ext2_loff_t) block * channel->block_size) + data->offset; in raw_write_blk()
270 if (size < channel->block_size) { in raw_write_blk()
[all …]
/external/libnfc-nci/src/nfc/tags/
Drw_i93.c189 p_i93->block_size = I93_TAG_IT_HF_I_STD_PRO_CHIP_INLAY_BLK_SIZE; in rw_i93_get_product_version()
240 STREAM_TO_UINT8 (p_i93->block_size, p); in rw_i93_process_sys_info()
242 p_i93->block_size = (p_i93->block_size & 0x1F) + 1; in rw_i93_process_sys_info()
260 p_i93->block_size = 4; in rw_i93_process_sys_info()
300 p_i93->block_size = 4; in rw_i93_process_sys_info()
457 rw_data.i93_sys_info.block_size = p_i93->block_size; in rw_i93_send_to_upper()
740 p_cmd->len = 11 + rw_cb.tcb.i93.block_size; in rw_i93_send_cmd_write_single_block()
780 ARRAY_TO_STREAM (p, p_data, rw_cb.tcb.i93.block_size); in rw_i93_send_cmd_write_single_block()
948 p_cmd->len = 12 + number_blocks * rw_cb.tcb.i93.block_size; in rw_i93_send_cmd_write_multi_blocks()
963 ARRAY_TO_STREAM (p, p_data, number_blocks * rw_cb.tcb.i93.block_size); in rw_i93_send_cmd_write_multi_blocks()
[all …]
/external/libvpx/libvpx/vp9/encoder/arm/neon/
Dvp9_error_neon.c17 int block_size) { in vp9_block_error_fp_neon() argument
20 assert(block_size >= 8); in vp9_block_error_fp_neon()
21 assert((block_size % 8) == 0); in vp9_block_error_fp_neon()
37 block_size -= 8; in vp9_block_error_fp_neon()
38 } while (block_size != 0); in vp9_block_error_fp_neon()
/external/regex-re2/util/
Darena.cc16 UnsafeArena::UnsafeArena(const size_t block_size) in UnsafeArena() argument
17 : block_size_(block_size), in UnsafeArena()
23 assert(block_size > kDefaultAlignment); in UnsafeArena()
71 UnsafeArena::AllocatedBlock* UnsafeArena::AllocNewBlock(const size_t block_size) { in AllocNewBlock() argument
85 block->mem = reinterpret_cast<char*>(malloc(block_size)); in AllocNewBlock()
86 block->size = block_size; in AllocNewBlock()
/external/libcxx/test/std/numerics/rand/rand.adapt/rand.adapt.disc/
Dvalues.pass.cpp36 static_assert((E::block_size == 223), ""); in test1()
40 where(E::block_size); in test1()
48 static_assert((E::block_size == 389), ""); in test2()
52 where(E::block_size); in test2()

12345678910