Lines Matching refs:ksp
66 kstat_t *ksp; in pt_turbo_init() local
77 ksp = kstat_lookup(kc, "turbo", 0, NULL); in pt_turbo_init()
78 if (ksp == NULL) { in pt_turbo_init()
84 (void) kstat_read(kc, ksp, NULL); in pt_turbo_init()
86 knp = kstat_data_lookup(ksp, "turbo_supported"); in pt_turbo_init()
115 kstat_t *ksp; in pt_turbo_snapshot() local
125 ksp = kstat_lookup(kc, "turbo", g_cpu_table[cpu], NULL); in pt_turbo_snapshot()
126 if (ksp == NULL) { in pt_turbo_snapshot()
133 if (kstat_read(kc, ksp, NULL) == -1) { in pt_turbo_snapshot()
140 knp = kstat_data_lookup(ksp, "turbo_mcnt"); in pt_turbo_snapshot()
153 knp = kstat_data_lookup(ksp, "turbo_acnt"); in pt_turbo_snapshot()