static void flash_sync_page(Flash *s, int page)

{

    QEMUIOVector *iov = g_new(QEMUIOVector, 1);



    if (!s->blk || blk_is_read_only(s->blk)) {

        return;

    }



    qemu_iovec_init(iov, 1);

    qemu_iovec_add(iov, s->storage + page * s->pi->page_size,

                   s->pi->page_size);

    blk_aio_pwritev(s->blk, page * s->pi->page_size, iov, 0,

                    blk_sync_complete, iov);

}

static void flash_sync_page(Flash *s, int page)

{

    QEMUIOVector *iov = g_new(QEMUIOVector, 1);



    if (!s->blk || blk_is_read_only(s->blk)) {

        return;

    }



    qemu_iovec_init(iov, 1);

    qemu_iovec_add(iov, s->storage + page * s->pi->page_size,

                   s->pi->page_size);

    blk_aio_pwritev(s->blk, page * s->pi->page_size, iov, 0,

                    blk_sync_complete, iov);

}

    QEMUIOVector *iov = g_new(QEMUIOVector, 1);     QEMUIOVector *iov = g_new(QEMUIOVector, 1);
static void FUNC_0(Flash *VAR_0, int VAR_1)

{

    QEMUIOVector *iov = g_new(QEMUIOVector, 1);



    if (!VAR_0->blk || blk_is_read_only(VAR_0->blk)) {

        return;

    }



    qemu_iovec_init(iov, 1);

    qemu_iovec_add(iov, VAR_0->storage + VAR_1 * VAR_0->pi->page_size,

                   VAR_0->pi->page_size);

    blk_aio_pwritev(VAR_0->blk, VAR_1 * VAR_0->pi->page_size, iov, 0,

                    blk_sync_complete, iov);

}

static void FUNC_0(Flash *VAR_0, int VAR_1)
{ QEMUIOVector *iov = g_new(QEMUIOVector, 1); if (!VAR_0->blk || blk_is_read_only(VAR_0->blk)) { return; } qemu_iovec_init(iov, 1); qemu_iovec_add(iov, VAR_0->storage + VAR_1 * VAR_0->pi->page_size,
VAR_0->pi->page_size); blk_aio_pwritev(VAR_0->blk, VAR_1 * VAR_0->pi->page_size, iov, 0,
blk_sync_complete, iov); }