Home
last modified time | relevance | path

Searched refs:page_num (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.7/kernel/src/driver/virtio/
Dvirtio_impl.rs16 let page_num = (pages * PAGE_SIZE - 1 + PAGE_2M_SIZE as usize) / PAGE_2M_SIZE as usize; in dma_alloc() localVariable
18 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() localVariable
36 free_pages(pa, page_num as i32); in dma_dealloc()
/DragonOS-0.1.7/kernel/src/mm/
Dmm.c211 ul page_num; in mm_init() local
219 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() local
454 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() local
613 struct Page *x = memory_management_struct.pages_struct + page_num; in mm_find_page()
Dslab.c389 ul page_num = 0; in slab_init() local
394 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()