Lines Matching refs:pid_param
269 struct wf_pid_param pid_param; in wf_smu_create_sys_fans() local
301 pid_param.gd = param->gd; in wf_smu_create_sys_fans()
302 pid_param.gp = param->gp; in wf_smu_create_sys_fans()
303 pid_param.gr = param->gr; in wf_smu_create_sys_fans()
304 pid_param.interval = WF_SMU_SYS_FANS_INTERVAL; in wf_smu_create_sys_fans()
305 pid_param.history_len = WF_SMU_SYS_FANS_HISTORY_SIZE; in wf_smu_create_sys_fans()
306 pid_param.itarget = param->itarget; in wf_smu_create_sys_fans()
307 pid_param.min = wf_control_get_min(fan_system); in wf_smu_create_sys_fans()
308 pid_param.max = wf_control_get_max(fan_system); in wf_smu_create_sys_fans()
310 pid_param.min = in wf_smu_create_sys_fans()
311 max(pid_param.min, wf_control_get_min(fan_hd)); in wf_smu_create_sys_fans()
312 pid_param.max = in wf_smu_create_sys_fans()
313 min(pid_param.max, wf_control_get_max(fan_hd)); in wf_smu_create_sys_fans()
315 wf_pid_init(&wf_smu_sys_fans->pid, &pid_param); in wf_smu_create_sys_fans()
319 FIX32TOPRINT(pid_param.itarget), pid_param.min, pid_param.max); in wf_smu_create_sys_fans()
397 struct wf_cpu_pid_param pid_param; in wf_smu_create_cpu_fans() local
433 pid_param.interval = WF_SMU_CPU_FANS_INTERVAL; in wf_smu_create_cpu_fans()
434 pid_param.history_len = piddata->history_len; in wf_smu_create_cpu_fans()
435 if (pid_param.history_len > WF_CPU_PID_MAX_HISTORY) { in wf_smu_create_cpu_fans()
438 pid_param.history_len = WF_CPU_PID_MAX_HISTORY; in wf_smu_create_cpu_fans()
440 pid_param.gd = piddata->gd; in wf_smu_create_cpu_fans()
441 pid_param.gp = piddata->gp; in wf_smu_create_cpu_fans()
442 pid_param.gr = piddata->gr / pid_param.history_len; in wf_smu_create_cpu_fans()
448 pid_param.tmax = tmax; in wf_smu_create_cpu_fans()
449 pid_param.ttarget = tmax - tdelta; in wf_smu_create_cpu_fans()
450 pid_param.pmaxadj = maxpow - powadj; in wf_smu_create_cpu_fans()
452 pid_param.min = wf_control_get_min(fan_cpu_main); in wf_smu_create_cpu_fans()
453 pid_param.max = wf_control_get_max(fan_cpu_main); in wf_smu_create_cpu_fans()
455 wf_cpu_pid_init(&wf_smu_cpu_fans->pid, &pid_param); in wf_smu_create_cpu_fans()
459 FIX32TOPRINT(pid_param.ttarget), FIX32TOPRINT(pid_param.tmax), in wf_smu_create_cpu_fans()
460 pid_param.min, pid_param.max); in wf_smu_create_cpu_fans()