Lines Matching refs:proc
39 void SyncVar::Reset(Processor *proc) { in Reset() argument
50 if (proc == 0) { in Reset()
54 clock.Reset(&proc->clock_cache); in Reset()
55 read_clock.Reset(&proc->clock_cache); in Reset()
64 u32 idx = block_alloc_.Alloc(&thr->proc()->block_cache); in AllocBlock()
74 uptr MetaMap::FreeBlock(Processor *proc, uptr p) { in FreeBlock() argument
79 FreeRange(proc, p, sz); in FreeBlock()
83 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz) { in FreeRange() argument
99 block_alloc_.Free(&proc->block_cache, idx & ~kFlagMask); in FreeRange()
105 s->Reset(proc); in FreeRange()
106 sync_alloc_.Free(&proc->sync_cache, idx & ~kFlagMask); in FreeRange()
122 void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz) { in ResetRange() argument
126 FreeRange(proc, p, sz); in ResetRange()
133 FreeRange(proc, p, sz); in ResetRange()
139 FreeRange(proc, p, diff); in ResetRange()
145 FreeRange(proc, p + sz - diff, diff); in ResetRange()
156 bool has_something = FreeRange(proc, p, kPageSize); in ResetRange()
164 bool has_something = FreeRange(proc, p + sz - kPageSize, kPageSize); in ResetRange()
222 mys->Reset(thr->proc()); in GetAndLock()
223 sync_alloc_.Free(&thr->proc()->sync_cache, myidx); in GetAndLock()
242 myidx = sync_alloc_.Alloc(&thr->proc()->sync_cache); in GetAndLock()
291 void MetaMap::OnProcIdle(Processor *proc) { in OnProcIdle() argument
292 block_alloc_.FlushCache(&proc->block_cache); in OnProcIdle()
293 sync_alloc_.FlushCache(&proc->sync_cache); in OnProcIdle()