Home
last modified time | relevance | path

Searched refs:DIV_ROUND_CLOSEST (Results 1 – 25 of 46) sorted by relevance

12

/linux-2.6.39/drivers/media/video/cx23885/
Dcx23888-ir.c197 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/
Dcx25840-ir.c155 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/
Dtime.c78 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/
Dwm831x-hwmon.c65 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()
Dmc13783-adc.c80 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()
Dwm8350-hwmon.c52 val = DIV_ROUND_CLOSEST(val, 1000); in show_voltage()
Demc1403.c86 DIV_ROUND_CLOSEST(val, 1000)); in store_temp()
163 hyst = DIV_ROUND_CLOSEST(hyst, 1000); in store_hyst()
Dpmbus_core.c432 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()
Dadt7462.c839 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()
Dads1015.c127 *value = DIV_ROUND_CLOSEST(conversion * fullscale, 0x7ff0); in ads1015_read_value()
Demc2103.c251 val = DIV_ROUND_CLOSEST(val, 1000); in set_temp_min()
275 val = DIV_ROUND_CLOSEST(val, 1000); in set_temp_max()
Ds3c-hwmon.c183 ret = DIV_ROUND_CLOSEST(ret, cfg->div); in s3c_hwmon_ch_show()
Dadt7470.c517 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/
Dtime.c141 cpj = DIV_ROUND_CLOSEST(mips_hpt_frequency, HZ); in plat_time_init()
/linux-2.6.39/arch/mips/jz4740/
Dtime.c115 jz4740_jiffies_per_tick = DIV_ROUND_CLOSEST(clk_rate, HZ); in plat_time_init()
/linux-2.6.39/arch/arm/plat-iop/
Dtime.c157 ticks_per_jiffy = DIV_ROUND_CLOSEST(tick_rate, HZ); in iop_init_time()
/linux-2.6.39/arch/alpha/kernel/
Dsys_ruffian.c69 #define RUFFIAN_LATCH DIV_ROUND_CLOSEST(PIT_TICK_RATE, HZ)
/linux-2.6.39/drivers/media/rc/
Drc-core-priv.h130 #define TO_US(duration) DIV_ROUND_CLOSEST((duration), 1000)
/linux-2.6.39/arch/powerpc/platforms/85xx/
Dp1022_ds.c196 pxclk = DIV_ROUND_CLOSEST(fsl_get_sys_freq(), freq); in p1022ds_set_pixel_clock()
/linux-2.6.39/drivers/media/dvb/frontends/
Dves1820.c168 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, fin); in ves1820_set_symbolrate()
Dtda10021.c179 ratio = (ratio << 8) + DIV_ROUND_CLOSEST(tmp, FIN); in tda10021_set_symbolrate()
Dstb6100.c389 nfrac = DIV_ROUND_CLOSEST((fvco - (nint * state->reference << psd2)) in stb6100_set_frequency()
/linux-2.6.39/drivers/media/video/
Dtuner-core.c1131 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/
Dconfig.c464 jiffy_ticks = DIV_ROUND_CLOSEST(amiga_eclock, HZ); in amiga_sched_init()
/linux-2.6.39/arch/arm/mach-ep93xx/
Dcore.c114 #define TIMER4_TICKS_PER_JIFFY DIV_ROUND_CLOSEST(CLOCK_TICK_RATE, HZ)

12