Lines Matching refs:st
584 struct pm121_sys_state *st; in pm121_sys_fans_tick() local
591 st = pm121_sys_state[loop_id]; in pm121_sys_fans_tick()
595 if (--st->ticks != 0) { in pm121_sys_fans_tick()
600 st->ticks = PM121_SYS_INTERVAL; in pm121_sys_fans_tick()
614 new_setpoint = wf_pid_run(&st->pid, temp); in pm121_sys_fans_tick()
619 st->pid.param.min); in pm121_sys_fans_tick()
623 if (new_setpoint == st->setpoint) in pm121_sys_fans_tick()
625 st->setpoint = new_setpoint; in pm121_sys_fans_tick()
630 rc = control->ops->set_value(control, st->setpoint); in pm121_sys_fans_tick()
719 static void pm121_cpu_fans_tick(struct pm121_cpu_state *st) in pm121_cpu_fans_tick() argument
725 if (--st->ticks != 0) { in pm121_cpu_fans_tick()
730 st->ticks = PM121_CPU_INTERVAL; in pm121_cpu_fans_tick()
753 if (temp > st->pid.param.tmax) in pm121_cpu_fans_tick()
756 new_setpoint = wf_cpu_pid_run(&st->pid, power, temp); in pm121_cpu_fans_tick()
761 st->pid.param.min); in pm121_cpu_fans_tick()
766 if (st->setpoint == new_setpoint) in pm121_cpu_fans_tick()
768 st->setpoint = new_setpoint; in pm121_cpu_fans_tick()
773 rc = fan_cpu->ops->set_value(fan_cpu, st->setpoint); in pm121_cpu_fans_tick()
974 struct smu_sdbp_sensortree *st = in pm121_init_pm() local
976 pm121_mach_model = st->model_id; in pm121_init_pm()