Searched refs:cluster_size (Results 1 – 12 of 12) sorted by relevance
/external/qemu/block/ |
D | qcow2-refcount.c | 40 size_t size = s->cluster_size; in write_refcount_block() 64 s->refcount_block_cache = qemu_malloc(s->cluster_size); in qcow2_refcount_init() 104 s->cluster_size); in load_refcount_block() 236 int64_t new_block = alloc_clusters_noref(bs, s->cluster_size); in alloc_refcount_block() 249 memset(s->refcount_block_cache, 0, s->cluster_size); in alloc_refcount_block() 259 ret = update_refcount(bs, new_block, s->cluster_size, 1); in alloc_refcount_block() 266 memset(s->refcount_block_cache, 0, s->cluster_size); in alloc_refcount_block() 273 s->cluster_size); in alloc_refcount_block() 336 s->cluster_size; in alloc_refcount_block() 337 uint64_t table_offset = meta_offset + blocks_clusters * s->cluster_size; in alloc_refcount_block() [all …]
|
D | qcow2.c | 89 if (offset > s->cluster_size) in qcow_read_extensions() 173 s->cluster_size = 1 << s->cluster_bits; in qcow_open() 208 s->cluster_cache = qemu_malloc(s->cluster_size); in qcow_open() 210 s->cluster_data = qemu_malloc(QCOW_MAX_CRYPT_CLUSTERS * s->cluster_size in qcow_open() 223 ext_end = s->cluster_size; in qcow_open() 610 s->cluster_size); in qcow_aio_write_cb() 709 if (header_size > s->cluster_size) { in qcow2_update_ext_header() 847 int flags, size_t cluster_size, int prealloc) in qcow_create2() argument 886 s->cluster_bits = get_bits_from_size(cluster_size); in qcow_create2() 896 s->cluster_size = 1 << s->cluster_bits; in qcow_create2() [all …]
|
D | qcow.c | 59 int cluster_size; member 120 s->cluster_size = 1 << s->cluster_bits; in qcow_open() 145 s->cluster_cache = qemu_malloc(s->cluster_size); in qcow_open() 148 s->cluster_data = qemu_malloc(s->cluster_size); in qcow_open() 272 l2_offset = (l2_offset + s->cluster_size - 1) & ~(s->cluster_size - 1); in get_cluster_offset() 332 cluster_offset = (cluster_offset + s->cluster_size - 1) & in get_cluster_offset() 333 ~(s->cluster_size - 1); in get_cluster_offset() 335 if (bdrv_pwrite(bs->file, cluster_offset, s->cluster_cache, s->cluster_size) != in get_cluster_offset() 336 s->cluster_size) in get_cluster_offset() 342 cluster_offset = (cluster_offset + s->cluster_size - 1) & in get_cluster_offset() [all …]
|
D | qcow2-cluster.c | 293 static int count_contiguous_clusters(uint64_t nb_clusters, int cluster_size, in count_contiguous_clusters() argument 303 if (offset + (uint64_t) i * cluster_size != (be64_to_cpu(l2_table[i]) & ~mask)) in count_contiguous_clusters() 504 c = count_contiguous_clusters(nb_clusters, s->cluster_size, in qcow2_get_cluster_offset() 680 start_sect = (m->offset & ~(s->cluster_size - 1)) >> 9; in qcow2_alloc_cluster_link_l2() 774 nb_clusters = count_contiguous_clusters(nb_clusters, s->cluster_size, in qcow2_alloc_cluster_offset() 792 i += count_contiguous_clusters(nb_clusters - i, s->cluster_size, in qcow2_alloc_cluster_offset() 820 uint64_t end_offset = offset + nb_clusters * s->cluster_size; in qcow2_alloc_cluster_offset() 823 old_alloc->nb_clusters * s->cluster_size; in qcow2_alloc_cluster_offset() 853 cluster_offset = qcow2_alloc_clusters(bs, nb_clusters * s->cluster_size); in qcow2_alloc_cluster_offset() 916 if (decompress_buffer(s->cluster_cache, s->cluster_size, in qcow2_decompress_cluster()
|
D | qcow2.h | 84 int cluster_size; member 123 int cluster_size; member 150 return (size + (s->cluster_size - 1)) >> s->cluster_bits; in size_to_clusters()
|
D | vvfat.c | 328 unsigned int cluster_size; member 808 * 0x20 / s->cluster_size; in read_directory() 851 s->cluster_size=s->sectors_per_cluster*0x200; in init_directories() 852 s->cluster_buffer=qemu_malloc(s->cluster_size); in init_directories() 917 mapping->end = cluster + 1 + (mapping->end-1)/s->cluster_size; in init_directories() 1194 offset = s->cluster_size*(cluster_num-s->current_mapping->begin); in read_cluster() 1197 assert(((s->cluster-(unsigned char*)s->directory.pointer)%s->cluster_size)==0); in read_cluster() 1198 …assert((char*)s->cluster+s->cluster_size <= s->directory.pointer+s->directory.next*s->directory.it… in read_cluster() 1210 …offset=s->cluster_size*(cluster_num-s->current_mapping->begin)+s->current_mapping->info.file.offse… in read_cluster() 1214 result=read(s->current_fd,s->cluster,s->cluster_size); in read_cluster() [all …]
|
/external/qemu/hw/ |
D | scsi-disk.c | 69 int cluster_size; member 669 p[6] = s->cluster_size * 2; in scsi_send_command() 754 nb_sectors /= s->cluster_size; in scsi_send_command() 769 outbuf[6] = s->cluster_size * 2; in scsi_send_command() 784 r->sector = lba * s->cluster_size; in scsi_send_command() 785 r->sector_count = len * s->cluster_size; in scsi_send_command() 793 r->sector = lba * s->cluster_size; in scsi_send_command() 794 r->sector_count = len * s->cluster_size; in scsi_send_command() 810 nb_sectors /= s->cluster_size; in scsi_send_command() 863 nb_sectors /= s->cluster_size; in scsi_send_command() [all …]
|
/external/libvpx/mkvparser/ |
D | mkvparser.cpp | 1475 long long cluster_size = -1; //size of cluster payload in DoLoadCluster() local 1610 cluster_size = size; in DoLoadCluster() 1677 if (cluster_size >= 0) in DoLoadCluster() 1678 pos += cluster_size; in DoLoadCluster() 1702 if (cluster_size < 0) in DoLoadCluster() 1705 pos += cluster_size; in DoLoadCluster() 1736 if (cluster_size >= 0) in DoLoadCluster() 1738 pos += cluster_size; in DoLoadCluster() 1758 if (cluster_size < 0) //unknown size in DoLoadCluster() 1869 cluster_size = pos - payload_pos; in DoLoadCluster() [all …]
|
/external/opencv/ml/src/ |
D | mlem.cpp | 548 int cluster_size = right - left; in init_auto() local 551 if( cluster_size <= 0 ) in init_auto() 558 CV_CALL( cvCalcCovarMatrix( vec, cluster_size, covs[i], in init_auto() 560 weights->data.db[i] = (double)cluster_size/(double)nsamples; in init_auto()
|
/external/qemu/ |
D | block.h | 14 int cluster_size; member
|
D | qemu-io.c | 1381 cvtstr(bdi.cluster_size, s1, sizeof(s1)); in info_f()
|
/external/kernel-headers/original/linux/ |
D | msdos_fs.h | 234 unsigned int cluster_size; /* cluster size */ member
|