Lines Matching refs:fan_div
536 u8 fan_div[NUM_FAN_DIV];/* Register encoding, shifted right */ member
811 data->fan_div[0] = i & 0x07; in it87_update_device()
812 data->fan_div[1] = (i >> 3) & 0x07; in it87_update_device()
813 data->fan_div[2] = (i & 0x40) ? 3 : 1; in it87_update_device()
1121 DIV_FROM_REG(data->fan_div[nr])); in show_fan()
1132 return sprintf(buf, "%lu\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div()
1201 data->fan_div[nr] = reg & 0x07; in set_fan()
1204 data->fan_div[nr] = (reg >> 3) & 0x07; in set_fan()
1207 data->fan_div[nr] = (reg & 0x40) ? 3 : 1; in set_fan()
1211 FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in set_fan()
1237 min = FAN_FROM_REG(data->fan[nr][1], DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()
1242 data->fan_div[nr] = DIV_TO_REG(val); in set_fan_div()
1246 data->fan_div[nr] = 1; in set_fan_div()
1248 data->fan_div[nr] = 3; in set_fan_div()
1251 val |= (data->fan_div[0] & 0x07); in set_fan_div()
1252 val |= (data->fan_div[1] & 0x07) << 3; in set_fan_div()
1253 if (data->fan_div[2] == 3) in set_fan_div()
1258 data->fan[nr][1] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in set_fan_div()