pvscsi_on_cmd_setup_msg_ring(PVSCSIState *s)

{

    PVSCSICmdDescSetupMsgRing *rc =

        (PVSCSICmdDescSetupMsgRing *) s->curr_cmd_data;



    trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_MSG_RING");



    if (!s->use_msg) {

        return PVSCSI_COMMAND_PROCESSING_FAILED;

    }



    if (s->rings_info_valid) {

        pvscsi_ring_init_msg(&s->rings, rc);

        s->msg_ring_info_valid = TRUE;

    }

    return sizeof(PVSCSICmdDescSetupMsgRing) / sizeof(uint32_t);

}

pvscsi_on_cmd_setup_msg_ring(PVSCSIState *s)

{

    PVSCSICmdDescSetupMsgRing *rc =

        (PVSCSICmdDescSetupMsgRing *) s->curr_cmd_data;



    trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_MSG_RING");



    if (!s->use_msg) {

        return PVSCSI_COMMAND_PROCESSING_FAILED;

    }



    if (s->rings_info_valid) {

        pvscsi_ring_init_msg(&s->rings, rc);

        s->msg_ring_info_valid = TRUE;

    }

    return sizeof(PVSCSICmdDescSetupMsgRing) / sizeof(uint32_t);

}

        pvscsi_ring_init_msg(&s->rings, rc);
FUNC_0(PVSCSIState *VAR_0)

{

    PVSCSICmdDescSetupMsgRing *rc =

        (PVSCSICmdDescSetupMsgRing *) VAR_0->curr_cmd_data;



    trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_MSG_RING");



    if (!VAR_0->use_msg) {

        return PVSCSI_COMMAND_PROCESSING_FAILED;

    }



    if (VAR_0->rings_info_valid) {

        pvscsi_ring_init_msg(&VAR_0->rings, rc);

        VAR_0->msg_ring_info_valid = TRUE;

    }

    return sizeof(PVSCSICmdDescSetupMsgRing) / sizeof(uint32_t);

}

FUNC_0(PVSCSIState *VAR_0)
{ PVSCSICmdDescSetupMsgRing *rc =
(PVSCSICmdDescSetupMsgRing *) VAR_0->curr_cmd_data; trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_MSG_RING"); if (!VAR_0->use_msg) { return PVSCSI_COMMAND_PROCESSING_FAILED; } if (VAR_0->rings_info_valid) { pvscsi_ring_init_msg(&VAR_0->rings, rc); VAR_0->msg_ring_info_valid = TRUE; } return sizeof(PVSCSICmdDescSetupMsgRing) / sizeof(uint32_t); }