Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/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-gen3-cpg.c125 min_mult = max(div64_ul(req->min_rate * 32ULL, prate), 1ULL); in cpg_z_clk_determine_rate()
126 max_mult = min(div64_ul(req->max_rate * 32ULL, prate), 32ULL); in cpg_z_clk_determine_rate()
130 mult = div64_ul(req->rate * 32ULL, prate); in cpg_z_clk_determine_rate()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gt/
Dselftest_timeline.c285 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
286 prng32_1M = div64_ul(ktime_to_ns(kt) << 20, count); in bench_sync()
302 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
320 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
336 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
350 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
374 __func__, count, (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
403 (long long)div64_ul(ktime_to_ns(kt), count)); in bench_sync()
/kernel/linux/linux-5.10/include/linux/
Dmath64.h12 #define div64_ul(x, y) div64_u64((x), (y)) macro
86 #define div64_ul(x, y) div_u64((x), (y)) macro
/kernel/linux/linux-5.10/drivers/pwm/
Dpwm-sifive.c93 scale_pow = div64_ul(ddata->approx_period * (u64)rate, NSEC_PER_SEC); in pwm_sifive_update_clock()
102 ddata->real_period = div64_ul(num, rate); in pwm_sifive_update_clock()
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_cubic.c120 #define div64_ul div64_u64 macro
450 div64_ul((__u64)GSO_MAX_SIZE * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
/kernel/linux/linux-5.10/kernel/sched/
Dsched_avg.c179 busy = div64_ul((util * 100), capacity); in sched_get_cpu_util()
Ddebug.c999 avg_atom = div64_ul(avg_atom, nr_switches); in proc_sched_show_task()
Dfair.c8402 load = div64_ul(load * se->avg.load_avg, in update_cfs_rq_h_load()
8415 return div64_ul(p->se.avg.load_avg * cfs_rq->h_load, in task_h_load()
/kernel/linux/linux-5.10/drivers/memory/
Djz4780-nemc.c151 return div64_ul(1000000000000ull, rate); in jz4780_nemc_clk_period()
/kernel/linux/linux-5.10/drivers/hwmon/
Damd_energy.c140 *val = div64_ul(input * 1000000UL, BIT(data->energy_units)); in amd_add_delta()
/kernel/linux/linux-5.10/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()
769 wb_thresh = div64_ul(wb_thresh, denominator); in __wb_calc_thresh()
1094 bw = div64_ul(bw, elapsed); in wb_update_write_bandwidth()
Dcompaction.c1900 return div64_ul(score, zone->zone_pgdat->node_present_pages + 1); in fragmentation_score_zone()
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_cubic.c390 div64_ul((u64)GSO_MAX_SIZE * 4 * USEC_PER_SEC, rate)); in hystart_ack_delay()
Dtcp_output.c1211 u64 len_ns = div64_ul((u64)skb->len * NSEC_PER_SEC, rate); in tcp_update_skb_after_send()
/kernel/linux/linux-5.10/drivers/pci/
Dsetup-bus.c1997 io_per_hp = div64_ul(resource_size(&io), hotplug_bridges); in pci_bus_distribute_available_resources()
1998 mmio_per_hp = div64_ul(resource_size(&mmio), hotplug_bridges); in pci_bus_distribute_available_resources()
1999 mmio_pref_per_hp = div64_ul(resource_size(&mmio_pref), in pci_bus_distribute_available_resources()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ras.c998 unsigned int start = div64_ul(ppos + element_size - 1, element_size); in amdgpu_ras_sysfs_badpages_read()
999 unsigned int end = div64_ul(ppos + count - 1, element_size); in amdgpu_ras_sysfs_badpages_read()
/kernel/linux/linux-5.10/drivers/char/
Dhpet.c570 return div64_ul(m, dis); in hpet_time_div()
/kernel/linux/linux-5.10/block/
Dbfq-wf2q.c280 return div64_ul((u64)service << WFQ_SERVICE_SHIFT, weight); in bfq_delta()
Dbfq-iosched.c3101 rate = div64_ul(bfqd->tot_sectors_dispatched<<BFQ_RATE_SHIFT, in bfq_update_rate_reset()
5232 ttime->ttime_mean = div64_ul(ttime->ttime_total + 128, in bfq_update_io_thinktime()
/kernel/linux/linux-5.10/drivers/media/i2c/
Dmax2175.c594 frac_desired = div64_ul((u64)(lo_freq % ctx->xtal_freq) << 20, in max2175_set_lo_freq()
/kernel/linux/linux-5.10/net/sched/
Dsch_fq.c624 len = div64_ul(len, rate); in fq_dequeue()
/kernel/linux/linux-5.10/drivers/soc/qcom/
Dcpr.c1046 temp = div64_ul(temp, f_high - f_low); in cpr_interpolate()
/kernel/linux/linux-5.10/kernel/trace/
Dftrace.c523 avg = div64_ul(rec->time, rec->counter); in function_stat_show()
549 stddev = div64_ul(stddev, in function_stat_show()
/kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/
Dsym_hipd.c749 period = div64_ul(11 * div_10M[np->clock_divn - 1], 4 * np->clock_khz);