Lines Matching refs:fan_div
284 u8 fan_div[NUMBER_OF_FANIN]; /* Register encoding, shifted right */ member
524 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
545 data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
558 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr])); in show_fan_div()
589 min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
592 data->fan_div[nr] = div_to_reg(nr, val); in store_fan_div()
630 tmp_fan_div = (data->fan_div[nr] << new_shift) & ~keep_mask; in store_fan_div()
640 tmp_fan_div = (data->fan_div[nr] << (3 + nr)) & ~keep_mask; in store_fan_div()
646 data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
1513 data->fan_div[0] = (reg_array_tmp[0] >> 4) & 0x03; in w83791d_update_device()
1514 data->fan_div[1] = (reg_array_tmp[0] >> 6) & 0x03; in w83791d_update_device()
1515 data->fan_div[2] = (reg_array_tmp[1] >> 6) & 0x03; in w83791d_update_device()
1516 data->fan_div[3] = reg_array_tmp[2] & 0x07; in w83791d_update_device()
1517 data->fan_div[4] = (reg_array_tmp[2] >> 4) & 0x07; in w83791d_update_device()
1525 data->fan_div[i] |= (vbat_reg >> (3 + i)) & 0x04; in w83791d_update_device()
1625 dev_dbg(dev, "fan_div[%d] is: 0x%02x\n", i, data->fan_div[i]); in w83791d_print_debug()