Home
last modified time | relevance | path

Searched refs:fan_ctrl (Results 1 – 3 of 3) sorted by relevance

/drivers/hwmon/
Dsch5636.c66 u8 fan_ctrl[SCH5636_NO_FANS]; member
118 if (data->fan_ctrl[i] & SCH5636_FAN_DEACTIVATED) in sch5636_update_device()
135 data->fan_ctrl[i] = val; in sch5636_update_device()
260 val = (data->fan_ctrl[attr->index] & SCH5636_FAN_NOT_PRESENT) ? 1 : 0; in fan_fault_show()
274 val = (data->fan_ctrl[attr->index] & SCH5636_FAN_ALARM) ? 1 : 0; in fan_alarm_show()
457 data->fan_ctrl[i] = val; in sch5636_probe()
478 if (data->fan_ctrl[i/3] & SCH5636_FAN_DEACTIVATED) in sch5636_probe()
Daspeed-pwm-tacho.c482 u8 index, u8 fan_ctrl) in aspeed_set_pwm_port_fan_ctrl() argument
488 dc_time_on = (fan_ctrl * period) / PWM_MAX; in aspeed_set_pwm_port_fan_ctrl()
583 long fan_ctrl; in pwm_store() local
585 ret = kstrtol(buf, 10, &fan_ctrl); in pwm_store()
589 if (fan_ctrl < 0 || fan_ctrl > PWM_MAX) in pwm_store()
592 if (priv->pwm_port_fan_ctrl[index] == fan_ctrl) in pwm_store()
595 priv->pwm_port_fan_ctrl[index] = fan_ctrl; in pwm_store()
596 aspeed_set_pwm_port_fan_ctrl(priv, index, fan_ctrl); in pwm_store()
Df71805f.c180 u8 fan_ctrl[3]; member
393 data->fan_ctrl[nr] = f71805f_read8(data, in f71805f_update_device()
654 switch (data->fan_ctrl[nr] & FAN_CTRL_MODE_MASK) { in show_pwm_enable()
685 return sprintf(buf, "%d\n", pwm_mode_from_reg(data->fan_ctrl[nr])); in show_pwm_mode()
751 data->fan_ctrl[nr] = reg; in set_pwm_enable()
1355 data->fan_ctrl[i] = f71805f_read8(data, in f71805f_init_device()
1361 if (data->fan_ctrl[i] & FAN_CTRL_LATCH_FULL) { in f71805f_init_device()
1362 data->fan_ctrl[i] &= ~FAN_CTRL_LATCH_FULL; in f71805f_init_device()
1364 data->fan_ctrl[i]); in f71805f_init_device()
1447 if (!(data->fan_ctrl[i] & FAN_CTRL_DC_MODE)) { in f71805f_probe()
[all …]