Home
last modified time | relevance | path

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

12345678910>>...15

/linux-5.19.10/drivers/mtd/
Dmtdpstore.c34 blknum = div_u64(off, mtd->erasesize); in mtdpstore_block_isbad()
56 blknum = div_u64(off, mtd->erasesize); in mtdpstore_panic_block_isbad()
64 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_mark_used()
74 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_mark_unused()
88 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_block_mark_unused()
99 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_is_used()
100 u64 blknum = div_u64(off, cxt->mtd->erasesize); in mtdpstore_is_used()
115 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_block_is_used()
143 u64 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_mark_removed()
157 zonenum = div_u64(off, cxt->info.kmsg_size); in mtdpstore_block_clear_removed()
[all …]
/linux-5.19.10/drivers/clk/analogbits/
Dwrpll-cln28hpc.c158 s = div_u64(MAX_VCO_FREQ, target_rate); in __wrpll_calc_divq()
196 max_r_for_parent = div_u64(parent_rate, MIN_POST_DIVR_FREQ); in __wrpll_update_parent_rate()
281 post_divr_freq = div_u64(parent_rate, r); in wrpll_configure_for_rate()
305 post_divr_freq = div_u64(parent_rate, best_r); in wrpll_configure_for_rate()
347 n = div_u64(n, c->divr + 1); in wrpll_calc_output_rate()
/linux-5.19.10/kernel/time/
Dtime.c630 return div_u64((u64)x * TICK_NSEC, NSEC_PER_SEC / USER_HZ); in jiffies_to_clock_t()
647 return div_u64((u64)x * HZ, USER_HZ); in clock_t_to_jiffies()
656 x = div_u64(x * USER_HZ, HZ); in jiffies_64_to_clock_t()
658 x = div_u64(x, HZ / USER_HZ); in jiffies_64_to_clock_t()
668 x = div_u64(x * TICK_NSEC, (NSEC_PER_SEC / USER_HZ)); in jiffies_64_to_clock_t()
677 return div_u64(x, NSEC_PER_SEC / USER_HZ); in nsec_to_clock_t()
679 return div_u64(x * USER_HZ / 512, NSEC_PER_SEC / 512); in nsec_to_clock_t()
686 return div_u64(x * 9, (9ull * NSEC_PER_SEC + (USER_HZ / 2)) / USER_HZ); in nsec_to_clock_t()
695 return div_u64(j * HZ_TO_NSEC_NUM, HZ_TO_NSEC_DEN); in jiffies64_to_nsecs()
705 return div_u64(j * HZ_TO_MSEC_NUM, HZ_TO_MSEC_DEN); in jiffies64_to_msecs()
[all …]
/linux-5.19.10/kernel/
Dtsacct.c42 btime = ktime_get_real_seconds() - div_u64(delta, USEC_PER_SEC); in bacct_add_tsk()
69 stats->ac_utime = div_u64(utime, NSEC_PER_USEC); in bacct_add_tsk()
70 stats->ac_stime = div_u64(stime, NSEC_PER_USEC); in bacct_add_tsk()
73 stats->ac_utimescaled = div_u64(utimescaled, NSEC_PER_USEC); in bacct_add_tsk()
74 stats->ac_stimescaled = div_u64(stimescaled, NSEC_PER_USEC); in bacct_add_tsk()
/linux-5.19.10/drivers/pwm/
Dpwm-hibvt.c105 freq = div_u64(clk_get_rate(hi_pwm_chip->clk), 1000000); in hibvt_pwm_config()
107 period = div_u64(freq * period_ns, 1000); in hibvt_pwm_config()
108 duty = div_u64(period * duty_cycle_ns, period_ns); in hibvt_pwm_config()
138 freq = div_u64(clk_get_rate(hi_pwm_chip->clk), 1000000); in hibvt_pwm_get_state()
142 state->period = div_u64(value * 1000, freq); in hibvt_pwm_get_state()
145 state->duty_cycle = div_u64(value * 1000, freq); in hibvt_pwm_get_state()
/linux-5.19.10/drivers/hwmon/
Dadm1177.c59 val = div_u64(val, 105840000U); in adm1177_write_alert_thr()
60 val = div_u64(val, 1000U); in adm1177_write_alert_thr()
93 *val = div_u64((105840000ull * dummy), in adm1177_read()
239 alert_threshold_ua = div_u64(105840000000, in adm1177_probe()
/linux-5.19.10/lib/
Drbtree_test.c269 time = div_u64(time, perf_loops); in rbtree_test_init()
285 time = div_u64(time, perf_loops); in rbtree_test_init()
302 time = div_u64(time, perf_loops); in rbtree_test_init()
314 time = div_u64(time, perf_loops); in rbtree_test_init()
326 time = div_u64(time, perf_loops); in rbtree_test_init()
362 time = div_u64(time, perf_loops); in rbtree_test_init()
377 time = div_u64(time, perf_loops); in rbtree_test_init()
Dinterval_tree_test.c96 time = div_u64(time, perf_loops); in interval_tree_test_init()
118 time = div_u64(time, search_loops); in interval_tree_test_init()
119 results = div_u64(results, search_loops); in interval_tree_test_init()
/linux-5.19.10/lib/math/
Ddiv64.c115 quot = div_u64(dividend >> n, divisor >> n); in div64_u64_rem()
150 quot = div_u64(dividend, divisor); in div64_u64()
153 quot = div_u64(dividend >> n, divisor >> n); in div64_u64()
/linux-5.19.10/drivers/iommu/intel/
Dperf.c144 val = div_u64(val, 1000); in dmar_latency_snapshot()
147 val = div_u64(val, 1000); in dmar_latency_snapshot()
151 val = div_u64(val, (lstat[i].samples * 1000)); in dmar_latency_snapshot()
/linux-5.19.10/include/linux/
Dmath64.h87 #define div64_ul(x, y) div_u64((x), (y))
124 #ifndef div_u64
125 static inline u64 div_u64(u64 dividend, u32 divisor) in div_u64() function
314 ({ u32 _tmp = (divisor); div_u64((u64)(dividend) + _tmp / 2, _tmp); })
/linux-5.19.10/fs/btrfs/
Dmisc.h40 return div_u64(num, 10); in div_factor()
48 return div_u64(num, 100); in div_factor_fine()
/linux-5.19.10/drivers/net/ethernet/intel/ice/
Dice_ptp_hw.c1491 uix = div_u64(tu_per_sec * LINE_UI_10G_40G, 390625000); in ice_phy_cfg_uix_e822()
1502 uix = div_u64(tu_per_sec * LINE_UI_25G_100G, 390625000); in ice_phy_cfg_uix_e822()
1584 phy_tus = div_u64(tu_per_sec, in ice_phy_cfg_parpcs_e822()
1596 phy_tus = div_u64(tu_per_sec, in ice_phy_cfg_parpcs_e822()
1608 phy_tus = div_u64(tu_per_sec, in ice_phy_cfg_parpcs_e822()
1620 phy_tus = div_u64(tu_per_sec, in ice_phy_cfg_parpcs_e822()
1632 phy_tus = div_u64(tu_per_sec, in ice_phy_cfg_parpcs_e822()
1644 phy_tus = div_u64(tu_per_sec, in ice_phy_cfg_parpcs_e822()
1656 phy_tus = div_u64(tu_per_sec, in ice_phy_cfg_parpcs_e822()
1668 phy_tus = div_u64(tu_per_sec, in ice_phy_cfg_parpcs_e822()
[all …]
/linux-5.19.10/drivers/devfreq/
Dgovernor_simpleondemand.c79 b = div_u64(a, stat->total_time); in devfreq_simple_ondemand_func()
81 b = div_u64(b, (dfso_upthreshold - dfso_downdifferential / 2)); in devfreq_simple_ondemand_func()
/linux-5.19.10/drivers/net/ethernet/mellanox/mlxbf_gige/
Dmlxbf_gige_mdio.c107 freq_output = div_u64((MLXBF_GIGE_MDIO_FREQ_REFERENCE * core_f), in calculate_i1clk()
109 freq_output = div_u64(freq_output, (core_r + 1) * (core_od + 1)); in calculate_i1clk()
132 mdio_period = div_u64((MLXBF_GIGE_MDC_CLK_NS >> 1) * i1clk, 1000000000) - 1; in mdio_period_map()
/linux-5.19.10/security/keys/
Dproc.c211 sprintf(xbuf, "%llum", div_u64(timo, 60)); in proc_keys_show()
213 sprintf(xbuf, "%lluh", div_u64(timo, 60 * 60)); in proc_keys_show()
215 sprintf(xbuf, "%llud", div_u64(timo, 60 * 60 * 24)); in proc_keys_show()
217 sprintf(xbuf, "%lluw", div_u64(timo, 60 * 60 * 24 * 7)); in proc_keys_show()
/linux-5.19.10/drivers/gpu/drm/amd/display/modules/freesync/
Dfreesync.c166 v_total = div_u64((unsigned long long)duration_in_us in calc_v_total_from_duration()
1053 div_u64(nominal_field_rate_in_uhz + 50000, 100000) * 100000; in mod_freesync_build_vrr_params()
1056 min_refresh_in_uhz = div_u64(nominal_field_rate_in_uhz, 2); in mod_freesync_build_vrr_params()
1090 refresh_range = div_u64(in_out_vrr->max_refresh_in_uhz + 500000, 1000000) - in mod_freesync_build_vrr_params()
1091 + div_u64(in_out_vrr->min_refresh_in_uhz + 500000, 1000000); in mod_freesync_build_vrr_params()
1236 div_u64(dm_get_elapse_time_in_ns(core_freesync->dc->ctx, cur_tick, 0), 1000); in mod_freesync_handle_v_update()
1348 nominal_field_rate_in_uhz = div_u64(nominal_field_rate_in_uhz, total); in mod_freesync_calc_nominal_field_rate()
1363 field_rate_in_uhz = div_u64(field_rate_in_uhz, total); in mod_freesync_calc_field_rate_from_timing()
1407 div_u64(nominal_field_rate_in_uhz + 500000, 1000000); in mod_freesync_is_valid_range()
/linux-5.19.10/drivers/clk/
Dclk-si570.c201 n1 = div_u64(div_u64(FDCO_MIN, hs_div), frequency); in si570_calc_divs()
238 rfreq = div_u64(rfreq, hs_div * n1); in si570_recalc_rate()
326 div_u64(data->frequency, 2), data->frequency); in si570_set_frequency_small()
/linux-5.19.10/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_optc.c305 L = div_u64(L, master_h_total); in optc2_align_vblanks()
306 L = div_u64(L, slave_pixel_clock_100Hz); in optc2_align_vblanks()
307 XY = div_u64(L, p); in optc2_align_vblanks()
309 X = div_u64(((XY + 1) * p - L) * master_h_total, p * master_clock_divider); in optc2_align_vblanks()
/linux-5.19.10/drivers/gpu/drm/bridge/
Dtc358768.c288 return (u32)div_u64((u64)pll_clk * priv->dsi_lanes, priv->pd_lines); in tc358768_pll_to_pclk()
293 return (u32)div_u64((u64)pclk * priv->pd_lines, priv->dsi_lanes); in tc358768_pclk_to_pll()
340 pll = (u32)div_u64((u64)refclk * (fbd + 1), divisor); in tc358768_calc_pll()
717 dsibclk_nsk = (u32)div_u64((u64)1000000000 * TC358768_PRECISION, in tc358768_bridge_pre_enable()
719 dsiclk_nsk = (u32)div_u64((u64)1000000000 * TC358768_PRECISION, dsiclk); in tc358768_bridge_pre_enable()
815 val = (u32)div_u64((mode->hsync_end - mode->hsync_start) * in tc358768_bridge_pre_enable()
821 val = (u32)div_u64((mode->htotal - mode->hsync_end) * in tc358768_bridge_pre_enable()
839 val = (u32)div_u64((mode->htotal - mode->hsync_start) * in tc358768_bridge_pre_enable()
/linux-5.19.10/include/net/tc_act/
Dtc_police.h98 burst = div_u64(params->tcfp_burst * params->rate.rate_bytes_ps, in tcf_police_burst()
146 burst = div_u64(params->tcfp_pkt_burst * params->ppsrate.rate_pkts_ps, in tcf_police_burst_pkt()
/linux-5.19.10/block/
Dgenhd.c976 (unsigned int)div_u64(stat.nsecs[STAT_READ], NSEC_PER_MSEC), in part_stat_show()
980 (unsigned int)div_u64(stat.nsecs[STAT_WRITE], NSEC_PER_MSEC), in part_stat_show()
983 (unsigned int)div_u64(stat.nsecs[STAT_READ] + in part_stat_show()
991 (unsigned int)div_u64(stat.nsecs[STAT_DISCARD], NSEC_PER_MSEC), in part_stat_show()
993 (unsigned int)div_u64(stat.nsecs[STAT_FLUSH], NSEC_PER_MSEC)); in part_stat_show()
1248 (unsigned int)div_u64(stat.nsecs[STAT_READ], in diskstats_show()
1253 (unsigned int)div_u64(stat.nsecs[STAT_WRITE], in diskstats_show()
1257 (unsigned int)div_u64(stat.nsecs[STAT_READ] + in diskstats_show()
1265 (unsigned int)div_u64(stat.nsecs[STAT_DISCARD], in diskstats_show()
1268 (unsigned int)div_u64(stat.nsecs[STAT_FLUSH], in diskstats_show()
/linux-5.19.10/drivers/net/ethernet/amd/xgbe/
Dxgbe-ptp.c154 diff = div_u64(adjust, 1000000000UL); in xgbe_adjfreq()
258 pdata->tstamp_addend = div_u64(dividend, pdata->ptpclk_rate); in xgbe_ptp_register()
/linux-5.19.10/drivers/watchdog/
Dsp805_wdt.c104 load = div_u64(rate, 2) * timeout - 1; in wdt_setload()
112 wdd->timeout = div_u64((load + 1) * 2 + (rate / 2), rate); in wdt_setload()
132 return div_u64(load, wdt->rate); in wdt_timeleft()
/linux-5.19.10/include/trace/events/
Dwbt.h73 __entry->lat = div_u64(lat, 1000);
112 __entry->window = div_u64(window, 1000);

12345678910>>...15