Searched refs:l2_bits (Results 1 – 4 of 4) sorted by relevance
49 uint8_t l2_bits; member61 int l2_bits; member122 s->l2_bits = header.l2_bits; in qcow_open()123 s->l2_size = 1 << s->l2_bits; in qcow_open()128 shift = s->cluster_bits + s->l2_bits; in qcow_open()263 l1_index = offset >> (s->l2_bits + s->cluster_bits); in get_cluster_offset()290 l2_table = s->l2_cache + (i << s->l2_bits); in get_cluster_offset()303 l2_table = s->l2_cache + (min_index << s->l2_bits); in get_cluster_offset()785 header.l2_bits = 12; /* 32 KB L2 tables */ in qcow_create()788 header.l2_bits = 9; /* 4 KB L2 tables */ in qcow_create()[all …]
86 int l2_bits; member155 int shift = s->cluster_bits + s->l2_bits; in size_to_l1()
144 return s->l2_cache + (i << s->l2_bits); in seek_l2_table()177 *l2_table = s->l2_cache + (min_index << s->l2_bits); in l2_load()250 l2_table = s->l2_cache + (min_index << s->l2_bits); in l2_allocate()454 l1_bits = s->l2_bits + s->cluster_bits; in qcow2_get_cluster_offset()543 l1_index = offset >> (s->l2_bits + s->cluster_bits); in get_cluster_table()
175 s->l2_bits = s->cluster_bits - 3; /* L2 is always one cluster */ in qcow_open()176 s->l2_size = 1 << s->l2_bits; in qcow_open()850 int fd, header_size, backing_filename_len, l1_size, i, shift, l2_bits; in qcow_create2() local905 l2_bits = s->cluster_bits - 3; in qcow_create2()906 shift = s->cluster_bits + l2_bits; in qcow_create2()1230 return (int64_t)s->l1_vm_state_index << (s->cluster_bits + s->l2_bits); in qcow_vm_state_offset()