MMU_PAGE_COUNT
for (psize = 0; psize < MMU_PAGE_COUNT; ++psize)
for (psize = 0; psize < MMU_PAGE_COUNT; psize++) {
int penc[MMU_PAGE_COUNT]; /* HPTE encoding */
extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
extern atomic_long_t direct_pages_count[MMU_PAGE_COUNT];
extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
for (psize = 0; psize < MMU_PAGE_COUNT; ++psize)
extern struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
for (psize = 0; psize < MMU_PAGE_COUNT; ++psize)
#define HUGE_MAX_HSTATE (MMU_PAGE_COUNT-1)
for (ps = MMU_PAGE_4K; ps < MMU_PAGE_COUNT; ++ps)
for (psize = 0; psize < MMU_PAGE_COUNT; psize++) {
for (bp = 0; bp < MMU_PAGE_COUNT; ++bp) {
for (ap = bp; ap < MMU_PAGE_COUNT; ++ap) {
.penc = {[MMU_PAGE_4K] = 0, [1 ... MMU_PAGE_COUNT - 1] = -1},
.penc = {[MMU_PAGE_4K] = 0, [1 ... MMU_PAGE_COUNT - 1] = -1},
[MMU_PAGE_16M + 1 ... MMU_PAGE_COUNT - 1] = -1 },
for (bpsize = 0; bpsize < MMU_PAGE_COUNT; bpsize++)
for (apsize = 0; apsize < MMU_PAGE_COUNT; apsize++)
struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT];
atomic_long_t direct_pages_count[MMU_PAGE_COUNT];
for (psize = 0; psize < MMU_PAGE_COUNT; psize++) {
for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) {
BUILD_BUG_ON(MMU_PAGE_COUNT > 16);
struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = {
struct mmu_psize_def mmu_psize_defs[MMU_PAGE_COUNT] = {
for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) {
for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) {
for (psize = 0; psize < MMU_PAGE_COUNT; ++psize) {
psize = MMU_PAGE_COUNT;
while (idx < MMU_PAGE_COUNT) {
for (bpsize = 0; bpsize < MMU_PAGE_COUNT; bpsize++) {
for (psize = 0; psize < MMU_PAGE_COUNT; psize++) {
for (bpsize = 0; bpsize < MMU_PAGE_COUNT; bpsize++)
for (idx = 0; idx < MMU_PAGE_COUNT; idx++)
static int hblkrm_size[MMU_PAGE_COUNT][MMU_PAGE_COUNT] __ro_after_init;