/linux-master/include/linux/ |
H A D | acct.h | 77 do_div(tmp, (NSEC_PER_SEC / AHZ)); 85 do_div(x, (NSEC_PER_SEC / AHZ)); 88 do_div(x, (NSEC_PER_SEC / 512)); 96 do_div(x, (unsigned long)((9ull * NSEC_PER_SEC + (AHZ/2))
|
H A D | math.h | 40 ({ unsigned long long _tmp = (ll); do_div(_tmp, d); _tmp; }) 105 do_div(_tmp, __d); \ 133 #define sector_div(a, b) do_div(a, b)
|
/linux-master/arch/s390/lib/ |
H A D | delay.c | 42 do_div(nsecs, 125);
|
/linux-master/lib/math/ |
H A D | reciprocal_div.c | 25 do_div(m, d); 52 do_div(mlow, d); 54 do_div(mhigh, d);
|
/linux-master/drivers/clk/tegra/ |
H A D | clk-utils.c | 29 do_div(divider_ux1, rate);
|
/linux-master/arch/m68k/include/asm/ |
H A D | div64.h | 13 #define do_div(n, base) ({ \ macro
|
/linux-master/kernel/time/ |
H A D | jiffies.c | 94 do_div(shift_hz, cycles_per_tick); 98 do_div(nsec_per_tick, (u32)shift_hz);
|
/linux-master/drivers/clk/imx/ |
H A D | clk-frac-pll.c | 112 do_div(temp64, PLL_FRAC_DENOM); 113 do_div(temp64, divq); 116 do_div(rate, divq); 132 do_div(temp64, parent_rate); 136 do_div(temp64, parent_rate); 141 do_div(temp64, PLL_FRAC_DENOM); 169 do_div(temp64, parent_rate);
|
H A D | clk-pfd.c | 60 do_div(tmp, frac); 72 do_div(tmp, rate); 80 do_div(tmp, frac); 93 do_div(tmp, rate);
|
H A D | clk-pllv4.c | 93 do_div(temp64, mfd); 111 do_div(temp64, parent_rate); 139 do_div(temp64, parent_rate); 153 do_div(temp64, mfd); 194 do_div(temp64, parent_rate);
|
H A D | clk-pfdv2.c | 96 do_div(tmp, frac); 118 do_div(tmp, rate); 128 do_div(tmp, frac); 177 do_div(tmp, rate);
|
/linux-master/drivers/media/platform/st/sti/hva/ |
H A D | hva-debugfs.c | 132 do_div(div, 100); 153 do_div(div, dbg->window_duration); 188 do_div(div, 1000); 201 do_div(div, 100); 226 do_div(div, dbg->cnt_duration); 234 do_div(div, dbg->total_duration); 242 do_div(div, dbg->cnt_period); 250 do_div(div, dbg->total_period); 263 do_div(div, dbg->total_period);
|
/linux-master/kernel/trace/ |
H A D | trace_benchmark.c | 101 do_div(stddev, (u32)bm_cnt); 102 do_div(stddev, (u32)bm_cnt - 1); 131 do_div(seed, 2);
|
/linux-master/drivers/clk/mxs/ |
H A D | clk-ref.c | 55 do_div(tmp, frac); 68 do_div(tmp, rate); 78 do_div(tmp, frac); 93 do_div(tmp, rate);
|
/linux-master/arch/arm/include/asm/ |
H A D | div64.h | 46 * In OABI configurations, some uses of the do_div function 51 #define do_div(n, base) __div64_32(&(n), base) macro
|
/linux-master/drivers/clk/mmp/ |
H A D | clk-pll.c | 75 do_div(rate, refdiv); 76 do_div(rate, postdivs[postdiv]); 89 do_div(rate, refdiv + 2);
|
/linux-master/include/asm-generic/ |
H A D | div64.h | 11 * The semantics of do_div() is, in C++ notation, observing that the name 15 * uint32_t do_div(uint64_t &n, uint32_t base) 32 * do_div - returns 2 values: calculate remainder and update new dividend 45 # define do_div(n,base) ({ \ macro 219 # define do_div(n,base) ({ \ macro 245 # error do_div() does not yet support the C64
|
/linux-master/drivers/phy/ |
H A D | phy-core-mipi-dphy.c | 33 do_div(hs_clk_rate, lanes); 37 do_div(ui, hs_clk_rate); 115 do_div(ui, cfg->hs_clk_rate);
|
/linux-master/arch/x86/kernel/ |
H A D | pvclock.c | 31 do_div(pv_tsc_khz, src->tsc_to_system_mul); 150 now.tv_nsec = do_div(delta, NSEC_PER_SEC);
|
/linux-master/sound/drivers/pcsp/ |
H A D | pcsp.h | 44 do_div(__val, PIT_TICK_RATE); \
|
/linux-master/arch/riscv/lib/ |
H A D | delay.c | 92 do_div(n, 1000000);
|
/linux-master/arch/powerpc/kvm/ |
H A D | timing.c | 140 do_div(min, tb_ticks_per_usec); 142 do_div(max, tb_ticks_per_usec); 144 do_div(sum, tb_ticks_per_usec); 146 do_div(sum_quad, tb_ticks_per_usec);
|
/linux-master/kernel/ |
H A D | tsacct.c | 36 do_div(delta, NSEC_PER_USEC); 39 do_div(delta, NSEC_PER_USEC); 97 do_div(stats->coremem, 1000 * KB); 99 do_div(stats->virtmem, 1000 * KB);
|
/linux-master/drivers/iio/dac/ |
H A D | dpot-dac.c | 69 do_div(tmp, dac->max_ohms); 71 do_div(tmp, 1000000000LL); 152 do_div(tmp, val2); 156 do_div(tmp, 1000000000LL);
|
/linux-master/drivers/pwm/ |
H A D | pwm-lpss.c | 132 do_div(freq, period_ns); 146 do_div(on_time_div, period_ns); 225 do_div(freq, base_unit_range); 232 do_div(on_time_div, 255);
|