static void megasas_reset_frames(MegasasState *s)

{

    PCIDevice *pcid = PCI_DEVICE(s);

    int i;

    MegasasCmd *cmd;



    for (i = 0; i < s->fw_cmds; i++) {

        cmd = &s->frames[i];

        if (cmd->pa) {

            pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0);

            cmd->frame = NULL;

            cmd->pa = 0;

        }

    }

}

static void megasas_reset_frames(MegasasState *s)

{

    PCIDevice *pcid = PCI_DEVICE(s);

    int i;

    MegasasCmd *cmd;



    for (i = 0; i < s->fw_cmds; i++) {

        cmd = &s->frames[i];

        if (cmd->pa) {

            pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0);

            cmd->frame = NULL;

            cmd->pa = 0;

        }

    }

}

    PCIDevice *pcid = PCI_DEVICE(s);             pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0);             cmd->frame = NULL;             cmd->pa = 0;
static void FUNC_0(MegasasState *VAR_0)

{

    PCIDevice *pcid = PCI_DEVICE(VAR_0);

    int VAR_1;

    MegasasCmd *cmd;



    for (VAR_1 = 0; VAR_1 < VAR_0->fw_cmds; VAR_1++) {

        cmd = &VAR_0->frames[VAR_1];

        if (cmd->pa) {

            pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0);

            cmd->frame = NULL;

            cmd->pa = 0;

        }

    }

}

static void FUNC_0(MegasasState *VAR_0)
{ PCIDevice *pcid = PCI_DEVICE(VAR_0); int VAR_1; MegasasCmd *cmd; for (VAR_1 = 0; VAR_1 < VAR_0->fw_cmds; VAR_1++) { cmd = &VAR_0->frames[VAR_1]; if (cmd->pa) { pci_dma_unmap(pcid, cmd->frame, cmd->pa_size, 0, 0); cmd->frame = NULL; cmd->pa = 0; } } }