static void usb_msd_send_status(MSDState *s, USBPacket *p)

{

    struct usb_msd_csw csw;

    int len;



    csw.sig = cpu_to_le32(0x53425355);

    csw.tag = cpu_to_le32(s->tag);

    csw.residue = s->residue;

    csw.status = s->result;



    len = MIN(sizeof(csw), p->len);

    memcpy(p->data, &csw, len);

}

static void usb_msd_send_status(MSDState *s, USBPacket *p)

{

    struct usb_msd_csw csw;

    int len;



    csw.sig = cpu_to_le32(0x53425355);

    csw.tag = cpu_to_le32(s->tag);

    csw.residue = s->residue;

    csw.status = s->result;



    len = MIN(sizeof(csw), p->len);

    memcpy(p->data, &csw, len);

}

    len = MIN(sizeof(csw), p->len);     memcpy(p->data, &csw, len);     int len;
static void FUNC_0(MSDState *VAR_0, USBPacket *VAR_1)

{

    struct usb_msd_csw VAR_2;

    int VAR_3;



    VAR_2.sig = cpu_to_le32(0x53425355);

    VAR_2.tag = cpu_to_le32(VAR_0->tag);

    VAR_2.residue = VAR_0->residue;

    VAR_2.status = VAR_0->result;



    VAR_3 = MIN(sizeof(VAR_2), VAR_1->VAR_3);

    memcpy(VAR_1->data, &VAR_2, VAR_3);

}

static void FUNC_0(MSDState *VAR_0, USBPacket *VAR_1)
{ struct usb_msd_csw VAR_2; int VAR_3; VAR_2.sig = cpu_to_le32(0x53425355); VAR_2.tag = cpu_to_le32(VAR_0->tag); VAR_2.residue = VAR_0->residue; VAR_2.status = VAR_0->result; VAR_3 = MIN(sizeof(VAR_2), VAR_1->VAR_3); memcpy(VAR_1->data, &VAR_2, VAR_3); }