Lines Matching refs:idx
48 u32 idx = block_alloc_.Alloc(&thr->proc()->block_cache); in AllocBlock() local
49 MBlock *b = block_alloc_.Map(idx); in AllocBlock()
56 *meta = idx | kFlagBlock; in AllocBlock()
75 u32 idx = *meta; in FreeRange() local
76 if (idx == 0) { in FreeRange()
82 while (idx != 0) { in FreeRange()
83 if (idx & kFlagBlock) { in FreeRange()
84 block_alloc_.Free(&proc->block_cache, idx & ~kFlagMask); in FreeRange()
86 } else if (idx & kFlagSync) { in FreeRange()
87 DCHECK(idx & kFlagSync); in FreeRange()
88 SyncVar *s = sync_alloc_.Map(idx & ~kFlagMask); in FreeRange()
92 sync_alloc_.Free(&proc->sync_cache, idx & ~kFlagMask); in FreeRange()
93 idx = next; in FreeRange()
192 u32 idx = *meta; in GetBlock() local
194 if (idx == 0) in GetBlock()
196 if (idx & kFlagBlock) in GetBlock()
197 return block_alloc_.Map(idx & ~kFlagMask); in GetBlock()
198 DCHECK(idx & kFlagSync); in GetBlock()
199 SyncVar * s = sync_alloc_.Map(idx & ~kFlagMask); in GetBlock()
200 idx = s->next; in GetBlock()
212 for (u32 idx = idx0; idx && !(idx & kFlagBlock);) { in GetSync() local
213 DCHECK(idx & kFlagSync); in GetSync()
214 SyncVar * s = sync_alloc_.Map(idx & ~kFlagMask); in GetSync()
222 idx = s->next; in GetSync()
262 u32 idx = *src_meta; in MoveMemory() local
264 *dst_meta = idx; in MoveMemory()
266 while (idx != 0) { in MoveMemory()
267 if (idx & kFlagBlock) in MoveMemory()
269 CHECK(idx & kFlagSync); in MoveMemory()
270 SyncVar *s = sync_alloc_.Map(idx & ~kFlagMask); in MoveMemory()
272 idx = s->next; in MoveMemory()