Home
last modified time | relevance | path

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

/include/linux/
Dacct.h77 do_div(tmp, (NSEC_PER_SEC / AHZ)); in jiffies_to_AHZ()
85 do_div(x, (NSEC_PER_SEC / AHZ)); in nsec_to_AHZ()
88 do_div(x, (NSEC_PER_SEC / 512)); in nsec_to_AHZ()
96 do_div(x, (unsigned long)((9ull * NSEC_PER_SEC + (AHZ/2)) in nsec_to_AHZ()
Dmath.h52 ({ unsigned long long _tmp = (ll); do_div(_tmp, d); _tmp; })
117 do_div(_tmp, __d); \
147 #define sector_div(a, b) do_div(a, b)
Dmath64.h92 *remainder = do_div(dividend, divisor); in div_u64_rem()
275 rl.l.high = do_div(rh.ll, divisor); in mul_u64_u32_div()
278 do_div(rl.ll, divisor); in mul_u64_u32_div()
Dclockchips.h176 do_div(tmp, nsec); in div_sc()
Dktime.h139 do_div(tmp, div); in ktime_divns()
Dclocksource.h167 do_div(tmp, freq); in clocksource_freq2mult()
Dcpufreq.h557 do_div(result, div); in cpufreq_scale()
/include/asm-generic/
Ddiv64.h45 # define do_div(n,base) ({ \ macro
219 # define do_div(n,base) ({ \ macro
245 # error do_div() does not yet support the C64
/include/trace/stages/
Dstage3_trace_output.h140 do_div(____val, NSEC_PER_SEC); \
148 (u32) do_div(____val, NSEC_PER_SEC); \
/include/acpi/platform/
Daclinuxex.h21 (r32) = do_div ((__n), (d32)); \
/include/net/
Dcodel.h92 do_div(valns, NSEC_PER_USEC); in codel_time_to_us()
Dtcp.h588 do_div(val, TCP_SYNCOOKIE_PERIOD); in tcp_cookie_time()
1557 do_div(val, scaling_ratio); in __tcp_space_from_win()
/include/linux/mtd/
Dmtd.h579 do_div(sz, mtd->erasesize); in mtd_div_by_eb()
587 return do_div(sz, mtd->erasesize); in mtd_mod_by_eb()
622 do_div(sz, mtd->writesize); in mtd_div_by_ws()
630 return do_div(sz, mtd->writesize); in mtd_mod_by_ws()
Dnand.h756 pageoffs = do_div(tmp, nand->memorg.pagesize); in nanddev_offs_to_pos()
757 pos->page = do_div(tmp, nand->memorg.pages_per_eraseblock); in nanddev_offs_to_pos()
758 pos->eraseblock = do_div(tmp, nand->memorg.eraseblocks_per_lun); in nanddev_offs_to_pos()
760 pos->lun = do_div(tmp, nand->memorg.luns_per_target); in nanddev_offs_to_pos()
/include/drm/
Ddrm_fixed.h68 do_div(tmp, B.full); in dfixed_div()