Lines Matching refs:item
1973 struct cpu_map_item *item = NULL;
1996 item = kmem_zalloc(sizeof (*item), KM_SLEEP);
1997 item->cpu_id = 0;
1998 item->proc_id = acpi_id;
1999 item->apic_id = apic_id;
2000 item->obj = obj;
2001 cpu_map[0] = item;
2012 ASSERT(item == NULL);
2013 item = cpu_map[i];
2018 if (item != NULL) {
2024 if (item->obj == NULL) {
2025 item->obj = obj;
2026 item->apic_id = apic_id;
2036 item = kmem_zalloc(sizeof (*item), KM_SLEEP);
2037 item->cpu_id = -1;
2038 item->proc_id = acpi_id;
2039 item->apic_id = apic_id;
2040 item->obj = obj;
2041 cpu_map[cpu_map_count] = item;
2063 /* Free item if no more reference to it. */
2086 struct cpu_map_item *item = NULL;
2100 ASSERT(item == NULL);
2101 item = cpu_map[i];
2105 if (item != NULL) {
2106 if (item->cpu_id == -1) {
2107 item->cpu_id = cpuid;
2117 item = kmem_zalloc(sizeof (*item), KM_SLEEP);
2118 item->cpu_id = cpuid;
2119 item->proc_id = acpi_id;
2120 item->apic_id = UINT32_MAX;
2121 item->obj = NULL;
2122 cpu_map[cpu_map_count] = item;
2148 /* Free item if no more reference. */