Searched refs:new_div (Results 1 - 6 of 6) sorted by relevance

/linux-4.4.14/drivers/hwmon/
H A Dadm9240.c437 u8 new_div; set_fan_min() local
449 new_div = data->fan_div[nr]; set_fan_min()
455 new_div = 3; set_fan_min()
459 nr + 1, FAN_FROM_REG(254, 1 << new_div)); set_fan_min()
464 new_div = 0; set_fan_min()
465 while (new_min > 192 && new_div < 3) { set_fan_min()
466 new_div++; set_fan_min()
475 nr + 1, FAN_FROM_REG(new_min, 1 << new_div)); set_fan_min()
478 if (new_div != data->fan_div[nr]) { set_fan_min()
479 data->fan_div[nr] = new_div; set_fan_min()
480 adm9240_write_fan_div(client, nr, new_div); set_fan_min()
H A Dsmsc47m1.c316 long new_div; set_fan_div() local
321 err = kstrtol(buf, 10, &new_div); set_fan_div()
325 if (new_div == old_div) /* No change */ set_fan_div()
329 switch (new_div) { set_fan_div()
364 + new_div / 2) / new_div; set_fan_div()
H A Demc2103.c316 long new_div; set_fan_div() local
318 int status = kstrtol(buf, 10, &new_div); set_fan_div()
322 if (new_div == old_div) /* No change */ set_fan_div()
325 switch (new_div) { set_fan_div()
355 data->fan_multiplier = 8 / new_div; set_fan_div()
359 u16 new_target = (data->fan_target * old_div) / new_div; set_fan_div()
H A Dw83627ehf.c1078 u8 new_div; store_fan_min() local
1104 new_div = data->fan_div[nr]; /* No change */ store_fan_min()
1112 new_div = 7; /* 128 == (1 << 7) */ store_fan_min()
1122 new_div = 0; /* 1 == (1 << 0) */ store_fan_min()
1132 new_div = 0; store_fan_min()
1133 while (reg > 192 && new_div < 7) { store_fan_min()
1135 new_div++; store_fan_min()
1144 if (new_div != data->fan_div[nr]) { store_fan_min()
1147 div_from_reg(new_div)); store_fan_min()
1148 data->fan_div[nr] = new_div; store_fan_min()
H A Dadm1026.c697 int new_div = data->fan_div[fan]; fixup_fan_min() local
703 new_min = data->fan_min[fan] * old_div / new_div; fixup_fan_min()
726 int orig_div, new_div; set_fan_div() local
733 new_div = DIV_TO_REG(val); set_fan_div()
737 data->fan_div[nr] = DIV_FROM_REG(new_div); set_fan_div()
H A Dnct6775.c1876 u8 new_div; store_fan_min() local
1900 new_div = data->fan_div[nr]; /* No change */ store_fan_min()
1911 new_div = 7; /* 128 == (1 << 7) */ store_fan_min()
1921 new_div = 0; /* 1 == (1 << 0) */ store_fan_min()
1931 new_div = 0; store_fan_min()
1932 while (reg > 192 && new_div < 7) { store_fan_min()
1934 new_div++; store_fan_min()
1944 if (new_div != data->fan_div[nr]) { store_fan_min()
1947 div_from_reg(new_div)); store_fan_min()
1948 data->fan_div[nr] = new_div; store_fan_min()

Completed in 764 milliseconds