Searched refs:s2cr (Results 1 – 2 of 2) sorted by relevance
21 u32 s2cr; in qcom_sdm845_smmu500_cfg_probe() local27 s2cr = arm_smmu_gr0_read(smmu, ARM_SMMU_GR0_S2CR(i)); in qcom_sdm845_smmu500_cfg_probe()34 s2cr); in qcom_sdm845_smmu500_cfg_probe()42 smmu->s2crs[i].type = FIELD_GET(ARM_SMMU_S2CR_TYPE, s2cr); in qcom_sdm845_smmu500_cfg_probe()43 smmu->s2crs[i].privcfg = FIELD_GET(ARM_SMMU_S2CR_PRIVCFG, s2cr); in qcom_sdm845_smmu500_cfg_probe()44 smmu->s2crs[i].cbndx = FIELD_GET(ARM_SMMU_S2CR_CBNDX, s2cr); in qcom_sdm845_smmu500_cfg_probe()252 struct arm_smmu_s2cr *s2cr = smmu->s2crs + idx; in qcom_smmu_write_s2cr() local254 u32 cbndx = s2cr->cbndx; in qcom_smmu_write_s2cr()255 u32 type = s2cr->type; in qcom_smmu_write_s2cr()281 FIELD_PREP(ARM_SMMU_S2CR_PRIVCFG, s2cr->privcfg); in qcom_smmu_write_s2cr()
912 struct arm_smmu_s2cr *s2cr = smmu->s2crs + idx; in arm_smmu_write_s2cr() local920 reg = FIELD_PREP(ARM_SMMU_S2CR_TYPE, s2cr->type) | in arm_smmu_write_s2cr()921 FIELD_PREP(ARM_SMMU_S2CR_CBNDX, s2cr->cbndx) | in arm_smmu_write_s2cr()922 FIELD_PREP(ARM_SMMU_S2CR_PRIVCFG, s2cr->privcfg); in arm_smmu_write_s2cr()1107 struct arm_smmu_s2cr *s2cr = smmu->s2crs; in arm_smmu_domain_add_master() local1118 if (type == s2cr[idx].type && cbndx == s2cr[idx].cbndx) in arm_smmu_domain_add_master()1122 if (type == S2CR_TYPE_BYPASS && s2cr[idx].pinned) in arm_smmu_domain_add_master()1125 s2cr[idx].type = type; in arm_smmu_domain_add_master()1126 s2cr[idx].privcfg = S2CR_PRIVCFG_DEFAULT; in arm_smmu_domain_add_master()1127 s2cr[idx].cbndx = cbndx; in arm_smmu_domain_add_master()