Searched refs:do_div (Results 1 – 15 of 15) sorted by relevance
| /include/linux/ |
| D | acct.h | 77 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()
|
| D | math.h | 52 ({ 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)
|
| D | math64.h | 92 *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()
|
| D | clockchips.h | 176 do_div(tmp, nsec); in div_sc()
|
| D | ktime.h | 139 do_div(tmp, div); in ktime_divns()
|
| D | clocksource.h | 167 do_div(tmp, freq); in clocksource_freq2mult()
|
| D | cpufreq.h | 557 do_div(result, div); in cpufreq_scale()
|
| /include/asm-generic/ |
| D | div64.h | 45 # 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/ |
| D | stage3_trace_output.h | 140 do_div(____val, NSEC_PER_SEC); \ 148 (u32) do_div(____val, NSEC_PER_SEC); \
|
| /include/acpi/platform/ |
| D | aclinuxex.h | 21 (r32) = do_div ((__n), (d32)); \
|
| /include/net/ |
| D | codel.h | 92 do_div(valns, NSEC_PER_USEC); in codel_time_to_us()
|
| D | tcp.h | 588 do_div(val, TCP_SYNCOOKIE_PERIOD); in tcp_cookie_time() 1557 do_div(val, scaling_ratio); in __tcp_space_from_win()
|
| /include/linux/mtd/ |
| D | mtd.h | 579 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()
|
| D | nand.h | 756 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/ |
| D | drm_fixed.h | 68 do_div(tmp, B.full); in dfixed_div()
|