FreeBSD/sys/dev/drm/drm_pci.c
/**
 * \brief Free a DMA-accessible consistent memory block.
 */
\brief Free a DMA-accessible consistent memory block.
\ brief Free a DMA - accessible consistent memory block .
void
drm_pci_free(struct drm_device *dev, drm_dma_handle_t *dmah)
{
	if (dmah == NULL)
		return;
	bus_dmamap_unload(dmah->tag, dmah->map);
	bus_dmamem_free(dmah->tag, dmah->vaddr, dmah->map);
	bus_dma_tag_destroy(dmah->tag);
	free(dmah, DRM_MEM_DMA);
}
void drm_pci_free ( struct drm_device * dev , drm_dma_handle_t * dmah ) { if ( dmah == NULL ) return ; bus_dmamap_unload ( dmah -> tag , dmah -> map ) ; bus_dmamem_free ( dmah -> tag , dmah -> vaddr , dmah -> map ) ; bus_dma_tag_destroy ( dmah -> tag ) ; free ( dmah , DRM_MEM_DMA ) ; }
\brief Free a DMA-accessible consistent memory block.
\ brief Free a DMA - accessible consistent memory block .