Home
last modified time | relevance | path

Searched refs:get_lut_index (Results 1 – 3 of 3) sorted by relevance

/linux/drivers/gpu/drm/vkms/tests/
H A Dvkms_color_test.c96 lut_index = get_lut_index(&test_linear_lut, test_linear_array[0].red); in vkms_color_test_get_lut_index()
100 lut_index = get_lut_index(&test_linear_lut, test_linear_array[i].red); in vkms_color_test_get_lut_index()
104 KUNIT_EXPECT_EQ(test, drm_fixp2int(get_lut_index(&srgb_eotf, 0x0)), 0x0); in vkms_color_test_get_lut_index()
105 KUNIT_EXPECT_EQ(test, drm_fixp2int_ceil(get_lut_index(&srgb_eotf, 0x0)), 0x0); in vkms_color_test_get_lut_index()
106 KUNIT_EXPECT_EQ(test, drm_fixp2int_ceil(get_lut_index(&srgb_eotf, 0x101)), 0x1); in vkms_color_test_get_lut_index()
107 KUNIT_EXPECT_EQ(test, drm_fixp2int_ceil(get_lut_index(&srgb_eotf, 0x202)), 0x2); in vkms_color_test_get_lut_index()
109 KUNIT_EXPECT_EQ(test, drm_fixp2int(get_lut_index(&srgb_inv_eotf, 0x0)), 0x0); in vkms_color_test_get_lut_index()
110 KUNIT_EXPECT_EQ(test, drm_fixp2int_ceil(get_lut_index(&srgb_inv_eotf, 0x0)), 0x0); in vkms_color_test_get_lut_index()
111 KUNIT_EXPECT_EQ(test, drm_fixp2int_ceil(get_lut_index(&srgb_inv_eotf, 0x101)), 0x1); in vkms_color_test_get_lut_index()
112 KUNIT_EXPECT_EQ(test, drm_fixp2int_ceil(get_lut_index(&srgb_inv_eotf, 0x202)), 0x2); in vkms_color_test_get_lut_index()
[all …]
/linux/drivers/gpu/drm/vkms/
H A Dvkms_composer.h22 s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value);
H A Dvkms_composer.c77 VISIBLE_IF_KUNIT s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value) in get_lut_index() function
83 EXPORT_SYMBOL_IF_KUNIT(get_lut_index);
88 s64 lut_index = get_lut_index(lut, channel_value); in apply_lut_to_channel_value()