int qed_read_l2_table_sync(BDRVQEDState *s, QEDRequest *request, uint64_t offset)

{

    int ret = -EINPROGRESS;



    qed_read_l2_table(s, request, offset, qed_sync_cb, &ret);

    while (ret == -EINPROGRESS) {

        aio_poll(bdrv_get_aio_context(s->bs), true);

    }



    return ret;

}

int qed_read_l2_table_sync(BDRVQEDState *s, QEDRequest *request, uint64_t offset)

{

    int ret = -EINPROGRESS;



    qed_read_l2_table(s, request, offset, qed_sync_cb, &ret);

    while (ret == -EINPROGRESS) {

        aio_poll(bdrv_get_aio_context(s->bs), true);

    }



    return ret;

}

int FUNC_0(BDRVQEDState *VAR_0, QEDRequest *VAR_1, uint64_t VAR_2)

{

    int VAR_3 = -EINPROGRESS;



    qed_read_l2_table(VAR_0, VAR_1, VAR_2, qed_sync_cb, &VAR_3);

    while (VAR_3 == -EINPROGRESS) {

        aio_poll(bdrv_get_aio_context(VAR_0->bs), true);

    }



    return VAR_3;

}

int FUNC_0(BDRVQEDState *VAR_0, QEDRequest *VAR_1, uint64_t VAR_2)
{ int VAR_3 = -EINPROGRESS; qed_read_l2_table(VAR_0, VAR_1, VAR_2, qed_sync_cb, &VAR_3); while (VAR_3 == -EINPROGRESS) { aio_poll(bdrv_get_aio_context(VAR_0->bs), true); } return VAR_3; }