Searched refs:new_div (Results 1 – 8 of 8) sorted by relevance
/openbmc/linux/drivers/hwmon/ |
H A D | adm9240.c | 169 u8 new_div; in adm9240_fan_min_write() local 177 new_div = data->fan_div[channel]; in adm9240_fan_min_write() 181 new_div = 3; in adm9240_fan_min_write() 185 channel + 1, FAN_FROM_REG(254, BIT(new_div))); in adm9240_fan_min_write() 189 new_div = 0; in adm9240_fan_min_write() 190 while (new_min > 192 && new_div < 3) { in adm9240_fan_min_write() 191 new_div++; in adm9240_fan_min_write() 200 channel + 1, FAN_FROM_REG(new_min, BIT(new_div))); in adm9240_fan_min_write() 203 if (new_div != data->fan_div[channel]) { in adm9240_fan_min_write() 204 data->fan_div[channel] = new_div; in adm9240_fan_min_write() [all …]
|
H A D | emc2103.c | 305 long new_div; in fan1_div_store() local 307 int status = kstrtol(buf, 10, &new_div); in fan1_div_store() 311 if (new_div == old_div) /* No change */ in fan1_div_store() 314 switch (new_div) { in fan1_div_store() 344 data->fan_multiplier = 8 / new_div; in fan1_div_store() 348 u16 new_target = (data->fan_target * old_div) / new_div; in fan1_div_store()
|
H A D | smsc47m1.c | 310 long new_div; in fan_div_store() local 315 err = kstrtol(buf, 10, &new_div); in fan_div_store() 319 if (new_div == old_div) /* No change */ in fan_div_store() 323 switch (new_div) { in fan_div_store() 360 + new_div / 2) / new_div; in fan_div_store()
|
H A D | w83627ehf.c | 721 u8 new_div; in store_in_reg() local 730 new_div = data->fan_div[channel]; /* No change */ in store_in_reg() 739 new_div = 7; /* 128 == (1 << 7) */ in store_in_reg() 749 new_div = 0; /* 1 == (1 << 0) */ in store_in_reg() 759 new_div = 0; in store_in_reg() 760 while (reg > 192 && new_div < 7) { in store_in_reg() 762 new_div++; in store_in_reg() 771 if (new_div != data->fan_div[channel]) { in store_in_reg() 774 div_from_reg(new_div)); in store_in_reg() 775 data->fan_div[channel] = new_div; in store_in_reg()
|
H A D | nct6775-core.c | 2003 u8 new_div; in store_fan_min() local 2027 new_div = data->fan_div[nr]; /* No change */ in store_fan_min() 2038 new_div = 7; /* 128 == BIT(7) */ in store_fan_min() 2048 new_div = 0; /* 1 == BIT(0) */ in store_fan_min() 2058 new_div = 0; in store_fan_min() 2059 while (reg > 192 && new_div < 7) { in store_fan_min() 2061 new_div++; in store_fan_min() 2071 if (new_div != data->fan_div[nr]) { in store_fan_min() 2074 div_from_reg(new_div)); in store_fan_min() 2075 data->fan_div[nr] = new_div; in store_fan_min()
|
H A D | adm1026.c | 717 int new_div = data->fan_div[fan]; in fixup_fan_min() local 723 new_min = data->fan_min[fan] * old_div / new_div; in fixup_fan_min() 747 int orig_div, new_div; in fan_div_store() local 754 new_div = DIV_TO_REG(val); in fan_div_store() 758 data->fan_div[nr] = DIV_FROM_REG(new_div); in fan_div_store()
|
/openbmc/u-boot/drivers/clk/ |
H A D | clk_meson.c | 319 unsigned int new_div = -EINVAL; in meson_div_set_rate() local 363 new_div = DIV_ROUND_CLOSEST(parent_rate, rate); in meson_div_set_rate() 365 debug("%s: new div of %ld is %d\n", __func__, id, new_div); in meson_div_set_rate() 368 if (!new_div || new_div > (1 << parm->width)) { in meson_div_set_rate() 377 new_div = DIV_ROUND_CLOSEST(parent_rate, rate); in meson_div_set_rate() 379 debug("%s: new new div of %ld is %d\n", __func__, id, new_div); in meson_div_set_rate() 381 if (!new_div || new_div > (1 << parm->width)) in meson_div_set_rate() 385 debug("%s: setting div of %ld to %d\n", __func__, id, new_div); in meson_div_set_rate() 388 (new_div - 1) << parm->shift); in meson_div_set_rate()
|
/openbmc/linux/drivers/clk/at91/ |
H A D | clk-master.c | 255 unsigned int mckr, div, new_div = 0; in clk_master_div_notifier_fn() local 318 new_div = characteristics->divisors[i]; in clk_master_div_notifier_fn() 326 if (!new_div) { in clk_master_div_notifier_fn() 333 new_div); in clk_master_div_notifier_fn()
|