/linux-2.6.39/drivers/media/video/cx23885/ |
D | cx23888-ir.c | 197 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_clock_divider() 203 return DIV_ROUND_CLOSEST((divider + 1) * 1000, in clock_divider_to_ns() 210 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, freq * 16)); in carrier_freq_to_clock_divider() 215 return DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, (divider + 1) * 16); in clock_divider_to_carrier_freq() 222 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, freq * rollovers)); in freq_to_clock_divider() 228 return DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ, in clock_divider_to_freq() 251 DIV_ROUND_CLOSEST(CX23888_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count() 257 return DIV_ROUND_CLOSEST(count * 1000, in lpf_count_to_ns() 264 return DIV_ROUND_CLOSEST(count, CX23888_IR_REFCLK_FREQ / 1000000); in lpf_count_to_us() 277 return DIV_ROUND_CLOSEST((1 << 2) * ((u32) divider + 1) * 1000, in clock_divider_to_resolution() [all …]
|
/linux-2.6.39/drivers/media/video/cx25840/ |
D | cx25840-ir.c | 155 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_clock_divider() 161 return DIV_ROUND_CLOSEST((divider + 1) * 1000, in clock_divider_to_ns() 168 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * 16)); in carrier_freq_to_clock_divider() 173 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, (divider + 1) * 16); in clock_divider_to_carrier_freq() 180 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, freq * rollovers)); in freq_to_clock_divider() 186 return DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ, in clock_divider_to_freq() 209 DIV_ROUND_CLOSEST(CX25840_IR_REFCLK_FREQ / 1000000 * ns, 1000)); in ns_to_lpf_count() 215 return DIV_ROUND_CLOSEST(count * 1000, in lpf_count_to_ns() 222 return DIV_ROUND_CLOSEST(count, CX25840_IR_REFCLK_FREQ / 1000000); in lpf_count_to_us() 235 return DIV_ROUND_CLOSEST((1 << 2) * ((u32) divider + 1) * 1000, in clock_divider_to_resolution() [all …]
|
/linux-2.6.39/arch/m32r/kernel/ |
D | time.c | 78 elapsed_time = DIV_ROUND_CLOSEST(count, latch); in arch_gettimeoffset() 96 elapsed_time = DIV_ROUND_CLOSEST(count, latch); in arch_gettimeoffset() 180 latch = DIV_ROUND_CLOSEST(bus_clock/divide, HZ); in time_init()
|
/linux-2.6.39/drivers/hwmon/ |
D | wm831x-hwmon.c | 65 return sprintf(buf, "%d\n", DIV_ROUND_CLOSEST(ret, 1000)); in show_voltage() 81 ret = DIV_ROUND_CLOSEST(ret * 10000, 10983); in show_chip_temp()
|
D | mc13783-adc.c | 80 val = DIV_ROUND_CLOSEST(val * 9, 4) + 2400; in mc13783_adc_read_bp() 98 val = DIV_ROUND_CLOSEST(val * 9, 4); in mc13783_adc_read_gp()
|
D | wm8350-hwmon.c | 52 val = DIV_ROUND_CLOSEST(val, 1000); in show_voltage()
|
D | emc1403.c | 86 DIV_ROUND_CLOSEST(val, 1000)); in store_temp() 163 hyst = DIV_ROUND_CLOSEST(hyst, 1000); in store_hyst()
|
D | pmbus_core.c | 432 val = DIV_ROUND_CLOSEST(val, 10); in pmbus_reg2data_direct() 477 val = DIV_ROUND_CLOSEST(val, 1000); in pmbus_data2reg_linear() 488 val = DIV_ROUND_CLOSEST(val, 1000L); in pmbus_data2reg_linear() 509 mantissa = DIV_ROUND_CLOSEST(val, 1000); in pmbus_data2reg_linear() 550 val = DIV_ROUND_CLOSEST(val, 10); in pmbus_data2reg_direct()
|
D | adt7462.c | 839 temp = DIV_ROUND_CLOSEST(temp, 1000) + 64; in set_temp_min() 877 temp = DIV_ROUND_CLOSEST(temp, 1000) + 64; in set_temp_max() 942 temp = DIV_ROUND_CLOSEST(temp, x); in set_volt_max() 984 temp = DIV_ROUND_CLOSEST(temp, x); in set_volt_min() 1249 temp = DIV_ROUND_CLOSEST(temp, 1000); in set_pwm_hyst() 1336 temp = DIV_ROUND_CLOSEST(temp, 1000) + 64; in set_pwm_tmin()
|
D | ads1015.c | 127 *value = DIV_ROUND_CLOSEST(conversion * fullscale, 0x7ff0); in ads1015_read_value()
|
D | emc2103.c | 251 val = DIV_ROUND_CLOSEST(val, 1000); in set_temp_min() 275 val = DIV_ROUND_CLOSEST(val, 1000); in set_temp_max()
|
D | s3c-hwmon.c | 183 ret = DIV_ROUND_CLOSEST(ret, cfg->div); in s3c_hwmon_ch_show()
|
D | adt7470.c | 517 temp = DIV_ROUND_CLOSEST(temp, 1000); in set_temp_min() 551 temp = DIV_ROUND_CLOSEST(temp, 1000); in set_temp_max() 828 temp = DIV_ROUND_CLOSEST(temp, 1000); in set_pwm_tmin()
|
/linux-2.6.39/arch/mips/pnx8550/common/ |
D | time.c | 141 cpj = DIV_ROUND_CLOSEST(mips_hpt_frequency, HZ); in plat_time_init()
|
/linux-2.6.39/arch/mips/jz4740/ |
D | time.c | 115 jz4740_jiffies_per_tick = DIV_ROUND_CLOSEST(clk_rate, HZ); in plat_time_init()
|
/linux-2.6.39/arch/arm/plat-iop/ |
D | time.c | 157 ticks_per_jiffy = DIV_ROUND_CLOSEST(tick_rate, HZ); in iop_init_time()
|
/linux-2.6.39/arch/alpha/kernel/ |
D | sys_ruffian.c | 69 #define RUFFIAN_LATCH DIV_ROUND_CLOSEST(PIT_TICK_RATE, HZ)
|
/linux-2.6.39/drivers/media/rc/ |
D | rc-core-priv.h | 130 #define TO_US(duration) DIV_ROUND_CLOSEST((duration), 1000)
|
/linux-2.6.39/arch/powerpc/platforms/85xx/ |
D | p1022_ds.c | 196 pxclk = DIV_ROUND_CLOSEST(fsl_get_sys_freq(), freq); in p1022ds_set_pixel_clock()
|
/linux-2.6.39/drivers/media/dvb/frontends/ |
D | ves1820.c | 168 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, fin); in ves1820_set_symbolrate()
|
D | tda10021.c | 179 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, FIN); in tda10021_set_symbolrate()
|
D | stb6100.c | 389 nfrac = DIV_ROUND_CLOSEST((fvco - (nint * state->reference << psd2)) in stb6100_set_frequency()
|
/linux-2.6.39/drivers/media/video/ |
D | tuner-core.c | 1131 DIV_ROUND_CLOSEST(abs_freq * 2, 125) : in tuner_g_frequency() 1132 DIV_ROUND_CLOSEST(abs_freq, 62500); in tuner_g_frequency()
|
/linux-2.6.39/arch/m68k/amiga/ |
D | config.c | 464 jiffy_ticks = DIV_ROUND_CLOSEST(amiga_eclock, HZ); in amiga_sched_init()
|
/linux-2.6.39/arch/arm/mach-ep93xx/ |
D | core.c | 114 #define TIMER4_TICKS_PER_JIFFY DIV_ROUND_CLOSEST(CLOCK_TICK_RATE, HZ)
|