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

/linux-4.4.14/drivers/iommu/
H A Dmsm_iommu.c90 struct msm_iommu_ctx_drvdata *ctx_drvdata; __flush_iotlb() local
108 list_for_each_entry(ctx_drvdata, &priv->list_attached, attached_elm) { __flush_iotlb()
110 BUG_ON(!ctx_drvdata->pdev || !ctx_drvdata->pdev->dev.parent); __flush_iotlb()
112 iommu_drvdata = dev_get_drvdata(ctx_drvdata->pdev->dev.parent); __flush_iotlb()
119 SET_CTX_TLBIALL(iommu_drvdata->base, ctx_drvdata->num, 0); __flush_iotlb()
278 struct msm_iommu_ctx_drvdata *ctx_drvdata; msm_iommu_attach_dev() local
293 ctx_drvdata = dev_get_drvdata(dev); msm_iommu_attach_dev()
296 if (!iommu_drvdata || !ctx_drvdata || !ctx_dev) { msm_iommu_attach_dev()
301 if (!list_empty(&ctx_drvdata->attached_elm)) { msm_iommu_attach_dev()
307 if (tmp_drvdata == ctx_drvdata) { msm_iommu_attach_dev()
320 list_add(&(ctx_drvdata->attached_elm), &priv->list_attached); msm_iommu_attach_dev()
334 struct msm_iommu_ctx_drvdata *ctx_drvdata; msm_iommu_detach_dev() local
345 ctx_drvdata = dev_get_drvdata(dev); msm_iommu_detach_dev()
348 if (!iommu_drvdata || !ctx_drvdata || !ctx_dev) msm_iommu_detach_dev()
361 list_del_init(&ctx_drvdata->attached_elm); msm_iommu_detach_dev()
559 struct msm_iommu_ctx_drvdata *ctx_drvdata; msm_iommu_iova_to_phys() local
572 ctx_drvdata = list_entry(priv->list_attached.next, msm_iommu_iova_to_phys()
574 iommu_drvdata = dev_get_drvdata(ctx_drvdata->pdev->dev.parent); msm_iommu_iova_to_phys()
577 ctx = ctx_drvdata->num; msm_iommu_iova_to_phys()
H A Dmsm_iommu_dev.c268 struct msm_iommu_ctx_drvdata *ctx_drvdata; msm_iommu_ctx_probe() local
278 ctx_drvdata = kzalloc(sizeof(*ctx_drvdata), GFP_KERNEL); msm_iommu_ctx_probe()
279 if (!ctx_drvdata) msm_iommu_ctx_probe()
282 ctx_drvdata->num = c->num; msm_iommu_ctx_probe()
283 ctx_drvdata->pdev = pdev; msm_iommu_ctx_probe()
285 INIT_LIST_HEAD(&ctx_drvdata->attached_elm); msm_iommu_ctx_probe()
286 platform_set_drvdata(pdev, ctx_drvdata); msm_iommu_ctx_probe()
331 kfree(ctx_drvdata); msm_iommu_ctx_probe()

Completed in 63 milliseconds