/openbmc/qemu/tests/qemu-iotests/ |
H A D | 031.out | 12 cluster_bits 16 40 cluster_bits 16 68 cluster_bits 16 103 cluster_bits 16 136 cluster_bits 16 169 cluster_bits 16
|
H A D | 163 | 51 1 << (h.cluster_bits*2 - entry_size)) 61 cluster = fd.read(1 << h.cluster_bits) 71 reftable = fd.read(h.refcount_table_clusters << h.cluster_bits)
|
H A D | 061.out | 12 cluster_bits 16 36 cluster_bits 16 70 cluster_bits 16 94 cluster_bits 16 126 cluster_bits 16 155 cluster_bits 16 181 cluster_bits 16 205 cluster_bits 16 231 cluster_bits 16 250 cluster_bits 16 [all …]
|
H A D | 303.out | 33 cluster_bits 16 116 "cluster_bits": 16,
|
/openbmc/linux/fs/ntfs3/ |
H A D | fsntfs.c | 1131 u8 cluster_bits = sbi->cluster_bits; in ntfs_sb_write_run() local 1133 CLST lcn, clen, vcn = vbo >> cluster_bits, vcn_next; in ntfs_sb_write_run() 1143 lbo = ((u64)lcn << cluster_bits) + off; in ntfs_sb_write_run() 1144 len = ((u64)clen << cluster_bits) - off; in ntfs_sb_write_run() 1168 lbo = ((u64)lcn << cluster_bits); in ntfs_sb_write_run() 1169 len = ((u64)clen << cluster_bits); in ntfs_sb_write_run() 1179 u8 cluster_bits = sbi->cluster_bits; in ntfs_bread_run() local 1183 if (!run_lookup_entry(run, vbo >> cluster_bits, &lcn, NULL, NULL)) in ntfs_bread_run() 1186 lbo = ((u64)lcn << cluster_bits) + (vbo & sbi->cluster_mask); in ntfs_bread_run() 1197 u8 cluster_bits = sbi->cluster_bits; in ntfs_read_run_nb() local [all …]
|
H A D | attrib.c | 189 u8 shift = sbi->cluster_bits - SECTOR_SHIFT; in attr_allocate_clusters() 257 u8 shift = sbi->cluster_bits + NTFS_LZNT_CUNIT; in attr_make_nonresident() 410 u8 cluster_bits = sbi->cluster_bits; in attr_set_size() local 460 old_alen = old_alloc >> cluster_bits; in attr_set_size() 463 new_alen = new_alloc >> cluster_bits; in attr_set_size() 601 new_alloc_tmp = (u64)next_svcn << cluster_bits; in attr_set_size() 613 ((u64)done << sbi->cluster_bits) >= 2 * sbi->record_size) { in attr_set_size() 687 old_valid = old_size = old_alloc = (u64)vcn << cluster_bits; in attr_set_size() 706 new_alloc_tmp = (u64)vcn << cluster_bits; in attr_set_size() 762 ((u64)dlen << cluster_bits)); in attr_set_size() [all …]
|
H A D | super.c | 878 u8 cluster_bits; in ntfs_init_from_boot() local 929 sbi->cluster_bits = cluster_bits = blksize_bits(sbi->cluster_size); in ntfs_init_from_boot() 946 record_size = (u32)boot->record_size << cluster_bits; in ntfs_init_from_boot() 973 sbi->index_size = (u32)boot->index_size << cluster_bits; in ntfs_init_from_boot() 1012 sbi->mft.lbo = mlcn << cluster_bits; in ntfs_init_from_boot() 1013 sbi->mft.lbo2 = mlcn2 << cluster_bits; in ntfs_init_from_boot() 1051 clusters = sbi->volume.size >> cluster_bits; in ntfs_init_from_boot() 1091 sbi->maxbytes = (clusters << cluster_bits) - 1; in ntfs_init_from_boot() 1094 if (clusters >= (1ull << (64 - cluster_bits))) in ntfs_init_from_boot() 1100 sbi->maxbytes_sparse = (1ull << (cluster_bits + 32)) - 1; in ntfs_init_from_boot() [all …]
|
H A D | file.c | 123 bits = sbi->cluster_bits; in ntfs_extend_initialized_size() 289 CLST vcn = from >> sbi->cluster_bits; in ntfs_file_mmap() 578 u8 cluster_bits = sbi->cluster_bits; in ntfs_fallocate() local 585 (to_alloc >> cluster_bits) > in ntfs_fallocate() 606 CLST vcn = vbo >> cluster_bits; in ntfs_fallocate() 856 u8 frame_bits = NTFS_LZNT_CUNIT + sbi->cluster_bits; in ntfs_compress_write() 901 frame_vbo + ((u64)clen << sbi->cluster_bits); in ntfs_compress_write()
|
H A D | frecord.c | 532 u8 cluster_bits = sbi->cluster_bits; in ni_repack() 551 cluster_bits; in ni_repack() 981 vbo = is_mft_data ? ((u64)svcn << sbi->cluster_bits) : 0; in ni_ins_attr_ext() 1500 svcn ? 0 : cpu_to_le64((u64)len << ni->mi.sbi->cluster_bits); in ni_insert_nonresident() 1914 u8 cluster_bits = sbi->cluster_bits; in ni_fiemap() local 1917 CLST vcn = vbo >> cluster_bits; in ni_fiemap() 1997 vbo = (u64)vcn << cluster_bits; in ni_fiemap() 2018 vbo = (u64)vcn << cluster_bits; in ni_fiemap() 2019 bytes = (u64)clen << cluster_bits; in ni_fiemap() 2020 lbo = (u64)lcn << cluster_bits; in ni_fiemap() [all …]
|
H A D | bitmap.c | 505 u8 cluster_bits = sbi->cluster_bits; in wnd_rescan() local 545 if (!run_lookup_entry(&wnd->run, vbo >> cluster_bits, in wnd_rescan() 551 lbo = ((u64)lcn << cluster_bits) + off; in wnd_rescan() 552 len = ((u64)clen << cluster_bits) - off; in wnd_rescan() 692 if (!run_lookup_entry(&wnd->run, vbo >> sbi->cluster_bits, &lcn, &clen, in wnd_map() 697 lbo = ((u64)lcn << sbi->cluster_bits) + (vbo & sbi->cluster_mask); in wnd_map() 1502 range->len = (u64)done << sbi->cluster_bits; in ntfs_trim_fs()
|
H A D | inode.c | 59 t64 = sbi->mft.lbo >> sbi->cluster_bits; in ntfs_read_mft() 565 u8 cluster_bits = sbi->cluster_bits; in ntfs_get_block_vbo() local 593 vcn = vbo >> cluster_bits; in ntfs_get_block_vbo() 605 bytes = ((u64)len << cluster_bits) - off; in ntfs_get_block_vbo() 620 lbo = ((u64)lcn << cluster_bits) + off; in ntfs_get_block_vbo()
|
H A D | index.c | 210 CLST vcn = off >> sbi->cluster_bits; in bmp_buf_get() 390 vcn = vbo >> sbi->cluster_bits; in scan_nres_bitmap() 912 if (t32 != root->index_block_clst << sbi->cluster_bits) in indx_init() 915 indx->vbn2vbo_bits = sbi->cluster_bits; in indx_init() 1440 CLST len = alloc_size >> sbi->cluster_bits; in indx_create_allocate()
|
/openbmc/qemu/block/ |
H A D | qcow.c | 63 uint8_t cluster_bits; member 73 int cluster_bits; member 166 if (header.cluster_bits < 9 || header.cluster_bits > 16) { in qcow_open() 233 s->cluster_bits = header.cluster_bits; in qcow_open() 234 s->cluster_size = 1 << s->cluster_bits; in qcow_open() 238 s->cluster_offset_mask = (1LL << (63 - s->cluster_bits)) - 1; in qcow_open() 241 shift = s->cluster_bits + s->l2_bits; in qcow_open() 371 l1_index = offset >> (s->l2_bits + s->cluster_bits); in get_cluster_offset() 436 l2_index = (offset >> s->cluster_bits) & (s->l2_size - 1); in get_cluster_offset() 511 (uint64_t)compressed_size << (63 - s->cluster_bits); in get_cluster_offset() [all …]
|
H A D | qcow2-refcount.c | 293 uint64_t block_a = offset_a >> (s->cluster_bits + s->refcount_block_bits); in in_same_refcount_block() 294 uint64_t block_b = offset_b >> (s->cluster_bits + s->refcount_block_bits); in in_same_refcount_block() 388 refcount_table_index, cluster_index << s->cluster_bits, new_block); in alloc_refcount_block() 391 if (in_same_refcount_block(s, new_block, cluster_index << s->cluster_bits)) { in alloc_refcount_block() 402 int block_index = (new_block >> s->cluster_bits) & in alloc_refcount_block() 487 (new_block >> s->cluster_bits) + 1), in alloc_refcount_block() 843 int64_t cluster_index = cluster_offset >> s->cluster_bits; in update_refcount() 855 if (s->free_cluster_index > (start >> s->cluster_bits)) { in update_refcount() 856 s->free_cluster_index = (start >> s->cluster_bits); in update_refcount() 951 ret = update_refcount(bs, cluster_index << s->cluster_bits, 1, addend, in qcow2_update_cluster_refcount() [all …]
|
H A D | qcow2.h | 159 uint32_t cluster_bits; member 328 int cluster_bits; member 673 return (size + (s->cluster_size - 1)) >> s->cluster_bits; in size_to_clusters() 683 int shift = s->cluster_bits + s->l2_bits; in size_to_l1() 689 return offset >> (s->l2_bits + s->cluster_bits); in offset_to_l1_index() 694 return (offset >> s->cluster_bits) & (s->l2_size - 1); in offset_to_l2_index() 699 return (offset >> s->cluster_bits) & (s->l2_slice_size - 1); in offset_to_l2_slice_index() 709 return (int64_t)s->l1_vm_state_index << (s->cluster_bits + s->l2_bits); in qcow2_vm_state_offset() 829 return offset >> (s->refcount_block_bits + s->cluster_bits); in offset_to_reftable_index()
|
H A D | qcow2-cluster.c | 607 << s->cluster_bits; in qcow2_get_host_offset() 1068 m->nb_clusters << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1070 uint64_t offset = cluster_offset + ((uint64_t)i << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1093 written_from = MAX(written_from, i << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1094 written_to = MIN(written_to, (i + 1) << s->cluster_bits); in qcow2_alloc_cluster_link_l2() 1134 m->nb_clusters << s->cluster_bits, in qcow2_alloc_cluster_abort() 1183 unsigned write_from = MAX(cow_start_to, i << s->cluster_bits); in calculate_l2_meta() 1184 unsigned write_to = MIN(cow_end_from, (i + 1) << s->cluster_bits); in calculate_l2_meta() 1522 nb_clusters = MIN(nb_clusters, BDRV_REQUEST_MAX_BYTES >> s->cluster_bits); in handle_copied() 1687 nb_clusters = MIN(nb_clusters, BDRV_REQUEST_MAX_BYTES >> s->cluster_bits); in handle_alloc() [all …]
|
H A D | qcow2.c | 1341 header.cluster_bits = be32_to_cpu(header.cluster_bits); in qcow2_do_open() 1365 if (header.cluster_bits < MIN_CLUSTER_BITS || in qcow2_do_open() 1366 header.cluster_bits > MAX_CLUSTER_BITS) { in qcow2_do_open() 1368 header.cluster_bits); in qcow2_do_open() 1373 s->cluster_bits = header.cluster_bits; in qcow2_do_open() 1374 s->cluster_size = 1 << s->cluster_bits; in qcow2_do_open() 1426 ext_end = 1 << header.cluster_bits; in qcow2_do_open() 1525 s->l2_bits = s->cluster_bits - ctz32(l2_entry_size(s)); in qcow2_do_open() 1528 s->refcount_block_bits = s->cluster_bits - (s->refcount_order - 3); in qcow2_do_open() 1531 s->csize_shift = (62 - (s->cluster_bits - 8)); in qcow2_do_open() [all …]
|
/openbmc/qemu/tests/image-fuzzer/qcow2/ |
H A D | layout.py | 96 cluster_bits, self.image_size = self._size_params() 97 self.cluster_size = 1 << cluster_bits 108 self.create_header(cluster_bits, backing_file_name) 121 def create_header(self, cluster_bits, backing_file_name=None): argument 128 ['>I', 20, cluster_bits, 'cluster_bits'], 528 cluster_bits = random.randrange(9, 21) 529 cluster_size = 1 << cluster_bits 531 return (cluster_bits, img_size)
|
H A D | fuzz.py | 182 def cluster_bits(current): function
|
/openbmc/linux/fs/fat/ |
H A D | misc.c | 160 if (new_fclus != (inode->i_blocks >> (sbi->cluster_bits - 9))) { in fat_chain_add() 163 (llu)(inode->i_blocks >> (sbi->cluster_bits - 9))); in fat_chain_add() 166 inode->i_blocks += nr_cluster << (sbi->cluster_bits - 9); in fat_chain_add()
|
H A D | file.c | 288 sbi->cluster_bits; in fat_fallocate() 373 inode->i_blocks = skip << (MSDOS_SB(sb)->cluster_bits - 9); in fat_free() 392 nr_clusters = (offset + (cluster_size - 1)) >> sbi->cluster_bits; in fat_truncate_blocks()
|
H A D | cache.c | 229 const int limit = sb->s_maxbytes >> sbi->cluster_bits; in fat_get_cluster() 318 cluster = sector >> (sbi->cluster_bits - sb->s_blocksize_bits); in fat_get_mapped_cluster()
|
H A D | fatent.c | 779 ent_start = max_t(u64, range->start>>sbi->cluster_bits, FAT_START_ENT); in fat_trim_fs() 780 ent_end = ent_start + (range->len >> sbi->cluster_bits) - 1; in fat_trim_fs() 781 minlen = range->minlen >> sbi->cluster_bits; in fat_trim_fs() 845 range->len = trimmed << sbi->cluster_bits; in fat_trim_fs()
|
H A D | dir.c | 1215 *nr_cluster = (size + (sbi->cluster_size - 1)) >> sbi->cluster_bits; in fat_add_new_entries() 1392 dir->i_size += nr_cluster << sbi->cluster_bits; in fat_add_entries() 1393 MSDOS_I(dir)->mmu_private += nr_cluster << sbi->cluster_bits; in fat_add_entries()
|
/openbmc/linux/fs/ocfs2/ |
H A D | ocfs2_trace.h | 1713 unsigned long long system_dir, int cluster_bits), 1714 TP_ARGS(label, uuid_str, root_dir, system_dir, cluster_bits), 1720 __field(int, cluster_bits) 1727 __entry->cluster_bits = cluster_bits; 1730 __entry->root_dir, __entry->system_dir, __entry->cluster_bits)
|