Searched refs:iommu_drvdata (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/iommu/
H A Dmsm_iommu.c89 struct msm_iommu_drvdata *iommu_drvdata; __flush_iotlb() local
112 iommu_drvdata = dev_get_drvdata(ctx_drvdata->pdev->dev.parent); __flush_iotlb()
113 BUG_ON(!iommu_drvdata); __flush_iotlb()
115 ret = __enable_clocks(iommu_drvdata); __flush_iotlb()
119 SET_CTX_TLBIALL(iommu_drvdata->base, ctx_drvdata->num, 0); __flush_iotlb()
120 __disable_clocks(iommu_drvdata); __flush_iotlb()
277 struct msm_iommu_drvdata *iommu_drvdata; msm_iommu_attach_dev() local
292 iommu_drvdata = dev_get_drvdata(dev->parent); msm_iommu_attach_dev()
296 if (!iommu_drvdata || !ctx_drvdata || !ctx_dev) { msm_iommu_attach_dev()
312 ret = __enable_clocks(iommu_drvdata); msm_iommu_attach_dev()
316 __program_context(iommu_drvdata->base, ctx_dev->num, msm_iommu_attach_dev()
319 __disable_clocks(iommu_drvdata); msm_iommu_attach_dev()
333 struct msm_iommu_drvdata *iommu_drvdata; msm_iommu_detach_dev() local
344 iommu_drvdata = dev_get_drvdata(dev->parent); msm_iommu_detach_dev()
348 if (!iommu_drvdata || !ctx_drvdata || !ctx_dev) msm_iommu_detach_dev()
355 ret = __enable_clocks(iommu_drvdata); msm_iommu_detach_dev()
359 __reset_context(iommu_drvdata->base, ctx_dev->num); msm_iommu_detach_dev()
360 __disable_clocks(iommu_drvdata); msm_iommu_detach_dev()
558 struct msm_iommu_drvdata *iommu_drvdata; msm_iommu_iova_to_phys() local
574 iommu_drvdata = dev_get_drvdata(ctx_drvdata->pdev->dev.parent); msm_iommu_iova_to_phys()
576 base = iommu_drvdata->base; msm_iommu_iova_to_phys()
579 ret = __enable_clocks(iommu_drvdata); msm_iommu_iova_to_phys()
598 __disable_clocks(iommu_drvdata); msm_iommu_iova_to_phys()

Completed in 104 milliseconds