FreeBSD/sys/dev/mrsas/mrsas.c
/*
 * mrsas_free_tmp_dcmd:      Free memory for temporary command input:
 * temporary dcmd pointer
 *
 * Deallocates memory of the temporary command for use in the construction of
 * the internal DCMD.
 */
Free memory for temporary command input:
temporary dcmd pointer

Deallocates memory of the temporary command for use in the construction of
the internal DCMD.
Free memory for temporary command input : temporary dcmd pointer Deallocates memory of the temporary command for use in the construction of the internal DCMD .
void
mrsas_free_tmp_dcmd(struct mrsas_tmp_dcmd *tmp)
{
	if (tmp->tmp_dcmd_phys_addr)
		bus_dmamap_unload(tmp->tmp_dcmd_tag, tmp->tmp_dcmd_dmamap);
	if (tmp->tmp_dcmd_mem != NULL)
		bus_dmamem_free(tmp->tmp_dcmd_tag, tmp->tmp_dcmd_mem, tmp->tmp_dcmd_dmamap);
	if (tmp->tmp_dcmd_tag != NULL)
		bus_dma_tag_destroy(tmp->tmp_dcmd_tag);
}
void mrsas_free_tmp_dcmd ( struct mrsas_tmp_dcmd * tmp ) { if ( tmp -> tmp_dcmd_phys_addr ) bus_dmamap_unload ( tmp -> tmp_dcmd_tag , tmp -> tmp_dcmd_dmamap ) ; if ( tmp -> tmp_dcmd_mem != NULL ) bus_dmamem_free ( tmp -> tmp_dcmd_tag , tmp -> tmp_dcmd_mem , tmp -> tmp_dcmd_dmamap ) ; if ( tmp -> tmp_dcmd_tag != NULL ) bus_dma_tag_destroy ( tmp -> tmp_dcmd_tag ) ; }
mrsas_free_tmp_dcmd:      Free memory for temporary command input:
 temporary dcmd pointer
mrsas_free_tmp_dcmd : Free memory for temporary command input : temporary dcmd pointer