Lines Matching refs:pwrmon_rails
679 struct svc_debugfs_pwrmon_rail *pwrmon_rails = in pwr_debugfs_voltage_read() local
681 struct gb_svc *svc = pwrmon_rails->svc; in pwr_debugfs_voltage_read()
686 ret = gb_svc_pwrmon_sample_get(svc, pwrmon_rails->id, in pwr_debugfs_voltage_read()
691 pwrmon_rails->id, ret); in pwr_debugfs_voltage_read()
703 struct svc_debugfs_pwrmon_rail *pwrmon_rails = in pwr_debugfs_current_read() local
705 struct gb_svc *svc = pwrmon_rails->svc; in pwr_debugfs_current_read()
710 ret = gb_svc_pwrmon_sample_get(svc, pwrmon_rails->id, in pwr_debugfs_current_read()
715 pwrmon_rails->id, ret); in pwr_debugfs_current_read()
727 struct svc_debugfs_pwrmon_rail *pwrmon_rails = in pwr_debugfs_power_read() local
729 struct gb_svc *svc = pwrmon_rails->svc; in pwr_debugfs_power_read()
734 ret = gb_svc_pwrmon_sample_get(svc, pwrmon_rails->id, in pwr_debugfs_power_read()
738 pwrmon_rails->id, ret); in pwr_debugfs_power_read()
784 svc->pwrmon_rails = kcalloc(rail_count, sizeof(*svc->pwrmon_rails), in gb_svc_pwrmon_debugfs_init()
786 if (!svc->pwrmon_rails) in gb_svc_pwrmon_debugfs_init()
794 struct svc_debugfs_pwrmon_rail *rail = &svc->pwrmon_rails[i]; in gb_svc_pwrmon_debugfs_init()
817 kfree(svc->pwrmon_rails); in gb_svc_pwrmon_debugfs_init()
818 svc->pwrmon_rails = NULL; in gb_svc_pwrmon_debugfs_init()
834 kfree(svc->pwrmon_rails); in gb_svc_debugfs_exit()
835 svc->pwrmon_rails = NULL; in gb_svc_debugfs_exit()