Searched refs:page_num (Results 1 – 3 of 3) sorted by relevance
16 let page_num = (pages * PAGE_SIZE - 1 + PAGE_2M_SIZE as usize) / PAGE_2M_SIZE as usize; in dma_alloc() localVariable18 let pa = alloc_pages(ZONE_NORMAL, page_num as i32, PAGE_SHARED as u64); in dma_alloc()31 let page_num = (pages * PAGE_SIZE - 1 + PAGE_2M_SIZE as usize) / PAGE_2M_SIZE as usize; in dma_dealloc() localVariable36 free_pages(pa, page_num as i32); in dma_dealloc()
211 ul page_num; in mm_init() local219 page_num = tmp_page->addr_phys >> PAGE_2M_SHIFT; in mm_init()220 *(memory_management_struct.bmp + (page_num >> 6)) |= (1UL << (page_num % 64)); in mm_init()451 ul page_num; in free_pages() local454 page_num = page->addr_phys >> PAGE_2M_SHIFT; in free_pages()456 *(memory_management_struct.bmp + (page_num >> 6)) &= ~(1UL << (page_num % 64)); in free_pages()612 uint64_t page_num = j + k - shift; in mm_find_page() local613 struct Page *x = memory_management_struct.pages_struct + page_num; in mm_find_page()
389 ul page_num = 0; in slab_init() local394 page_num = page->addr_phys >> PAGE_2M_SHIFT; in slab_init()395 *(memory_management_struct.bmp + (page_num >> 6)) |= (1UL << (page_num % 64)); in slab_init()412 page_num = page->addr_phys >> PAGE_2M_SHIFT; in slab_init()414 *(memory_management_struct.bmp + (page_num >> 6)) |= (1UL << (page_num % 64)); in slab_init()