FreeBSD/sys/dev/drm2/drm_pci.c
/**
 * \brief Free a PCI consistent memory block without freeing its descriptor.
 *
 * This function is for internal use in the Linux-specific DRM core code.
 */
\brief Free a PCI consistent memory block without freeing its descriptor.
This function is for internal use in the Linux-specific DRM core code.
\ brief Free a PCI consistent memory block without freeing its descriptor . This function is for internal use in the Linux - specific DRM core code .
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);
}
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 ) ; }
\brief Free a PCI consistent memory block without freeing its descriptor.
\ brief Free a PCI consistent memory block without freeing its descriptor .