Lines Matching refs:pwrmon_rails
678 struct svc_debugfs_pwrmon_rail *pwrmon_rails = in pwr_debugfs_voltage_read() local
680 struct gb_svc *svc = pwrmon_rails->svc; in pwr_debugfs_voltage_read()
685 ret = gb_svc_pwrmon_sample_get(svc, pwrmon_rails->id, in pwr_debugfs_voltage_read()
690 pwrmon_rails->id, ret); in pwr_debugfs_voltage_read()
702 struct svc_debugfs_pwrmon_rail *pwrmon_rails = in pwr_debugfs_current_read() local
704 struct gb_svc *svc = pwrmon_rails->svc; in pwr_debugfs_current_read()
709 ret = gb_svc_pwrmon_sample_get(svc, pwrmon_rails->id, in pwr_debugfs_current_read()
714 pwrmon_rails->id, ret); in pwr_debugfs_current_read()
726 struct svc_debugfs_pwrmon_rail *pwrmon_rails = in pwr_debugfs_power_read() local
728 struct gb_svc *svc = pwrmon_rails->svc; in pwr_debugfs_power_read()
733 ret = gb_svc_pwrmon_sample_get(svc, pwrmon_rails->id, in pwr_debugfs_power_read()
737 pwrmon_rails->id, ret); in pwr_debugfs_power_read()
783 svc->pwrmon_rails = kcalloc(rail_count, sizeof(*svc->pwrmon_rails), in gb_svc_pwrmon_debugfs_init()
785 if (!svc->pwrmon_rails) in gb_svc_pwrmon_debugfs_init()
793 struct svc_debugfs_pwrmon_rail *rail = &svc->pwrmon_rails[i]; in gb_svc_pwrmon_debugfs_init()
816 kfree(svc->pwrmon_rails); in gb_svc_pwrmon_debugfs_init()
817 svc->pwrmon_rails = NULL; in gb_svc_pwrmon_debugfs_init()
833 kfree(svc->pwrmon_rails); in gb_svc_debugfs_exit()
834 svc->pwrmon_rails = NULL; in gb_svc_debugfs_exit()