Searched refs:new_div (Results 1 - 6 of 6) sorted by relevance
/linux-4.4.14/drivers/hwmon/ |
H A D | adm9240.c | 437 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 D | smsc47m1.c | 316 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 D | emc2103.c | 316 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 D | w83627ehf.c | 1078 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 D | adm1026.c | 697 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 D | nct6775.c | 1876 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 455 milliseconds