Home
last modified time | relevance | path

Searched refs:div64_u64 (Results 1 – 19 of 19) sorted by relevance

/openbsd/src/sys/dev/pci/drm/amd/display/modules/freesync/
Dfreesync.c96 ((unsigned int)(div64_u64((1000000000ULL * 1000000),
106 ((unsigned int)(div64_u64((1000000000ULL * 1000), in calc_duration_in_us_from_refresh_in_uhz()
117 (unsigned int)(div64_u64(((unsigned long long)(v_total) in calc_duration_in_us_from_v_total()
143 ((unsigned int)(div64_u64((1000000000ULL * 1000000), in mod_freesync_calc_v_total_from_refresh()
146 v_total = div64_u64(div64_u64(((unsigned long long)( in mod_freesync_calc_v_total_from_refresh()
180 v_total = div64_u64(div64_u64(((unsigned long long)( in calc_v_total_from_duration()
211 unsigned int frame_duration_ratio = div64_u64(1000000, in update_v_total_for_static_ramp()
212 (1000 + div64_u64(((unsigned long long)( in update_v_total_for_static_ramp()
218 unsigned int frame_duration_delta = div64_u64(((unsigned long long)( in update_v_total_for_static_ramp()
225 unsigned int ramp_rate_interpolated = div64_u64(((unsigned long long)( in update_v_total_for_static_ramp()
[all …]
/openbsd/src/sys/dev/pci/drm/include/linux/
Dmath64.h22 div64_u64(uint64_t x, uint64_t y) in div64_u64() function
62 div64_u64((x) + _t - 1, _t); \
/openbsd/src/sys/dev/pci/drm/amd/display/amdgpu_dm/
Damdgpu_dm_psr.c160 vsync_rate_hz = div64_u64(div64_u64(( in amdgpu_dm_psr_enable()
/openbsd/src/sys/dev/pci/drm/amd/display/dc/
Ddc_dmub_srv.c591 drr_frame_us = div64_u64(((uint64_t)drr_timing->v_total * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
594 …mall_region_us = div64_u64(((uint64_t)phantom_timing->v_addressable * phantom_timing->h_total * 10… in populate_subvp_cmd_drr_info()
597 …min_vtotal_supported = div64_u64(((uint64_t)drr_timing->pix_clk_100hz * 100 * min_drr_supported_us… in populate_subvp_cmd_drr_info()
600 …prefetch_us = div64_u64(((uint64_t)(phantom_timing->v_total - phantom_timing->v_front_porch) * pha… in populate_subvp_cmd_drr_info()
602 …subvp_active_us = div64_u64(((uint64_t)main_timing->v_addressable * main_timing->h_total * 1000000… in populate_subvp_cmd_drr_info()
604 drr_active_us = div64_u64(((uint64_t)drr_timing->v_addressable * drr_timing->h_total * 1000000), in populate_subvp_cmd_drr_info()
606 max_drr_vblank_us = div64_u64((subvp_active_us - prefetch_us - in populate_subvp_cmd_drr_info()
610 …max_vtotal_supported = div64_u64(((uint64_t)drr_timing->pix_clk_100hz * 100 * max_drr_supported_us… in populate_subvp_cmd_drr_info()
720 …subvp0_prefetch_us = div64_u64(((uint64_t)(phantom_timing0->v_total - phantom_timing0->v_front_por… in update_subvp_prefetch_end_to_mall_start()
723 …subvp1_prefetch_us = div64_u64(((uint64_t)(phantom_timing1->v_total - phantom_timing1->v_front_por… in update_subvp_prefetch_end_to_mall_start()
[all …]
/openbsd/src/sys/dev/pci/drm/i915/gt/
Dselftest_rc6.c77 rc0_power = div64_u64(NSEC_PER_SEC * rc0_power, in live_rc6_manual()
106 rc6_power = div64_u64(NSEC_PER_SEC * rc6_power, in live_rc6_manual()
Dselftest_rps.c549 return div64_u64(1000 * 1000 * dc, dt); in __measure_frequency()
578 return div64_u64(1000 * 1000 * dc, dt); in __measure_cs_frequency()
1107 return div64_u64(1000 * 1000 * dE, dt); in __measure_power()
Dselftest_migrate.c878 div64_u64(mul_u32_u32(4 * sz, in __perf_clear_blt()
961 div64_u64(mul_u32_u32(4 * sz, in __perf_copy_blt()
Dintel_rps.c133 busy, (int)div64_u64(100 * busy, dt), in rps_timer()
Dselftest_execlists.c3823 prime, div64_u64(ktime_to_ns(times[1]), prime)); in nop_virtual_engine()
/openbsd/src/sys/dev/pci/drm/i915/selftests/
Dintel_memory_region.c66 max_pages = div64_u64(total, page_size); in igt_mock_fill()
310 n_objects = div64_u64(total, target); in igt_mock_contiguous()
1290 div64_u64(mul_u32_u32(4 * size, in _perf_memcpy()
Di915_request.c637 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_nop_request()
1107 prime, div64_u64(ktime_to_ns(times[1]), prime)); in live_empty_request()
2925 integer = div64_u64(busy, dt); in perf_series_engines()
2927 decimal = div64_u64(100 * busy, dt); in perf_series_engines()
3270 integer = div64_u64(busy, dt); in perf_parallel_engines()
3272 decimal = div64_u64(100 * busy, dt); in perf_parallel_engines()
/openbsd/src/sys/dev/pci/drm/i915/display/
Dintel_audio.c471 tu_data = div64_u64(mul_u32_u32(pixel_clk * vdsc_bppx16 * 8, 1000000), in calc_hblank_early_prog()
473 tu_line = div64_u64(h_active * mul_u32_u32(link_clk, fec_coeff), in calc_hblank_early_prog()
Dintel_cx0_phy.c2158 mpll_tx_clk_div = ilog2(div64_u64((u64)CLOCK_9999MHZ, (u64)datarate)); in intel_c20_compute_hdmi_tmds_pll()
2159 vco_freq_shift = ilog2(div64_u64((u64)CLOCK_4999MHZ * (u64)256, (u64)datarate)); in intel_c20_compute_hdmi_tmds_pll()
2161 multiplier = div64_u64((vco_freq << 28), (REFCLK_38_4_MHZ >> 4)); in intel_c20_compute_hdmi_tmds_pll()
2167 mpll_div_multiplier = min_t(u8, div64_u64((vco_freq * 16 + (datarate >> 1)), in intel_c20_compute_hdmi_tmds_pll()
Dintel_display_debugfs.c496 hdr, div64_u64(crtc->debug.vbl.sum, count)); in crtc_updates_info()
Dintel_dp_mst.c85 return div64_u64(mul_u32_u32(intel_dp_link_symbol_clock(crtc_state->port_clock) * 72, in intel_dp_mst_max_dpt_bpp()
Dintel_dpll_mgr.c1511 deviation = div64_u64(10000 * abs_diff(dco_freq, central_freq), in skl_wrpll_try_divider()
/openbsd/src/sys/dev/pci/drm/i915/gem/selftests/
Di915_gem_context.c173 prime - 1, div64_u64(ktime_to_ns(times[1]), prime - 1)); in live_nop_switch()
/openbsd/src/sys/dev/pci/drm/radeon/
Dsi_dpm.c2200 n = div64_u64((u64)1024 * curr_vddc * curr_vddc * ((u64)1000 + margin), (u64)1000); in si_calculate_power_efficiency_ratio()
2202 pwr_efficiency_ratio = div64_u64(n, d); in si_calculate_power_efficiency_ratio()
Dni_dpm.c1422 tmp = div64_u64(n, d); in ni_calculate_power_boost_limit()