Lines Matching defs:smmu_base
41 int __init smmuv3_security_init(uintptr_t smmu_base)
44 if (smmuv3_poll(smmu_base + SMMU_GBPA, SMMU_GBPA_UPDATE, 0U) != 0U)
51 mmio_setbits_32(smmu_base + SMMU_GBPA,
54 if (smmuv3_poll(smmu_base + SMMU_GBPA, SMMU_GBPA_UPDATE, 0U) != 0U)
58 if ((mmio_read_32(smmu_base + SMMU_S_IDR1) &
63 if (smmuv3_poll(smmu_base + SMMU_S_GBPA, SMMU_S_GBPA_UPDATE, 0U) != 0U)
66 mmio_setbits_32(smmu_base + SMMU_S_GBPA,
69 return smmuv3_poll(smmu_base + SMMU_S_GBPA, SMMU_S_GBPA_UPDATE, 0U);
77 int __init smmuv3_init(uintptr_t smmu_base)
80 if (smmuv3_security_init(smmu_base) != 0)
86 if ((mmio_read_32(smmu_base + SMMU_ROOT_IDR0) &
100 mmio_write_32(smmu_base + SMMU_ROOT_GPT_BASE_CFG,
108 mmio_write_64(smmu_base + SMMU_ROOT_GPT_BASE,
117 mmio_setbits_32(smmu_base + SMMU_ROOT_CR0,
122 if (smmuv3_poll(smmu_base + SMMU_ROOT_CR0ACK,
152 mmio_write_32(smmu_base + SMMU_S_INIT, SMMU_S_INIT_INV_ALL);
155 return smmuv3_poll(smmu_base + SMMU_S_INIT,
159 int smmuv3_ns_set_abort_all(uintptr_t smmu_base)
162 if (smmuv3_poll(smmu_base + SMMU_GBPA, SMMU_GBPA_UPDATE, 0U) != 0U) {
170 mmio_setbits_32(smmu_base + SMMU_GBPA, SMMU_GBPA_UPDATE | SMMU_GBPA_ABORT);
171 if (smmuv3_poll(smmu_base + SMMU_GBPA, SMMU_GBPA_UPDATE, 0U) != 0U) {
176 mmio_clrbits_32(smmu_base + SMMU_CR0, SMMU_CR0_SMMUEN);
177 if (smmuv3_poll(smmu_base + SMMU_CR0ACK, SMMU_CR0_SMMUEN, 0U) != 0U) {