Searched refs:fan_id (Results 1 – 6 of 6) sorted by relevance
/openbmc/skeleton/fanctl/ |
H A D | fan_control.c | 169 static int fan_set_speed(sd_bus *bus, int fan_id, uint8_t fan_speed) in fan_set_speed() argument 178 "/xyz/openbmc_project/sensors/fan_tach/fan%d_0", fan_id); in fan_set_speed() 182 fan_id, fan_speed); in fan_set_speed() 211 static int fan_get_speed(sd_bus *bus, int fan_id) in fan_get_speed() argument 219 "/xyz/openbmc_project/sensors/fan_tach/fan%d_0", fan_id); in fan_get_speed() 229 fprintf(stderr, "fan%d speed: %d\n", fan_id, fan_speed); in fan_get_speed() 234 int fan_set_present(sd_bus *bus, int fan_id, int val) in fan_set_present() argument 244 fan_id); in fan_set_present() 267 fan_id, (val == 1 ? "True" : "False")); in fan_set_present()
|
/openbmc/linux/drivers/hwmon/ |
H A D | npcm750-pwm-fan.c | 272 u8 fan_id; in npcm7xx_fan_start_capture() local 277 fan_id = NPCM7XX_FAN_INPUT(fan, cmp); in npcm7xx_fan_start_capture() 386 data->fan_dev[fan_id].fan_st_flg = in npcm7xx_fan_compute() 396 data->fan_dev[fan_id].fan_cnt_tmp += in npcm7xx_fan_compute() 399 data->fan_dev[fan_id].fan_st_flg++; in npcm7xx_fan_compute() 403 data->fan_dev[fan_id].fan_cnt_tmp += in npcm7xx_fan_compute() 407 data->fan_dev[fan_id].fan_cnt = in npcm7xx_fan_compute() 408 data->fan_dev[fan_id].fan_cnt_tmp / in npcm7xx_fan_compute() 437 u8 fan_id; in npcm7xx_check_cmp() local 439 fan_id = NPCM7XX_FAN_INPUT(fan, cmp); in npcm7xx_check_cmp() [all …]
|
/openbmc/linux/drivers/platform/x86/amd/pmf/ |
H A D | cnqf.c | 63 pr_debug("fan_id_%s: %u\n", state_as_str_cnqf(i), data->ps[i].fan_id); in amd_pmf_cnqf_dump_defaults() 92 config_store.mode_set[src][idx].fan_control.fan_id); in amd_pmf_set_cnqf() 287 ms->fan_control.fan_id = out->ps[APMF_CNQF_QUIET].fan_id; in amd_pmf_update_mode_set() 301 ms->fan_control.fan_id = out->ps[APMF_CNQF_BALANCE].fan_id; in amd_pmf_update_mode_set() 315 ms->fan_control.fan_id = out->ps[APMF_CNQF_PERFORMANCE].fan_id; in amd_pmf_update_mode_set() 329 ms->fan_control.fan_id = out->ps[APMF_CNQF_TURBO].fan_id; in amd_pmf_update_mode_set() 368 if (config_store.mode_set[i][j].fan_control.fan_id == FAN_INDEX_AUTO) in amd_pmf_load_defaults_cnqf()
|
H A D | auto-mode.c | 100 data->mode_set[AUTO_PERFORMANCE].fan_control.fan_id); in amd_pmf_dump_auto_mode_defaults() 102 data->mode_set[AUTO_BALANCE].fan_control.fan_id); in amd_pmf_dump_auto_mode_defaults() 104 data->mode_set[AUTO_QUIET].fan_control.fan_id); in amd_pmf_dump_auto_mode_defaults() 129 config_store.mode_set[idx].fan_control.fan_id); in amd_pmf_set_automode() 376 config_store.mode_set[AUTO_QUIET].fan_control.fan_id = output.fan_id_quiet; in amd_pmf_load_defaults_auto_mode() 377 config_store.mode_set[AUTO_BALANCE].fan_control.fan_id = output.fan_id_balanced; in amd_pmf_load_defaults_auto_mode() 378 config_store.mode_set[AUTO_PERFORMANCE].fan_control.fan_id = output.fan_id_perf; in amd_pmf_load_defaults_auto_mode() 379 config_store.mode_set[AUTO_PERFORMANCE_ON_LAP].fan_control.fan_id = in amd_pmf_load_defaults_auto_mode() 397 if (config_store.mode_set[i].fan_control.fan_id == FAN_INDEX_AUTO) in amd_pmf_load_defaults_auto_mode()
|
H A D | pmf.h | 191 u32 fan_id; member 212 unsigned long fan_id; member 377 u32 fan_id; member
|
H A D | sps.c | 89 config_store.prop[i][j].fan_id = output.prop[idx].fan_id; in amd_pmf_load_defaults_sps()
|