FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * mrsas_free_evt_info_cmd:	Free memory for Event log info command
 * input:					Adapter soft state
 *
 * Deallocates memory for the event log info internal command.
 */
Free memory for Event log info command
input:                                       Adapter soft state

Deallocates memory for the event log info internal command.
Free memory for Event log info command input : Adapter soft state Deallocates memory for the event log info internal command .
void
mrsas_free_evt_log_info_cmd(struct mrsas_softc *sc)
{
	if (sc->el_info_phys_addr)
		bus_dmamap_unload(sc->el_info_tag, sc->el_info_dmamap);
	if (sc->el_info_mem != NULL)
		bus_dmamem_free(sc->el_info_tag, sc->el_info_mem, sc->el_info_dmamap);
	if (sc->el_info_tag != NULL)
		bus_dma_tag_destroy(sc->el_info_tag);
}
void mrsas_free_evt_log_info_cmd ( struct mrsas_softc * sc ) { if ( sc -> el_info_phys_addr ) bus_dmamap_unload ( sc -> el_info_tag , sc -> el_info_dmamap ) ; if ( sc -> el_info_mem != NULL ) bus_dmamem_free ( sc -> el_info_tag , sc -> el_info_mem , sc -> el_info_dmamap ) ; if ( sc -> el_info_tag != NULL ) bus_dma_tag_destroy ( sc -> el_info_tag ) ; }
mrsas_free_evt_info_cmd:     Free memory for Event log info command
 input:                                       Adapter soft state
mrsas_free_evt_info_cmd : Free memory for Event log info command input : Adapter soft state