static void megasas_unmap_frame(MegasasState *s, MegasasCmd *cmd)

{

    PCIDevice *p = PCI_DEVICE(s);



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

    cmd->frame = NULL;

    cmd->pa = 0;

    clear_bit(cmd->index, s->frame_map);

}

static void megasas_unmap_frame(MegasasState *s, MegasasCmd *cmd)

{

    PCIDevice *p = PCI_DEVICE(s);



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

    cmd->frame = NULL;

    cmd->pa = 0;

    clear_bit(cmd->index, s->frame_map);

}

static void FUNC_0(MegasasState *VAR_0, MegasasCmd *VAR_1)

{

    PCIDevice *p = PCI_DEVICE(VAR_0);



    pci_dma_unmap(p, VAR_1->frame, VAR_1->pa_size, 0, 0);

    VAR_1->frame = NULL;

    VAR_1->pa = 0;

    clear_bit(VAR_1->index, VAR_0->frame_map);

}

static void FUNC_0(MegasasState *VAR_0, MegasasCmd *VAR_1)
{ PCIDevice *p = PCI_DEVICE(VAR_0); pci_dma_unmap(p, VAR_1->frame, VAR_1->pa_size, 0, 0); VAR_1->frame = NULL; VAR_1->pa = 0; clear_bit(VAR_1->index, VAR_0->frame_map); }