Home
last modified time | relevance | path

Searched refs:div64_u64 (Results 1 – 23 of 23) sorted by relevance

/linux-3.4.99/lib/
Ddiv64.c92 #ifndef div64_u64
93 u64 div64_u64(u64 dividend, u64 divisor) in div64_u64() function
112 EXPORT_SYMBOL(div64_u64);
125 quot = div64_u64(abs64(dividend), abs64(divisor)); in div64_s64()
/linux-3.4.99/include/linux/
Dmath64.h35 static inline u64 div64_u64(u64 dividend, u64 divisor) in div64_u64() function
64 #ifndef div64_u64
65 extern u64 div64_u64(u64 dividend, u64 divisor);
/linux-3.4.99/net/dccp/ccids/lib/
Dtfrc.h34 return div64_u64(a * 1000000, b); in scaled_div()
/linux-3.4.99/net/netfilter/
Dxt_connbytes.c86 what = div64_u64(bytes, pkts); in connbytes_mt()
/linux-3.4.99/arch/x86/kvm/
Di8254.c43 #define mod_64(x, y) ((x) - (y) * div64_u64(x, y))
68 res.l.high = div64_u64(rh, c); in muldiv64()
69 res.l.low = div64_u64(((mod_64(rh, c) << 32) + (rl & 0xffffffff)), c); in muldiv64()
Dlapic.c44 #define mod_64(x, y) ((x) - (y) * div64_u64(x, y))
550 tmcct = div64_u64(ns, in apic_get_tmcct()
/linux-3.4.99/drivers/media/dvb/dvb-core/
Ddvb_demux.c413 speed_bytes = 1000 * div64_u64(speed_bytes, in dvb_dmx_swfilter_packet()
417 speed_timedelta = div64_u64(speed_timedelta, in dvb_dmx_swfilter_packet()
420 div64_u64(speed_bytes, in dvb_dmx_swfilter_packet()
/linux-3.4.99/drivers/hwmon/
Dntc_thermistor.c134 return div64_u64(dividend, divisor); in div64_u64_safe()
Dibmaem.c867 (unsigned long long)div64_u64(delta * NSEC_PER_SEC, time)); in aem_show_power()
/linux-3.4.99/net/ipv4/
Dtcp_cubic.c199 x = (2 * x + (u32)div64_u64(a, (u64)x * (u64)(x - 1))); in cubic_root()
/linux-3.4.99/drivers/gpu/drm/
Ddrm_irq.c508 pixeldur_ns = (s64) div64_u64(1000000000, dotclock); in drm_calc_timestamping_constants()
509 linedur_ns = (s64) div64_u64(((u64) crtc->hwmode.crtc_htotal * in drm_calc_timestamping_constants()
/linux-3.4.99/fs/btrfs/
Dfree-space-cache.c1098 bitmap_start = div64_u64(bitmap_start, bytes_per_bitmap); in offset_to_bitmap()
1328 int max_bitmaps = div64_u64(size + bytes_per_bg - 1, bytes_per_bg); in recalculate_thresholds()
1341 div64_u64(size, 1024 * 1024 * 1024); in recalculate_thresholds()
1360 extent_bytes = min_t(u64, extent_bytes, div64_u64(max_bytes, 2)); in recalculate_thresholds()
1363 div64_u64(extent_bytes, (sizeof(struct btrfs_free_space))); in recalculate_thresholds()
Dextent-tree.c2913 num_pages = (int)div64_u64(block_group->key.offset, 1024 * 1024 * 1024); in cache_save_setup()
4201 num_bytes += div64_u64(data_used + meta_used, 50); in calc_global_metadata_size()
4204 num_bytes = div64_u64(meta_used, 3); in calc_global_metadata_size()
4408 old_csums = (int)div64_u64(BTRFS_I(inode)->csum_bytes, root->sectorsize); in calc_csum_metadata_size()
4414 num_csums_per_leaf = (int)div64_u64(csum_size, in calc_csum_metadata_size()
4417 num_csums = (int)div64_u64(BTRFS_I(inode)->csum_bytes, root->sectorsize); in calc_csum_metadata_size()
/linux-3.4.99/fs/exofs/
Dore.c529 u64 M = div64_u64(file_offset, S); in ore_calc_stripe_info()
536 u32 G = div64_u64(LmodS, T); in ore_calc_stripe_info()
/linux-3.4.99/arch/x86/include/asm/
Dprocessor.h952 ratio = div64_u64(aperf, mperf); in calc_aperfmperf_ratio()
/linux-3.4.99/kernel/sched/
Ddebug.c477 avg_per_cpu = div64_u64(avg_per_cpu, in proc_sched_show_task()
Dcore.c3157 temp = div64_u64(temp, (__force u64) total); in scale_utime()
7571 return div64_u64(runtime << 20, period); in to_ratio()
Dfair.c813 load_avg = div64_u64(cfs_rq->load_avg, cfs_rq->load_period+1); in update_cfs_rq_load_contribution()
/linux-3.4.99/block/
Dblk-throttle.c661 jiffy_wait = div64_u64(extra_bytes * HZ, tg->bps[rw]); in tg_with_in_bps_limit()
/linux-3.4.99/arch/ia64/kvm/
Dkvm-ia64.c471 expires = div64_u64(itc_diff, cyc_per_usec); in kvm_emulate_halt()
/linux-3.4.99/mm/
Dvmscan.c2006 scan = div64_u64(scan * fraction[file], denominator); in get_scan_count()
/linux-3.4.99/kernel/events/
Dcore.c2424 return div64_u64(dividend, divisor); in perf_calculate_period()
4896 nr = div64_u64(period + val, period); in perf_swevent_set_period()
/linux-3.4.99/net/core/
Dpktgen.c3154 pps = div64_u64(pkt_dev->sofar * NSEC_PER_SEC, in show_results()