Lines Matching refs:vaddr
61 fn create_region(&self, vaddr: u64) -> Box<MmioBuddyAddrRegion> { in create_region()
63 region.vaddr = vaddr; in create_region()
78 fn give_back_block(&self, vaddr: u64, exp: u32) -> Result<i32, SystemError> { in give_back_block()
80 if (vaddr & ((1 << exp) - 1)) != 0 { in give_back_block()
83 let region: Box<MmioBuddyAddrRegion> = self.create_region(vaddr); in give_back_block()
104 let vaddr: u64 = self.calculate_block_vaddr(region.vaddr, exp - 1); in split_block() localVariable
105 let new_region: Box<MmioBuddyAddrRegion> = self.create_region(vaddr); in split_block()
291 fn calculate_block_vaddr(&self, vaddr: u64, exp: u32) -> u64 { in calculate_block_vaddr()
292 return vaddr ^ (1 << exp); in calculate_block_vaddr()
309 vaddr: u64, in pop_buddy_block()
317 let buddy_vaddr = self.calculate_block_vaddr(vaddr, exp); in pop_buddy_block()
322 .drain_filter(|x| x.vaddr == buddy_vaddr) in pop_buddy_block()
380 let vaddr: u64 = list_guard.list.back().unwrap().vaddr; in merge_all_exp() localVariable
382 match self.pop_buddy_block(vaddr, exp, list_guard) { in merge_all_exp()
389 vaddr: region.vaddr, in merge_all_exp()
424 if region_1.vaddr != self.calculate_block_vaddr(region_2.vaddr, exp) { in merge_blocks()
473 *res_vaddr = region.vaddr; in create_mmio()
490 region.vaddr + loop_i, in create_mmio()
520 region.vaddr + loop_i, in create_mmio()
558 pub fn release_mmio(&self, vaddr: u64, length: u64) -> Result<i32, SystemError> { in release_mmio()
561 mm_unmap(&mut initial_mm, vaddr, length, false); in release_mmio()
569 let vma: *mut vm_area_struct = unsafe { vma_find(&mut initial_mm, vaddr + loop_i) }; in release_mmio()
573 vaddr + loop_i, in release_mmio()
579 if unsafe { (*vma).vm_start != (vaddr + loop_i) } { in release_mmio()
582 vaddr + loop_i, in release_mmio()
614 vaddr: u64, field
626 vaddr: Default::default(), in default()
719 pub extern "C" fn mmio_release(vaddr: u64, length: u64) -> i32 { in mmio_release()
720 if let Err(err) = MMIO_POOL.release_mmio(vaddr, length) { in mmio_release()