mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
block: Rename BlockDriverAIOCB* to BlockAIOCB*
I'll use BlockDriverAIOCB with block backends shortly, and the name is going to fit badly there. It's a block layer thing anyway, not just a block driver thing. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
fa1d36df74
commit
7c84b1b831
34 changed files with 265 additions and 265 deletions
|
@ -636,7 +636,7 @@ typedef struct NvmeAsyncEvent {
|
|||
|
||||
typedef struct NvmeRequest {
|
||||
struct NvmeSQueue *sq;
|
||||
BlockDriverAIOCB *aiocb;
|
||||
BlockAIOCB *aiocb;
|
||||
uint16_t status;
|
||||
NvmeCqe cqe;
|
||||
BlockAcctCookie acct;
|
||||
|
|
|
@ -241,7 +241,7 @@ typedef struct AHCIDevice AHCIDevice;
|
|||
|
||||
typedef struct NCQTransferState {
|
||||
AHCIDevice *drive;
|
||||
BlockDriverAIOCB *aiocb;
|
||||
BlockAIOCB *aiocb;
|
||||
QEMUSGList sglist;
|
||||
BlockAcctCookie acct;
|
||||
uint16_t sector_count;
|
||||
|
|
|
@ -360,15 +360,15 @@ static void ide_set_signature(IDEState *s)
|
|||
}
|
||||
|
||||
typedef struct TrimAIOCB {
|
||||
BlockDriverAIOCB common;
|
||||
BlockAIOCB common;
|
||||
QEMUBH *bh;
|
||||
int ret;
|
||||
QEMUIOVector *qiov;
|
||||
BlockDriverAIOCB *aiocb;
|
||||
BlockAIOCB *aiocb;
|
||||
int i, j;
|
||||
} TrimAIOCB;
|
||||
|
||||
static void trim_aio_cancel(BlockDriverAIOCB *acb)
|
||||
static void trim_aio_cancel(BlockAIOCB *acb)
|
||||
{
|
||||
TrimAIOCB *iocb = container_of(acb, TrimAIOCB, common);
|
||||
|
||||
|
@ -438,7 +438,7 @@ static void ide_issue_trim_cb(void *opaque, int ret)
|
|||
}
|
||||
}
|
||||
|
||||
BlockDriverAIOCB *ide_issue_trim(BlockDriverState *bs,
|
||||
BlockAIOCB *ide_issue_trim(BlockDriverState *bs,
|
||||
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
|
||||
BlockDriverCompletionFunc *cb, void *opaque)
|
||||
{
|
||||
|
|
|
@ -389,7 +389,7 @@ struct IDEState {
|
|||
int cd_sector_size;
|
||||
int atapi_dma; /* true if dma is requested for the packet cmd */
|
||||
BlockAcctCookie acct;
|
||||
BlockDriverAIOCB *pio_aiocb;
|
||||
BlockAIOCB *pio_aiocb;
|
||||
struct iovec iov;
|
||||
QEMUIOVector qiov;
|
||||
/* ATA DMA state */
|
||||
|
@ -442,7 +442,7 @@ struct IDEDMA {
|
|||
const struct IDEDMAOps *ops;
|
||||
struct iovec iov;
|
||||
QEMUIOVector qiov;
|
||||
BlockDriverAIOCB *aiocb;
|
||||
BlockAIOCB *aiocb;
|
||||
};
|
||||
|
||||
struct IDEBus {
|
||||
|
@ -555,7 +555,7 @@ void ide_transfer_start(IDEState *s, uint8_t *buf, int size,
|
|||
EndTransferFunc *end_transfer_func);
|
||||
void ide_transfer_stop(IDEState *s);
|
||||
void ide_set_inactive(IDEState *s, bool more);
|
||||
BlockDriverAIOCB *ide_issue_trim(BlockDriverState *bs,
|
||||
BlockAIOCB *ide_issue_trim(BlockDriverState *bs,
|
||||
int64_t sector_num, QEMUIOVector *qiov, int nb_sectors,
|
||||
BlockDriverCompletionFunc *cb, void *opaque);
|
||||
|
||||
|
|
|
@ -131,7 +131,7 @@ typedef struct MACIOIDEState {
|
|||
|
||||
MemoryRegion mem;
|
||||
IDEBus bus;
|
||||
BlockDriverAIOCB *aiocb;
|
||||
BlockAIOCB *aiocb;
|
||||
IDEDMA dma;
|
||||
void *dbdma;
|
||||
bool dma_active;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue