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