Searched refs:DIV_ROUND_CLOSEST_ULL (Results 1 - 13 of 13) sorted by relevance

/openbsd-current/sys/dev/pci/drm/include/linux/
H A Dmath.h16 #define DIV_ROUND_CLOSEST_ULL(x, y) DIV_ROUND_CLOSEST(x, y) macro
/openbsd-current/sys/dev/pci/drm/i915/
H A Di915_hwmon.c223 val = DIV_ROUND_CLOSEST_ULL((u64)val << hwmon->scl_shift_time, SF_TIME);
443 nval = DIV_ROUND_CLOSEST_ULL((u64)val << hwmon->scl_shift_power, SF_POWER);
494 uval = DIV_ROUND_CLOSEST_ULL(val << POWER_SETUP_I1_SHIFT, SF_POWER);
609 uval = DIV_ROUND_CLOSEST_ULL(val << POWER_SETUP_I1_SHIFT, SF_CURR);
/openbsd-current/sys/dev/pci/drm/
H A Ddrm_vblank.c322 diff = DIV_ROUND_CLOSEST_ULL(diff_ns, framedur_ns);
1560 diff = DIV_ROUND_CLOSEST_ULL(diff_ns, framedur_ns);
H A Ddrm_modes.c1303 return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(num, 1000), den);
/openbsd-current/sys/dev/pci/drm/i915/gt/
H A Dintel_gt_sysfs_pm.c178 return DIV_ROUND_CLOSEST_ULL(res, 1000);
H A Dintel_engine_cs.c2033 DIV_ROUND_CLOSEST_ULL(intel_context_get_total_runtime_ns(rq->context),
/openbsd-current/sys/dev/pci/drm/apple/
H A Dparser.c424 return DIV_ROUND_CLOSEST_ULL(clock >> 16, 1000);
/openbsd-current/sys/dev/pci/drm/i915/display/
H A Dintel_dpll.c360 clock->vco = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(refclk, clock->m),
739 m2 = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(target, clock.p * clock.n) << 22,
H A Dintel_snps_phy.c1945 return DIV_ROUND_CLOSEST_ULL(mul_u32_u32(refclk, (multiplier << 16) + frac_quot) +
H A Dintel_cx0_phy.c2355 tmpclk = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(refclk, (multiplier << 16) + frac_quot) +
2403 vco = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(ref, (multiplier << (17 - 2)) + frac) >> 17, 10);
H A Dintel_backlight.c52 target_val = DIV_ROUND_CLOSEST_ULL(target_val, source_max - source_min);
H A Dintel_dp.c373 max_link_rate_kbps = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(max_link_rate_kbps, 9671), 10000);
383 * max_link_rate_kbps = DIV_ROUND_CLOSEST_ULL(max_link_rate_kbps * 8, 10);
/openbsd-current/sys/dev/pci/drm/i915/gvt/
H A Dhandlers.c590 clock.vco = DIV_ROUND_CLOSEST_ULL(mul_u32_u32(refclk, clock.m), clock.n << 22);

Completed in 284 milliseconds