Lines Matching refs:fan_div
127 u8 fan_div[3]; /* Register encoding, shifted right */ member
169 data->fan_div[0] = (i >> 4) & 0x03; in smsc47m1_update_device()
170 data->fan_div[1] = i >> 6; in smsc47m1_update_device()
179 data->fan_div[2] = (smsc47m1_read_value(data, in smsc47m1_update_device()
211 DIV_FROM_REG(data->fan_div[nr]), in fan_show()
223 DIV_FROM_REG(data->fan_div[nr])); in fan_min_show()
232 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in fan_div_show()
282 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]); in fan_min_store()
313 u8 old_div = DIV_FROM_REG(data->fan_div[nr]); in fan_div_store()
325 data->fan_div[nr] = 0; in fan_div_store()
328 data->fan_div[nr] = 1; in fan_div_store()
331 data->fan_div[nr] = 2; in fan_div_store()
334 data->fan_div[nr] = 3; in fan_div_store()
346 tmp |= data->fan_div[nr] << (4 + 2 * nr); in fan_div_store()
351 tmp |= data->fan_div[2] << 4; in fan_div_store()
424 static SENSOR_DEVICE_ATTR_RW(fan1_div, fan_div, 0);
430 static SENSOR_DEVICE_ATTR_RW(fan2_div, fan_div, 1);
436 static SENSOR_DEVICE_ATTR_RW(fan3_div, fan_div, 2);