Home
last modified time | relevance | path

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

1234

/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.cc53 int block_size) in ArrayInputStream() argument
56 block_size_(block_size > 0 ? block_size : size), in ArrayInputStream()
106 ArrayOutputStream::ArrayOutputStream(void* data, int size, int block_size) in ArrayOutputStream() argument
109 block_size_(block_size > 0 ? block_size : size), in ArrayOutputStream()
205 CopyingInputStream* copying_stream, int block_size) in CopyingInputStreamAdaptor() argument
210 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingInputStreamAdaptor()
311 CopyingOutputStream* copying_stream, int block_size) in CopyingOutputStreamAdaptor() argument
316 buffer_size_(block_size > 0 ? block_size : kDefaultBlockSize), in CopyingOutputStreamAdaptor()
Dzero_copy_stream_impl.cc77 FileInputStream::FileInputStream(int file_descriptor, int block_size) in FileInputStream() argument
79 impl_(&copying_input_, block_size) { in FileInputStream()
173 FileOutputStream::FileOutputStream(int file_descriptor, int block_size) in FileOutputStream() argument
175 impl_(&copying_output_, block_size) { in FileOutputStream()
271 IstreamInputStream::IstreamInputStream(istream* input, int block_size) in IstreamInputStream() argument
273 impl_(&copying_input_, block_size) { in IstreamInputStream()
313 OstreamOutputStream::OstreamOutputStream(ostream* output, int block_size) in OstreamOutputStream() argument
315 impl_(&copying_output_, block_size) { in OstreamOutputStream()
/external/e2fsprogs/misc/
Dbadblocks.c265 static long do_read (int dev, unsigned char * buffer, int try, int block_size, in do_read() argument
270 set_o_direct(dev, buffer, try * block_size, current_block); in do_read()
276 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_read()
277 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_read()
281 got = read (dev, buffer, try * block_size); in do_read()
286 got /= block_size; in do_read()
294 static long do_write (int dev, unsigned char * buffer, int try, int block_size, in do_write() argument
299 set_o_direct(dev, buffer, try * block_size, current_block); in do_write()
305 if (ext2fs_llseek (dev, (ext2_loff_t) current_block * block_size, in do_write()
306 SEEK_SET) != (ext2_loff_t) current_block * block_size) in do_write()
[all …]
/external/bluetooth/glib/tests/
Dslice-color.c58 touch_mem (guint64 block_size, in touch_mem() argument
68 mema[j] = g_slice_alloc (block_size); in touch_mem()
71 memb[j] = g_slice_alloc (block_size); in touch_mem()
74 memc[j] = g_slice_alloc (block_size); in touch_mem()
90 g_slice_free1 (block_size, mema[j]); in touch_mem()
91 g_slice_free1 (block_size, memb[j]); in touch_mem()
92 g_slice_free1 (block_size, memc[j]); in touch_mem()
110 guint64 block_size = 512, area_size = 1024 * 1024, n_blocks, repeats = 1000000; in main() local
113 block_size = parse_memsize (argv[1]); in main()
117 block_size = 512; in main()
[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 …]
Ddir_com.c61 info_ptr->global_block_offset=ptr->i_block [0]*file_system_info.block_size; in init_dir_info()
66 info_ptr->blocks_count=(ptr->i_size+file_system_info.block_size-1)/file_system_info.block_size; in init_dir_info()
105 low_read (info.buffer,file_system_info.block_size,info.global_block_offset); in search_dir_entries()
122 next = file_system_info.block_size - info.dir_entry_offset; in search_dir_entries()
128 if (info.dir_entry_offset >= file_system_info.block_size) { /* We crossed a block boundary */ in search_dir_entries()
132 info.global_block_offset=info.global_block_num*file_system_info.block_size; in search_dir_entries()
133 info.file_offset=info.block_num*file_system_info.block_size; in search_dir_entries()
137 low_read (info.buffer,file_system_info.block_size,info.global_block_offset); in search_dir_entries()
402 low_read (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_dir___followinode()
675 low_write (file_info.buffer,file_system_info.block_size,file_info.global_block_offset); in type_dir___writedata()
/external/libvpx/vpx_mem/memory_manager/
Dhmm_base.c133 BAUS_FORWARD(head_ptr, head_ptr->block_size), rem_baus) in U()
135 head_ptr->block_size = n_baus; in U()
138 rem_head_ptr->block_size = rem_baus; in U()
202 (head_record *) BAUS_FORWARD(free_head_ptr, free_head_ptr->block_size); in U()
231 bkwd_head_ptr->block_size += free_head_ptr->block_size; in U()
237 if (fwd_head_ptr->block_size == 0) in U()
272 free_head_ptr->block_size += fwd_head_ptr->block_size; in U()
280 if (fwd_head_ptr->block_size == 0) in U()
331 HEAD_PTR->block_size = n_baus; in U()
338 HEAD_PTR->block_size = 0; in U()
[all …]
Dhmm_shrink.c25 if (dummy_end_block->block_size != 0) in U()
71 last_block->block_size = bs; in U()
78 dummy_end_block->block_size = 0; in U()
94 last_block->block_size = 0; in U()
Dhmm_resize.c46 i = head_ptr->block_size; in U()
49 (head_record *) BAUS_FORWARD(head_ptr, head_ptr->block_size); in U()
99 rem_head_ptr->block_size = (U(size_bau)) i; in U()
115 head_ptr->block_size = (U(size_bau)) n; in U()
/external/qemu/block/
Dvpc.c93 uint32_t block_size; member
122 uint32_t block_size; member
195 s->block_size = be32_to_cpu(dyndisk_header->block_size); in vpc_open()
196 s->bitmap_size = ((s->block_size / (8 * 512)) + 511) & ~511; in vpc_open()
213 s->bitmap_size + s->block_size; in vpc_open()
250 pagetable_index = offset / s->block_size; in get_sector_offset()
251 pageentry_index = (offset % s->block_size) / 512; in get_sector_offset()
346 index = (sector_num * 512) / s->block_size; in alloc_block()
357 s->free_data_block_offset += s->block_size + s->bitmap_size; in alloc_block()
372 s->free_data_block_offset -= (s->block_size + s->bitmap_size); in alloc_block()
[all …]
Dcloop.c31 uint32_t block_size; member
70 if(read(s->fd,&s->block_size,4)<4) in cloop_open()
72 s->block_size=be32_to_cpu(s->block_size); in cloop_open()
93 s->uncompressed_block = qemu_malloc(s->block_size); in cloop_open()
98 s->sectors_per_block = s->block_size/512; in cloop_open()
117 s->zstream.avail_out = s->block_size; in cloop_read_block()
122 if(ret != Z_STREAM_END || s->zstream.total_out != s->block_size) in cloop_read_block()
/external/e2fsprogs/lib/ext2fs/
Dunix_io.c132 size = (count < 0) ? -count : count * channel->block_size; in raw_read_blk()
133 location = ((ext2_loff_t) block * channel->block_size) + data->offset; in raw_read_blk()
170 size = (count < 0) ? -count : count * channel->block_size; in raw_read_blk()
171 location = ((ext2_loff_t) block * channel->block_size) + data->offset; in raw_read_blk()
174 count, size, block, channel->block_size, (long long)location); in raw_read_blk()
220 size = channel->block_size; in raw_write_blk()
225 size = count * channel->block_size; in raw_write_blk()
228 location = ((ext2_loff_t) block * channel->block_size) + data->offset; in raw_write_blk()
267 if ((retval = ext2fs_get_mem(channel->block_size, in alloc_cache()
403 io->block_size = 1024; in unix_open()
[all …]
Dopenfs.c63 unsigned int block_size, io_manager manager, in ext2fs_open() argument
66 return ext2fs_open2(name, 0, flags, superblock, block_size, in ext2fs_open()
83 unsigned int block_size, io_manager manager, in ext2fs_open2() argument
146 block_size = fs->image_header->fs_blocksize; in ext2fs_open2()
159 if (!block_size) { in ext2fs_open2()
163 io_channel_set_blksize(fs->io, block_size); in ext2fs_open2()
246 if (block_size) { in ext2fs_open2()
247 if (block_size != fs->blocksize) { in ext2fs_open2()
/external/openssl/crypto/evp/
Devp_locl.h65 bl = ctx->cipher->block_size;\
133 #define BLOCK_CIPHER_def1(cname, nmode, mode, MODE, kstruct, nid, block_size, \ argument
137 nid##_##nmode, block_size, key_len, iv_len, \
149 #define BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, \ argument
152 BLOCK_CIPHER_def1(cname, cbc, cbc, CBC, kstruct, nid, block_size, key_len, \
169 #define BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, \ argument
172 BLOCK_CIPHER_def1(cname, ecb, ecb, ECB, kstruct, nid, block_size, key_len, \
176 nid, block_size, key_len, iv_len, cbits, flags, \ argument
178 BLOCK_CIPHER_def_cbc(cname, kstruct, nid, block_size, key_len, iv_len, flags, \
184 BLOCK_CIPHER_def_ecb(cname, kstruct, nid, block_size, key_len, flags, \
[all …]
/external/bluetooth/glib/glib/
Dgslice.h37 gpointer g_slice_alloc (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
38 gpointer g_slice_alloc0 (gsize block_size) G_GNUC_MALLOC G_GNUC_ALLOC_SIZE(1);
39 gpointer g_slice_copy (gsize block_size,
41 void g_slice_free1 (gsize block_size,
43 void g_slice_free_chain_with_offset (gsize block_size,
/external/wpa_supplicant/
Dcrypto_internal.c240 size_t block_size; member
289 ctx->u.aes.block_size = key_len; in crypto_cipher_init()
290 os_memcpy(ctx->u.aes.cbc, iv, ctx->u.aes.block_size); in crypto_cipher_init()
323 if (len % ctx->u.aes.block_size) in crypto_cipher_encrypt()
325 blocks = len / ctx->u.aes.block_size; in crypto_cipher_encrypt()
327 for (j = 0; j < ctx->u.aes.block_size; j++) in crypto_cipher_encrypt()
332 ctx->u.aes.block_size); in crypto_cipher_encrypt()
333 plain += ctx->u.aes.block_size; in crypto_cipher_encrypt()
334 crypt += ctx->u.aes.block_size; in crypto_cipher_encrypt()
374 if (len % ctx->u.aes.block_size) in crypto_cipher_decrypt()
[all …]
Dsha256.c299 #define block_size 64 in sha256_process() macro
305 if (md->curlen == 0 && inlen >= block_size) { in sha256_process()
308 md->length += block_size * 8; in sha256_process()
309 in += block_size; in sha256_process()
310 inlen -= block_size; in sha256_process()
312 n = MIN(inlen, (block_size - md->curlen)); in sha256_process()
317 if (md->curlen == block_size) { in sha256_process()
320 md->length += 8 * block_size; in sha256_process()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_common/
Deap_fast_common.c107 int block_size; in eap_fast_derive_key() local
109 block_size = tls_connection_get_keyblock_size(ssl_ctx, conn); in eap_fast_derive_key()
110 if (block_size < 0) in eap_fast_derive_key()
113 out = os_malloc(block_size + len); in eap_fast_derive_key()
117 if (tls_connection_prf(ssl_ctx, conn, label, 1, out, block_size + len) in eap_fast_derive_key()
119 os_memmove(out, out + block_size, len); in eap_fast_derive_key()
138 keys.server_random_len, out, block_size + len)) in eap_fast_derive_key()
141 os_memmove(out, out + block_size, len); in eap_fast_derive_key()
/external/dbus/dbus/
Ddbus-mempool.c99 int block_size; /**< size of most recently allocated block */ member
169 pool->block_size = pool->element_size * 8; in _dbus_mem_pool_new()
171 _dbus_assert ((pool->block_size % in _dbus_mem_pool_new()
268 pool->blocks->used_so_far == pool->block_size) in _dbus_mem_pool_alloc()
277 if (pool->block_size <= _DBUS_INT_MAX / 4) /* avoid overflow */ in _dbus_mem_pool_alloc()
280 pool->block_size *= 2; in _dbus_mem_pool_alloc()
281 _dbus_assert ((pool->block_size % in _dbus_mem_pool_alloc()
285 alloc_size = sizeof (DBusMemBlock) - ELEMENT_PADDING + pool->block_size; in _dbus_mem_pool_alloc()
/external/wpa_supplicant_6/wpa_supplicant/src/crypto/
Dcrypto_internal.c241 size_t block_size; member
290 ctx->u.aes.block_size = key_len; in crypto_cipher_init()
291 os_memcpy(ctx->u.aes.cbc, iv, ctx->u.aes.block_size); in crypto_cipher_init()
324 if (len % ctx->u.aes.block_size) in crypto_cipher_encrypt()
326 blocks = len / ctx->u.aes.block_size; in crypto_cipher_encrypt()
328 for (j = 0; j < ctx->u.aes.block_size; j++) in crypto_cipher_encrypt()
333 ctx->u.aes.block_size); in crypto_cipher_encrypt()
334 plain += ctx->u.aes.block_size; in crypto_cipher_encrypt()
335 crypt += ctx->u.aes.block_size; in crypto_cipher_encrypt()
375 if (len % ctx->u.aes.block_size) in crypto_cipher_decrypt()
[all …]
Dsha256.c302 #define block_size 64 in sha256_process() macro
308 if (md->curlen == 0 && inlen >= block_size) { in sha256_process()
311 md->length += block_size * 8; in sha256_process()
312 in += block_size; in sha256_process()
313 inlen -= block_size; in sha256_process()
315 n = MIN(inlen, (block_size - md->curlen)); in sha256_process()
320 if (md->curlen == block_size) { in sha256_process()
323 md->length += 8 * block_size; in sha256_process()
/external/libvpx/vpx_mem/memory_manager/include/
Dhmm_intrnl.h50 HMM_UNIQUE(size_bau) previous_block_size, block_size;
79 (((head_record *) (HEAD_PTR))->block_size & ~HIGH_BIT_BAU_SIZE)
104 (((((head_record *) (HEAD_PTR))->block_size | \
110 h_ptr->block_size &= ~HIGH_BIT_BAU_SIZE; \
117 h_ptr->block_size |= HIGH_BIT_BAU_SIZE; }
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_hash.h341 #define HASH_PROCESS(func_name, compress_name, state_var, block_size) \ argument
352 if (md-> state_var .curlen == 0 && inlen >= block_size) { \
356 md-> state_var .length += block_size * 8; \
357 in += block_size; \
358 inlen -= block_size; \
360 n = MIN(inlen, (block_size - md-> state_var .curlen)); \
365 if (md-> state_var .curlen == block_size) { \
369 md-> state_var .length += 8*block_size; \

1234