Lines Matching defs:cur
280 x86_cpu_cache_t *cur = NULL;
310 cur = x86_cache_alloc();
311 if (cur == NULL) {
315 cur->type = bitfield(cache_info[eax], 4, 0);
316 cur->level = bitfield(cache_info[eax], 7, 5);
317 cur->maxcpus = (bitfield(cache_info[eax], 25, 14) + 1);
318 cur->line_size = bitfield(cache_info[ebx], 11, 0) + 1;
319 cur->partitions = bitfield(cache_info[ebx], 21, 12) + 1;
320 cur->ways = bitfield(cache_info[ebx], 31, 22) + 1;
322 cur->cache_size = cur->line_size * cur->ways * cur->partitions * nsets;
325 root = cur;
326 last = cur;
328 last->next = cur;
329 last = cur;
332 cur->nlcpus = 0;
333 num_Lx_caches[cur->level - 1] += 1;
640 x86_cpu_cache_t *cur;
661 cur = list;
662 list = cur->next;
663 cur->next = NULL;
664 level = cur->level - 1;
670 if (cur->maxcpus == 1) {
671 x86_cache_add_lcpu(cur, lcpu);
681 x86_cache_free(cur);
713 match = x86_match_cache(cur_lcpu->caches[level], cur);
715 x86_cache_free(cur);
742 match = x86_match_cache(cur_lcpu->caches[level], cur);
744 x86_cache_free(cur);
759 x86_cache_add_lcpu(cur, lcpu);