Lines Matching refs:fan_div
131 u8 fan_div[3]; /* Register encoding, shifted right */ member
178 DIV_FROM_REG(data->fan_div[nr]), in get_fan()
190 DIV_FROM_REG(data->fan_div[nr])); in get_fan_min()
199 return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[attr->index])); in get_fan_div()
242 rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]); in set_fan_min()
268 u8 old_div = DIV_FROM_REG(data->fan_div[nr]); in set_fan_div()
275 case 1: data->fan_div[nr] = 0; break; in set_fan_div()
276 case 2: data->fan_div[nr] = 1; break; in set_fan_div()
277 case 4: data->fan_div[nr] = 2; break; in set_fan_div()
278 case 8: data->fan_div[nr] = 3; break; in set_fan_div()
289 tmp |= data->fan_div[nr] << (4 + 2 * nr); in set_fan_div()
294 tmp |= data->fan_div[2] << 4; in set_fan_div()
670 data->fan_div[0] = (i >> 4) & 0x03; in smsc47m1_update_device()
671 data->fan_div[1] = i >> 6; in smsc47m1_update_device()
680 data->fan_div[2] = (smsc47m1_read_value(data, in smsc47m1_update_device()