Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/hwmon/
Dmax31790.c65 u8 fan_config[NR_CHANNEL]; member
103 if (data->fan_config[i] in max31790_update_device()
209 *val = !!(data->fan_config[channel] & MAX31790_FAN_CFG_TACH_INPUT_EN); in max31790_read_fan()
223 u8 bits, fan_config; in max31790_write_fan() local
253 fan_config = data->fan_config[channel]; in max31790_write_fan()
255 fan_config &= ~MAX31790_FAN_CFG_TACH_INPUT_EN; in max31790_write_fan()
257 fan_config |= MAX31790_FAN_CFG_TACH_INPUT_EN; in max31790_write_fan()
262 if (fan_config != data->fan_config[channel]) { in max31790_write_fan()
264 fan_config); in max31790_write_fan()
266 data->fan_config[channel] = fan_config; in max31790_write_fan()
[all …]
Dgsc-hwmon.c34 u32 fan_config[GSC_HWMON_MAX_FAN_CH + 1]; member
357 hwmon->fan_config[i_fan] = HWMON_F_INPUT | in gsc_hwmon_probe()
390 hwmon->fan_info.config = hwmon->fan_config; in gsc_hwmon_probe()
/linux-6.12.1/drivers/hwmon/pmbus/
Ducd9000.c90 int fan_config = 0; in ucd9000_get_fan_config() local
95 fan_config |= PB_FAN_2_INSTALLED; /* Use lower bit position */ in ucd9000_get_fan_config()
98 fan_config |= (data->fan_data[fan][3] & 0x06) >> 1; in ucd9000_get_fan_config()
100 return fan_config; in ucd9000_get_fan_config()
106 int fan_config; in ucd9000_read_byte_data() local
116 fan_config = ret << 4; in ucd9000_read_byte_data()
120 fan_config |= ret; in ucd9000_read_byte_data()
121 ret = fan_config; in ucd9000_read_byte_data()
130 fan_config = ret << 4; in ucd9000_read_byte_data()
134 fan_config |= ret; in ucd9000_read_byte_data()
[all …]