예제 #1
0
/*
 * ispmmu_vunmap - Unmap a device address from the ISP MMU
 * @dev: Device pointer specific to the OMAP3 ISP.
 * @da: Device address generated from a ispmmu_vmap call.
 */
static void ispmmu_vunmap(struct isp_device *isp, dma_addr_t da)
{
	struct sg_table *sgt;

	sgt = iommu_vunmap(isp->iommu, (u32)da);
	kfree(sgt);
}
예제 #2
0
void ispmmu_vunmap(dma_addr_t da)
{
	struct sg_table *sgt;

	sgt = iommu_vunmap(isp_iommu, (u32)da);
	if (!sgt)
		return;
	sg_free_table(sgt);
	kfree(sgt);
}