Searched refs:drm_fixp_from_fraction (Results 1 – 3 of 3) sorted by relevance
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_fixp_test.c | 21 KUNIT_EXPECT_EQ(test, drm_fixp_from_fraction(1, 2), in drm_test_sm2fixp() 25 KUNIT_EXPECT_EQ(test, drm_fixp_from_fraction(-1, 2), in drm_test_sm2fixp() 41 KUNIT_EXPECT_EQ(test, 1ll << 31, drm_fixp_from_fraction(1, 2)); in drm_test_int2fixp() 44 KUNIT_EXPECT_EQ(test, -(1ll << 31), drm_fixp_from_fraction(-1, 2)); in drm_test_int2fixp() 47 KUNIT_EXPECT_EQ(test, 1ll << 31, drm_fixp_from_fraction(-1, 2) + drm_int2fixp(1)); in drm_test_int2fixp() 50 KUNIT_EXPECT_EQ(test, -(1ll << 31), drm_fixp_from_fraction(1, 2) + drm_int2fixp(-1)); in drm_test_int2fixp() 53 KUNIT_EXPECT_EQ(test, -(1ll << 31), drm_fixp_from_fraction(1, 2) - drm_int2fixp(1)); in drm_test_int2fixp()
|
| /linux/drivers/gpu/drm/msm/dp/ |
| H A D | dp_ctrl.c | 566 minus_1 = drm_fixp_from_fraction(-1, 1); in _tu_param_compare() 612 tu->lclk_fp = drm_fixp_from_fraction(in->lclk, 1); in msm_dp_panel_update_tu_timings() 613 tu->pclk_fp = drm_fixp_from_fraction(in->pclk_khz, 1000); in msm_dp_panel_update_tu_timings() 621 tu->lwidth_fp = drm_fixp_from_fraction(in->hactive, 1); in msm_dp_panel_update_tu_timings() 622 tu->hbp_relative_to_pclk_fp = drm_fixp_from_fraction(in->hporch, 1); in msm_dp_panel_update_tu_timings() 625 temp1_fp = drm_fixp_from_fraction(2, 1); in msm_dp_panel_update_tu_timings() 654 temp1_fp = drm_fixp_from_fraction(in->compress_ratio, 100); in msm_dp_panel_update_tu_timings() 655 temp2_fp = drm_fixp_from_fraction(in->bpp, 1); in msm_dp_panel_update_tu_timings() 659 temp1_fp = drm_fixp_from_fraction(8, 1); in msm_dp_panel_update_tu_timings() 677 dwidth_dsc_fp = drm_fixp_from_fraction(dwidth_dsc_bytes, 3); in msm_dp_panel_update_tu_timings() [all …]
|
| /linux/include/drm/ |
| H A D | drm_fixed.h | 173 static inline s64 drm_fixp_from_fraction(s64 a, s64 b) in drm_fixp_from_fraction() function
|