Lines Matching defs:fan
19 * Fans 2 fans, low speed alarm, automatic fan clock divider
109 /* two fans, each with low fan speed limit */
172 u8 fan[2]; /* ro fan1_input */
306 return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[attr->index],
327 /* write new fan div, callers must hold data->update_lock */
338 dev_dbg(&client->dev, "fan%d clock divider changed from %u "
343 * set fan speed low limit:
345 * - value is zero: disable fan speed low limit alarm
347 * - value is below fan speed measurement range: enable fan speed low
348 * limit alarm to be asserted while fan speed too slow to measure
350 * - otherwise: select fan clock divider to suit fan speed low limit,
351 * measurement code may adjust registers to ensure fan speed reading
370 dev_dbg(&client->dev, "fan%u low limit set disabled\n",
377 dev_dbg(&client->dev, "fan%u low limit set minimum %u\n",
393 dev_dbg(&client->dev, "fan%u low limit set fan speed %u\n",
408 #define fan(nr) \
409 static SENSOR_DEVICE_ATTR(fan##nr##_input, S_IRUGO, \
411 static SENSOR_DEVICE_ATTR(fan##nr##_div, S_IRUGO, \
413 static SENSOR_DEVICE_ATTR(fan##nr##_min, S_IRUGO | S_IWUSR, \
416 fan(1);
417 fan(2);
714 data->fan[i] = i2c_smbus_read_byte_data(client,
717 /* adjust fan clock divider on overflow */
718 if (data->valid && data->fan[i] == 255 &&
754 /* read fan divs and 5-bit VID */