Lines Matching refs:ctx_drvdata
90 struct msm_iommu_ctx_drvdata *ctx_drvdata; in __flush_iotlb() local
108 list_for_each_entry(ctx_drvdata, &priv->list_attached, attached_elm) { in __flush_iotlb()
109 if (!ctx_drvdata->pdev || !ctx_drvdata->pdev->dev.parent) in __flush_iotlb()
112 iommu_drvdata = dev_get_drvdata(ctx_drvdata->pdev->dev.parent); in __flush_iotlb()
119 SET_CTX_TLBIALL(iommu_drvdata->base, ctx_drvdata->num, 0); in __flush_iotlb()
278 struct msm_iommu_ctx_drvdata *ctx_drvdata; in msm_iommu_attach_dev() local
293 ctx_drvdata = dev_get_drvdata(dev); in msm_iommu_attach_dev()
296 if (!iommu_drvdata || !ctx_drvdata || !ctx_dev) { in msm_iommu_attach_dev()
301 if (!list_empty(&ctx_drvdata->attached_elm)) { in msm_iommu_attach_dev()
307 if (tmp_drvdata == ctx_drvdata) { in msm_iommu_attach_dev()
320 list_add(&(ctx_drvdata->attached_elm), &priv->list_attached); in msm_iommu_attach_dev()
334 struct msm_iommu_ctx_drvdata *ctx_drvdata; in msm_iommu_detach_dev() local
345 ctx_drvdata = dev_get_drvdata(dev); in msm_iommu_detach_dev()
348 if (!iommu_drvdata || !ctx_drvdata || !ctx_dev) in msm_iommu_detach_dev()
361 list_del_init(&ctx_drvdata->attached_elm); in msm_iommu_detach_dev()
559 struct msm_iommu_ctx_drvdata *ctx_drvdata; in msm_iommu_iova_to_phys() local
572 ctx_drvdata = list_entry(priv->list_attached.next, in msm_iommu_iova_to_phys()
574 iommu_drvdata = dev_get_drvdata(ctx_drvdata->pdev->dev.parent); in msm_iommu_iova_to_phys()
577 ctx = ctx_drvdata->num; in msm_iommu_iova_to_phys()