Lines Matching refs:s2crs
903 struct arm_smmu_s2cr *s2cr = smmu->s2crs + idx; in arm_smmu_write_s2cr()
1012 if (--smmu->s2crs[idx].count) in arm_smmu_free_sme()
1015 smmu->s2crs[idx] = s2cr_init_val; in arm_smmu_free_sme()
1046 if (smrs && smmu->s2crs[idx].count == 0) { in arm_smmu_master_alloc_smes()
1051 smmu->s2crs[idx].count++; in arm_smmu_master_alloc_smes()
1091 struct arm_smmu_s2cr *s2cr = smmu->s2crs; in arm_smmu_domain_add_master()
1460 if (group && smmu->s2crs[idx].group && in arm_smmu_device_group()
1461 group != smmu->s2crs[idx].group) { in arm_smmu_device_group()
1466 group = smmu->s2crs[idx].group; in arm_smmu_device_group()
1484 smmu->s2crs[idx].group = group; in arm_smmu_device_group()
1760 smmu->s2crs = devm_kmalloc_array(smmu->dev, size, sizeof(*smmu->s2crs), in arm_smmu_device_cfg_probe()
1762 if (!smmu->s2crs) in arm_smmu_device_cfg_probe()
1765 smmu->s2crs[i] = s2cr_init_val; in arm_smmu_device_cfg_probe()
2037 if (smmu->s2crs[idx].count == 0) { in arm_smmu_rmr_install_bypass_smr()
2042 smmu->s2crs[idx].count++; in arm_smmu_rmr_install_bypass_smr()
2043 smmu->s2crs[idx].type = S2CR_TYPE_BYPASS; in arm_smmu_rmr_install_bypass_smr()
2044 smmu->s2crs[idx].privcfg = S2CR_PRIVCFG_DEFAULT; in arm_smmu_rmr_install_bypass_smr()