FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * mrsas_free_ctlr_info_cmd:	Free memory for controller info command
 * input:						Adapter soft state
 *
 * Deallocates memory of the get controller info cmd.
 */
Free memory for controller info command
input:                                               Adapter soft state

Deallocates memory of the get controller info cmd.
Free memory for controller info command input : Adapter soft state Deallocates memory of the get controller info cmd .
void
mrsas_free_ctlr_info_cmd(struct mrsas_softc *sc)
{
	if (sc->ctlr_info_phys_addr)
		bus_dmamap_unload(sc->ctlr_info_tag, sc->ctlr_info_dmamap);
	if (sc->ctlr_info_mem != NULL)
		bus_dmamem_free(sc->ctlr_info_tag, sc->ctlr_info_mem, sc->ctlr_info_dmamap);
	if (sc->ctlr_info_tag != NULL)
		bus_dma_tag_destroy(sc->ctlr_info_tag);
}
void mrsas_free_ctlr_info_cmd ( struct mrsas_softc * sc ) { if ( sc -> ctlr_info_phys_addr ) bus_dmamap_unload ( sc -> ctlr_info_tag , sc -> ctlr_info_dmamap ) ; if ( sc -> ctlr_info_mem != NULL ) bus_dmamem_free ( sc -> ctlr_info_tag , sc -> ctlr_info_mem , sc -> ctlr_info_dmamap ) ; if ( sc -> ctlr_info_tag != NULL ) bus_dma_tag_destroy ( sc -> ctlr_info_tag ) ; }
mrsas_free_ctlr_info_cmd:    Free memory for controller info command
 input:                                               Adapter soft state
mrsas_free_ctlr_info_cmd : Free memory for controller info command input : Adapter soft state