Searched refs:new_div (Results 1 – 8 of 8) sorted by relevance
/linux-2.6.39/arch/arm/mach-omap2/ |
D | clkt_clksel.c | 277 u32 *new_div) in omap2_clksel_round_rate_div() argument 290 *new_div = 1; in omap2_clksel_round_rate_div() 320 *new_div = clkr->div; in omap2_clksel_round_rate_div() 322 pr_debug("clock: new_div = %d, new_rate = %ld\n", *new_div, in omap2_clksel_round_rate_div() 419 u32 new_div; in omap2_clksel_round_rate() local 421 return omap2_clksel_round_rate_div(clk, target_rate, &new_div); in omap2_clksel_round_rate() 441 u32 field_val, validrate, new_div = 0; in omap2_clksel_set_rate() local 446 validrate = omap2_clksel_round_rate_div(clk, rate, &new_div); in omap2_clksel_set_rate() 450 field_val = _divisor_to_clksel(clk, new_div); in omap2_clksel_set_rate() 456 clk->rate = clk->parent->rate / new_div; in omap2_clksel_set_rate()
|
D | clkt34xx_dpll3m2.c | 52 u32 new_div = 0; in omap3_core_dpll_m2_set_rate() local 63 validrate = omap2_clksel_round_rate_div(clk, rate, &new_div); in omap3_core_dpll_m2_set_rate() 107 new_div, unlock_dll, c, rate > clk->rate, in omap3_core_dpll_m2_set_rate() 114 new_div, unlock_dll, c, rate > clk->rate, in omap3_core_dpll_m2_set_rate()
|
D | clock.h | 78 u32 *new_div);
|
/linux-2.6.39/drivers/hwmon/ |
D | adm9240.c | 362 u8 new_div; in set_fan_min() local 368 new_div = data->fan_div[nr]; in set_fan_min() 374 new_div = 3; in set_fan_min() 378 nr + 1, FAN_FROM_REG(254, 1 << new_div)); in set_fan_min() 383 new_div = 0; in set_fan_min() 384 while (new_min > 192 && new_div < 3) { in set_fan_min() 385 new_div++; in set_fan_min() 394 nr + 1, FAN_FROM_REG(new_min, 1 << new_div)); in set_fan_min() 397 if (new_div != data->fan_div[nr]) { in set_fan_min() 398 data->fan_div[nr] = new_div; in set_fan_min() [all …]
|
D | emc2103.c | 315 long new_div; in set_fan_div() local 317 int status = strict_strtol(buf, 10, &new_div); in set_fan_div() 321 if (new_div == old_div) /* No change */ in set_fan_div() 324 switch (new_div) { in set_fan_div() 354 data->fan_multiplier = 8 / new_div; in set_fan_div() 358 u16 new_target = (data->fan_target * old_div) / new_div; in set_fan_div()
|
D | smsc47m1.c | 269 long new_div = simple_strtol(buf, NULL, 10), tmp; in set_fan_div() local 272 if (new_div == old_div) /* No change */ in set_fan_div() 276 switch (new_div) { in set_fan_div() 303 + new_div / 2) / new_div; in set_fan_div()
|
D | w83627ehf.c | 1028 u8 new_div; in store_fan_min() local 1054 new_div = data->fan_div[nr]; /* No change */ in store_fan_min() 1060 new_div = 7; /* 128 == (1 << 7) */ in store_fan_min() 1068 new_div = 0; /* 1 == (1 << 0) */ in store_fan_min() 1076 new_div = 0; in store_fan_min() 1077 while (reg > 192 && new_div < 7) { in store_fan_min() 1079 new_div++; in store_fan_min() 1086 if (new_div != data->fan_div[nr]) { in store_fan_min() 1089 div_from_reg(new_div)); in store_fan_min() 1090 data->fan_div[nr] = new_div; in store_fan_min()
|
D | adm1026.c | 890 int new_div = data->fan_div[fan]; in fixup_fan_min() local 897 new_min = data->fan_min[fan] * old_div / new_div; in fixup_fan_min() 919 int val, orig_div, new_div; in set_fan_div() local 922 new_div = DIV_TO_REG(val); in set_fan_div() 926 data->fan_div[nr] = DIV_FROM_REG(new_div); in set_fan_div()
|