/external/qemu/block/ |
D | vmdk.c | 127 if (bdrv_pread(s->hd, 0x200, desc, DESC_SIZE) != DESC_SIZE) in vmdk_read_cid() 153 if (bdrv_pread(s->hd, 0x200, desc, DESC_SIZE) != DESC_SIZE) in vmdk_write_cid() 331 if (bdrv_pread(s->hd, 0x200, desc, DESC_SIZE) != DESC_SIZE) in vmdk_parent_open() 381 if (bdrv_pread(s->hd, 0, &magic, sizeof(magic)) != sizeof(magic)) in vmdk_open() 388 if (bdrv_pread(s->hd, sizeof(magic), &header, sizeof(header)) != sizeof(header)) in vmdk_open() 400 if (bdrv_pread(s->hd, sizeof(magic), &header, sizeof(header)) != sizeof(header)) in vmdk_open() 430 if (bdrv_pread(s->hd, s->l1_table_offset, s->l1_table, l1_size) != l1_size) in vmdk_open() 438 if (bdrv_pread(s->hd, s->l1_backup_table_offset, s->l1_backup_table, l1_size) != l1_size) in vmdk_open() 478 …if (bdrv_pread(ps->hd, parent_cluster_offset, whole_grain, ps->cluster_sectors*512) != ps->cluster… in get_whole_cluster() 548 if (bdrv_pread(s->hd, (int64_t)l2_offset * 512, l2_table, s->l2_size * sizeof(uint32_t)) != in get_cluster_offset() [all …]
|
D | qcow2-refcount.c | 46 ret = bdrv_pread(s->hd, s->refcount_table_offset, in qcow2_refcount_init() 71 ret = bdrv_pread(s->hd, refcount_block_offset, s->refcount_block_cache, in load_refcount_block() 482 if (bdrv_pread(s->hd, l1_table_offset, in qcow2_update_snapshot_refcount() 502 if (bdrv_pread(s->hd, l2_offset, l2_table, l2_size) != l2_size) in qcow2_update_snapshot_refcount() 644 if (bdrv_pread(s->hd, l2_offset, l2_table, l2_size) != l2_size) in check_refcounts_l2() 733 if (bdrv_pread(s->hd, l1_table_offset, in check_refcounts_l1()
|
D | qcow2-snapshot.c | 82 if (bdrv_pread(s->hd, offset, &h, sizeof(h)) != sizeof(h)) in qcow2_read_snapshots() 100 if (bdrv_pread(s->hd, offset, sn->id_str, id_str_size) != id_str_size) in qcow2_read_snapshots() 106 if (bdrv_pread(s->hd, offset, sn->name, name_size) != name_size) in qcow2_read_snapshots() 321 if (bdrv_pread(s->hd, sn->l1_table_offset, in qcow2_snapshot_goto()
|
D | vpc.c | 166 if (bdrv_pread(s->hd, 0, s->footer_buf, HEADER_SIZE) != HEADER_SIZE) in vpc_open() 185 if (bdrv_pread(s->hd, be64_to_cpu(footer->data_offset), buf, HEADER_SIZE) in vpc_open() 202 if (bdrv_pread(s->hd, s->bat_offset, s->pagetable, in vpc_open() 389 ret = bdrv_pread(s->hd, offset, buf, 512); in vpc_read()
|
D | qcow2.c | 102 if (bdrv_pread(s->hd, offset, &ext, sizeof(ext)) != sizeof(ext)) { in qcow_read_extensions() 124 if (bdrv_pread(s->hd, offset , bs->backing_format, in qcow_read_extensions() 163 if (bdrv_pread(s->hd, 0, &header, sizeof(header)) != sizeof(header)) in qcow_open() 216 if (bdrv_pread(s->hd, s->l1_table_offset, s->l1_table, s->l1_size * sizeof(uint64_t)) != in qcow_open() 246 if (bdrv_pread(s->hd, header.backing_file_offset, bs->backing_file, len) != len) in qcow_open() 958 ret = bdrv_pread(bs, pos, buf, size); in qcow_get_buffer()
|
D | qcow.c | 102 if (bdrv_pread(s->hd, 0, &header, sizeof(header)) != sizeof(header)) in qcow_open() 138 if (bdrv_pread(s->hd, s->l1_table_offset, s->l1_table, s->l1_size * sizeof(uint64_t)) != in qcow_open() 161 if (bdrv_pread(s->hd, header.backing_file_offset, bs->backing_file, len) != len) in qcow_open() 313 if (bdrv_pread(s->hd, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) != in get_cluster_offset() 434 ret = bdrv_pread(s->hd, coffset, s->cluster_data, csize); in decompress_cluster() 475 ret = bdrv_pread(s->hd, cluster_offset + index_in_cluster * 512, buf, n * 512);
|
D | qcow2-cluster.c | 164 if (bdrv_pread(s->hd, l2_offset, l2_table, s->l2_size * sizeof(uint64_t)) != in l2_load() 238 if (bdrv_pread(s->hd, old_l2_offset, in l2_allocate() 337 ret = bdrv_pread(s->hd, cluster_offset + index_in_cluster * 512, buf, n * 512); in qcow_read()
|
/external/qemu/ |
D | block.h | 67 int bdrv_pread(BlockDriverState *bs, int64_t offset,
|
D | block.c | 289 ret = bdrv_pread(bs, 0, buf, sizeof(buf)); in find_image_format() 619 int bdrv_pread(BlockDriverState *bs, int64_t offset, in bdrv_pread() function
|
D | qemu-io.c | 125 *total = bdrv_pread(bs, offset, (uint8_t *)buf, count); in do_pread()
|