Lines Matching refs:pid_param

267 	struct wf_pid_param pid_param;  in wf_smu_create_sys_fans()  local
299 pid_param.gd = param->gd; in wf_smu_create_sys_fans()
300 pid_param.gp = param->gp; in wf_smu_create_sys_fans()
301 pid_param.gr = param->gr; in wf_smu_create_sys_fans()
302 pid_param.interval = WF_SMU_SYS_FANS_INTERVAL; in wf_smu_create_sys_fans()
303 pid_param.history_len = WF_SMU_SYS_FANS_HISTORY_SIZE; in wf_smu_create_sys_fans()
304 pid_param.itarget = param->itarget; in wf_smu_create_sys_fans()
305 pid_param.min = wf_control_get_min(fan_system); in wf_smu_create_sys_fans()
306 pid_param.max = wf_control_get_max(fan_system); in wf_smu_create_sys_fans()
308 pid_param.min = in wf_smu_create_sys_fans()
309 max(pid_param.min, wf_control_get_min(fan_hd)); in wf_smu_create_sys_fans()
310 pid_param.max = in wf_smu_create_sys_fans()
311 min(pid_param.max, wf_control_get_max(fan_hd)); in wf_smu_create_sys_fans()
313 wf_pid_init(&wf_smu_sys_fans->pid, &pid_param); in wf_smu_create_sys_fans()
317 FIX32TOPRINT(pid_param.itarget), pid_param.min, pid_param.max); in wf_smu_create_sys_fans()
395 struct wf_cpu_pid_param pid_param; in wf_smu_create_cpu_fans() local
431 pid_param.interval = WF_SMU_CPU_FANS_INTERVAL; in wf_smu_create_cpu_fans()
432 pid_param.history_len = piddata->history_len; in wf_smu_create_cpu_fans()
433 if (pid_param.history_len > WF_CPU_PID_MAX_HISTORY) { in wf_smu_create_cpu_fans()
436 pid_param.history_len = WF_CPU_PID_MAX_HISTORY; in wf_smu_create_cpu_fans()
438 pid_param.gd = piddata->gd; in wf_smu_create_cpu_fans()
439 pid_param.gp = piddata->gp; in wf_smu_create_cpu_fans()
440 pid_param.gr = piddata->gr / pid_param.history_len; in wf_smu_create_cpu_fans()
446 pid_param.tmax = tmax; in wf_smu_create_cpu_fans()
447 pid_param.ttarget = tmax - tdelta; in wf_smu_create_cpu_fans()
448 pid_param.pmaxadj = maxpow - powadj; in wf_smu_create_cpu_fans()
450 pid_param.min = wf_control_get_min(fan_cpu_main); in wf_smu_create_cpu_fans()
451 pid_param.max = wf_control_get_max(fan_cpu_main); in wf_smu_create_cpu_fans()
453 wf_cpu_pid_init(&wf_smu_cpu_fans->pid, &pid_param); in wf_smu_create_cpu_fans()
457 FIX32TOPRINT(pid_param.ttarget), FIX32TOPRINT(pid_param.tmax), in wf_smu_create_cpu_fans()
458 pid_param.min, pid_param.max); in wf_smu_create_cpu_fans()