Lines Matching refs:list_guard

85         let list_guard: &mut SpinLockGuard<MmioFreeRegionList> =  in give_back_block()  localVariable
87 self.push_block(region, list_guard); in give_back_block()
125 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in query_addr_region()
134 if list_guard.num_free == 0 { in query_addr_region()
156 self.split_block(region, e2, list_guard); in query_addr_region()
176 self.split_block(region, e2, list_guard); in query_addr_region()
189 if list_guard.num_free > 0 { in query_addr_region()
190 match self.pop_block(list_guard) { in query_addr_region()
228 list_guard, in query_addr_region()
240 if list_guard.num_free > 0 { in query_addr_region()
241 match self.pop_block(list_guard) { in query_addr_region()
248 match self.pop_block(list_guard) { in query_addr_region()
265 let list_guard: &mut SpinLockGuard<MmioFreeRegionList> = in mmio_buddy_query_addr_region() localVariable
267 match self.query_addr_region(exp, list_guard) { in mmio_buddy_query_addr_region()
283 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in push_block()
285 list_guard.list.push_back(region); in push_block()
286 list_guard.num_free += 1; in push_block()
311 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in pop_buddy_block()
313 if list_guard.list.len() == 0 { in pop_buddy_block()
320 let mut element: Vec<Box<MmioBuddyAddrRegion>> = list_guard in pop_buddy_block()
325 list_guard.num_free -= 1; in pop_buddy_block()
343 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in pop_block()
345 if !list_guard.list.is_empty() { in pop_block()
346 list_guard.num_free -= 1; in pop_block()
347 return Ok(list_guard.list.pop_back().unwrap()); in pop_block()
368 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in merge_all_exp()
372 if list_guard.num_free <= 1 { in merge_all_exp()
376 if list_guard.num_free <= 1 { in merge_all_exp()
380 let vaddr: u64 = list_guard.list.back().unwrap().vaddr; in merge_all_exp()
382 match self.pop_buddy_block(vaddr, exp, list_guard) { in merge_all_exp()
387 let region: Box<MmioBuddyAddrRegion> = list_guard.list.pop_back().unwrap(); in merge_all_exp()
395 self.push_block(copy_region, list_guard); in merge_all_exp()