FreeBSD/sys/dev/mrsas/mrsas_ioctl.c
/*
 * mrsas_free_frames:	Frees memory for  MFI frames
 * input:				Adapter soft state
 *
 * Deallocates MFI frames memory.  Called from mrsas_free_mem() during detach
 * and error case during creation of frame pool.
 */
Frees memory for  MFI frames
input:                               Adapter soft state

Deallocates MFI frames memory.  Called from mrsas_free_mem() during detach
and error case during creation of frame pool.
Frees memory for MFI frames input : Adapter soft state Deallocates MFI frames memory . Called from mrsas_free_mem () during detach and error case during creation of frame pool .
void
mrsas_free_frame(struct mrsas_softc *sc, struct mrsas_mfi_cmd *cmd)
{
	if (cmd->frame_phys_addr)
		bus_dmamap_unload(sc->mficmd_frame_tag, cmd->frame_dmamap);
	if (cmd->frame_mem != NULL)
		bus_dmamem_free(sc->mficmd_frame_tag, cmd->frame_mem, cmd->frame_dmamap);
}
void mrsas_free_frame ( struct mrsas_softc * sc , struct mrsas_mfi_cmd * cmd ) { if ( cmd -> frame_phys_addr ) bus_dmamap_unload ( sc -> mficmd_frame_tag , cmd -> frame_dmamap ) ; if ( cmd -> frame_mem != NULL ) bus_dmamem_free ( sc -> mficmd_frame_tag , cmd -> frame_mem , cmd -> frame_dmamap ) ; }
mrsas_free_frames:   Frees memory for  MFI frames
 input:                               Adapter soft state
mrsas_free_frames : Frees memory for MFI frames input : Adapter soft state