Lines Matching refs:qsmmu
45 struct qcom_smmu *qsmmu = to_qcom_smmu(smmu); in qcom_adreno_smmu_write_sctlr() local
53 if (qsmmu->stall_enabled & BIT(idx)) in qcom_adreno_smmu_write_sctlr()
79 struct qcom_smmu *qsmmu = to_qcom_smmu(smmu_domain->smmu); in qcom_adreno_smmu_set_stall() local
82 qsmmu->stall_enabled |= BIT(cfg->cbndx); in qcom_adreno_smmu_set_stall()
84 qsmmu->stall_enabled &= ~BIT(cfg->cbndx); in qcom_adreno_smmu_set_stall()
272 struct qcom_smmu *qsmmu = to_qcom_smmu(smmu); in qcom_smmu_cfg_probe() local
289 qsmmu->bypass_quirk = true; in qcom_smmu_cfg_probe()
290 qsmmu->bypass_cbndx = smmu->num_context_banks - 1; in qcom_smmu_cfg_probe()
292 set_bit(qsmmu->bypass_cbndx, smmu->context_map); in qcom_smmu_cfg_probe()
294 arm_smmu_cb_write(smmu, qsmmu->bypass_cbndx, ARM_SMMU_CB_SCTLR, 0); in qcom_smmu_cfg_probe()
297 arm_smmu_gr1_write(smmu, ARM_SMMU_GR1_CBAR(qsmmu->bypass_cbndx), reg); in qcom_smmu_cfg_probe()
322 struct qcom_smmu *qsmmu = to_qcom_smmu(smmu); in qcom_smmu_write_s2cr() local
327 if (qsmmu->bypass_quirk) { in qcom_smmu_write_s2cr()
336 cbndx = qsmmu->bypass_cbndx; in qcom_smmu_write_s2cr()
429 struct qcom_smmu *qsmmu; in qcom_smmu_create() local
446 qsmmu = devm_krealloc(smmu->dev, smmu, sizeof(*qsmmu), GFP_KERNEL); in qcom_smmu_create()
447 if (!qsmmu) in qcom_smmu_create()
450 qsmmu->smmu.impl = impl; in qcom_smmu_create()
451 qsmmu->cfg = data->cfg; in qcom_smmu_create()
453 return &qsmmu->smmu; in qcom_smmu_create()