Lines Matching defs:params
245 static void fill_backlight_transform_table(struct dmcu_iram_parameters params,
253 table->backlight_offsets[0] = params.backlight_lut_array[0];
256 params.backlight_lut_array[params.backlight_lut_array_size - 1];
267 lut_index = (params.backlight_lut_array_size - 1) * i / (num_entries - 1);
268 ASSERT(lut_index < params.backlight_lut_array_size);
273 cpu_to_be16(params.backlight_lut_array[lut_index]);
277 static void fill_backlight_transform_table_v_2_2(struct dmcu_iram_parameters params,
285 table->backlight_offsets[0] = params.backlight_lut_array[0];
288 params.backlight_lut_array[params.backlight_lut_array_size - 1];
299 lut_index = DIV_ROUNDUP((i * params.backlight_lut_array_size), num_entries);
300 ASSERT(lut_index < params.backlight_lut_array_size);
306 cpu_to_be16(params.backlight_lut_array[lut_index]) :
307 cpu_to_le16(params.backlight_lut_array[lut_index]);
311 static void fill_iram_v_2(struct iram_table_v_2 *ram_table, struct dmcu_iram_parameters params)
313 unsigned int set = params.set;
316 cpu_to_be16(params.min_abm_backlight);
320 cpu_to_be16(params.backlight_ramping_reduction);
322 cpu_to_be16(params.backlight_ramping_start);
482 params, ram_table);
485 static void fill_iram_v_2_2(struct iram_table_v_2_2 *ram_table, struct dmcu_iram_parameters params)
487 unsigned int set = params.set;
492 cpu_to_be16(params.min_abm_backlight);
628 params, ram_table, true);
631 static void fill_iram_v_2_3(struct iram_table_v_2_2 *ram_table, struct dmcu_iram_parameters params, bool big_endian)
634 unsigned int set = params.set;
638 cpu_to_be16(params.min_abm_backlight) :
639 cpu_to_le16(params.min_abm_backlight);
689 params, ram_table, big_endian);
693 struct dmcu_iram_parameters params,
698 unsigned int set = params.set;
708 fill_iram_v_2_3(&ram_table, params, false);
742 if (params.backlight_ramping_override) {
744 config.blRampReduction[i] = params.backlight_ramping_reduction;
745 config.blRampStart[i] = params.backlight_ramping_start;
767 struct dmcu_iram_parameters params)
781 fill_iram_v_2_3((struct iram_table_v_2_2 *)ram_table, params, true);
785 fill_iram_v_2_3((struct iram_table_v_2_2 *)ram_table, params, true);
790 fill_iram_v_2_2((struct iram_table_v_2_2 *)ram_table, params);
795 fill_iram_v_2((struct iram_table_v_2 *)ram_table, params);