Searched refs:ctx_drvdata (Results 1 – 2 of 2) sorted by relevance
90 struct msm_iommu_ctx_drvdata *ctx_drvdata; in __flush_iotlb() local108 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() local293 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()[all …]
268 struct msm_iommu_ctx_drvdata *ctx_drvdata; in msm_iommu_ctx_probe() local278 ctx_drvdata = kzalloc(sizeof(*ctx_drvdata), GFP_KERNEL); in msm_iommu_ctx_probe()279 if (!ctx_drvdata) in msm_iommu_ctx_probe()282 ctx_drvdata->num = c->num; in msm_iommu_ctx_probe()283 ctx_drvdata->pdev = pdev; in msm_iommu_ctx_probe()285 INIT_LIST_HEAD(&ctx_drvdata->attached_elm); in msm_iommu_ctx_probe()286 platform_set_drvdata(pdev, ctx_drvdata); in msm_iommu_ctx_probe()331 kfree(ctx_drvdata); in msm_iommu_ctx_probe()