static void scsi_cancel_io(SCSIDevice *d, uint32_t tag)

{

    DPRINTF("scsi_cancel_io 0x%x\n", tag);

    SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);

    SCSIGenericReq *r;

    DPRINTF("Cancel tag=0x%x\n", tag);

    r = scsi_find_request(s, tag);

    if (r) {

        if (r->req.aiocb)

            bdrv_aio_cancel(r->req.aiocb);

        r->req.aiocb = NULL;

        scsi_req_dequeue(&r->req);

    }

}

static void scsi_cancel_io(SCSIDevice *d, uint32_t tag)

{

    DPRINTF("scsi_cancel_io 0x%x\n", tag);

    SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);

    SCSIGenericReq *r;

    DPRINTF("Cancel tag=0x%x\n", tag);

    r = scsi_find_request(s, tag);

    if (r) {

        if (r->req.aiocb)

            bdrv_aio_cancel(r->req.aiocb);

        r->req.aiocb = NULL;

        scsi_req_dequeue(&r->req);

    }

}

static void scsi_cancel_io(SCSIDevice *d, uint32_t tag)     DPRINTF("Cancel tag=0x%x\n", tag);     r = scsi_find_request(s, tag);     if (r) {         if (r->req.aiocb)             bdrv_aio_cancel(r->req.aiocb);         r->req.aiocb = NULL;         scsi_req_dequeue(&r->req);     r = scsi_find_request(s, tag);     r = scsi_find_request(s, tag);     r = scsi_find_request(s, tag);     r = scsi_find_request(s, tag);     if (r) { static void scsi_cancel_io(SCSIDevice *d, uint32_t tag)     DPRINTF("scsi_cancel_io 0x%x\n", tag);     SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);     SCSIGenericReq *r;     DPRINTF("Cancel tag=0x%x\n", tag);     r = scsi_find_request(s, tag);     if (r) {         if (r->req.aiocb)             bdrv_aio_cancel(r->req.aiocb);         r->req.aiocb = NULL;         scsi_req_dequeue(&r->req);     SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);     SCSIGenericReq *r;     r = scsi_find_request(s, tag);     SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);     SCSIGenericReq *r;     r = scsi_find_request(s, tag);     SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);     SCSIGenericReq *r;     r = scsi_find_request(s, tag);     SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, d);     SCSIGenericReq *r;     r = scsi_find_request(s, tag);     if (r) {
static void FUNC_0(SCSIDevice *VAR_0, uint32_t VAR_1)

{

    DPRINTF("FUNC_0 0x%x\n", VAR_1);

    SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_0);

    SCSIGenericReq *r;

    DPRINTF("Cancel VAR_1=0x%x\n", VAR_1);

    r = scsi_find_request(s, VAR_1);

    if (r) {

        if (r->req.aiocb)

            bdrv_aio_cancel(r->req.aiocb);

        r->req.aiocb = NULL;

        scsi_req_dequeue(&r->req);

    }

}

static void FUNC_0(SCSIDevice *VAR_0, uint32_t VAR_1)
{ DPRINTF("FUNC_0 0x%x\n", VAR_1); SCSIGenericState *s = DO_UPCAST(SCSIGenericState, qdev, VAR_0); SCSIGenericReq *r; DPRINTF("Cancel VAR_1=0x%x\n", VAR_1); r = scsi_find_request(s, VAR_1); if (r) { if (r->req.aiocb)
bdrv_aio_cancel(r->req.aiocb); r->req.aiocb = NULL; scsi_req_dequeue(&r->req); } }