pvscsi_on_cmd_setup_rings(PVSCSIState *s)

{

    PVSCSICmdDescSetupRings *rc =

        (PVSCSICmdDescSetupRings *) s->curr_cmd_data;



    trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS");



    pvscsi_dbg_dump_tx_rings_config(rc);

    if (pvscsi_ring_init_data(&s->rings, rc) < 0) {

        return PVSCSI_COMMAND_PROCESSING_FAILED;

    }



    s->rings_info_valid = TRUE;

    return PVSCSI_COMMAND_PROCESSING_SUCCEEDED;

}

pvscsi_on_cmd_setup_rings(PVSCSIState *s)

{

    PVSCSICmdDescSetupRings *rc =

        (PVSCSICmdDescSetupRings *) s->curr_cmd_data;



    trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS");



    pvscsi_dbg_dump_tx_rings_config(rc);

    if (pvscsi_ring_init_data(&s->rings, rc) < 0) {

        return PVSCSI_COMMAND_PROCESSING_FAILED;

    }



    s->rings_info_valid = TRUE;

    return PVSCSI_COMMAND_PROCESSING_SUCCEEDED;

}

FUNC_0(PVSCSIState *VAR_0)

{

    PVSCSICmdDescSetupRings *rc =

        (PVSCSICmdDescSetupRings *) VAR_0->curr_cmd_data;



    trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS");



    pvscsi_dbg_dump_tx_rings_config(rc);

    if (pvscsi_ring_init_data(&VAR_0->rings, rc) < 0) {

        return PVSCSI_COMMAND_PROCESSING_FAILED;

    }



    VAR_0->rings_info_valid = TRUE;

    return PVSCSI_COMMAND_PROCESSING_SUCCEEDED;

}

FUNC_0(PVSCSIState *VAR_0)
{ PVSCSICmdDescSetupRings *rc =
(PVSCSICmdDescSetupRings *) VAR_0->curr_cmd_data; trace_pvscsi_on_cmd_arrived("PVSCSI_CMD_SETUP_RINGS"); pvscsi_dbg_dump_tx_rings_config(rc); if (pvscsi_ring_init_data(&VAR_0->rings, rc) < 0) { return PVSCSI_COMMAND_PROCESSING_FAILED; } VAR_0->rings_info_valid = TRUE; return PVSCSI_COMMAND_PROCESSING_SUCCEEDED; }