FreeBSD/sys/sparc64/sparc64/bus_machdep.c
/*
 * Common function for freeing DMA-safe memory.  May be called by
 * bus-specific DMA memory free functions.
 */
Common function for freeing DMA-safe memory.  May be called by
bus-specific DMA memory free functions.
Common function for freeing DMA - safe memory . May be called by bus - specific DMA memory free functions .
static void
nexus_dmamem_free(bus_dma_tag_t dmat, void *vaddr, bus_dmamap_t map)
{
	if (dmat->dt_maxsize <= PAGE_SIZE &&
	    dmat->dt_alignment < dmat->dt_maxsize)
		free(vaddr, M_DEVBUF);
	else
		contigfree(vaddr, dmat->dt_maxsize, M_DEVBUF);
}
static void nexus_dmamem_free ( bus_dma_tag_t dmat , void * vaddr , bus_dmamap_t map ) { if ( dmat -> dt_maxsize <= PAGE_SIZE && dmat -> dt_alignment < dmat -> dt_maxsize ) free ( vaddr , M_DEVBUF ) ; else contigfree ( vaddr , dmat -> dt_maxsize , M_DEVBUF ) ; }
Common function for freeing DMA-safe memory.
Common function for freeing DMA - safe memory .