static void qxl_reset_surfaces(PCIQXLDevice *d)

{

    dprint(d, 1, "%s:\n", __FUNCTION__);

    d->mode = QXL_MODE_UNDEFINED;

    qemu_mutex_unlock_iothread();

    d->ssd.worker->destroy_surfaces(d->ssd.worker);

    qemu_mutex_lock_iothread();

    memset(&d->guest_surfaces.cmds, 0, sizeof(d->guest_surfaces.cmds));

}

static void qxl_reset_surfaces(PCIQXLDevice *d)

{

    dprint(d, 1, "%s:\n", __FUNCTION__);

    d->mode = QXL_MODE_UNDEFINED;

    qemu_mutex_unlock_iothread();

    d->ssd.worker->destroy_surfaces(d->ssd.worker);

    qemu_mutex_lock_iothread();

    memset(&d->guest_surfaces.cmds, 0, sizeof(d->guest_surfaces.cmds));

}

    qemu_mutex_unlock_iothread();     qemu_mutex_lock_iothread();     qemu_mutex_unlock_iothread();     qemu_mutex_lock_iothread();     qemu_mutex_unlock_iothread();     qemu_mutex_lock_iothread();     qemu_mutex_unlock_iothread();     qemu_mutex_lock_iothread();     qemu_mutex_unlock_iothread();     qemu_mutex_lock_iothread();
static void FUNC_0(PCIQXLDevice *VAR_0)

{

    dprint(VAR_0, 1, "%s:\n", __FUNCTION__);

    VAR_0->mode = QXL_MODE_UNDEFINED;

    qemu_mutex_unlock_iothread();

    VAR_0->ssd.worker->destroy_surfaces(VAR_0->ssd.worker);

    qemu_mutex_lock_iothread();

    memset(&VAR_0->guest_surfaces.cmds, 0, sizeof(VAR_0->guest_surfaces.cmds));

}

static void FUNC_0(PCIQXLDevice *VAR_0)
{ dprint(VAR_0, 1, "%s:\n", __FUNCTION__); VAR_0->mode = QXL_MODE_UNDEFINED; qemu_mutex_unlock_iothread(); VAR_0->ssd.worker->destroy_surfaces(VAR_0->ssd.worker); qemu_mutex_lock_iothread(); memset(&VAR_0->guest_surfaces.cmds, 0, sizeof(VAR_0->guest_surfaces.cmds)); }