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

1 2

  /external/qemu/include/block/
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...]
  /external/qemu/include/hw/block/
fdc.h 8 BlockDriverState **fds);
10 BlockDriverState **fds, qemu_irq *fdc_tc);
  /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...]
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...]
qcow2-cluster.c 31 int qcow2_grow_l1_table(BlockDriverState *bs, int min_size)
93 void qcow2_l2_cache_reset(BlockDriverState *bs)
102 static inline int l2_cache_new_entry(BlockDriverState *bs)
160 static int l2_load(BlockDriverState *bs, uint64_t l2_offset,
197 static int write_l1_entry(BlockDriverState *bs, int l1_index)
229 static int l2_allocate(BlockDriverState *bs, int l1_index, uint64_t **table)
345 static int qcow_read(BlockDriverState *bs, int64_t sector_num,
396 static int copy_sectors(BlockDriverState *bs, uint64_t start_sect,
440 int qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset,
530 static int get_cluster_table(BlockDriverState *bs, uint64_t offset
    [all...]
  /external/qemu/include/sysemu/
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);
sysemu.h 172 BlockDriverState *bdrv;
191 extern void drive_uninit(BlockDriverState *bdrv);
193 extern const char *drive_get_serial(BlockDriverState *bdrv);
194 extern BlockInterfaceErrorAction drive_get_onerror(BlockDriverState *bdrv);
196 BlockDriverState *qdev_init_bdrv(DeviceState *dev, BlockInterfaceType type);
  /external/qemu/
block.c 47 static BlockDriverAIOCB *bdrv_aio_readv_em(BlockDriverState *bs,
50 static BlockDriverAIOCB *bdrv_aio_writev_em(BlockDriverState *bs,
53 static BlockDriverAIOCB *bdrv_aio_flush_em(BlockDriverState *bs,
55 static BlockDriverAIOCB *bdrv_aio_noop_em(BlockDriverState *bs,
57 static int bdrv_read_em(BlockDriverState *bs, int64_t sector_num,
59 static int bdrv_write_em(BlockDriverState *bs, int64_t sector_num,
62 static QTAILQ_HEAD(, BlockDriverState) bdrv_states =
69 static BlockDriverState *bs_snapshots;
157 BlockDriverState *bdrv_new(const char *device_name)
159 BlockDriverState *bs
    [all...]
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;
575 BlockDriverState *bs;
dma-helpers.c 41 BlockDriverState *bs;
148 BlockDriverState *bs, QEMUSGList *sg, uint64_t sector_num,
172 BlockDriverAIOCB *dma_bdrv_read(BlockDriverState *bs,
179 BlockDriverAIOCB *dma_bdrv_write(BlockDriverState *bs,
  /external/qemu/include/qemu/
typedefs.h 33 typedef struct BlockDriverState BlockDriverState;
  /external/qemu/include/hw/i386/
pc.h 155 BlockDriverState *hd0, BlockDriverState *hd1);
156 void pci_cmd646_ide_init(PCIBus *bus, BlockDriverState **hd_table,
158 void pci_piix3_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn,
160 void pci_piix4_ide_init(PCIBus *bus, BlockDriverState **hd_table, int devfn,
  /external/qemu/include/hw/
pcmcia.h 54 PCMCIACardState *dscm1xxxx_init(BlockDriverState *bdrv);
qdev-core.h 75 typedef void (*SCSIAttachFn)(DeviceState *host, BlockDriverState *bdrv,
  /external/qemu/include/monitor/
monitor.h 51 int monitor_read_bdrv_key_start(Monitor *mon, BlockDriverState *bs,
  /external/qemu/include/hw/android/goldfish/
device.h 52 void goldfish_mmc_init(uint32_t base, int id, BlockDriverState* bs);
  /external/qemu/hw/android/goldfish/
mmc.c 72 BlockDriverState *bs;
526 void goldfish_mmc_init(uint32_t base, int id, BlockDriverState* bs)

Completed in 878 milliseconds

1 2