Lines Matching refs:sys_kstat
63 read_platform_kstats(Sys_tree *tree, struct system_kstat_data *sys_kstat,
89 bdp = &sys_kstat->bd_ksp_list[board];
220 sys_kstat->sys_kstats_ok = 0;
225 sys_kstat->sys_kstats_ok = 1;
229 sys_kstat->sysctrl = knp->value.c[0];
231 sys_kstat->sys_kstats_ok = 0;
236 sys_kstat->sysstat1 = knp->value.c[0];
238 sys_kstat->sys_kstats_ok = 0;
243 sys_kstat->sysstat2 = knp->value.c[0];
245 sys_kstat->sys_kstats_ok = 0;
250 sys_kstat->clk_freq2 = knp->value.c[0];
252 sys_kstat->sys_kstats_ok = 0;
257 sys_kstat->fan_status = knp->value.c[0];
259 sys_kstat->sys_kstats_ok = 0;
264 sys_kstat->keysw_status = knp->value.c[0];
266 sys_kstat->sys_kstats_ok = 0;
271 sys_kstat->power_state =
274 sys_kstat->sys_kstats_ok = 0;
279 sys_kstat->clk_ver = knp->value.c[0];
285 sys_kstat->clk_ver = 0;
294 sys_kstat->psstat_kstat_ok = 1;
295 (void) memcpy(&sys_kstat->ps_shadow[0], ksp->ks_data,
296 sizeof (sys_kstat->ps_shadow));
298 sys_kstat->psstat_kstat_ok = 0;
307 sys_kstat->temp_kstat_ok = 0;
309 sys_kstat->temp_kstat_ok = 1;
310 (void) memcpy(&sys_kstat->tempstat, ksp->ks_data,
311 sizeof (sys_kstat->tempstat));
313 if (sizeof (sys_kstat->tempstat) > ksp->ks_data_size)
314 sys_kstat->tempstat.trend = TREND_UNKNOWN;
322 sys_kstat->reset_kstats_ok = 0;
324 sys_kstat->reset_kstats_ok = 0;
326 sys_kstat->reset_kstats_ok = 1;
327 (void) memcpy(&sys_kstat->reset_info, ksp->ks_data,
328 sizeof (sys_kstat->reset_info));
332 for (i = 0, hp = &sys_kstat->hp_info[0]; i < MAX_BOARDS; i++, hp++) {
352 sys_kstat->ft_kstat_ok = 0;
356 sys_kstat->ft_kstat_ok = 0;
360 sys_kstat->nfaults = ksp->ks_data_size /
363 sys_kstat->ft_array =
366 if (sys_kstat->ft_array == NULL) {
370 sys_kstat->ft_kstat_ok = 1;
371 (void) memcpy(sys_kstat->ft_array, ksp->ks_data,
384 read_sun4u_kstats(Sys_tree *tree, struct system_kstat_data *sys_kstat)
406 sys_kstat->sys_kstats_ok = 0;
407 sys_kstat->temp_kstat_ok = 0;
408 sys_kstat->reset_kstats_ok = 0;
409 sys_kstat->ft_kstat_ok = 0;
410 sys_kstat->envctrl_kstat_ok = 0;
412 bdp = &sys_kstat->bd_ksp_list[i];
418 sys_kstat->hp_info[i].kstat_ok = 0;
421 ep = &sys_kstat->env_data;
427 read_platform_kstats(tree, sys_kstat, bdp, ep);