Lines Matching refs:clstr_log2sz
55 uint32_t clstr_log2sz; /* v2 only */ member
59 uint8_t clstr_log2sz; member
77 static u_int clstr_log2sz; variable
84 clstrsz = 1UL << clstr_log2sz; in round_clstr()
95 clstr_log2sz = QCOW1_CLSTR_LOG2SZ; in qcow_resize()
98 clstr_log2sz = QCOW2_CLSTR_LOG2SZ; in qcow_resize()
108 (uintmax_t)imagesz, (u_int)(1U << clstr_log2sz)); in qcow_resize()
142 assert(clstr_log2sz != 0); in qcow_write()
144 clstrsz = 1U << clstr_log2sz; in qcow_write()
148 clstr_imgsz = imagesz >> clstr_log2sz; in qcow_write()
149 clstr_l2tbls = round_clstr(clstr_imgsz * 8) >> clstr_log2sz; in qcow_write()
150 clstr_l1tblsz = round_clstr(clstr_l2tbls * 8) >> clstr_log2sz; in qcow_write()
155 clstr_rcblks = round_clstr((nclstrs + n) * 2) >> clstr_log2sz; in qcow_write()
156 clstr_rctblsz = round_clstr(clstr_rcblks * 8) >> clstr_log2sz; in qcow_write()
185 hdr->u.v1.clstr_log2sz = clstr_log2sz; in qcow_write()
186 hdr->u.v1.l2_log2sz = clstr_log2sz - 3; in qcow_write()
193 be32enc(&hdr->clstr_log2sz, clstr_log2sz); in qcow_write()
197 refcnt_clstrs = round_clstr(clstr_rcblks * 8) >> clstr_log2sz; in qcow_write()
225 l1idx = n >> (clstr_log2sz - 3); in qcow_write()
242 clstr_rcblks = round_clstr((nclstrs + n) * 2) >> clstr_log2sz; in qcow_write()