static void rtas_quiesce(sPAPREnvironment *spapr, uint32_t token,

                         uint32_t nargs, target_ulong args,

                         uint32_t nret, target_ulong rets)

{

    VIOsPAPRBus *bus = spapr->vio_bus;

    BusChild *kid;

    VIOsPAPRDevice *dev = NULL;



    if (nargs != 0) {

        rtas_st(rets, 0, -3);

        return;

    }



    QTAILQ_FOREACH(kid, &bus->bus.children, sibling) {

        dev = (VIOsPAPRDevice *)kid->child;

        spapr_vio_quiesce_one(dev);

    }



    rtas_st(rets, 0, 0);

}

static void rtas_quiesce(sPAPREnvironment *spapr, uint32_t token,

                         uint32_t nargs, target_ulong args,

                         uint32_t nret, target_ulong rets)

{

    VIOsPAPRBus *bus = spapr->vio_bus;

    BusChild *kid;

    VIOsPAPRDevice *dev = NULL;



    if (nargs != 0) {

        rtas_st(rets, 0, -3);

        return;

    }



    QTAILQ_FOREACH(kid, &bus->bus.children, sibling) {

        dev = (VIOsPAPRDevice *)kid->child;

        spapr_vio_quiesce_one(dev);

    }



    rtas_st(rets, 0, 0);

}

static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,

                         uint32_t VAR_2, target_ulong VAR_3,

                         uint32_t VAR_4, target_ulong VAR_5)

{

    VIOsPAPRBus *bus = VAR_0->vio_bus;

    BusChild *kid;

    VIOsPAPRDevice *dev = NULL;



    if (VAR_2 != 0) {

        rtas_st(VAR_5, 0, -3);

        return;

    }



    QTAILQ_FOREACH(kid, &bus->bus.children, sibling) {

        dev = (VIOsPAPRDevice *)kid->child;

        spapr_vio_quiesce_one(dev);

    }



    rtas_st(VAR_5, 0, 0);

}

static void FUNC_0(sPAPREnvironment *VAR_0, uint32_t VAR_1,
uint32_t VAR_2, target_ulong VAR_3,
uint32_t VAR_4, target_ulong VAR_5)
{ VIOsPAPRBus *bus = VAR_0->vio_bus; BusChild *kid; VIOsPAPRDevice *dev = NULL; if (VAR_2 != 0) { rtas_st(VAR_5, 0, -3); return; } QTAILQ_FOREACH(kid, &bus->bus.children, sibling) { dev = (VIOsPAPRDevice *)kid->child; spapr_vio_quiesce_one(dev); } rtas_st(VAR_5, 0, 0); }