FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * mrsas_free_ioc_cmd:	Allocates memory for IOC Init command
 * input:				Adapter soft state
 *
 * Deallocates memory of the IOC Init cmd.
 */
Allocates memory for IOC Init command
input:                               Adapter soft state

Deallocates memory of the IOC Init cmd.
Allocates memory for IOC Init command input : Adapter soft state Deallocates memory of the IOC Init cmd .
void
mrsas_free_ioc_cmd(struct mrsas_softc *sc)
{
	if (sc->ioc_init_phys_mem)
		bus_dmamap_unload(sc->ioc_init_tag, sc->ioc_init_dmamap);
	if (sc->ioc_init_mem != NULL)
		bus_dmamem_free(sc->ioc_init_tag, sc->ioc_init_mem, sc->ioc_init_dmamap);
	if (sc->ioc_init_tag != NULL)
		bus_dma_tag_destroy(sc->ioc_init_tag);
}
void mrsas_free_ioc_cmd ( struct mrsas_softc * sc ) { if ( sc -> ioc_init_phys_mem ) bus_dmamap_unload ( sc -> ioc_init_tag , sc -> ioc_init_dmamap ) ; if ( sc -> ioc_init_mem != NULL ) bus_dmamem_free ( sc -> ioc_init_tag , sc -> ioc_init_mem , sc -> ioc_init_dmamap ) ; if ( sc -> ioc_init_tag != NULL ) bus_dma_tag_destroy ( sc -> ioc_init_tag ) ; }
mrsas_free_ioc_cmd:  Allocates memory for IOC Init command
 input:                               Adapter soft state
mrsas_free_ioc_cmd : Allocates memory for IOC Init command input : Adapter soft state