Lines Matching refs:val
32 uint32_t val, cb_idx, smmu_id, ctx_base; in tegra_smmu_init() local
37 val = tegra_smmu_read_32(smmu_id, SMMU_GSR0_SECURE_ACR); in tegra_smmu_init()
38 val |= SMMU_GSR0_PGSIZE_64K; in tegra_smmu_init()
39 val &= (uint32_t)~SMMU_ACR_CACHE_LOCK_ENABLE_BIT; in tegra_smmu_init()
40 tegra_smmu_write_32(smmu_id, SMMU_GSR0_SECURE_ACR, val); in tegra_smmu_init()
43 val = tegra_smmu_read_32(smmu_id, SMMU_GNSR_ACR); in tegra_smmu_init()
44 val &= (uint32_t)~SMMU_ACR_CACHE_LOCK_ENABLE_BIT; in tegra_smmu_init()
45 tegra_smmu_write_32(smmu_id, SMMU_GNSR_ACR, val); in tegra_smmu_init()
51 val = tegra_smmu_read_32(smmu_id, in tegra_smmu_init()
53 val &= (uint32_t)~SMMU_CBn_ACTLR_CPRE_BIT; in tegra_smmu_init()
55 (SMMU_GSR0_PGSIZE_64K * cb_idx), val); in tegra_smmu_init()
59 val = tegra_smmu_read_32(smmu_id, SMMU_GNSR_ACR); in tegra_smmu_init()
60 val |= (uint32_t)SMMU_ACR_CACHE_LOCK_ENABLE_BIT; in tegra_smmu_init()
61 tegra_smmu_write_32(smmu_id, SMMU_GNSR_ACR, val); in tegra_smmu_init()
64 val = tegra_smmu_read_32(smmu_id, SMMU_GSR0_SECURE_ACR); in tegra_smmu_init()
65 val |= (uint32_t)SMMU_ACR_CACHE_LOCK_ENABLE_BIT; in tegra_smmu_init()
66 tegra_smmu_write_32(smmu_id, SMMU_GSR0_SECURE_ACR, val); in tegra_smmu_init()
75 uint32_t cb_idx, ctx_base, smmu_id, val; in tegra_smmu_verify() local
81 val = tegra_smmu_read_32(smmu_id, SMMU_GSR0_SECURE_ACR); in tegra_smmu_verify()
82 if (0U == (val & SMMU_GSR0_PGSIZE_64K)) { in tegra_smmu_verify()
84 __func__, smmu_id, val); in tegra_smmu_verify()
89 if (0U == (val & SMMU_ACR_CACHE_LOCK_ENABLE_BIT)) { in tegra_smmu_verify()
91 __func__, smmu_id, val); in tegra_smmu_verify()
96 val = tegra_smmu_read_32(smmu_id, SMMU_GNSR_ACR); in tegra_smmu_verify()
97 if (0U == (val & SMMU_ACR_CACHE_LOCK_ENABLE_BIT)) { in tegra_smmu_verify()
99 __func__, smmu_id, val); in tegra_smmu_verify()
107 val = tegra_smmu_read_32(smmu_id, in tegra_smmu_verify()
109 if (0U != (val & SMMU_CBn_ACTLR_CPRE_BIT)) { in tegra_smmu_verify()
111 __func__, smmu_id, cb_idx, val); in tegra_smmu_verify()