static void scsi_dma_restart_cb(void *opaque, int running, int reason)

{

    SCSIDeviceState *s = opaque;

    SCSIRequest *r = s->requests;

    if (!running)

        return;



    while (r) {

        if (r->status & SCSI_REQ_STATUS_RETRY) {

            r->status &= ~SCSI_REQ_STATUS_RETRY;

            scsi_write_request(r); 

        }

        r = r->next;

    }

}

static void scsi_dma_restart_cb(void *opaque, int running, int reason)

{

    SCSIDeviceState *s = opaque;

    SCSIRequest *r = s->requests;

    if (!running)

        return;



    while (r) {

        if (r->status & SCSI_REQ_STATUS_RETRY) {

            r->status &= ~SCSI_REQ_STATUS_RETRY;

            scsi_write_request(r); 

        }

        r = r->next;

    }

}

static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)

{

    SCSIDeviceState *s = VAR_0;

    SCSIRequest *r = s->requests;

    if (!VAR_1)

        return;



    while (r) {

        if (r->status & SCSI_REQ_STATUS_RETRY) {

            r->status &= ~SCSI_REQ_STATUS_RETRY;

            scsi_write_request(r); 

        }

        r = r->next;

    }

}

static void FUNC_0(void *VAR_0, int VAR_1, int VAR_2)
{ SCSIDeviceState *s = VAR_0; SCSIRequest *r = s->requests; if (!VAR_1)
return; while (r) { if (r->status & SCSI_REQ_STATUS_RETRY) { r->status &= ~SCSI_REQ_STATUS_RETRY; scsi_write_request(r); } r = r->next; } }