Lines Matching refs:cpu
40 #define cpu_to_core_lapic(cpu) (cpu_to_lapic[cpu] & ~CPU_THREAD_MASK)
41 #define cpu_to_core_cpu(cpu) (lapic_to_cpu[cpu_to_core_lapic(cpu)])
42 #define cpu_to_logical_cpu(cpu) (cpu_to_lapic[cpu] & CPU_THREAD_MASK)
43 #define cpu_is_core_cpu(cpu) (cpu_to_logical_cpu(cpu) == 0)
45 #define _cpu_to_lcpu(cpu) (&cpu_datap(cpu)->lcpu)
46 #define _cpu_to_core(cpu) (_cpu_to_lcpu(cpu)->core)
47 #define _cpu_to_package(cpu) (_cpu_to_core(cpu)->package)
49 #define cpu_to_lcpu(cpu) ((cpu_datap(cpu) != NULL) ? _cpu_to_lcpu(cpu) : NULL)
50 #define cpu_to_core(cpu) ((cpu_to_lcpu(cpu) != NULL) ? _cpu_to_lcpu(cpu)->core : NULL)
51 #define cpu_to_die(cpu) ((cpu_to_lcpu(cpu) != NULL) ? _cpu_to_lcpu(cpu)->die : NULL)
52 #define cpu_to_package(cpu) ((cpu_to_lcpu(cpu) != NULL) ? _cpu_to_lcpu(cpu)->package : NULL)