Home
last modified time | relevance | path

Searched refs:lut_index (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/drivers/gpu/drm/vkms/
H A Dvkms_composer.c125 s64 lut_index = get_lut_index(lut, channel_value); in apply_lut_to_channel_value() local
135 floor_lut_value = (__u16 *)&lut->base[drm_fixp2int(lut_index)]; in apply_lut_to_channel_value()
136 if (drm_fixp2int(lut_index) == (lut->lut_length - 1)) in apply_lut_to_channel_value()
140 ceil_lut_value = (__u16 *)&lut->base[drm_fixp2int_ceil(lut_index)]; in apply_lut_to_channel_value()
146 lut_index & DRM_FIXED_DECIMAL_MASK); in apply_lut_to_channel_value()
/openbmc/linux/drivers/gpu/drm/amd/display/modules/power/
H A Dpower_helpers.c250 unsigned int lut_index; in fill_backlight_transform_table() local
267 lut_index = (params.backlight_lut_array_size - 1) * i / (num_entries - 1); in fill_backlight_transform_table()
268 ASSERT(lut_index < params.backlight_lut_array_size); in fill_backlight_transform_table()
273 cpu_to_be16(params.backlight_lut_array[lut_index]); in fill_backlight_transform_table()
282 unsigned int lut_index; in fill_backlight_transform_table_v_2_2() local
299 lut_index = DIV_ROUNDUP((i * params.backlight_lut_array_size), num_entries); in fill_backlight_transform_table_v_2_2()
300 ASSERT(lut_index < params.backlight_lut_array_size); in fill_backlight_transform_table_v_2_2()
306 cpu_to_be16(params.backlight_lut_array[lut_index]) : in fill_backlight_transform_table_v_2_2()
307 cpu_to_le16(params.backlight_lut_array[lut_index]); in fill_backlight_transform_table_v_2_2()
/openbmc/linux/drivers/clk/tegra/
H A Dclk-dfll.c255 int lut_index; member
678 int i, lut_index; in dfll_load_i2c_lut() local
683 lut_index = td->lut_min; in dfll_load_i2c_lut()
685 lut_index = td->lut_max; in dfll_load_i2c_lut()
687 lut_index = i; in dfll_load_i2c_lut()
690 td->lut[lut_index]); in dfll_load_i2c_lut()
865 req->lut_index = find_lut_index_for_rate(td, req->dvco_target_rate); in dfll_calculate_rate_request()
866 if (req->lut_index < 0) in dfll_calculate_rate_request()
867 return req->lut_index; in dfll_calculate_rate_request()
887 force_val = (req->lut_index - td->lut_safe) * coef / td->cg; in dfll_set_frequency_request()
/openbmc/linux/drivers/ntb/hw/mscc/
H A Dntb_hw_switchtec.c181 static int lut_index(struct switchtec_ntb *sndev, int mw_idx) in lut_index() function
391 offset = LUT_SIZE * lut_index(sndev, idx); in switchtec_ntb_lut_get_addr()