Searched refs:new_div (Results 1 – 7 of 7) sorted by relevance
/linux-6.6.21/drivers/hwmon/ |
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 …]
|
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()
|
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()
|
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()
|
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()
|
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()
|
/linux-6.6.21/drivers/clk/at91/ |
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()
|