Lines Matching defs:apic_id
56 x86_cpu_get_numa_node(uint32_t apic_id)
67 if (c.apicid == apic_id) {
81 int n, cpu_family, apic_id, smt_bits, core_bits = 0;
85 apic_id = ci->ci_initapicid;
89 package_id = apic_id;
92 numa_id = x86_cpu_get_numa_node(apic_id);
181 const u_int node_id = apic_id & __BITS(0, 2);
182 apic_id = (cpu_family == 0xf) ?
183 (apic_id >> core_bits) | (node_id << core_bits) :
184 (apic_id >> 5) | (node_id << 2);
201 if (smt_bits + core_bits < sizeof(apic_id) * NBBY)
202 package_id = apic_id >> (smt_bits + core_bits);
208 core_id = __SHIFTOUT(apic_id, core_mask);
212 smt_id = __SHIFTOUT(apic_id, smt_mask);