Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hwmon/
H A Dultra45_env.c101 int fan_nr = to_sensor_dev_attr(attr)->index; in show_fan_speed() local
106 val = env_read(p, IREG_FAN0 + fan_nr); in show_fan_speed()
119 int fan_nr = to_sensor_dev_attr(attr)->index; in set_fan_speed() local
135 env_write(p, IREG_FAN0 + fan_nr, val); in set_fan_speed()
143 int fan_nr = to_sensor_dev_attr(attr)->index; in show_fan_fault() local
146 return sprintf(buf, "%d\n", (val & (1 << fan_nr)) ? 1 : 0); in show_fan_fault()
H A Dsmsc47m1.c156 int i, fan_nr; in smsc47m1_update_device() local
157 fan_nr = data->type == smsc47m2 ? 3 : 2; in smsc47m1_update_device()
159 for (i = 0; i < fan_nr; i++) { in smsc47m1_update_device()
178 if (fan_nr >= 3) { in smsc47m1_update_device()