Lines Matching defs:region
51 static volatile struct rgn_map_reg *get_rgn_map_reg(uint32_t base, int region, int port)
53 uint64_t addr = base + 0x100 + 0x10 * region + 0x400 * (uint64_t)port;
57 static volatile struct rgn_attr_reg *get_rgn_attr_reg(uint32_t base, int region,
60 uint64_t addr = base + 0x104 + 0x10 * region + 0x400 * (uint64_t)port;
65 * Configure secure memory region
70 int region)
77 /* ensure secure region number is between 1-15 */
78 assert(region > 0 && region < 16);
79 /* ensure secure region size is a power of 2 >= 64KB */
81 /* ensure secure region address is aligned to region size */
91 rgn_map = get_rgn_map_reg(MDDRC_SECURITY_BASE, region, i);
92 rgn_attr = get_rgn_attr_reg(MDDRC_SECURITY_BASE, region, i);