Searched refs:fan_nr (Results 1 – 2 of 2) sorted by relevance
101 int fan_nr = to_sensor_dev_attr(attr)->index; in show_fan_speed() local106 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() local135 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() local146 return sprintf(buf, "%d\n", (val & (1 << fan_nr)) ? 1 : 0); in show_fan_fault()
156 int i, fan_nr; in smsc47m1_update_device() local157 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()