/linux-6.6.21/drivers/clk/renesas/ |
D | rcar-gen2-cpg.c | 72 min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL); in cpg_z_clk_determine_rate() 73 max_mult = min(div64_ul(req->max_rate * 32ULL, prate), 32ULL); in cpg_z_clk_determine_rate() 77 mult = div64_ul(req->rate * 32ULL, prate); in cpg_z_clk_determine_rate() 92 mult = div64_ul(rate * 32ULL, parent_rate); in cpg_z_clk_set_rate()
|
D | rcar-gen4-cpg.c | 88 min_mult = max(div64_ul(req->min_rate, prate), 1ULL); in cpg_pll_clk_determine_rate() 89 max_mult = min(div64_ul(req->max_rate, prate), 256ULL); in cpg_pll_clk_determine_rate() 228 min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL); in cpg_z_clk_determine_rate() 229 max_mult = min(div64_ul(req->max_rate * 32ULL, prate), 32ULL); in cpg_z_clk_determine_rate()
|
D | rcar-gen3-cpg.c | 73 min_mult = max(div64_ul(req->min_rate, prate), 1ULL); in cpg_pll_clk_determine_rate() 74 max_mult = min(div64_ul(req->max_rate, prate), 128ULL); in cpg_pll_clk_determine_rate() 208 min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL); in cpg_z_clk_determine_rate() 209 max_mult = min(div64_ul(req->max_rate * 32ULL, prate), 32ULL); in cpg_z_clk_determine_rate()
|
/linux-6.6.21/drivers/gpu/drm/i915/gt/ |
D | selftest_timeline.c | 317 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 318 prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); in bench_sync() 334 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 352 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 368 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 382 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 406 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync() 435 (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
|
/linux-6.6.21/scripts/coccinelle/misc/ |
D | do_div.cocci | 106 coccilib.org.print_todo(p[0], construct_warnings("div64_ul")) 134 coccilib.report.print_report(p[0], construct_warnings("div64_ul"))
|
/linux-6.6.21/drivers/clk/imx/ |
D | clk-pllv3.c | 251 temp64 = div64_ul(temp64, parent_rate); in clk_pllv3_av_round_rate() 281 temp64 = div64_ul(temp64, parent_rate); in clk_pllv3_av_set_rate() 338 temp64 = div64_ul(temp64, parent_rate); in clk_pllv3_vf610_rate_to_mf()
|
/linux-6.6.21/include/linux/ |
D | math64.h | 13 #define div64_ul(x, y) div64_u64((x), (y)) macro 87 #define div64_ul(x, y) div_u64((x), (y)) macro
|
/linux-6.6.21/drivers/pwm/ |
D | pwm-sifive.c | 95 scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC); in pwm_sifive_update_clock() 104 ddata->real_period = div64_ul(num, rate); in pwm_sifive_update_clock()
|
D | pwm-meson.c | 301 return div64_ul(NSEC_PER_SEC * (u64)cnt, fin_freq); in meson_pwm_cnt_to_ns()
|
/linux-6.6.21/kernel/dma/ |
D | map_benchmark.c | 82 map_100ns = div64_ul(map_delta, 100); in map_benchmark_thread() 83 unmap_100ns = div64_ul(unmap_delta, 100); in map_benchmark_thread()
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | bpf_cubic.c | 120 #define div64_ul div64_u64 macro 444 div64_ul((__u64)GSO_MAX_SIZE * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
|
/linux-6.6.21/drivers/watchdog/ |
D | davinci_wdt.c | 137 timer_counter = div64_ul(timer_counter, freq); in davinci_wdt_get_timeleft()
|
D | rzg2l_wdt.c | 96 return div64_ul(timer_cycle_us, cycle); in rzg2l_wdt_get_cycle_usec()
|
/linux-6.6.21/drivers/pci/ |
D | setup-bus.c | 1899 io_per_b = div64_ul(resource_size(&io), hotplug_bridges); in pci_bus_distribute_available_resources() 1900 mmio_per_b = div64_ul(resource_size(&mmio), hotplug_bridges); in pci_bus_distribute_available_resources() 1901 mmio_pref_per_b = div64_ul(resource_size(&mmio_pref), in pci_bus_distribute_available_resources() 1904 io_per_b = div64_ul(resource_size(&io), normal_bridges); in pci_bus_distribute_available_resources() 1905 mmio_per_b = div64_ul(resource_size(&mmio), normal_bridges); in pci_bus_distribute_available_resources() 1906 mmio_pref_per_b = div64_ul(resource_size(&mmio_pref), in pci_bus_distribute_available_resources()
|
/linux-6.6.21/net/ipv4/ |
D | inetpeer.c | 79 nr_entries = div64_ul((u64)totalram_pages() << PAGE_SHIFT, in inet_initpeers()
|
D | tcp_cubic.c | 383 div64_ul((u64)sk->sk_gso_max_size * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
|
/linux-6.6.21/drivers/memory/ |
D | jz4780-nemc.c | 150 return div64_ul(1000000000000ull, rate); in jz4780_nemc_clk_period()
|
/linux-6.6.21/drivers/gpu/drm/msm/ |
D | msm_gpu_devfreq.c | 106 busy_time = div64_ul(busy_time, sample_rate); in msm_devfreq_get_dev_status()
|
/linux-6.6.21/mm/ |
D | page-writeback.c | 199 min = div64_ul(min, tot_bw); in wb_min_max_ratio() 203 max = div64_ul(max, tot_bw); in wb_min_max_ratio() 877 wb_thresh = div64_ul(wb_thresh, denominator); in __wb_calc_thresh() 1202 bw = div64_ul(bw, elapsed); in wb_update_write_bandwidth()
|
/linux-6.6.21/drivers/i2c/busses/ |
D | i2c-rzv2m.c | 146 hold_time_ns = div64_ul((u64)(priv->iicb0wl >> 2) * NSEC_PER_SEC, pclk_hz); in rzv2m_i2c_clock_calculate()
|
/linux-6.6.21/drivers/char/ |
D | hpet.c | 555 return div64_ul(m, dis); in hpet_time_div()
|
/linux-6.6.21/block/ |
D | bfq-wf2q.c | 288 return div64_ul((u64)service << WFQ_SERVICE_SHIFT, weight); in bfq_delta()
|
/linux-6.6.21/kernel/sched/ |
D | debug.c | 1045 avg_atom = div64_ul(avg_atom, nr_switches); in proc_sched_show_task()
|
/linux-6.6.21/drivers/media/i2c/ |
D | max2175.c | 594 frac_desired = div64_ul((u64)(lo_freq % ctx->xtal_freq) << 20, in max2175_set_lo_freq()
|
/linux-6.6.21/drivers/clk/ |
D | clk-versaclock3.c | 405 vc3->div_frc = min_t(u64, div64_ul(div_frc, *parent_rate), U16_MAX); in vc3_pll_round_rate()
|