Lines Matching refs:smmu_domain
127 static int qcom_tbu_halt(struct qcom_tbu *tbu, struct arm_smmu_domain *smmu_domain) in qcom_tbu_halt() argument
129 struct arm_smmu_device *smmu = smmu_domain->smmu; in qcom_tbu_halt()
130 int ret = 0, idx = smmu_domain->cfg.cbndx; in qcom_tbu_halt()
201 static phys_addr_t qcom_tbu_trigger_atos(struct arm_smmu_domain *smmu_domain, in qcom_tbu_trigger_atos() argument
263 static phys_addr_t qcom_iova_to_phys(struct arm_smmu_domain *smmu_domain, in qcom_iova_to_phys() argument
266 struct arm_smmu_device *smmu = smmu_domain->smmu; in qcom_iova_to_phys()
268 int idx = smmu_domain->cfg.cbndx; in qcom_iova_to_phys()
288 ret = qcom_tbu_halt(tbu, smmu_domain); in qcom_iova_to_phys()
320 phys = qcom_tbu_trigger_atos(smmu_domain, tbu, iova, sid); in qcom_iova_to_phys()
348 static phys_addr_t qcom_smmu_iova_to_phys_hard(struct arm_smmu_domain *smmu_domain, dma_addr_t iova) in qcom_smmu_iova_to_phys_hard() argument
350 struct arm_smmu_device *smmu = smmu_domain->smmu; in qcom_smmu_iova_to_phys_hard()
351 int idx = smmu_domain->cfg.cbndx; in qcom_smmu_iova_to_phys_hard()
358 return qcom_iova_to_phys(smmu_domain, iova, sid); in qcom_smmu_iova_to_phys_hard()
361 static phys_addr_t qcom_smmu_verify_fault(struct arm_smmu_domain *smmu_domain, dma_addr_t iova, u32… in qcom_smmu_verify_fault() argument
363 struct io_pgtable *iop = io_pgtable_ops_to_pgtable(smmu_domain->pgtbl_ops); in qcom_smmu_verify_fault()
364 struct arm_smmu_device *smmu = smmu_domain->smmu; in qcom_smmu_verify_fault()
368 phys = qcom_smmu_iova_to_phys_hard(smmu_domain, iova); in qcom_smmu_verify_fault()
370 phys_post_tlbiall = qcom_smmu_iova_to_phys_hard(smmu_domain, iova); in qcom_smmu_verify_fault()
383 struct arm_smmu_domain *smmu_domain = dev; in qcom_smmu_context_fault() local
384 struct io_pgtable_ops *ops = smmu_domain->pgtbl_ops; in qcom_smmu_context_fault()
385 struct arm_smmu_device *smmu = smmu_domain->smmu; in qcom_smmu_context_fault()
388 int idx = smmu_domain->cfg.cbndx; in qcom_smmu_context_fault()
402 ret = report_iommu_fault(&smmu_domain->domain, NULL, cfi.iova, in qcom_smmu_context_fault()
414 tmp = report_iommu_fault(&smmu_domain->domain, NULL, cfi.iova, in qcom_smmu_context_fault()
420 phys_addr_t phys_atos = qcom_smmu_verify_fault(smmu_domain, cfi.iova, cfi.fsr); in qcom_smmu_context_fault()