HomeSort by relevance Sort by last modified time
    Searched refs:BlockDriverState (Results 1 - 25 of 49) sorted by null

1 2

  /external/qemu/
block.h 53 void bdrv_mon_event(const BlockDriverState *bdrv,
68 BlockDriverState *bdrv_new(const char *device_name);
69 void bdrv_delete(BlockDriverState *bs);
70 int bdrv_file_open(BlockDriverState **pbs, const char *filename, int flags);
71 int bdrv_open(BlockDriverState *bs, const char *filename, int flags,
73 void bdrv_close(BlockDriverState *bs);
74 int bdrv_attach(BlockDriverState *bs, DeviceState *qdev);
75 void bdrv_detach(BlockDriverState *bs, DeviceState *qdev);
76 DeviceState *bdrv_get_attached(BlockDriverState *bs);
77 int bdrv_read(BlockDriverState *bs, int64_t sector_num
    [all...]
block_int.h 54 int (*bdrv_open)(BlockDriverState *bs, int flags);
55 int (*bdrv_file_open)(BlockDriverState *bs, const char *filename, int flags);
56 int (*bdrv_read)(BlockDriverState *bs, int64_t sector_num,
58 int (*bdrv_write)(BlockDriverState *bs, int64_t sector_num,
60 void (*bdrv_close)(BlockDriverState *bs);
62 void (*bdrv_flush)(BlockDriverState *bs);
63 int (*bdrv_is_allocated)(BlockDriverState *bs, int64_t sector_num,
65 int (*bdrv_set_key)(BlockDriverState *bs, const char *key);
66 int (*bdrv_make_empty)(BlockDriverState *bs);
68 BlockDriverAIOCB *(*bdrv_aio_readv)(BlockDriverState *bs
    [all...]
dma.h 35 BlockDriverAIOCB *dma_bdrv_read(BlockDriverState *bs,
38 BlockDriverAIOCB *dma_bdrv_write(BlockDriverState *bs,
blockdev.h 16 void blockdev_mark_auto_del(BlockDriverState *bs);
17 void blockdev_auto_del(BlockDriverState *bs);
22 BlockDriverState *bdrv;
40 extern DriveInfo *drive_get_by_blockdev(BlockDriverState *bs);
block.c 45 static BlockDriverAIOCB *bdrv_aio_readv_em(BlockDriverState *bs,
48 static BlockDriverAIOCB *bdrv_aio_writev_em(BlockDriverState *bs,
51 static BlockDriverAIOCB *bdrv_aio_flush_em(BlockDriverState *bs,
53 static BlockDriverAIOCB *bdrv_aio_noop_em(BlockDriverState *bs,
55 static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num,
57 static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num,
60 static QTAILQ_HEAD(, BlockDriverState) bdrv_states =
67 static BlockDriverState *bs_snapshots;
155 BlockDriverState *bdrv_new(const char *device_name)
157 BlockDriverState *bs
    [all...]
sysemu.h 144 BlockDriverState *bdrv;
163 extern void drive_uninit(BlockDriverState *bdrv);
165 extern const char *drive_get_serial(BlockDriverState *bdrv);
166 extern BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv);
168 BlockDriverState *qdev_init_bdrv(DeviceState *dev, BlockInterfaceType type);
blockdev.c 27 void blockdev_mark_auto_del(BlockDriverState *bs)
34 void blockdev_auto_del(BlockDriverState *bs)
92 DriveInfo *drive_get_by_blockdev(BlockDriverState *bs)
501 BlockDriverState *bs;
515 static int eject_device(Monitor *mon, BlockDriverState *bs, int force)
534 BlockDriverState *bs;
549 BlockDriverState *bs;
573 BlockDriverState *bs;
  /external/qemu/hw/
fdc.h 8 BlockDriverState **fds);
10 BlockDriverState **fds, qemu_irq *fdc_tc);
scsi-disk.h 27 SCSIDevice *scsi_disk_init(BlockDriverState *bdrv, int tcq,
29 SCSIDevice *scsi_generic_init(BlockDriverState *bdrv, int tcq,
pc.h 153 BlockDriverState *hd0, BlockDriverState *hd1);
154 void pci_cmd646_ide_init(PCIBus *bus, BlockDriverState **hd_table,
156 void pci_piix3_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn,
158 void pci_piix4_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn,
  /external/qemu/block/
qcow2.h 82 BlockDriverState *hd;
169 int qcow2_backing_read1(BlockDriverState *bs,
173 int qcow2_refcount_init(BlockDriverState *bs);
174 void qcow2_refcount_close(BlockDriverState *bs);
176 int64_t qcow2_alloc_clusters(BlockDriverState *bs, int64_t size);
177 int64_t qcow2_alloc_bytes(BlockDriverState *bs, int size);
178 void qcow2_free_clusters(BlockDriverState *bs,
180 void qcow2_free_any_clusters(BlockDriverState *bs,
185 int qcow2_update_snapshot_refcount(BlockDriverState *bs,
188 int qcow2_check_refcounts(BlockDriverState *bs, BdrvCheckResult *res)
    [all...]
raw.c 6 static int raw_open(BlockDriverState *bs, int flags)
15 static int check_for_block_signature(BlockDriverState *bs, const uint8_t *buf)
35 static int check_write_unsafe(BlockDriverState *bs, int64_t sector_num,
51 static int raw_read(BlockDriverState *bs, int64_t sector_num,
57 static int raw_write_scrubbed_bootsect(BlockDriverState *bs,
69 static int raw_write(BlockDriverState *bs, int64_t sector_num,
91 static BlockDriverAIOCB *raw_aio_readv(BlockDriverState *bs,
119 static BlockDriverAIOCB *raw_aio_writev(BlockDriverState *bs,
168 static void raw_close(BlockDriverState *bs)
172 static void raw_flush(BlockDriverState *bs
    [all...]
raw-posix-aio.h 30 BlockDriverAIOCB *paio_submit(BlockDriverState *bs, int fd,
33 BlockDriverAIOCB *paio_ioctl(BlockDriverState *bs, int fd,
39 BlockDriverAIOCB *laio_submit(BlockDriverState *bs, void *aio_ctx, int fd,
raw-win32.c 76 static int raw_open(BlockDriverState *bs, const char *filename, int flags)
108 static int raw_read(BlockDriverState *bs, int64_t sector_num,
129 static int raw_write(BlockDriverState *bs, int64_t sector_num,
150 static void raw_flush(BlockDriverState *bs)
156 static void raw_close(BlockDriverState *bs)
162 static int raw_truncate(BlockDriverState *bs, int64_t offset)
176 static int64_t raw_getlength(BlockDriverState *bs)
280 static int find_device_type(BlockDriverState *bs, const char *filename)
315 static int hdev_open(BlockDriverState *bs, const char *filename, int flags)
366 static int raw_is_inserted(BlockDriverState *bs
    [all...]
raw-posix.c 123 static int fd_open(BlockDriverState *bs);
124 static int64_t raw_getlength(BlockDriverState *bs);
127 static int cdrom_reopen(BlockDriverState *bs);
130 static int raw_open_common(BlockDriverState *bs, const char *filename,
201 static int raw_open(BlockDriverState *bs, const char *filename, int flags)
233 static int raw_pread_aligned(BlockDriverState *bs, int64_t offset,
286 static int raw_pwrite_aligned(BlockDriverState *bs, int64_t offset,
314 static int raw_pread(BlockDriverState *bs, int64_t offset,
385 static int raw_read(BlockDriverState *bs, int64_t sector_num,
402 static int raw_pwrite(BlockDriverState *bs, int64_t offset
    [all...]
cow.c 60 static int cow_open(BlockDriverState *bs, int flags)
96 static inline int cow_set_bit(BlockDriverState *bs, int64_t bitnum)
116 static inline int is_bit_set(BlockDriverState *bs, int64_t bitnum)
133 static int cow_is_allocated(BlockDriverState *bs, int64_t sector_num,
156 static int cow_update_bitmap(BlockDriverState *bs, int64_t sector_num,
172 static int cow_read(BlockDriverState *bs, int64_t sector_num,
202 static int cow_write(BlockDriverState *bs, int64_t sector_num,
216 static void cow_close(BlockDriverState *bs)
285 static void cow_flush(BlockDriverState *bs)
parallels.c 70 static int parallels_open(BlockDriverState *bs, int flags)
105 static int64_t seek_to_sector(BlockDriverState *bs, int64_t sector_num)
119 static int parallels_read(BlockDriverState *bs, int64_t sector_num,
137 static void parallels_close(BlockDriverState *bs)
nbd.c 42 static int nbd_open(BlockDriverState *bs, const char* filename, int flags)
96 static int nbd_read(BlockDriverState *bs, int64_t sector_num,
126 static int nbd_write(BlockDriverState *bs, int64_t sector_num,
156 static void nbd_close(BlockDriverState *bs)
170 static int64_t nbd_getlength(BlockDriverState *bs)
cloop.c 53 static int cloop_open(BlockDriverState *bs, int flags)
102 static inline int cloop_read_block(BlockDriverState *bs, int block_num)
131 static int cloop_read(BlockDriverState *bs, int64_t sector_num,
147 static void cloop_close(BlockDriverState *bs)
qcow2-snapshot.c 49 void qcow2_free_snapshots(BlockDriverState *bs)
63 int qcow2_read_snapshots(BlockDriverState *bs)
119 static int qcow_write_snapshots(BlockDriverState *bs)
191 static void find_new_snapshot_id(BlockDriverState *bs,
207 static int find_snapshot_by_id(BlockDriverState *bs, const char *id_str)
219 static int find_snapshot_by_id_or_name(BlockDriverState *bs, const char *name)
235 int qcow2_snapshot_create(BlockDriverState *bs, QEMUSnapshotInfo *sn_info)
314 int qcow2_snapshot_goto(BlockDriverState *bs, const char *snapshot_id)
355 int qcow2_snapshot_delete(BlockDriverState *bs, const char *snapshot_id)
390 int qcow2_snapshot_list(BlockDriverState *bs, QEMUSnapshotInfo **psn_tab
    [all...]
qcow2-refcount.c 29 static int64_t alloc_clusters_noref(BlockDriverState *bs, int64_t size);
30 static int QEMU_WARN_UNUSED_RESULT update_refcount(BlockDriverState *bs,
37 static int write_refcount_block(BlockDriverState *bs)
59 int qcow2_refcount_init(BlockDriverState *bs)
81 void qcow2_refcount_close(BlockDriverState *bs)
89 static int load_refcount_block(BlockDriverState *bs,
118 static int get_refcount(BlockDriverState *bs, int64_t cluster_index)
178 static int64_t alloc_refcount_block(BlockDriverState *bs, int64_t cluster_index)
425 static int write_refcount_block_entries(BlockDriverState *bs,
458 static int QEMU_WARN_UNUSED_RESULT update_refcount(BlockDriverState *bs
    [all...]
qcow2.c 75 static int qcow_read_extensions(BlockDriverState *bs, uint64_t start_offset,
139 static int qcow_open(BlockDriverState *bs, int flags)
254 static int qcow_set_key(BlockDriverState *bs, const char *key)
296 static int qcow_is_allocated(BlockDriverState *bs, int64_t sector_num,
314 int qcow2_backing_read1(BlockDriverState *bs,
385 BlockDriverState *bs = acb->common.bs;
492 static QCowAIOCB *qcow_aio_setup(BlockDriverState *bs,
519 static BlockDriverAIOCB *qcow_aio_readv(BlockDriverState *bs,
557 BlockDriverState *bs = acb->common.bs;
644 static BlockDriverAIOCB *qcow_aio_writev(BlockDriverState *bs
    [all...]
qcow.c 57 BlockDriverState *hd;
79 static int decompress_cluster(BlockDriverState *bs, uint64_t cluster_offset);
93 static int qcow_open(BlockDriverState *bs, int flags)
172 static int qcow_set_key(BlockDriverState *bs, const char *key)
252 static uint64_t get_cluster_offset(BlockDriverState *bs,
379 static int qcow_is_allocated(BlockDriverState *bs, int64_t sector_num,
422 static int decompress_cluster(BlockDriverState *bs, uint64_t cluster_offset)
446 static int qcow_read(BlockDriverState *bs, int64_t sector_num,
517 static QCowAIOCB *qcow_aio_setup(BlockDriverState *bs,
545 BlockDriverState *bs = acb->common.bs
    [all...]
dmg.c 59 static off_t read_off(BlockDriverState *bs, int64_t offset)
67 static off_t read_uint32(BlockDriverState *bs, int64_t offset)
75 static int dmg_open(BlockDriverState *bs, int flags)
211 static inline int dmg_read_chunk(BlockDriverState *bs, int sector_num)
267 static int dmg_read(BlockDriverState *bs, int64_t sector_num,
283 static void dmg_close(BlockDriverState *bs)
bochs.c 110 static int bochs_open(BlockDriverState *bs, int flags)
158 static int64_t seek_to_sector(BlockDriverState *bs, int64_t sector_num)
189 static int bochs_read(BlockDriverState *bs, int64_t sector_num,
210 static void bochs_close(BlockDriverState *bs)

Completed in 2344 milliseconds

1 2