Lines Matching refs:fan_div
275 u8 fan_div[7]; /* Register encoding, shifted right */ member
398 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
420 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
435 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr - 1])); in show_fan_div()
466 DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
468 data->fan_div[nr] = DIV_TO_REG(val); in store_fan_div()
472 tmp_fan_div = (nr & 0x01) ? (((data->fan_div[nr]) << 4) & 0x70) in store_fan_div()
473 : ((data->fan_div[nr]) & 0x07); in store_fan_div()
478 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
1537 data->fan_div[0] = reg_array_tmp[0] & 0x07; in w83792d_update_device()
1538 data->fan_div[1] = (reg_array_tmp[0] >> 4) & 0x07; in w83792d_update_device()
1539 data->fan_div[2] = reg_array_tmp[1] & 0x07; in w83792d_update_device()
1540 data->fan_div[3] = (reg_array_tmp[1] >> 4) & 0x07; in w83792d_update_device()
1541 data->fan_div[4] = reg_array_tmp[2] & 0x07; in w83792d_update_device()
1542 data->fan_div[5] = (reg_array_tmp[2] >> 4) & 0x07; in w83792d_update_device()
1543 data->fan_div[6] = reg_array_tmp[3] & 0x07; in w83792d_update_device()
1633 dev_dbg(dev, "fan_div[%d] is: 0x%x\n", i, data->fan_div[i]); in w83792d_print_debug()