Lines Matching +full:timing +full:- +full:adjustment
1 // SPDX-License-Identifier: GPL-2.0
11 #define AWG_DELAY (-5)
48 if (fwparams->instruction_offset >= AWG_MAX_INST) { in awg_generate_instr()
50 return -EINVAL; in awg_generate_instr()
57 arg--; /* pixel adjustment */ in awg_generate_instr()
58 arg_tmp--; in awg_generate_instr()
105 return -EINVAL; in awg_generate_instr()
108 arg_tmp = arg_tmp - arg; in awg_generate_instr()
113 fwparams->ram_code[fwparams->instruction_offset] = in awg_generate_instr()
115 fwparams->instruction_offset++; in awg_generate_instr()
122 struct awg_timing *timing) in awg_generate_line_signal() argument
127 if (timing->trailing_pixels > 0) { in awg_generate_line_signal()
129 val = timing->blanking_level; in awg_generate_line_signal()
132 val = timing->trailing_pixels - 1 + AWG_DELAY; in awg_generate_line_signal()
137 val = timing->blanking_level; in awg_generate_line_signal()
138 ret |= awg_generate_instr((timing->trailing_pixels > 0) ? SET : RPLSET, in awg_generate_line_signal()
141 if (timing->blanking_pixels > 0) { in awg_generate_line_signal()
143 val = timing->active_pixels - 1; in awg_generate_line_signal()
147 val = timing->blanking_level; in awg_generate_line_signal()
156 struct awg_timing *timing) in sti_awg_generate_code_data_enable_mode() argument
161 if (timing->trailing_lines > 0) { in sti_awg_generate_code_data_enable_mode()
163 val = timing->blanking_level; in sti_awg_generate_code_data_enable_mode()
166 val = timing->trailing_lines - 1; in sti_awg_generate_code_data_enable_mode()
170 tmp_val = timing->active_lines - 1; in sti_awg_generate_code_data_enable_mode()
174 ret |= awg_generate_line_signal(fwparams, timing); in sti_awg_generate_code_data_enable_mode()
179 tmp_val -= AWG_MAX_ARG; in sti_awg_generate_code_data_enable_mode()
182 if (timing->blanking_lines > 0) { in sti_awg_generate_code_data_enable_mode()
184 val = timing->blanking_level; in sti_awg_generate_code_data_enable_mode()
187 val = timing->blanking_lines - 1; in sti_awg_generate_code_data_enable_mode()