Home
last modified time | relevance | path

Searched refs:div64_ul (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v6.6/drivers/clk/renesas/
Drcar-gen2-cpg.c72 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()
Drcar-gen4-cpg.c88 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()
Drcar-gen3-cpg.c73 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-v6.6/drivers/gpu/drm/i915/gt/
Dselftest_timeline.c317 __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-v6.6/scripts/coccinelle/misc/
Ddo_div.cocci106 coccilib.org.print_todo(p[0], construct_warnings("div64_ul"))
134 coccilib.report.print_report(p[0], construct_warnings("div64_ul"))
/Linux-v6.6/drivers/clk/imx/
Dclk-pllv3.c251 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-v6.6/include/linux/
Dmath64.h13 #define div64_ul(x, y) div64_u64((x), (y)) macro
87 #define div64_ul(x, y) div_u64((x), (y)) macro
/Linux-v6.6/drivers/pwm/
Dpwm-sifive.c95 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()
Dpwm-meson.c301 return div64_ul(NSEC_PER_SEC * (u64)cnt, fin_freq); in meson_pwm_cnt_to_ns()
/Linux-v6.6/kernel/dma/
Dmap_benchmark.c82 map_100ns = div64_ul(map_delta, 100); in map_benchmark_thread()
83 unmap_100ns = div64_ul(unmap_delta, 100); in map_benchmark_thread()
/Linux-v6.6/tools/testing/selftests/bpf/progs/
Dbpf_cubic.c120 #define div64_ul div64_u64 macro
444 div64_ul((__u64)GSO_MAX_SIZE * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
/Linux-v6.6/drivers/watchdog/
Ddavinci_wdt.c137 timer_counter = div64_ul(timer_counter, freq); in davinci_wdt_get_timeleft()
Drzg2l_wdt.c96 return div64_ul(timer_cycle_us, cycle); in rzg2l_wdt_get_cycle_usec()
/Linux-v6.6/drivers/pci/
Dsetup-bus.c1899 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-v6.6/net/ipv4/
Dinetpeer.c79 nr_entries = div64_ul((u64)totalram_pages() << PAGE_SHIFT, in inet_initpeers()
Dtcp_cubic.c383 div64_ul((u64)sk->sk_gso_max_size * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
/Linux-v6.6/drivers/gpu/drm/msm/
Dmsm_gpu_devfreq.c106 busy_time = div64_ul(busy_time, sample_rate); in msm_devfreq_get_dev_status()
/Linux-v6.6/drivers/memory/
Djz4780-nemc.c150 return div64_ul(1000000000000ull, rate); in jz4780_nemc_clk_period()
/Linux-v6.6/mm/
Dpage-writeback.c199 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-v6.6/drivers/i2c/busses/
Di2c-rzv2m.c146 hold_time_ns = div64_ul((u64)(priv->iicb0wl >> 2) * NSEC_PER_SEC, pclk_hz); in rzv2m_i2c_clock_calculate()
/Linux-v6.6/drivers/char/
Dhpet.c555 return div64_ul(m, dis); in hpet_time_div()
/Linux-v6.6/block/
Dbfq-wf2q.c288 return div64_ul((u64)service << WFQ_SERVICE_SHIFT, weight); in bfq_delta()
/Linux-v6.6/kernel/sched/
Ddebug.c1045 avg_atom = div64_ul(avg_atom, nr_switches); in proc_sched_show_task()
/Linux-v6.6/net/sched/
Dsch_fq.c624 len = div64_ul(len, rate); in fq_dequeue()
/Linux-v6.6/drivers/media/i2c/
Dmax2175.c594 frac_desired = div64_ul((u64)(lo_freq % ctx->xtal_freq) << 20, in max2175_set_lo_freq()

12