Home
last modified time | relevance | path

Searched refs:fan_dev (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/hwmon/
H A Dnpcm750-pwm-fan.c209 struct npcm7xx_fan_dev fan_dev[NPCM7XX_FAN_MAX_CHN_NUM]; member
280 if (data->fan_dev[fan_id].fan_st_flg != FAN_DISABLE) { in npcm7xx_fan_start_capture()
284 data->fan_dev[fan_id].fan_st_flg = FAN_INIT; in npcm7xx_fan_start_capture()
384 if (data->fan_dev[fan_id].fan_st_flg == FAN_INIT) { in npcm7xx_fan_compute()
386 data->fan_dev[fan_id].fan_st_flg = in npcm7xx_fan_compute()
390 data->fan_dev[fan_id].fan_cnt_tmp = 0; in npcm7xx_fan_compute()
391 } else if (data->fan_dev[fan_id].fan_st_flg < FAN_ENOUGH_SAMPLE) { 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()
402 if (data->fan_dev[fan_id].fan_st_flg == FAN_ENOUGH_SAMPLE) { in npcm7xx_fan_compute()
[all …]
/openbmc/linux/drivers/platform/x86/
H A Dasus-wmi.c2914 static int fan_curve_get_factory_default(struct asus_wmi *asus, u32 fan_dev) in fan_curve_get_factory_default() argument
2929 err = asus_wmi_evaluate_method_buf(asus->dsts_id, fan_dev, mode, buf, in fan_curve_get_factory_default()
2932 pr_warn("%s (0x%08x) failed: %d\n", __func__, fan_dev, err); in fan_curve_get_factory_default()
2937 if (fan_dev == ASUS_WMI_DEVID_GPU_FAN_CURVE) in fan_curve_get_factory_default()
2940 if (fan_dev == ASUS_WMI_DEVID_MID_FAN_CURVE) in fan_curve_get_factory_default()
2944 curves->device_id = fan_dev; in fan_curve_get_factory_default()
2952 u32 fan_dev) in fan_curve_check_present() argument
2961 err = fan_curve_get_factory_default(asus, fan_dev); in fan_curve_check_present()