Lines Matching refs:cpun
846 long cpun = cp->cpu_id; in cpu_pause_alloc() local
852 t = thread_create(NULL, 0, cpu_pause, (void *)cpun, in cpu_pause_alloc()
878 int cpun = cp->cpu_id; in cpu_pause_free() local
885 ASSERT(safe_list[cpun] == PAUSE_IDLE); in cpu_pause_free()
892 ASSERT(safe_list[cpun] == PAUSE_IDLE); in cpu_pause_free()
893 safe_list[cpun] = PAUSE_DIE; in cpu_pause_free()
903 while (safe_list[cpun] != PAUSE_DEAD) { in cpu_pause_free()
907 safe_list[cpun] = PAUSE_IDLE; in cpu_pause_free()
1064 cpu_get_all(processorid_t cpun) in cpu_get_all() argument
1068 if (cpun >= NCPU || cpun < 0 || !CPU_IN_SET(cpu_available, cpun)) in cpu_get_all()
1070 return (cpu[cpun]); in cpu_get_all()
1079 cpu_get(processorid_t cpun) in cpu_get() argument
1084 c = cpu_get_all(cpun); in cpu_get()
2401 processorid_t cpun; in cpu_visibility_online() local
2408 cpun = cp->cpu_id; in cpu_visibility_online()
2413 (void) snprintf(name, sizeof (name), "cpu_stat%d", cpun); in cpu_visibility_online()
2414 if ((ksp = kstat_hold_byname("cpu_stat", cpun, name, ALL_ZONES)) in cpu_visibility_online()
2419 if ((ksp = kstat_hold_byname("cpu", cpun, "sys", ALL_ZONES)) != NULL) { in cpu_visibility_online()
2423 if ((ksp = kstat_hold_byname("cpu", cpun, "vm", ALL_ZONES)) != NULL) { in cpu_visibility_online()
2427 if ((ksp = kstat_hold_byname("cpu", cpun, "intrstat", ALL_ZONES)) != in cpu_visibility_online()
2477 processorid_t cpun; in cpu_visibility_offline() local
2484 cpun = cp->cpu_id; in cpu_visibility_offline()
2490 if ((ksp = kstat_hold_byname("cpu", cpun, "intrstat", ALL_ZONES)) != in cpu_visibility_offline()
2495 if ((ksp = kstat_hold_byname("cpu", cpun, "vm", ALL_ZONES)) != NULL) { in cpu_visibility_offline()
2499 if ((ksp = kstat_hold_byname("cpu", cpun, "sys", ALL_ZONES)) != NULL) { in cpu_visibility_offline()
2503 (void) snprintf(name, sizeof (name), "cpu_stat%d", cpun); in cpu_visibility_offline()
2504 if ((ksp = kstat_hold_byname("cpu_stat", cpun, name, ALL_ZONES)) in cpu_visibility_offline()