Searched refs:lut_index (Results 1 – 4 of 4) sorted by relevance
125 s64 lut_index = get_lut_index(lut, channel_value); in apply_lut_to_channel_value() local135 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()
250 unsigned int lut_index; in fill_backlight_transform_table() local267 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() local299 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()
255 int lut_index; member678 int i, lut_index; in dfll_load_i2c_lut() local683 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()
181 static int lut_index(struct switchtec_ntb *sndev, int mw_idx) in lut_index() function391 offset = LUT_SIZE * lut_index(sndev, idx); in switchtec_ntb_lut_get_addr()