Home
last modified time | relevance | path

Searched refs:do_div (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/linux-3.4.99/arch/powerpc/include/asm/
Dcputime.h76 do_div(ct, HZ); in jiffies_to_cputime()
98 do_div(ct, HZ); in jiffies64_to_cputime64()
130 do_div(ct, 1000000); in usecs_to_cputime()
162 frac = do_div(x, tb_ticks_per_sec); in cputime_to_timespec()
165 do_div(x, tb_ticks_per_sec); in cputime_to_timespec()
174 do_div(ct, 1000000000); in timespec_to_cputime()
186 frac = do_div(x, tb_ticks_per_sec); in cputime_to_timeval()
189 do_div(x, tb_ticks_per_sec); in cputime_to_timeval()
198 do_div(ct, 1000000); in timeval_to_cputime()
222 do_div(ct, USER_HZ); in clock_t_to_cputime()
/linux-3.4.99/arch/arm/plat-samsung/include/plat/
Dpll.h38 do_div(fvco, (pdiv + 2) << sdiv); in s3c24xx_get_pll()
61 do_div(fvco, (pdiv << sdiv)); in s3c2416_get_pll()
84 do_div(fvco, (pdiv << sdiv)); in s3c6400_get_pll()
119 do_div(tmp, (pdiv << sdiv)); in s3c_get_pll6553x()
142 do_div(fvco, (pdiv << sdiv)); in s5p_get_pll35xx()
170 do_div(tmp, (pdiv << sdiv)); in s5p_get_pll36xx()
203 do_div(fvco, (pdiv << sdiv)); in s5p_get_pll45xx()
254 do_div(tmp, (pdiv << sdiv)); in s5p_get_pll46xx()
258 do_div(tmp, (pdiv << sdiv)); in s5p_get_pll46xx()
297 do_div(tmp, (pdiv << sdiv)); in s5p_get_pll90xx()
[all …]
/linux-3.4.99/include/asm-generic/
Ddiv64.h25 # define do_div(n,base) ({ \ macro
40 # define do_div(n,base) ({ \ macro
54 # error do_div() does not yet support the C64
/linux-3.4.99/fs/xfs/
Dxfs_linux.h239 mod = do_div(*(__u64 *)a, b); in xfs_do_div()
256 return do_div(c, b); in xfs_do_mod()
265 #undef do_div
266 #define do_div(a, b) xfs_do_div(&(a), (b), sizeof(a)) macro
272 do_div(x, y); in roundup_64()
279 do_div(x, y); in howmany_64()
/linux-3.4.99/include/linux/
Dacct.h188 do_div(tmp, (NSEC_PER_SEC / AHZ)); in jiffies_to_AHZ()
196 do_div(x, (NSEC_PER_SEC / AHZ)); in nsec_to_AHZ()
199 do_div(x, (NSEC_PER_SEC / 512)); in nsec_to_AHZ()
207 do_div(x, (unsigned long)((9ull * NSEC_PER_SEC + (AHZ/2)) in nsec_to_AHZ()
Dclocksource.h233 do_div(tmp, khz); in clocksource_khz2mult()
259 do_div(tmp, hz); in clocksource_hz2mult()
/linux-3.4.99/drivers/media/dvb/frontends/
Dves1820.c140 fptmp = fpxin; do_div(fptmp, 123); in ves1820_set_symbolrate()
143 fptmp = fpxin; do_div(fptmp, 160); in ves1820_set_symbolrate()
146 fptmp = fpxin; do_div(fptmp, 246); in ves1820_set_symbolrate()
149 fptmp = fpxin; do_div(fptmp, 320); in ves1820_set_symbolrate()
152 fptmp = fpxin; do_div(fptmp, 492); in ves1820_set_symbolrate()
155 fptmp = fpxin; do_div(fptmp, 640); in ves1820_set_symbolrate()
158 fptmp = fpxin; do_div(fptmp, 984); in ves1820_set_symbolrate()
Dtda10048.c319 do_div(t, sample_freq_hz); in tda10048_set_phy2()
321 do_div(t, 10); in tda10048_set_phy2()
327 do_div(t, sample_freq_hz); in tda10048_set_phy2()
329 do_div(t, 10); in tda10048_set_phy2()
357 do_div(t, z); in tda10048_set_wref()
359 do_div(t, 10); in tda10048_set_wref()
385 do_div(t, bw); in tda10048_set_invwref()
387 do_div(t, 10); in tda10048_set_invwref()
/linux-3.4.99/arch/x86/kernel/
Dtsc.c154 do_div(tmp, 1000000); in calc_hpet_ref()
155 do_div(deltatsc, tmp); in calc_hpet_ref()
174 do_div(tmp, PMTMR_TICKS_PER_SEC); in calc_pmtimer_ref()
175 do_div(deltatsc, tmp); in calc_pmtimer_ref()
244 do_div(delta, ms); in pit_calibrate_tsc()
394 do_div(delta, i*256*1000); in quick_pit_calibrate()
481 do_div(delta, tsc_ref_min); in native_calibrate_tsc()
996 do_div(lpj, HZ); in tsc_init()
Dpvclock.c76 do_div(pv_tsc_khz, src->tsc_to_system_mul); in pvclock_tsc_khz()
154 now.tv_nsec = do_div(delta, NSEC_PER_SEC); in pvclock_read_wallclock()
/linux-3.4.99/lib/
Dstring_helpers.c46 remainder = do_div(size, divisor[units]); in string_get_size()
56 do_div(remainder, divisor[units]); in string_get_size()
Dreciprocal_div.c8 do_div(val, k); in reciprocal_value()
/linux-3.4.99/arch/s390/include/asm/
Dcputime.h53 do_div(jif, 4096000000ULL / HZ); in cputime64_to_jiffies64()
150 do_div(clock, 4096000000ULL / USER_HZ); in cputime_to_clock_t()
165 do_div(clock, 4096000000ULL / USER_HZ); in cputime64_to_clock_t()
/linux-3.4.99/arch/powerpc/kvm/
Dtiming.c153 do_div(min, tb_ticks_per_usec); in kvmppc_exit_timing_show()
155 do_div(max, tb_ticks_per_usec); in kvmppc_exit_timing_show()
157 do_div(sum, tb_ticks_per_usec); in kvmppc_exit_timing_show()
159 do_div(sum_quad, tb_ticks_per_usec); in kvmppc_exit_timing_show()
/linux-3.4.99/arch/ia64/xen/
Dtime.c117 do_div(stolentick, NS_PER_TICK); in consider_steal_time()
120 do_div(stolen, NS_PER_TICK); in consider_steal_time()
126 do_div(blocked, NS_PER_TICK); in consider_steal_time()
/linux-3.4.99/arch/blackfin/kernel/
Dpwm.c71 do_div(val, NSEC_PER_SEC); in pwm_config()
75 do_div(val, period_ns); in pwm_config()
/linux-3.4.99/arch/x86/kernel/cpu/
Dvmware.c60 do_div(tsc_hz, 1000); in vmware_get_tsc_khz()
68 do_div(lpj, HZ); in vmware_get_tsc_khz()
/linux-3.4.99/drivers/net/wireless/ath/carl9170/
Dcmd.c194 do_div(info->channel_time, 1000); in carl9170_collect_tally()
195 do_div(info->channel_time_busy, 1000); in carl9170_collect_tally()
196 do_div(info->channel_time_tx, 1000); in carl9170_collect_tally()
/linux-3.4.99/arch/arm/mach-s3c24xx/include/mach/
Dregs-s3c2443-clock.h168 do_div(fvco, pdiv << sdiv); in s3c2443_get_mpll()
188 do_div(fvco, (pdiv + 2) << sdiv); in s3c2443_get_epll()
/linux-3.4.99/arch/mips/jz4740/
Dpwm.c107 do_div(tmp, 1000000000); in pwm_config()
119 do_div(tmp, period_ns); in pwm_config()
/linux-3.4.99/arch/arm/include/asm/
Ddiv64.h59 #define do_div(n, base) __do_div_asm(n, base) macro
73 #define do_div(n, base) \ macro
/linux-3.4.99/drivers/s390/scsi/
Dzfcp_sysfs.c386 do_div(fsum, 1000); \
387 do_div(fmin, 1000); \
388 do_div(fmax, 1000); \
389 do_div(csum, 1000); \
390 do_div(cmin, 1000); \
391 do_div(cmax, 1000); \
/linux-3.4.99/include/linux/mtd/
Dmtd.h321 do_div(sz, mtd->erasesize); in mtd_div_by_eb()
329 return do_div(sz, mtd->erasesize); in mtd_mod_by_eb()
336 do_div(sz, mtd->writesize); in mtd_div_by_ws()
344 return do_div(sz, mtd->writesize); in mtd_mod_by_ws()
/linux-3.4.99/fs/ufs/
Dufs.h152 do_div(b, uspi->s_fpg); in ufs_dtog()
158 return do_div(b, uspi->s_fpg); in ufs_dtogd()
/linux-3.4.99/arch/m68k/include/asm/
Ddiv64.h12 #define do_div(n, base) ({ \ macro

12345678910>>...12