Lines Matching refs:qsmmu
47 struct qcom_smmu *qsmmu = to_qcom_smmu(smmu); in qcom_adreno_smmu_write_sctlr() local
55 if (qsmmu->stall_enabled & BIT(idx)) in qcom_adreno_smmu_write_sctlr()
81 struct qcom_smmu *qsmmu = to_qcom_smmu(smmu_domain->smmu); in qcom_adreno_smmu_set_stall() local
84 qsmmu->stall_enabled |= BIT(cfg->cbndx); in qcom_adreno_smmu_set_stall()
86 qsmmu->stall_enabled &= ~BIT(cfg->cbndx); in qcom_adreno_smmu_set_stall()
279 struct qcom_smmu *qsmmu = to_qcom_smmu(smmu); in qcom_smmu_cfg_probe() local
325 qsmmu->bypass_quirk = true; in qcom_smmu_cfg_probe()
326 qsmmu->bypass_cbndx = smmu->num_context_banks - 1; in qcom_smmu_cfg_probe()
328 set_bit(qsmmu->bypass_cbndx, smmu->context_map); in qcom_smmu_cfg_probe()
330 arm_smmu_cb_write(smmu, qsmmu->bypass_cbndx, ARM_SMMU_CB_SCTLR, 0); in qcom_smmu_cfg_probe()
333 arm_smmu_gr1_write(smmu, ARM_SMMU_GR1_CBAR(qsmmu->bypass_cbndx), reg); in qcom_smmu_cfg_probe()
371 struct qcom_smmu *qsmmu = to_qcom_smmu(smmu); in qcom_smmu_write_s2cr() local
376 if (qsmmu->bypass_quirk) { in qcom_smmu_write_s2cr()
385 cbndx = qsmmu->bypass_cbndx; in qcom_smmu_write_s2cr()
487 struct qcom_smmu *qsmmu; in qcom_smmu_create() local
505 qsmmu = devm_krealloc(smmu->dev, smmu, sizeof(*qsmmu), GFP_KERNEL); in qcom_smmu_create()
506 if (!qsmmu) in qcom_smmu_create()
509 qsmmu->smmu.impl = impl; in qcom_smmu_create()
510 qsmmu->cfg = data->cfg; in qcom_smmu_create()
512 return &qsmmu->smmu; in qcom_smmu_create()