• Home
  • Raw
  • Download

Lines Matching refs:fan_div

1150 	u8 fan_div[NUM_FAN];  member
1484 | (data->fan_div[0] & 0x7); in nct6775_write_fan_div()
1489 | ((data->fan_div[1] << 4) & 0x70); in nct6775_write_fan_div()
1494 | (data->fan_div[2] & 0x7); in nct6775_write_fan_div()
1499 | ((data->fan_div[3] << 4) & 0x70); in nct6775_write_fan_div()
1516 data->fan_div[0] = i & 0x7; in nct6775_update_fan_div()
1517 data->fan_div[1] = (i & 0x70) >> 4; in nct6775_update_fan_div()
1519 data->fan_div[2] = i & 0x7; in nct6775_update_fan_div()
1521 data->fan_div[3] = (i & 0x70) >> 4; in nct6775_update_fan_div()
1541 for (i = 0; i < ARRAY_SIZE(data->fan_div); i++) { in nct6775_init_fan_div()
1544 if (data->fan_div[i] == 0) { in nct6775_init_fan_div()
1545 data->fan_div[i] = 7; in nct6775_init_fan_div()
1578 u8 fan_div = data->fan_div[nr]; in nct6775_select_fan_div() local
1589 if (reg == 0x00 && fan_div < 0x07) in nct6775_select_fan_div()
1590 fan_div++; in nct6775_select_fan_div()
1591 else if (reg != 0x00 && reg < 0x30 && fan_div > 0) in nct6775_select_fan_div()
1592 fan_div--; in nct6775_select_fan_div()
1594 if (fan_div != data->fan_div[nr]) { in nct6775_select_fan_div()
1596 nr + 1, div_from_reg(data->fan_div[nr]), in nct6775_select_fan_div()
1597 div_from_reg(fan_div)); in nct6775_select_fan_div()
1602 if (fan_div > data->fan_div[nr]) { in nct6775_select_fan_div()
1618 data->fan_div[nr] = fan_div; in nct6775_select_fan_div()
1803 data->fan_div[i]); in nct6775_update_device()
2107 data->fan_div[nr])); in show_fan_min()
2117 return sprintf(buf, "%u\n", div_from_reg(data->fan_div[nr])); in show_fan_div()
2153 new_div = data->fan_div[nr]; /* No change */ in store_fan_min()
2197 if (new_div != data->fan_div[nr]) { in store_fan_min()
2199 nr + 1, div_from_reg(data->fan_div[nr]), in store_fan_min()
2201 data->fan_div[nr] = new_div; in store_fan_min()
2287 SENSOR_TEMPLATE(fan_div, "fan%d_div", S_IRUGO, show_fan_div, NULL, 0);
2886 data->fan_div[nr])); in show_target_speed()
2905 speed = fan_to_reg(val, data->fan_div[nr]); in store_target_speed()
2984 tolerance = (fan_from_reg16(low, data->fan_div[nr]) in show_speed_tolerance()
2985 - fan_from_reg16(high, data->fan_div[nr])) / 2; in show_speed_tolerance()
3007 data->fan_div[nr]) + val; in store_speed_tolerance()
3009 data->fan_div[nr]) - val; in store_speed_tolerance()
3015 val = (fan_to_reg(low, data->fan_div[nr]) - in store_speed_tolerance()
3016 fan_to_reg(high, data->fan_div[nr])) / 2; in store_speed_tolerance()