FreeBSD/sys/mips/mips/busdma_machdep.c
/*
 * Release the mapping held by map.
 */
Release the mapping held by map.
Release the mapping held by map .
void
_bus_dmamap_unload(bus_dma_tag_t dmat, bus_dmamap_t map)
{
	struct bounce_page *bpage;
	while ((bpage = STAILQ_FIRST(&map->bpages)) != NULL) {
		STAILQ_REMOVE_HEAD(&map->bpages, links);
		free_bounce_page(dmat, bpage);
	}
	map->sync_count = 0;
	return;
}
void _bus_dmamap_unload ( bus_dma_tag_t dmat , bus_dmamap_t map ) { struct bounce_page * bpage ; while ( ( bpage = STAILQ_FIRST ( & map -> bpages ) ) != NULL ) { STAILQ_REMOVE_HEAD ( & map -> bpages , links ) ; free_bounce_page ( dmat , bpage ) ; } map -> sync_count = 0 ; return ; }
Release the mapping held by map.
Release the mapping held by map .