Lines Matching refs:fan_div
290 u8 fan_div[7]; /* Register encoding, shifted right */ member
407 FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
425 data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr])); in store_fan_min()
440 return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr - 1])); in show_fan_div()
463 DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
465 data->fan_div[nr] = DIV_TO_REG(simple_strtoul(buf, NULL, 10)); in store_fan_div()
469 tmp_fan_div = (nr & 0x01) ? (((data->fan_div[nr]) << 4) & 0x70) in store_fan_div()
470 : ((data->fan_div[nr]) & 0x07); in store_fan_div()
475 data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr])); in store_fan_div()
1527 data->fan_div[0] = reg_array_tmp[0] & 0x07; in w83792d_update_device()
1528 data->fan_div[1] = (reg_array_tmp[0] >> 4) & 0x07; in w83792d_update_device()
1529 data->fan_div[2] = reg_array_tmp[1] & 0x07; in w83792d_update_device()
1530 data->fan_div[3] = (reg_array_tmp[1] >> 4) & 0x07; in w83792d_update_device()
1531 data->fan_div[4] = reg_array_tmp[2] & 0x07; in w83792d_update_device()
1532 data->fan_div[5] = (reg_array_tmp[2] >> 4) & 0x07; in w83792d_update_device()
1533 data->fan_div[6] = reg_array_tmp[3] & 0x07; in w83792d_update_device()
1625 dev_dbg(dev, "fan_div[%d] is: 0x%x\n", i, data->fan_div[i]); in w83792d_print_debug()