Lines Matching full:sizeof
85 if (buf_size >= sizeof(QCowHeader) &&
102 if (bdrv_pread(s->hd, 0, &header, sizeof(header)) != sizeof(header))
135 s->l1_table = qemu_malloc(s->l1_size * sizeof(uint64_t));
138 if (bdrv_pread(s->hd, s->l1_table_offset, s->l1_table, s->l1_size * sizeof(uint64_t)) !=
139 s->l1_size * sizeof(uint64_t))
145 s->l2_cache = qemu_malloc(s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
280 if (bdrv_pwrite(s->hd, s->l1_table_offset + l1_index * sizeof(tmp),
281 &tmp, sizeof(tmp)) != sizeof(tmp))
308 memset(l2_table, 0, s->l2_size * sizeof(uint64_t));
309 if (bdrv_pwrite(s->hd, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) !=
310 s->l2_size * sizeof(uint64_t))
313 if (bdrv_pread(s->hd, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) !=
314 s->l2_size * sizeof(uint64_t))
376 l2_offset + l2_index * sizeof(tmp), &tmp, sizeof(tmp)) != sizeof(tmp))
404 memset(strm, 0, sizeof(*strm));
515 .aiocb_size = sizeof(QCowAIOCB),
769 memset(&header, 0, sizeof(header));
773 header_size = sizeof(header);
804 write(fd, &header, sizeof(header));
811 write(fd, &tmp, sizeof(tmp));
820 uint32_t l1_length = s->l1_size * sizeof(uint64_t);
830 memset(s->l2_cache, 0, s->l2_size * L2_CACHE_SIZE * sizeof(uint64_t));
831 memset(s->l2_cache_offsets, 0, L2_CACHE_SIZE * sizeof(uint64_t));
832 memset(s->l2_cache_counts, 0, L2_CACHE_SIZE * sizeof(uint32_t));
856 memset(&strm, 0, sizeof(strm));
932 .instance_size = sizeof(BDRVQcowState),