Lines Matching refs:pid_param
268 struct wf_pid_param pid_param; in wf_smu_create_sys_fans() local
300 pid_param.gd = param->gd; in wf_smu_create_sys_fans()
301 pid_param.gp = param->gp; in wf_smu_create_sys_fans()
302 pid_param.gr = param->gr; in wf_smu_create_sys_fans()
303 pid_param.interval = WF_SMU_SYS_FANS_INTERVAL; in wf_smu_create_sys_fans()
304 pid_param.history_len = WF_SMU_SYS_FANS_HISTORY_SIZE; in wf_smu_create_sys_fans()
305 pid_param.itarget = param->itarget; in wf_smu_create_sys_fans()
306 pid_param.min = wf_control_get_min(fan_system); in wf_smu_create_sys_fans()
307 pid_param.max = wf_control_get_max(fan_system); in wf_smu_create_sys_fans()
309 pid_param.min = in wf_smu_create_sys_fans()
310 max(pid_param.min, wf_control_get_min(fan_hd)); in wf_smu_create_sys_fans()
311 pid_param.max = in wf_smu_create_sys_fans()
312 min(pid_param.max, wf_control_get_max(fan_hd)); in wf_smu_create_sys_fans()
314 wf_pid_init(&wf_smu_sys_fans->pid, &pid_param); in wf_smu_create_sys_fans()
318 FIX32TOPRINT(pid_param.itarget), pid_param.min, pid_param.max); in wf_smu_create_sys_fans()
396 struct wf_cpu_pid_param pid_param; in wf_smu_create_cpu_fans() local
432 pid_param.interval = WF_SMU_CPU_FANS_INTERVAL; in wf_smu_create_cpu_fans()
433 pid_param.history_len = piddata->history_len; in wf_smu_create_cpu_fans()
434 if (pid_param.history_len > WF_CPU_PID_MAX_HISTORY) { in wf_smu_create_cpu_fans()
437 pid_param.history_len = WF_CPU_PID_MAX_HISTORY; in wf_smu_create_cpu_fans()
439 pid_param.gd = piddata->gd; in wf_smu_create_cpu_fans()
440 pid_param.gp = piddata->gp; in wf_smu_create_cpu_fans()
441 pid_param.gr = piddata->gr / pid_param.history_len; in wf_smu_create_cpu_fans()
447 pid_param.tmax = tmax; in wf_smu_create_cpu_fans()
448 pid_param.ttarget = tmax - tdelta; in wf_smu_create_cpu_fans()
449 pid_param.pmaxadj = maxpow - powadj; in wf_smu_create_cpu_fans()
451 pid_param.min = wf_control_get_min(fan_cpu_main); in wf_smu_create_cpu_fans()
452 pid_param.max = wf_control_get_max(fan_cpu_main); in wf_smu_create_cpu_fans()
454 wf_cpu_pid_init(&wf_smu_cpu_fans->pid, &pid_param); in wf_smu_create_cpu_fans()
458 FIX32TOPRINT(pid_param.ttarget), FIX32TOPRINT(pid_param.tmax), in wf_smu_create_cpu_fans()
459 pid_param.min, pid_param.max); in wf_smu_create_cpu_fans()