OpenGrok
Home
Sort by:
relevance
|
last modified time
|
path
Full Search
in project(s):
src
xsrc
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:DIV_ROUND_CLOSEST
(Results
1 - 20
of
20
) sorted by relevancy
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/volt/
nouveau_nvkm_subdev_volt_gk20a.c
61
mv =
DIV_ROUND_CLOSEST
(coef->c2 * speedo, s_scale);
62
mv =
DIV_ROUND_CLOSEST
((mv + coef->c1) * speedo, s_scale) + coef->c0;
79
mv =
DIV_ROUND_CLOSEST
(coef->c3 * speedo, s_scale) + coef->c4 +
80
DIV_ROUND_CLOSEST
(coef->c5 * temp, t_scale);
81
mv =
DIV_ROUND_CLOSEST
(mv * temp, t_scale) + cvb_mv;
/src/sys/external/bsd/drm2/dist/drm/i915/display/
intel_dp_aux_backlight.c
133
fxp =
DIV_ROUND_CLOSEST
(KHz(DP_EDP_BACKLIGHT_FREQ_BASE_KHZ), freq);
155
fxp_min =
DIV_ROUND_CLOSEST
(fxp * 3, 4);
156
fxp_max =
DIV_ROUND_CLOSEST
(fxp * 5, 4);
163
f = clamp(
DIV_ROUND_CLOSEST
(fxp, 1 << pn), 1, 255);
vlv_dsi_pll.c
56
dsi_clk_khz =
DIV_ROUND_CLOSEST
(pclk * bpp, lane_count);
318
pclk =
DIV_ROUND_CLOSEST
(dsi_clock * intel_dsi->lane_count, bpp);
339
pclk =
DIV_ROUND_CLOSEST
(dsi_clk * intel_dsi->lane_count, bpp);
377
div1_value =
DIV_ROUND_CLOSEST
(ddr_clk, 20000);
intel_cdclk.c
295
cdclk_state->cdclk =
DIV_ROUND_CLOSEST
(cdclk_state->vco,
372
cdclk_state->cdclk =
DIV_ROUND_CLOSEST
(cdclk_state->vco,
465
return
DIV_ROUND_CLOSEST
(dev_priv->hpll_freq << 1, cdclk) - 1;
577
divider =
DIV_ROUND_CLOSEST
(dev_priv->hpll_freq << 1,
788
I915_WRITE(CDCLK_FREQ,
DIV_ROUND_CLOSEST
(cdclk, 1000) - 1);
932
return
DIV_ROUND_CLOSEST
(cdclk - 1000, 500);
1399
cdclk_state->cdclk =
DIV_ROUND_CLOSEST
(cdclk_state->vco, div);
1424
int ratio =
DIV_ROUND_CLOSEST
(vco, dev_priv->cdclk.hw.ref);
1459
int ratio =
DIV_ROUND_CLOSEST
(vco, dev_priv->cdclk.hw.ref);
1526
switch (
DIV_ROUND_CLOSEST
(vco, cdclk))
[
all
...]
intel_panel.c
1408
return
DIV_ROUND_CLOSEST
(KHz(dev_priv->rawclk_freq), pwm_freq_hz);
1416
return
DIV_ROUND_CLOSEST
(KHz(19200), pwm_freq_hz);
1434
return
DIV_ROUND_CLOSEST
(MHz(24), pwm_freq_hz * mul);
1458
return
DIV_ROUND_CLOSEST
(clock, pwm_freq_hz * mul);
1469
return
DIV_ROUND_CLOSEST
(KHz(dev_priv->rawclk_freq), pwm_freq_hz * 128);
1490
return
DIV_ROUND_CLOSEST
(clock, pwm_freq_hz * 32);
1508
return
DIV_ROUND_CLOSEST
(clock, pwm_freq_hz * 128);
1532
return
DIV_ROUND_CLOSEST
(clock, pwm_freq_hz * mul);
intel_bw.c
151
return
DIV_ROUND_CLOSEST
(num * dclk * 100, den * 6);
intel_sprite.c
801
contrast =
DIV_ROUND_CLOSEST
(255 << 6, 235 - 16);
802
brightness = -
DIV_ROUND_CLOSEST
(16 * 255, 235 - 16);
803
sh_scale =
DIV_ROUND_CLOSEST
(128 << 7, 240 - 128);
intel_display.c
219
return
DIV_ROUND_CLOSEST
(ref_freq << 1, divider + 1);
586
clock->vco =
DIV_ROUND_CLOSEST
(refclk * clock->m, clock->n);
587
clock->dot =
DIV_ROUND_CLOSEST
(clock->vco, clock->p);
603
clock->vco =
DIV_ROUND_CLOSEST
(refclk * clock->m, clock->n + 2);
604
clock->dot =
DIV_ROUND_CLOSEST
(clock->vco, clock->p);
615
clock->vco =
DIV_ROUND_CLOSEST
(refclk * clock->m, clock->n);
616
clock->dot =
DIV_ROUND_CLOSEST
(clock->vco, clock->p);
629
clock->dot =
DIV_ROUND_CLOSEST
(clock->vco, clock->p);
948
clock.m2 =
DIV_ROUND_CLOSEST
(target * clock.p * clock.n,
5552
desired_divisor =
DIV_ROUND_CLOSEST
(iclk_virtual_root_freq
[
all
...]
icl_dsi.c
322
return
DIV_ROUND_CLOSEST
(intel_dsi->pclk * bpp, intel_dsi->lane_count);
intel_dp.c
1238
return
DIV_ROUND_CLOSEST
(dev_priv->rawclk_freq, 2000);
1255
return
DIV_ROUND_CLOSEST
(dev_priv->cdclk.hw.cdclk, 2000);
1257
return
DIV_ROUND_CLOSEST
(dev_priv->rawclk_freq, 2000);
intel_display_power.c
1257
DIV_ROUND_CLOSEST
(dev_priv->rawclk_freq, 1000));
/src/sys/external/bsd/drm2/dist/drm/amd/amdgpu/
amdgpu_pll.c
98
*ref_div = min(max(
DIV_ROUND_CLOSEST
(den, post_div), 1u), ref_div_max);
99
*fb_div =
DIV_ROUND_CLOSEST
(nom * *ref_div * post_div, den);
103
*ref_div =
DIV_ROUND_CLOSEST
(*ref_div * fb_div_max, *fb_div);
/src/sys/external/bsd/drm2/dist/drm/i915/gt/
intel_llc.c
118
ia_freq =
DIV_ROUND_CLOSEST
(ia_freq, 100);
intel_rps.c
1235
return
DIV_ROUND_CLOSEST
(rps->gpll_ref_freq * (val - 0xb7), 1000);
1240
return
DIV_ROUND_CLOSEST
(1000 * val, rps->gpll_ref_freq) + 0xb7;
1249
return
DIV_ROUND_CLOSEST
(rps->gpll_ref_freq * val, 2 * 2 * 1000);
1255
return
DIV_ROUND_CLOSEST
(2 * 1000 * val, rps->gpll_ref_freq) * 2;
1263
return
DIV_ROUND_CLOSEST
(val * GT_FREQUENCY_MULTIPLIER,
1278
return
DIV_ROUND_CLOSEST
(val * GEN9_FREQ_SCALER,
1285
return
DIV_ROUND_CLOSEST
(val, GT_FREQUENCY_MULTIPLIER);
/src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/clk/
nouveau_nvkm_subdev_clk_gm20b.c
201
s32 mv =
DIV_ROUND_CLOSEST
(uv, 1000);
204
coeff =
DIV_ROUND_CLOSEST
(mv * p->coeff_slope, 1000) + p->coeff_offs;
205
coeff =
DIV_ROUND_CLOSEST
(coeff, 1000);
208
dvfs->dfs_ext_cal =
DIV_ROUND_CLOSEST
(uv - clk->uvdet_offs,
239
det_delta =
DIV_ROUND_CLOSEST
(((s32)clk->uv) - clk->uvdet_offs,
/src/sys/external/bsd/common/include/linux/
kernel.h
102
#define
DIV_ROUND_CLOSEST
(N, D) \
/src/sys/external/bsd/drm2/dist/drm/
drm_modes.c
813
refresh =
DIV_ROUND_CLOSEST
(num, den);
drm_edid.c
3270
clock =
DIV_ROUND_CLOSEST
(clock * 1001, 1000);
3272
clock =
DIV_ROUND_CLOSEST
(clock * 1000, 1001);
/src/sys/external/bsd/drm2/dist/drm/radeon/
radeon_display.c
931
*fb_div =
DIV_ROUND_CLOSEST
(nom * *ref_div * post_div, den);
/src/sys/external/bsd/drm2/dist/drm/i915/
intel_pm.c
2841
linetime =
DIV_ROUND_CLOSEST
(adjusted_mode->crtc_htotal * 1000 * 8,
2843
ips_linetime =
DIV_ROUND_CLOSEST
(adjusted_mode->crtc_htotal * 1000 * 8,
Completed in 78 milliseconds
Indexes created Fri Jun 12 00:25:51 UTC 2026