Lines Matching refs:list_guard
122 let mut list_guard = self.free_regions[exp2index(exp)].lock(); in give_back_block() localVariable
124 self.push_block(region, &mut list_guard); in give_back_block()
162 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in query_addr_region()
171 if list_guard.num_free == 0 { in query_addr_region()
193 self.split_block(region, e2, list_guard); in query_addr_region()
213 self.split_block(region, e2, list_guard); in query_addr_region()
226 if list_guard.num_free > 0 { in query_addr_region()
227 match self.pop_block(list_guard) { in query_addr_region()
265 list_guard, in query_addr_region()
277 if list_guard.num_free > 0 { in query_addr_region()
278 match self.pop_block(list_guard) { in query_addr_region()
285 match self.pop_block(list_guard) { in query_addr_region()
299 let list_guard: &mut SpinLockGuard<MmioFreeRegionList> = in mmio_buddy_query_addr_region() localVariable
301 match self.query_addr_region(exp, list_guard) { in mmio_buddy_query_addr_region()
317 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in push_block()
319 list_guard.list.push_back(region); in push_block()
320 list_guard.num_free += 1; in push_block()
345 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in pop_buddy_block()
347 if list_guard.list.len() == 0 { in pop_buddy_block()
354 let mut element: Vec<MmioBuddyAddrRegion> = list_guard in pop_buddy_block()
359 list_guard.num_free -= 1; in pop_buddy_block()
377 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in pop_block()
379 if !list_guard.list.is_empty() { in pop_block()
380 list_guard.num_free -= 1; in pop_block()
381 return Ok(list_guard.list.pop_back().unwrap()); in pop_block()
402 list_guard: &mut SpinLockGuard<MmioFreeRegionList>, in merge_all_exp()
406 if list_guard.num_free <= 1 { in merge_all_exp()
410 if list_guard.num_free <= 1 { in merge_all_exp()
414 let vaddr: VirtAddr = list_guard.list.back().unwrap().vaddr; in merge_all_exp()
416 match self.pop_buddy_block(vaddr, exp, list_guard) { in merge_all_exp()
421 let region: MmioBuddyAddrRegion = list_guard.list.pop_back().unwrap(); in merge_all_exp()
427 self.push_block(copy_region, list_guard); in merge_all_exp()