Home
last modified time | relevance | path

Searched refs:s2cr (Results 1 – 2 of 2) sorted by relevance

/drivers/iommu/
Darm-smmu-qcom.c17 u32 s2cr; in qcom_sdm845_smmu500_cfg_probe() local
23 s2cr = arm_smmu_gr0_read(smmu, ARM_SMMU_GR0_S2CR(i)); in qcom_sdm845_smmu500_cfg_probe()
28 smmu->smrs[i].valid = FIELD_GET(S2CR_EXIDVALID, s2cr); in qcom_sdm845_smmu500_cfg_probe()
34 smmu->s2crs[i].type = FIELD_GET(S2CR_TYPE, s2cr); in qcom_sdm845_smmu500_cfg_probe()
35 smmu->s2crs[i].privcfg = FIELD_GET(S2CR_PRIVCFG, s2cr); in qcom_sdm845_smmu500_cfg_probe()
36 smmu->s2crs[i].cbndx = FIELD_GET(S2CR_CBNDX, s2cr); in qcom_sdm845_smmu500_cfg_probe()
Darm-smmu.c923 struct arm_smmu_s2cr *s2cr = smmu->s2crs + idx; in arm_smmu_write_s2cr() local
924 u32 reg = FIELD_PREP(S2CR_TYPE, s2cr->type) | in arm_smmu_write_s2cr()
925 FIELD_PREP(S2CR_CBNDX, s2cr->cbndx) | in arm_smmu_write_s2cr()
926 FIELD_PREP(S2CR_PRIVCFG, s2cr->privcfg); in arm_smmu_write_s2cr()
947 u32 s2cr; in arm_smmu_test_smr_masks() local
956 s2cr = arm_smmu_gr0_read(smmu, ARM_SMMU_GR0_S2CR(idx)); in arm_smmu_test_smr_masks()
957 if (!FIELD_GET(S2CR_EXIDVALID, s2cr)) in arm_smmu_test_smr_masks()
1128 struct arm_smmu_s2cr *s2cr = smmu->s2crs; in arm_smmu_domain_add_master() local
1139 if (type == s2cr[idx].type && cbndx == s2cr[idx].cbndx) in arm_smmu_domain_add_master()
1142 s2cr[idx].type = type; in arm_smmu_domain_add_master()
[all …]