Home
last modified time | relevance | path

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

12345678910>>...14

/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/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/ltp/testcases/kernel/syscalls/fallocate/
Dfallocate04.c42 static size_t block_size; variable
70 block_size = file_stat.st_blksize; in get_blocksize()
71 buf_size = NUM_OF_BLOCKS * block_size; in get_blocksize()
91 memset(buf + i * block_size, 'a' + i, block_size); in fill_tst_buf()
153 block_size, block_size) == -1) { in test02()
164 if (ret != (ssize_t)block_size) { in test02()
185 if ((alloc_size0 - block_size) != alloc_size1) in test02()
191 memset(exp_buf + block_size, 0, block_size); in test02()
211 if (fallocate(fd, FALLOC_FL_ZERO_RANGE, block_size - 1, in test03()
212 block_size + 2) == -1) { in test03()
[all …]
Dfallocate03.c134 int block_size; variable
188 block_size = (int)file_stat.st_blksize; in get_blocksize()
189 buf_size = block_size; in get_blocksize()
197 offset *= block_size; in file_seek()
244 test_data[test_index].offset * block_size, in main()
245 test_data[test_index].len * block_size)); in main()
259 block_size, in main()
261 block_size); in main()
269 block_size, in main()
271 block_size, TEST_RETURN); in main()
Dfallocate01.c116 loff_t block_size; variable
174 block_size = file_stat.st_blksize; in get_blocksize()
175 buf_size = block_size; in get_blocksize()
210 expected_size = BLOCKS_WRITTEN * block_size + block_size; in main()
213 expected_size = BLOCKS_WRITTEN * block_size; in main()
227 loff_t len = block_size; in runtest()
/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_compress_HC(src, dest, size, block_size, in lz4_compress()
232 res = LZ4_compress_default(src, dest, size, block_size); in lz4_compress()
/external/e2fsprogs/lib/ext2fs/
Dsparse_io.c43 int block_size; member
54 unsigned int block_size; member
76 if (!nr_blocks || len % sm->block_size) in sparse_import_segment()
103 sm->block_size = sparse_file_block_size(sparse_file); in io_manager_import_sparse()
105 / sm->block_size + 1; in io_manager_import_sparse()
111 io->block_size = sm->block_size; in io_manager_import_sparse()
140 if (!params->block_size || !params->blocks_count) { in io_manager_configure()
144 sm->block_size = params->block_size; in io_manager_configure()
152 io->block_size = sm->block_size; in io_manager_configure()
153 img_size = (uint64_t)sm->block_size * sm->blocks_count; in io_manager_configure()
[all …]
Dunix_io.c139 size = (count < 0) ? -count : count * channel->block_size; in raw_read_blk()
141 location = ((ext2_loff_t) block * channel->block_size) + data->offset; in raw_read_blk()
192 actual = read(data->dev, data->bounce, channel->block_size); in raw_read_blk()
193 if (actual != channel->block_size) in raw_read_blk()
196 if (size > channel->block_size) in raw_read_blk()
197 actual = channel->block_size; in raw_read_blk()
224 size = channel->block_size; in raw_write_blk()
229 size = count * channel->block_size; in raw_write_blk()
233 location = ((ext2_loff_t) block * channel->block_size) + data->offset; in raw_write_blk()
282 if (size < channel->block_size) { in raw_write_blk()
[all …]
/external/e2fsprogs/ext2ed/
Dfile_com.c35 file_info.global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_file_info()
37 file_info.blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_file_info()
45 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in init_file_info()
86 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___nextblock()
87 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___nextblock()
89 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_file___nextblock()
107 if (file_info.offset_in_block+offset < file_system_info.block_size) { in type_file___next()
134 if (offset < file_system_info.block_size) { in type_file___offset()
187 file_info.global_block_offset=file_info.global_block_num*file_system_info.block_size; in type_file___prevblock()
188 file_info.file_offset=file_info.block_num*file_system_info.block_size; in type_file___prevblock()
[all …]
/external/webrtc/talk/session/media/
Dplanarfunctions_unittest.cc136 int block_size, in CreateFakeYuvTestingImage() argument
141 if (height <= 0 || width <= 0 || block_size <= 0) { return NULL; } in CreateFakeYuvTestingImage()
174 int color = ((i / block_size) + (j / block_size)) % kTestingColorNum; in CreateFakeYuvTestingImage()
195 int block_size, in CreateFakeInterleaveYuvTestingImage() argument
198 if (height <= 0 || width <= 0 || block_size <= 0) { return NULL; } in CreateFakeInterleaveYuvTestingImage()
214 int color1 = ((i / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage()
216 int color2 = (((i + 1) / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage()
241 int color1 = ((i / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage()
243 int color2 = (((i + 1) / block_size) + (j / block_size)) % in CreateFakeInterleaveYuvTestingImage()
280 int block_size, in CreateFakeNV12TestingImage() argument
[all …]
/external/libvpx/libvpx/test/
Dvp9_block_error_test.cc35 intptr_t block_size, int64_t *ssz,
43 intptr_t block_size, int64_t *ssz);
47 const tran_low_t *dqcoeff, intptr_t block_size, in BlockError8BitWrapper() argument
50 return fn(coeff, dqcoeff, block_size, ssz); in BlockError8BitWrapper()
76 intptr_t block_size; in TEST_P() local
84 block_size = 16 << (i % 9); // All block sizes from 4x4, 8x4 ..64x64 in TEST_P()
85 for (int j = 0; j < block_size; j++) { in TEST_P()
99 ref_error_block_op_(coeff, dqcoeff, block_size, &ref_ssz, bit_depth_); in TEST_P()
101 ret = error_block_op_(coeff, dqcoeff, block_size, &ssz, bit_depth_)); in TEST_P()
119 intptr_t block_size; in TEST_P() local
[all …]
/external/e2fsprogs/misc/
Dbadblocks.c358 static int do_read (int dev, unsigned char * buffer, int try, int block_size, in do_read() argument
369 set_o_direct(dev, buffer, try * block_size, in do_read()
370 ((ext2_loff_t) current_block) * block_size); in do_read()
376 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_read()
377 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_read()
383 got = read (dev, buffer, try * block_size); in do_read()
390 got /= block_size; in do_read()
434 static int do_write(int dev, unsigned char * buffer, int try, int block_size, in do_write() argument
442 set_o_direct(dev, buffer, try * block_size, in do_write()
443 ((ext2_loff_t) current_block) * block_size); in do_write()
[all …]
/external/autotest/client/site_tests/platform_DMVerityBitCorruption/
Dplatform_DMVerityBitCorruption.py17 def mod_tweak_block(self, run_count, backing_path, block_size, argument
20 run_count, backing_path, block_size, block_count))
23 dev.seek(run_count * block_size + self._adjustment)
25 dev.seek(run_count * block_size + self._adjustment)
29 def mod_tweak_hash_block(self, run_count, backing_path, block_size, argument
32 run_count, backing_path, block_size, block_count))
35 dev.seek(block_count * block_size, os.SEEK_SET)
36 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR)
39 dev.seek(block_count * block_size, os.SEEK_SET)
40 dev.seek(run_count * block_size + self._adjustment, os.SEEK_CUR)
/external/autotest/client/site_tests/platform_DMVerityCorruption/
Dplatform_DMVerityCorruption.py13 def mod_zerofill_block(self, run_count, backing_path, block_size, argument
16 run_count, backing_path, block_size, block_count))
19 verity_utils.system(dd_cmd % (backing_path, block_size, run_count))
21 def mod_Afill_hash_block(self, run_count, backing_path, block_size, argument
24 run_count, backing_path, block_size, block_count))
26 dev.seek(block_count * block_size, os.SEEK_SET)
27 dev.seek(run_count * block_size, os.SEEK_CUR)
28 dev.write('A' * block_size)
/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/boringssl/src/crypto/fipsmodule/cipher/
De_des.c94 out->block_size = 8; in DEFINE_METHOD_FUNCTION()
105 if (in_len < ctx->cipher->block_size) { in des_ecb_cipher()
108 in_len -= ctx->cipher->block_size; in des_ecb_cipher()
111 for (size_t i = 0; i <= in_len; i += ctx->cipher->block_size) { in des_ecb_cipher()
121 out->block_size = 8; in DEFINE_METHOD_FUNCTION()
162 out->block_size = 8; in DEFINE_METHOD_FUNCTION()
186 out->block_size = 8; in DEFINE_METHOD_FUNCTION()
197 if (in_len < ctx->cipher->block_size) { in des_ede_ecb_cipher()
200 in_len -= ctx->cipher->block_size; in des_ede_ecb_cipher()
203 for (size_t i = 0; i <= in_len; i += ctx->cipher->block_size) { in des_ede_ecb_cipher()
[all …]
/external/protobuf/src/google/protobuf/io/
Dzero_copy_stream_impl_lite.cc59 int block_size) in ArrayInputStream() argument
62 block_size_(block_size > 0 ? block_size : size), in ArrayInputStream()
112 ArrayOutputStream::ArrayOutputStream(void* data, int size, int block_size) in ArrayOutputStream() argument
115 block_size_(block_size > 0 ? block_size : size), in ArrayOutputStream()
250 CopyingInputStream* copying_stream, int block_size) in CopyingInputStreamAdaptor() argument
255 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingInputStreamAdaptor()
356 CopyingOutputStream* copying_stream, int block_size) in CopyingOutputStreamAdaptor() argument
361 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingOutputStreamAdaptor()
Dprinter_unittest.cc57 const int block_size = 100; in TEST() local
58 ArrayOutputStream output(buffer, GOOGLE_ARRAYSIZE(buffer), block_size); in TEST()
66 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
67 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
91 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
92 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
119 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
120 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
366 for (int block_size = 1; block_size < 512; block_size *= 2) { in TEST() local
367 ArrayOutputStream output(buffer, sizeof(buffer), block_size); in TEST()
/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/boringssl/src/crypto/pkcs8/
Dpkcs8.c123 size_t block_size = EVP_MD_block_size(md); in pkcs12_key_gen() local
128 OPENSSL_memset(D, id, block_size); in pkcs12_key_gen()
140 if (salt_len + block_size - 1 < salt_len || in pkcs12_key_gen()
141 pass_raw_len + block_size - 1 < pass_raw_len) { in pkcs12_key_gen()
145 size_t S_len = block_size * ((salt_len + block_size - 1) / block_size); in pkcs12_key_gen()
146 size_t P_len = block_size * ((pass_raw_len + block_size - 1) / block_size); in pkcs12_key_gen()
172 !EVP_DigestUpdate(&ctx, D, block_size) || in pkcs12_key_gen()
196 for (size_t i = 0; i < block_size; i++) { in pkcs12_key_gen()
203 assert(I_len % block_size == 0); in pkcs12_key_gen()
204 for (size_t i = 0; i < I_len; i += block_size) { in pkcs12_key_gen()
[all …]
/external/autotest/client/cros/
Dliststorage.py68 label=None, block_size=0, is_removable=False): argument
106 size = block_size * int(partition_blocks)
173 block_size = int(open("%s/queue/physical_block_size" % spath).read())
195 block_size=block_size,
201 dev_label, block_size=block_size,
/external/ltp/testcases/kernel/syscalls/lseek/
Dlseek11.c66 static blksize_t block_size; variable
143 block_size = offset; in get_blocksize()
152 if (block_size > st.st_blksize) { in get_blocksize()
177 tst_res(TINFO, "The block size is %lu", block_size); in setup()
183 SAFE_FTRUNCATE(fd, FILE_BLOCKS * block_size); in setup()
188 offset = UNIT_BLOCKS * block_size * i; in setup()
208 offset = (tp->startblock * block_size) + tp->offset; in test_lseek()
/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()

12345678910>>...14