Home
last modified time | relevance | path

Searched refs:dfixed_const (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/gpu/drm/radeon/
H A Drs690.c81 tmp.full = dfixed_const(100); in rs690_pm_info()
82 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info.ulBootUpMemoryClock)); in rs690_pm_info()
85 rdev->pm.igp_system_mclk.full = dfixed_const(le16_to_cpu(info->info.usK8MemoryClock)); in rs690_pm_info()
87 rdev->pm.igp_system_mclk.full = dfixed_const(rdev->clock.default_mclk); in rs690_pm_info()
90 rdev->pm.igp_system_mclk.full = dfixed_const(400); in rs690_pm_info()
91 rdev->pm.igp_ht_link_clk.full = dfixed_const(le16_to_cpu(info->info.usFSBClock)); in rs690_pm_info()
92 rdev->pm.igp_ht_link_width.full = dfixed_const(info->info.ucHTLinkWidth); in rs690_pm_info()
95 tmp.full = dfixed_const(100); in rs690_pm_info()
96 rdev->pm.igp_sideport_mclk.full = dfixed_const(le32_to_cpu(info->info_v2.ulBootUpSidePortClock)); in rs690_pm_info()
99 rdev->pm.igp_system_mclk.full = dfixed_const(le32_to_cpu(info->info_v2.ulBootUpUMAClock)); in rs690_pm_info()
[all …]
H A Drv515.c949 a.full = dfixed_const(100); in rv515_crtc_bandwidth_compute()
950 sclk.full = dfixed_const(selected_sclk); in rv515_crtc_bandwidth_compute()
953 if (crtc->vsc.full > dfixed_const(2)) in rv515_crtc_bandwidth_compute()
954 wm->num_line_pair.full = dfixed_const(2); in rv515_crtc_bandwidth_compute()
956 wm->num_line_pair.full = dfixed_const(1); in rv515_crtc_bandwidth_compute()
958 b.full = dfixed_const(mode->crtc_hdisplay); in rv515_crtc_bandwidth_compute()
959 c.full = dfixed_const(256); in rv515_crtc_bandwidth_compute()
963 if (a.full < dfixed_const(4)) { in rv515_crtc_bandwidth_compute()
975 a.full = dfixed_const(mode->clock); in rv515_crtc_bandwidth_compute()
976 b.full = dfixed_const(1000); in rv515_crtc_bandwidth_compute()
[all …]
H A Dr100.c3284 temp_ff.full = dfixed_const(temp); in r100_bandwidth_update()
3291 temp_ff.full = dfixed_const(1000); in r100_bandwidth_update()
3292 pix_clk.full = dfixed_const(mode1->clock); /* convert to fixed point */ in r100_bandwidth_update()
3294 temp_ff.full = dfixed_const(pixel_bytes1); in r100_bandwidth_update()
3298 temp_ff.full = dfixed_const(1000); in r100_bandwidth_update()
3299 pix_clk2.full = dfixed_const(mode2->clock); /* convert to fixed point */ in r100_bandwidth_update()
3301 temp_ff.full = dfixed_const(pixel_bytes2); in r100_bandwidth_update()
3347 trcd_ff.full = dfixed_const(mem_trcd); in r100_bandwidth_update()
3348 trp_ff.full = dfixed_const(mem_trp); in r100_bandwidth_update()
3349 tras_ff.full = dfixed_const(mem_tras); in r100_bandwidth_update()
[all …]
/linux/include/drm/
H A Ddrm_fixed.h37 #define dfixed_const(A) (u32)(((A) << 12))/* + ((B + 0.000122)*4096)) */ macro
42 #define dfixed_init(A) { .full = dfixed_const((A)) }
51 return dfixed_const(non_frac); in dfixed_floor()
58 if (A.full > dfixed_const(non_frac)) in dfixed_ceil()
59 return dfixed_const(non_frac + 1); in dfixed_ceil()
61 return dfixed_const(non_frac); in dfixed_ceil()
/linux/drivers/gpu/drm/tegra/
H A Ddc.c153 outf.full = max_t(u32, outf.full - dfixed_const(1), dfixed_const(1)); in compute_dda_inc()
154 inf.full -= dfixed_const(1); in compute_dda_inc()
157 dda_inc = min_t(u32, dda_inc, dfixed_const(max)); in compute_dda_inc()
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_mst_types.c870 return dfixed_const(pbn_div_x100) / 100; in dm_mst_get_pbn_divider()