Lines Matching refs:z
150 … struct Zone *z = memory_management_struct.zones_struct + memory_management_struct.count_zones; in mm_init() local
153 z->zone_addr_start = addr_start; in mm_init()
154 z->zone_addr_end = addr_end; in mm_init()
155 z->zone_length = addr_end - addr_start; in mm_init()
157 z->count_pages_using = 0; in mm_init()
158 z->count_pages_free = (addr_end - addr_start) >> PAGE_2M_SHIFT; in mm_init()
159 z->total_pages_link = 0; in mm_init()
161 z->attr = 0; in mm_init()
162 z->gmd_struct = &memory_management_struct; in mm_init()
164 z->count_pages = (addr_end - addr_start) >> PAGE_2M_SHIFT; in mm_init()
165 …z->pages_group = (struct Page *)(memory_management_struct.pages_struct + (addr_start >> PAGE_2M_SH… in mm_init()
168 struct Page *p = z->pages_group; in mm_init()
170 for (int j = 0; j < z->count_pages; ++j, ++p) in mm_init()
172 p->zone = z; in mm_init()
331 struct Zone *z = memory_management_struct.zones_struct + i; in alloc_pages() local
333 ul page_start = (z->zone_addr_start >> PAGE_2M_SHIFT); in alloc_pages()
334 ul page_end = (z->zone_addr_end >> PAGE_2M_SHIFT); in alloc_pages()
359 ++(z->count_pages_using); in alloc_pages()
360 --(z->count_pages_free); in alloc_pages()
479 struct Zone *z = memory_management_struct.zones_struct + i; in page_table_init() local
480 struct Page *p = z->pages_group; in page_table_init()
485 for (int j = 0; j < z->count_pages; ++j) in page_table_init()
594 struct Zone *z = memory_management_struct.zones_struct + i; in mm_find_page() local
597 ul page_start = (z->zone_addr_start >> PAGE_2M_SHIFT); in mm_find_page()
598 ul page_end = (z->zone_addr_end >> PAGE_2M_SHIFT); in mm_find_page()