2672137359722ec3b212a11c1b6cd760aeced13e
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] /
1 /*
2 * Support for Intel Camera Imaging ISP subsystem.
3 * Copyright (c) 2015, Intel Corporation.
4 *
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms and conditions of the GNU General Public License,
7 * version 2, as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12 * more details.
13 */
14
15 #define IA_CSS_INCLUDE_PARAMETERS
16 #include "sh_css_params.h"
17 #include "isp/kernels/aa/aa_2/ia_css_aa2.host.h"
18 #include "isp/kernels/anr/anr_1.0/ia_css_anr.host.h"
19 #include "isp/kernels/anr/anr_2/ia_css_anr2.host.h"
20 #include "isp/kernels/bh/bh_2/ia_css_bh.host.h"
21 #include "isp/kernels/bnr/bnr_1.0/ia_css_bnr.host.h"
22 #include "isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.h"
23 #include "isp/kernels/cnr/cnr_2/ia_css_cnr2.host.h"
24 #include "isp/kernels/crop/crop_1.0/ia_css_crop.host.h"
25 #include "isp/kernels/csc/csc_1.0/ia_css_csc.host.h"
26 #include "isp/kernels/ctc/ctc_1.0/ia_css_ctc.host.h"
27 #include "isp/kernels/ctc/ctc1_5/ia_css_ctc1_5.host.h"
28 #include "isp/kernels/ctc/ctc2/ia_css_ctc2.host.h"
29 #include "isp/kernels/de/de_1.0/ia_css_de.host.h"
30 #include "isp/kernels/de/de_2/ia_css_de2.host.h"
31 #include "isp/kernels/dp/dp_1.0/ia_css_dp.host.h"
32 #include "isp/kernels/fixedbds/fixedbds_1.0/ia_css_fixedbds.host.h"
33 #include "isp/kernels/fpn/fpn_1.0/ia_css_fpn.host.h"
34 #include "isp/kernels/gc/gc_1.0/ia_css_gc.host.h"
35 #include "isp/kernels/gc/gc_2/ia_css_gc2.host.h"
36 #include "isp/kernels/macc/macc_1.0/ia_css_macc.host.h"
37 #include "isp/kernels/macc/macc1_5/ia_css_macc1_5.host.h"
38 #include "isp/kernels/ob/ob_1.0/ia_css_ob.host.h"
39 #include "isp/kernels/ob/ob2/ia_css_ob2.host.h"
40 #include "isp/kernels/output/output_1.0/ia_css_output.host.h"
41 #include "isp/kernels/raw_aa_binning/raw_aa_binning_1.0/ia_css_raa.host.h"
42 #include "isp/kernels/s3a/s3a_1.0/ia_css_s3a.host.h"
43 #include "isp/kernels/sc/sc_1.0/ia_css_sc.host.h"
44 #include "isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.h"
45 #include "isp/kernels/sdis/sdis_2/ia_css_sdis2.host.h"
46 #include "isp/kernels/tnr/tnr_1.0/ia_css_tnr.host.h"
47 #include "isp/kernels/uds/uds_1.0/ia_css_uds.host.h"
48 #include "isp/kernels/wb/wb_1.0/ia_css_wb.host.h"
49 #include "isp/kernels/xnr/xnr_1.0/ia_css_xnr.host.h"
50 #include "isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.h"
51 #include "isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.h"
52 #include "isp/kernels/ynr/ynr_2/ia_css_ynr2.host.h"
53 #include "isp/kernels/fc/fc_1.0/ia_css_formats.host.h"
54 #include "isp/kernels/tdf/tdf_1.0/ia_css_tdf.host.h"
55 #include "isp/kernels/dpc2/ia_css_dpc2.host.h"
56 #include "isp/kernels/eed1_8/ia_css_eed1_8.host.h"
57 #include "isp/kernels/bnlm/ia_css_bnlm.host.h"
58 #include "isp/kernels/conversion/conversion_1.0/ia_css_conversion.host.h"
59 /* Generated code: do not edit or commmit. */
60
61 #include "ia_css_pipeline.h"
62 #include "ia_css_isp_params.h"
63 #include "ia_css_debug.h"
64 #include "assert_support.h"
65
66 /* Code generated by genparam/gencode.c:gen_process_function() */
67
68 static void
69 ia_css_process_aa(
70 unsigned pipe_id,
71 const struct ia_css_pipeline_stage *stage,
72 struct ia_css_isp_parameters *params)
73 {
74 assert(params != NULL);
75
76 {
77 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.aa.size;
78
79 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.aa.offset;
80
81 if (size) {
82 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_aa() enter:\n");
83
84 ia_css_aa_encode((struct sh_css_isp_aa_params *)
85 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
86 &params->aa_config,
87 size);
88 params->isp_params_changed = true;
89 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
90
91 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_aa() leave:\n");
92 }
93
94 }
95 }
96
97 /* Code generated by genparam/gencode.c:gen_process_function() */
98
99 static void
100 ia_css_process_anr(
101 unsigned pipe_id,
102 const struct ia_css_pipeline_stage *stage,
103 struct ia_css_isp_parameters *params)
104 {
105 assert(params != NULL);
106
107 {
108 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.anr.size;
109
110 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.anr.offset;
111
112 if (size) {
113 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_anr() enter:\n");
114
115 ia_css_anr_encode((struct sh_css_isp_anr_params *)
116 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
117 &params->anr_config,
118 size);
119 params->isp_params_changed = true;
120 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
121
122 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_anr() leave:\n");
123 }
124
125 }
126 }
127
128 /* Code generated by genparam/gencode.c:gen_process_function() */
129
130 static void
131 ia_css_process_anr2(
132 unsigned pipe_id,
133 const struct ia_css_pipeline_stage *stage,
134 struct ia_css_isp_parameters *params)
135 {
136 assert(params != NULL);
137
138 {
139 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.anr2.size;
140
141 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.anr2.offset;
142
143 if (size) {
144 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_anr2() enter:\n");
145
146 ia_css_anr2_vmem_encode((struct ia_css_isp_anr2_params *)
147 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
148 &params->anr_thres,
149 size);
150 params->isp_params_changed = true;
151 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
152
153 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_anr2() leave:\n");
154 }
155
156 }
157 }
158
159 /* Code generated by genparam/gencode.c:gen_process_function() */
160
161 static void
162 ia_css_process_bh(
163 unsigned pipe_id,
164 const struct ia_css_pipeline_stage *stage,
165 struct ia_css_isp_parameters *params)
166 {
167 assert(params != NULL);
168
169 {
170 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.bh.size;
171
172 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.bh.offset;
173
174 if (size) {
175 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() enter:\n");
176
177 ia_css_bh_encode((struct sh_css_isp_bh_params *)
178 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
179 &params->s3a_config,
180 size);
181 params->isp_params_changed = true;
182 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
183
184 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() leave:\n");
185 }
186
187 }
188 {
189 unsigned size = stage->binary->info->mem_offsets.offsets.param->hmem0.bh.size;
190
191 unsigned offset = stage->binary->info->mem_offsets.offsets.param->hmem0.bh.offset;
192
193 if (size) {
194 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() enter:\n");
195
196 ia_css_bh_hmem_encode((struct sh_css_isp_bh_hmem_params *)
197 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_HMEM0].address[offset],
198 &params->s3a_config,
199 size);
200 params->isp_params_changed = true;
201 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_HMEM0] = true;
202
203 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bh() leave:\n");
204 }
205
206 }
207 }
208
209 /* Code generated by genparam/gencode.c:gen_process_function() */
210
211 static void
212 ia_css_process_cnr(
213 unsigned pipe_id,
214 const struct ia_css_pipeline_stage *stage,
215 struct ia_css_isp_parameters *params)
216 {
217 assert(params != NULL);
218
219 {
220 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.cnr.size;
221
222 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.cnr.offset;
223
224 if (size) {
225 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_cnr() enter:\n");
226
227 ia_css_cnr_encode((struct sh_css_isp_cnr_params *)
228 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
229 &params->cnr_config,
230 size);
231 params->isp_params_changed = true;
232 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
233
234 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_cnr() leave:\n");
235 }
236
237 }
238 }
239
240 /* Code generated by genparam/gencode.c:gen_process_function() */
241
242 static void
243 ia_css_process_crop(
244 unsigned pipe_id,
245 const struct ia_css_pipeline_stage *stage,
246 struct ia_css_isp_parameters *params)
247 {
248 assert(params != NULL);
249
250 {
251 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.crop.size;
252
253 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.crop.offset;
254
255 if (size) {
256 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_crop() enter:\n");
257
258 ia_css_crop_encode((struct sh_css_isp_crop_isp_params *)
259 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
260 &params->crop_config,
261 size);
262 params->isp_params_changed = true;
263 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
264
265 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_crop() leave:\n");
266 }
267
268 }
269 }
270
271 /* Code generated by genparam/gencode.c:gen_process_function() */
272
273 static void
274 ia_css_process_csc(
275 unsigned pipe_id,
276 const struct ia_css_pipeline_stage *stage,
277 struct ia_css_isp_parameters *params)
278 {
279 assert(params != NULL);
280
281 {
282 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.csc.size;
283
284 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.csc.offset;
285
286 if (size) {
287 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_csc() enter:\n");
288
289 ia_css_csc_encode((struct sh_css_isp_csc_params *)
290 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
291 &params->cc_config,
292 size);
293 params->isp_params_changed = true;
294 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
295
296 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_csc() leave:\n");
297 }
298
299 }
300 }
301
302 /* Code generated by genparam/gencode.c:gen_process_function() */
303
304 static void
305 ia_css_process_dp(
306 unsigned pipe_id,
307 const struct ia_css_pipeline_stage *stage,
308 struct ia_css_isp_parameters *params)
309 {
310 assert(params != NULL);
311
312 {
313 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.dp.size;
314
315 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.dp.offset;
316
317 if (size) {
318 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_dp() enter:\n");
319
320 ia_css_dp_encode((struct sh_css_isp_dp_params *)
321 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
322 &params->dp_config,
323 size);
324 params->isp_params_changed = true;
325 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
326
327 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_dp() leave:\n");
328 }
329
330 }
331 }
332
333 /* Code generated by genparam/gencode.c:gen_process_function() */
334
335 static void
336 ia_css_process_bnr(
337 unsigned pipe_id,
338 const struct ia_css_pipeline_stage *stage,
339 struct ia_css_isp_parameters *params)
340 {
341 assert(params != NULL);
342
343 {
344 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.bnr.size;
345
346 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.bnr.offset;
347
348 if (size) {
349 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bnr() enter:\n");
350
351 ia_css_bnr_encode((struct sh_css_isp_bnr_params *)
352 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
353 &params->nr_config,
354 size);
355 params->isp_params_changed = true;
356 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
357
358 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bnr() leave:\n");
359 }
360
361 }
362 }
363
364 /* Code generated by genparam/gencode.c:gen_process_function() */
365
366 static void
367 ia_css_process_de(
368 unsigned pipe_id,
369 const struct ia_css_pipeline_stage *stage,
370 struct ia_css_isp_parameters *params)
371 {
372 assert(params != NULL);
373
374 {
375 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.de.size;
376
377 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.de.offset;
378
379 if (size) {
380 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_de() enter:\n");
381
382 ia_css_de_encode((struct sh_css_isp_de_params *)
383 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
384 &params->de_config,
385 size);
386 params->isp_params_changed = true;
387 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
388
389 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_de() leave:\n");
390 }
391
392 }
393 }
394
395 /* Code generated by genparam/gencode.c:gen_process_function() */
396
397 static void
398 ia_css_process_ecd(
399 unsigned pipe_id,
400 const struct ia_css_pipeline_stage *stage,
401 struct ia_css_isp_parameters *params)
402 {
403 assert(params != NULL);
404
405 {
406 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ecd.size;
407
408 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ecd.offset;
409
410 if (size) {
411 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ecd() enter:\n");
412
413 ia_css_ecd_encode((struct sh_css_isp_ecd_params *)
414 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
415 &params->ecd_config,
416 size);
417 params->isp_params_changed = true;
418 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
419
420 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ecd() leave:\n");
421 }
422
423 }
424 }
425
426 /* Code generated by genparam/gencode.c:gen_process_function() */
427
428 static void
429 ia_css_process_formats(
430 unsigned pipe_id,
431 const struct ia_css_pipeline_stage *stage,
432 struct ia_css_isp_parameters *params)
433 {
434 assert(params != NULL);
435
436 {
437 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.formats.size;
438
439 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.formats.offset;
440
441 if (size) {
442 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_formats() enter:\n");
443
444 ia_css_formats_encode((struct sh_css_isp_formats_params *)
445 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
446 &params->formats_config,
447 size);
448 params->isp_params_changed = true;
449 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
450
451 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_formats() leave:\n");
452 }
453
454 }
455 }
456
457 /* Code generated by genparam/gencode.c:gen_process_function() */
458
459 static void
460 ia_css_process_fpn(
461 unsigned pipe_id,
462 const struct ia_css_pipeline_stage *stage,
463 struct ia_css_isp_parameters *params)
464 {
465 assert(params != NULL);
466
467 {
468 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.fpn.size;
469
470 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.fpn.offset;
471
472 if (size) {
473 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fpn() enter:\n");
474
475 ia_css_fpn_encode((struct sh_css_isp_fpn_params *)
476 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
477 &params->fpn_config,
478 size);
479 params->isp_params_changed = true;
480 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
481
482 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fpn() leave:\n");
483 }
484
485 }
486 }
487
488 /* Code generated by genparam/gencode.c:gen_process_function() */
489
490 static void
491 ia_css_process_gc(
492 unsigned pipe_id,
493 const struct ia_css_pipeline_stage *stage,
494 struct ia_css_isp_parameters *params)
495 {
496 assert(params != NULL);
497
498 {
499 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.gc.size;
500
501 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.gc.offset;
502
503 if (size) {
504 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_gc() enter:\n");
505
506 ia_css_gc_encode((struct sh_css_isp_gc_params *)
507 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
508 &params->gc_config,
509 size);
510 params->isp_params_changed = true;
511 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
512
513 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_gc() leave:\n");
514 }
515
516 }
517 {
518 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem1.gc.size;
519
520 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem1.gc.offset;
521
522 if (size) {
523 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_gc() enter:\n");
524
525 ia_css_gc_vamem_encode((struct sh_css_isp_gc_vamem_params *)
526 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM1].address[offset],
527 &params->gc_table,
528 size);
529 params->isp_params_changed = true;
530 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM1] = true;
531
532 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_gc() leave:\n");
533 }
534
535 }
536 }
537
538 /* Code generated by genparam/gencode.c:gen_process_function() */
539
540 static void
541 ia_css_process_ce(
542 unsigned pipe_id,
543 const struct ia_css_pipeline_stage *stage,
544 struct ia_css_isp_parameters *params)
545 {
546 assert(params != NULL);
547
548 {
549 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ce.size;
550
551 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ce.offset;
552
553 if (size) {
554 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ce() enter:\n");
555
556 ia_css_ce_encode((struct sh_css_isp_ce_params *)
557 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
558 &params->ce_config,
559 size);
560 params->isp_params_changed = true;
561 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
562
563 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ce() leave:\n");
564 }
565
566 }
567 }
568
569 /* Code generated by genparam/gencode.c:gen_process_function() */
570
571 static void
572 ia_css_process_yuv2rgb(
573 unsigned pipe_id,
574 const struct ia_css_pipeline_stage *stage,
575 struct ia_css_isp_parameters *params)
576 {
577 assert(params != NULL);
578
579 {
580 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.yuv2rgb.size;
581
582 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.yuv2rgb.offset;
583
584 if (size) {
585 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yuv2rgb() enter:\n");
586
587 ia_css_yuv2rgb_encode((struct sh_css_isp_csc_params *)
588 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
589 &params->yuv2rgb_cc_config,
590 size);
591 params->isp_params_changed = true;
592 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
593
594 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yuv2rgb() leave:\n");
595 }
596
597 }
598 }
599
600 /* Code generated by genparam/gencode.c:gen_process_function() */
601
602 static void
603 ia_css_process_rgb2yuv(
604 unsigned pipe_id,
605 const struct ia_css_pipeline_stage *stage,
606 struct ia_css_isp_parameters *params)
607 {
608 assert(params != NULL);
609
610 {
611 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.rgb2yuv.size;
612
613 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.rgb2yuv.offset;
614
615 if (size) {
616 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_rgb2yuv() enter:\n");
617
618 ia_css_rgb2yuv_encode((struct sh_css_isp_csc_params *)
619 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
620 &params->rgb2yuv_cc_config,
621 size);
622 params->isp_params_changed = true;
623 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
624
625 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_rgb2yuv() leave:\n");
626 }
627
628 }
629 }
630
631 /* Code generated by genparam/gencode.c:gen_process_function() */
632
633 static void
634 ia_css_process_r_gamma(
635 unsigned pipe_id,
636 const struct ia_css_pipeline_stage *stage,
637 struct ia_css_isp_parameters *params)
638 {
639 assert(params != NULL);
640
641 {
642 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem0.r_gamma.size;
643
644 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem0.r_gamma.offset;
645
646 if (size) {
647 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_r_gamma() enter:\n");
648
649 ia_css_r_gamma_vamem_encode((struct sh_css_isp_rgb_gamma_vamem_params *)
650 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM0].address[offset],
651 &params->r_gamma_table,
652 size);
653 params->isp_params_changed = true;
654 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM0] = true;
655
656 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_r_gamma() leave:\n");
657 }
658
659 }
660 }
661
662 /* Code generated by genparam/gencode.c:gen_process_function() */
663
664 static void
665 ia_css_process_g_gamma(
666 unsigned pipe_id,
667 const struct ia_css_pipeline_stage *stage,
668 struct ia_css_isp_parameters *params)
669 {
670 assert(params != NULL);
671
672 {
673 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem1.g_gamma.size;
674
675 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem1.g_gamma.offset;
676
677 if (size) {
678 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_g_gamma() enter:\n");
679
680 ia_css_g_gamma_vamem_encode((struct sh_css_isp_rgb_gamma_vamem_params *)
681 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM1].address[offset],
682 &params->g_gamma_table,
683 size);
684 params->isp_params_changed = true;
685 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM1] = true;
686
687 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_g_gamma() leave:\n");
688 }
689
690 }
691 }
692
693 /* Code generated by genparam/gencode.c:gen_process_function() */
694
695 static void
696 ia_css_process_b_gamma(
697 unsigned pipe_id,
698 const struct ia_css_pipeline_stage *stage,
699 struct ia_css_isp_parameters *params)
700 {
701 assert(params != NULL);
702
703 {
704 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem2.b_gamma.size;
705
706 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem2.b_gamma.offset;
707
708 if (size) {
709 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_b_gamma() enter:\n");
710
711 ia_css_b_gamma_vamem_encode((struct sh_css_isp_rgb_gamma_vamem_params *)
712 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM2].address[offset],
713 &params->b_gamma_table,
714 size);
715 params->isp_params_changed = true;
716 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM2] = true;
717
718 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_b_gamma() leave:\n");
719 }
720
721 }
722 }
723
724 /* Code generated by genparam/gencode.c:gen_process_function() */
725
726 static void
727 ia_css_process_uds(
728 unsigned pipe_id,
729 const struct ia_css_pipeline_stage *stage,
730 struct ia_css_isp_parameters *params)
731 {
732 assert(params != NULL);
733
734 {
735 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.uds.size;
736
737 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.uds.offset;
738
739 if (size) {
740 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_uds() enter:\n");
741
742 ia_css_uds_encode((struct sh_css_sp_uds_params *)
743 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
744 &params->uds_config,
745 size);
746 params->isp_params_changed = true;
747 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
748
749 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_uds() leave:\n");
750 }
751
752 }
753 }
754
755 /* Code generated by genparam/gencode.c:gen_process_function() */
756
757 static void
758 ia_css_process_raa(
759 unsigned pipe_id,
760 const struct ia_css_pipeline_stage *stage,
761 struct ia_css_isp_parameters *params)
762 {
763 assert(params != NULL);
764
765 {
766 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.raa.size;
767
768 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.raa.offset;
769
770 if (size) {
771 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_raa() enter:\n");
772
773 ia_css_raa_encode((struct sh_css_isp_aa_params *)
774 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
775 &params->raa_config,
776 size);
777 params->isp_params_changed = true;
778 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
779
780 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_raa() leave:\n");
781 }
782
783 }
784 }
785
786 /* Code generated by genparam/gencode.c:gen_process_function() */
787
788 static void
789 ia_css_process_s3a(
790 unsigned pipe_id,
791 const struct ia_css_pipeline_stage *stage,
792 struct ia_css_isp_parameters *params)
793 {
794 assert(params != NULL);
795
796 {
797 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.s3a.size;
798
799 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.s3a.offset;
800
801 if (size) {
802 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_s3a() enter:\n");
803
804 ia_css_s3a_encode((struct sh_css_isp_s3a_params *)
805 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
806 &params->s3a_config,
807 size);
808 params->isp_params_changed = true;
809 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
810
811 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_s3a() leave:\n");
812 }
813
814 }
815 }
816
817 /* Code generated by genparam/gencode.c:gen_process_function() */
818
819 static void
820 ia_css_process_ob(
821 unsigned pipe_id,
822 const struct ia_css_pipeline_stage *stage,
823 struct ia_css_isp_parameters *params)
824 {
825 assert(params != NULL);
826
827 {
828 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ob.size;
829
830 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ob.offset;
831
832 if (size) {
833 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ob() enter:\n");
834
835 ia_css_ob_encode((struct sh_css_isp_ob_params *)
836 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
837 &params->ob_config,
838 &params->stream_configs.ob, size);
839 params->isp_params_changed = true;
840 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
841
842 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ob() leave:\n");
843 }
844
845 }
846 {
847 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.ob.size;
848
849 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.ob.offset;
850
851 if (size) {
852 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ob() enter:\n");
853
854 ia_css_ob_vmem_encode((struct sh_css_isp_ob_vmem_params *)
855 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
856 &params->ob_config,
857 &params->stream_configs.ob, size);
858 params->isp_params_changed = true;
859 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
860
861 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ob() leave:\n");
862 }
863
864 }
865 }
866
867 /* Code generated by genparam/gencode.c:gen_process_function() */
868
869 static void
870 ia_css_process_output(
871 unsigned pipe_id,
872 const struct ia_css_pipeline_stage *stage,
873 struct ia_css_isp_parameters *params)
874 {
875 assert(params != NULL);
876
877 {
878 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.output.size;
879
880 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.output.offset;
881
882 if (size) {
883 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_output() enter:\n");
884
885 ia_css_output_encode((struct sh_css_isp_output_params *)
886 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
887 &params->output_config,
888 size);
889 params->isp_params_changed = true;
890 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
891
892 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_output() leave:\n");
893 }
894
895 }
896 }
897
898 /* Code generated by genparam/gencode.c:gen_process_function() */
899
900 static void
901 ia_css_process_sc(
902 unsigned pipe_id,
903 const struct ia_css_pipeline_stage *stage,
904 struct ia_css_isp_parameters *params)
905 {
906 assert(params != NULL);
907
908 {
909 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sc.size;
910
911 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sc.offset;
912
913 if (size) {
914 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sc() enter:\n");
915
916 ia_css_sc_encode((struct sh_css_isp_sc_params *)
917 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
918 &params->sc_config,
919 size);
920 params->isp_params_changed = true;
921 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
922
923 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sc() leave:\n");
924 }
925
926 }
927 }
928
929 /* Code generated by genparam/gencode.c:gen_process_function() */
930
931 static void
932 ia_css_process_bds(
933 unsigned pipe_id,
934 const struct ia_css_pipeline_stage *stage,
935 struct ia_css_isp_parameters *params)
936 {
937 assert(params != NULL);
938
939 {
940 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.bds.size;
941
942 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.bds.offset;
943
944 if (size) {
945 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bds() enter:\n");
946
947 ia_css_bds_encode((struct sh_css_isp_bds_params *)
948 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
949 &params->bds_config,
950 size);
951 params->isp_params_changed = true;
952 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
953
954 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bds() leave:\n");
955 }
956
957 }
958 }
959
960 /* Code generated by genparam/gencode.c:gen_process_function() */
961
962 static void
963 ia_css_process_tnr(
964 unsigned pipe_id,
965 const struct ia_css_pipeline_stage *stage,
966 struct ia_css_isp_parameters *params)
967 {
968 assert(params != NULL);
969
970 {
971 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.tnr.size;
972
973 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.tnr.offset;
974
975 if (size) {
976 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_tnr() enter:\n");
977
978 ia_css_tnr_encode((struct sh_css_isp_tnr_params *)
979 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
980 &params->tnr_config,
981 size);
982 params->isp_params_changed = true;
983 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
984
985 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_tnr() leave:\n");
986 }
987
988 }
989 }
990
991 /* Code generated by genparam/gencode.c:gen_process_function() */
992
993 static void
994 ia_css_process_macc(
995 unsigned pipe_id,
996 const struct ia_css_pipeline_stage *stage,
997 struct ia_css_isp_parameters *params)
998 {
999 assert(params != NULL);
1000
1001 {
1002 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.macc.size;
1003
1004 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.macc.offset;
1005
1006 if (size) {
1007 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_macc() enter:\n");
1008
1009 ia_css_macc_encode((struct sh_css_isp_macc_params *)
1010 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1011 &params->macc_config,
1012 size);
1013 params->isp_params_changed = true;
1014 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1015
1016 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_macc() leave:\n");
1017 }
1018
1019 }
1020 }
1021
1022 /* Code generated by genparam/gencode.c:gen_process_function() */
1023
1024 static void
1025 ia_css_process_sdis_horicoef(
1026 unsigned pipe_id,
1027 const struct ia_css_pipeline_stage *stage,
1028 struct ia_css_isp_parameters *params)
1029 {
1030 assert(params != NULL);
1031
1032 {
1033 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_horicoef.size;
1034
1035 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_horicoef.offset;
1036
1037 if (size) {
1038 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horicoef() enter:\n");
1039
1040 ia_css_sdis_horicoef_vmem_encode((struct sh_css_isp_sdis_hori_coef_tbl *)
1041 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1042 &params->dvs_coefs,
1043 size);
1044 params->isp_params_changed = true;
1045 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1046
1047 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horicoef() leave:\n");
1048 }
1049
1050 }
1051 }
1052
1053 /* Code generated by genparam/gencode.c:gen_process_function() */
1054
1055 static void
1056 ia_css_process_sdis_vertcoef(
1057 unsigned pipe_id,
1058 const struct ia_css_pipeline_stage *stage,
1059 struct ia_css_isp_parameters *params)
1060 {
1061 assert(params != NULL);
1062
1063 {
1064 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_vertcoef.size;
1065
1066 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_vertcoef.offset;
1067
1068 if (size) {
1069 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertcoef() enter:\n");
1070
1071 ia_css_sdis_vertcoef_vmem_encode((struct sh_css_isp_sdis_vert_coef_tbl *)
1072 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1073 &params->dvs_coefs,
1074 size);
1075 params->isp_params_changed = true;
1076 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1077
1078 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertcoef() leave:\n");
1079 }
1080
1081 }
1082 }
1083
1084 /* Code generated by genparam/gencode.c:gen_process_function() */
1085
1086 static void
1087 ia_css_process_sdis_horiproj(
1088 unsigned pipe_id,
1089 const struct ia_css_pipeline_stage *stage,
1090 struct ia_css_isp_parameters *params)
1091 {
1092 assert(params != NULL);
1093
1094 {
1095 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_horiproj.size;
1096
1097 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_horiproj.offset;
1098
1099 if (size) {
1100 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horiproj() enter:\n");
1101
1102 ia_css_sdis_horiproj_encode((struct sh_css_isp_sdis_hori_proj_tbl *)
1103 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1104 &params->dvs_coefs,
1105 size);
1106 params->isp_params_changed = true;
1107 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1108
1109 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horiproj() leave:\n");
1110 }
1111
1112 }
1113 }
1114
1115 /* Code generated by genparam/gencode.c:gen_process_function() */
1116
1117 static void
1118 ia_css_process_sdis_vertproj(
1119 unsigned pipe_id,
1120 const struct ia_css_pipeline_stage *stage,
1121 struct ia_css_isp_parameters *params)
1122 {
1123 assert(params != NULL);
1124
1125 {
1126 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_vertproj.size;
1127
1128 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_vertproj.offset;
1129
1130 if (size) {
1131 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertproj() enter:\n");
1132
1133 ia_css_sdis_vertproj_encode((struct sh_css_isp_sdis_vert_proj_tbl *)
1134 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1135 &params->dvs_coefs,
1136 size);
1137 params->isp_params_changed = true;
1138 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1139
1140 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertproj() leave:\n");
1141 }
1142
1143 }
1144 }
1145
1146 /* Code generated by genparam/gencode.c:gen_process_function() */
1147
1148 static void
1149 ia_css_process_sdis2_horicoef(
1150 unsigned pipe_id,
1151 const struct ia_css_pipeline_stage *stage,
1152 struct ia_css_isp_parameters *params)
1153 {
1154 assert(params != NULL);
1155
1156 {
1157 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_horicoef.size;
1158
1159 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_horicoef.offset;
1160
1161 if (size) {
1162 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horicoef() enter:\n");
1163
1164 ia_css_sdis2_horicoef_vmem_encode((struct sh_css_isp_sdis_hori_coef_tbl *)
1165 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1166 &params->dvs2_coefs,
1167 size);
1168 params->isp_params_changed = true;
1169 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1170
1171 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horicoef() leave:\n");
1172 }
1173
1174 }
1175 }
1176
1177 /* Code generated by genparam/gencode.c:gen_process_function() */
1178
1179 static void
1180 ia_css_process_sdis2_vertcoef(
1181 unsigned pipe_id,
1182 const struct ia_css_pipeline_stage *stage,
1183 struct ia_css_isp_parameters *params)
1184 {
1185 assert(params != NULL);
1186
1187 {
1188 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_vertcoef.size;
1189
1190 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_vertcoef.offset;
1191
1192 if (size) {
1193 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertcoef() enter:\n");
1194
1195 ia_css_sdis2_vertcoef_vmem_encode((struct sh_css_isp_sdis_vert_coef_tbl *)
1196 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1197 &params->dvs2_coefs,
1198 size);
1199 params->isp_params_changed = true;
1200 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1201
1202 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertcoef() leave:\n");
1203 }
1204
1205 }
1206 }
1207
1208 /* Code generated by genparam/gencode.c:gen_process_function() */
1209
1210 static void
1211 ia_css_process_sdis2_horiproj(
1212 unsigned pipe_id,
1213 const struct ia_css_pipeline_stage *stage,
1214 struct ia_css_isp_parameters *params)
1215 {
1216 assert(params != NULL);
1217
1218 {
1219 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_horiproj.size;
1220
1221 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_horiproj.offset;
1222
1223 if (size) {
1224 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horiproj() enter:\n");
1225
1226 ia_css_sdis2_horiproj_encode((struct sh_css_isp_sdis_hori_proj_tbl *)
1227 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1228 &params->dvs2_coefs,
1229 size);
1230 params->isp_params_changed = true;
1231 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1232
1233 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horiproj() leave:\n");
1234 }
1235
1236 }
1237 }
1238
1239 /* Code generated by genparam/gencode.c:gen_process_function() */
1240
1241 static void
1242 ia_css_process_sdis2_vertproj(
1243 unsigned pipe_id,
1244 const struct ia_css_pipeline_stage *stage,
1245 struct ia_css_isp_parameters *params)
1246 {
1247 assert(params != NULL);
1248
1249 {
1250 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_vertproj.size;
1251
1252 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_vertproj.offset;
1253
1254 if (size) {
1255 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertproj() enter:\n");
1256
1257 ia_css_sdis2_vertproj_encode((struct sh_css_isp_sdis_vert_proj_tbl *)
1258 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1259 &params->dvs2_coefs,
1260 size);
1261 params->isp_params_changed = true;
1262 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1263
1264 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertproj() leave:\n");
1265 }
1266
1267 }
1268 }
1269
1270 /* Code generated by genparam/gencode.c:gen_process_function() */
1271
1272 static void
1273 ia_css_process_wb(
1274 unsigned pipe_id,
1275 const struct ia_css_pipeline_stage *stage,
1276 struct ia_css_isp_parameters *params)
1277 {
1278 assert(params != NULL);
1279
1280 {
1281 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.wb.size;
1282
1283 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.wb.offset;
1284
1285 if (size) {
1286 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_wb() enter:\n");
1287
1288 ia_css_wb_encode((struct sh_css_isp_wb_params *)
1289 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1290 &params->wb_config,
1291 size);
1292 params->isp_params_changed = true;
1293 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1294
1295 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_wb() leave:\n");
1296 }
1297
1298 }
1299 }
1300
1301 /* Code generated by genparam/gencode.c:gen_process_function() */
1302
1303 static void
1304 ia_css_process_nr(
1305 unsigned pipe_id,
1306 const struct ia_css_pipeline_stage *stage,
1307 struct ia_css_isp_parameters *params)
1308 {
1309 assert(params != NULL);
1310
1311 {
1312 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.nr.size;
1313
1314 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.nr.offset;
1315
1316 if (size) {
1317 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_nr() enter:\n");
1318
1319 ia_css_nr_encode((struct sh_css_isp_ynr_params *)
1320 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1321 &params->nr_config,
1322 size);
1323 params->isp_params_changed = true;
1324 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1325
1326 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_nr() leave:\n");
1327 }
1328
1329 }
1330 }
1331
1332 /* Code generated by genparam/gencode.c:gen_process_function() */
1333
1334 static void
1335 ia_css_process_yee(
1336 unsigned pipe_id,
1337 const struct ia_css_pipeline_stage *stage,
1338 struct ia_css_isp_parameters *params)
1339 {
1340 assert(params != NULL);
1341
1342 {
1343 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.yee.size;
1344
1345 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.yee.offset;
1346
1347 if (size) {
1348 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yee() enter:\n");
1349
1350 ia_css_yee_encode((struct sh_css_isp_yee_params *)
1351 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1352 &params->yee_config,
1353 size);
1354 params->isp_params_changed = true;
1355 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1356
1357 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yee() leave:\n");
1358 }
1359
1360 }
1361 }
1362
1363 /* Code generated by genparam/gencode.c:gen_process_function() */
1364
1365 static void
1366 ia_css_process_ynr(
1367 unsigned pipe_id,
1368 const struct ia_css_pipeline_stage *stage,
1369 struct ia_css_isp_parameters *params)
1370 {
1371 assert(params != NULL);
1372
1373 {
1374 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ynr.size;
1375
1376 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ynr.offset;
1377
1378 if (size) {
1379 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ynr() enter:\n");
1380
1381 ia_css_ynr_encode((struct sh_css_isp_yee2_params *)
1382 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1383 &params->ynr_config,
1384 size);
1385 params->isp_params_changed = true;
1386 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1387
1388 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ynr() leave:\n");
1389 }
1390
1391 }
1392 }
1393
1394 /* Code generated by genparam/gencode.c:gen_process_function() */
1395
1396 static void
1397 ia_css_process_fc(
1398 unsigned pipe_id,
1399 const struct ia_css_pipeline_stage *stage,
1400 struct ia_css_isp_parameters *params)
1401 {
1402 assert(params != NULL);
1403
1404 {
1405 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.fc.size;
1406
1407 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.fc.offset;
1408
1409 if (size) {
1410 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fc() enter:\n");
1411
1412 ia_css_fc_encode((struct sh_css_isp_fc_params *)
1413 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1414 &params->fc_config,
1415 size);
1416 params->isp_params_changed = true;
1417 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1418
1419 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fc() leave:\n");
1420 }
1421
1422 }
1423 }
1424
1425 /* Code generated by genparam/gencode.c:gen_process_function() */
1426
1427 static void
1428 ia_css_process_ctc(
1429 unsigned pipe_id,
1430 const struct ia_css_pipeline_stage *stage,
1431 struct ia_css_isp_parameters *params)
1432 {
1433 assert(params != NULL);
1434
1435 {
1436 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ctc.size;
1437
1438 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ctc.offset;
1439
1440 if (size) {
1441 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() enter:\n");
1442
1443 ia_css_ctc_encode((struct sh_css_isp_ctc_params *)
1444 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1445 &params->ctc_config,
1446 size);
1447 params->isp_params_changed = true;
1448 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1449
1450 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() leave:\n");
1451 }
1452
1453 }
1454 {
1455 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem0.ctc.size;
1456
1457 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem0.ctc.offset;
1458
1459 if (size) {
1460 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() enter:\n");
1461
1462 ia_css_ctc_vamem_encode((struct sh_css_isp_ctc_vamem_params *)
1463 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM0].address[offset],
1464 &params->ctc_table,
1465 size);
1466 params->isp_params_changed = true;
1467 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM0] = true;
1468
1469 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() leave:\n");
1470 }
1471
1472 }
1473 }
1474
1475 /* Code generated by genparam/gencode.c:gen_process_function() */
1476
1477 static void
1478 ia_css_process_xnr_table(
1479 unsigned pipe_id,
1480 const struct ia_css_pipeline_stage *stage,
1481 struct ia_css_isp_parameters *params)
1482 {
1483 assert(params != NULL);
1484
1485 {
1486 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem1.xnr_table.size;
1487
1488 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem1.xnr_table.offset;
1489
1490 if (size) {
1491 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr_table() enter:\n");
1492
1493 ia_css_xnr_table_vamem_encode((struct sh_css_isp_xnr_vamem_params *)
1494 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM1].address[offset],
1495 &params->xnr_table,
1496 size);
1497 params->isp_params_changed = true;
1498 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM1] = true;
1499
1500 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr_table() leave:\n");
1501 }
1502
1503 }
1504 }
1505
1506 /* Code generated by genparam/gencode.c:gen_process_function() */
1507
1508 static void
1509 ia_css_process_xnr(
1510 unsigned pipe_id,
1511 const struct ia_css_pipeline_stage *stage,
1512 struct ia_css_isp_parameters *params)
1513 {
1514 assert(params != NULL);
1515
1516 {
1517 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.xnr.size;
1518
1519 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.xnr.offset;
1520
1521 if (size) {
1522 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr() enter:\n");
1523
1524 ia_css_xnr_encode((struct sh_css_isp_xnr_params *)
1525 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1526 &params->xnr_config,
1527 size);
1528 params->isp_params_changed = true;
1529 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1530
1531 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr() leave:\n");
1532 }
1533
1534 }
1535 }
1536
1537 /* Code generated by genparam/gencode.c:gen_process_function() */
1538
1539 static void
1540 ia_css_process_xnr3(
1541 unsigned pipe_id,
1542 const struct ia_css_pipeline_stage *stage,
1543 struct ia_css_isp_parameters *params)
1544 {
1545 assert(params != NULL);
1546
1547 {
1548 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.xnr3.size;
1549
1550 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.xnr3.offset;
1551
1552 if (size) {
1553 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() enter:\n");
1554
1555 ia_css_xnr3_encode((struct sh_css_isp_xnr3_params *)
1556 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1557 &params->xnr3_config,
1558 size);
1559 params->isp_params_changed = true;
1560 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1561
1562 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() leave:\n");
1563 }
1564
1565 }
1566 #ifdef ISP2401
1567 {
1568 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.xnr3.size;
1569
1570 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.xnr3.offset;
1571
1572 if (size) {
1573 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() enter:\n");
1574
1575 ia_css_xnr3_vmem_encode((struct sh_css_isp_xnr3_vmem_params *)
1576 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1577 &params->xnr3_config,
1578 size);
1579 params->isp_params_changed = true;
1580 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1581
1582 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() leave:\n");
1583 }
1584
1585 }
1586 #endif
1587 }
1588
1589 /* Code generated by genparam/gencode.c:gen_param_process_table() */
1590
1591 void (* ia_css_kernel_process_param[IA_CSS_NUM_PARAMETER_IDS])(
1592 unsigned pipe_id,
1593 const struct ia_css_pipeline_stage *stage,
1594 struct ia_css_isp_parameters *params) = {
1595 ia_css_process_aa,
1596 ia_css_process_anr,
1597 ia_css_process_anr2,
1598 ia_css_process_bh,
1599 ia_css_process_cnr,
1600 ia_css_process_crop,
1601 ia_css_process_csc,
1602 ia_css_process_dp,
1603 ia_css_process_bnr,
1604 ia_css_process_de,
1605 ia_css_process_ecd,
1606 ia_css_process_formats,
1607 ia_css_process_fpn,
1608 ia_css_process_gc,
1609 ia_css_process_ce,
1610 ia_css_process_yuv2rgb,
1611 ia_css_process_rgb2yuv,
1612 ia_css_process_r_gamma,
1613 ia_css_process_g_gamma,
1614 ia_css_process_b_gamma,
1615 ia_css_process_uds,
1616 ia_css_process_raa,
1617 ia_css_process_s3a,
1618 ia_css_process_ob,
1619 ia_css_process_output,
1620 ia_css_process_sc,
1621 ia_css_process_bds,
1622 ia_css_process_tnr,
1623 ia_css_process_macc,
1624 ia_css_process_sdis_horicoef,
1625 ia_css_process_sdis_vertcoef,
1626 ia_css_process_sdis_horiproj,
1627 ia_css_process_sdis_vertproj,
1628 ia_css_process_sdis2_horicoef,
1629 ia_css_process_sdis2_vertcoef,
1630 ia_css_process_sdis2_horiproj,
1631 ia_css_process_sdis2_vertproj,
1632 ia_css_process_wb,
1633 ia_css_process_nr,
1634 ia_css_process_yee,
1635 ia_css_process_ynr,
1636 ia_css_process_fc,
1637 ia_css_process_ctc,
1638 ia_css_process_xnr_table,
1639 ia_css_process_xnr,
1640 ia_css_process_xnr3,
1641 };
1642
1643 /* Code generated by genparam/gencode.c:gen_get_function() */
1644
1645 static void
1646 ia_css_get_dp_config(const struct ia_css_isp_parameters *params,
1647 struct ia_css_dp_config *config){
1648 if (config == NULL)
1649 return;
1650
1651 assert(params != NULL);
1652 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_dp_config() enter: "
1653 "config=%p\n",config);
1654
1655 *config = params->dp_config;
1656
1657 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_dp_config() leave\n");
1658 ia_css_dp_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1659 }
1660
1661 /* Code generated by genparam/gencode.c:gen_set_function() */
1662
1663 void
1664 ia_css_set_dp_config(struct ia_css_isp_parameters *params,
1665 const struct ia_css_dp_config *config)
1666 {
1667 if (config == NULL)
1668 return;
1669
1670 assert(params != NULL);
1671 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_dp_config() enter:\n");
1672 ia_css_dp_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1673 params->dp_config = *config;
1674 params->config_changed[IA_CSS_DP_ID] = true;
1675 #ifndef ISP2401
1676 params->config_changed[IA_CSS_DP_ID] = true;
1677
1678 #endif
1679 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_dp_config() leave: "
1680 "return_void\n");
1681 }
1682
1683 /* Code generated by genparam/gencode.c:gen_get_function() */
1684
1685 static void
1686 ia_css_get_wb_config(const struct ia_css_isp_parameters *params,
1687 struct ia_css_wb_config *config){
1688 if (config == NULL)
1689 return;
1690
1691 assert(params != NULL);
1692 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_wb_config() enter: "
1693 "config=%p\n",config);
1694
1695 *config = params->wb_config;
1696
1697 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_wb_config() leave\n");
1698 ia_css_wb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1699 }
1700
1701 /* Code generated by genparam/gencode.c:gen_set_function() */
1702
1703 void
1704 ia_css_set_wb_config(struct ia_css_isp_parameters *params,
1705 const struct ia_css_wb_config *config)
1706 {
1707 if (config == NULL)
1708 return;
1709
1710 assert(params != NULL);
1711 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_wb_config() enter:\n");
1712 ia_css_wb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1713 params->wb_config = *config;
1714 params->config_changed[IA_CSS_WB_ID] = true;
1715 #ifndef ISP2401
1716 params->config_changed[IA_CSS_WB_ID] = true;
1717
1718 #endif
1719 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_wb_config() leave: "
1720 "return_void\n");
1721 }
1722
1723 /* Code generated by genparam/gencode.c:gen_get_function() */
1724
1725 static void
1726 ia_css_get_tnr_config(const struct ia_css_isp_parameters *params,
1727 struct ia_css_tnr_config *config){
1728 if (config == NULL)
1729 return;
1730
1731 assert(params != NULL);
1732 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_tnr_config() enter: "
1733 "config=%p\n",config);
1734
1735 *config = params->tnr_config;
1736
1737 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_tnr_config() leave\n");
1738 ia_css_tnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1739 }
1740
1741 /* Code generated by genparam/gencode.c:gen_set_function() */
1742
1743 void
1744 ia_css_set_tnr_config(struct ia_css_isp_parameters *params,
1745 const struct ia_css_tnr_config *config)
1746 {
1747 if (config == NULL)
1748 return;
1749
1750 assert(params != NULL);
1751 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_tnr_config() enter:\n");
1752 ia_css_tnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1753 params->tnr_config = *config;
1754 params->config_changed[IA_CSS_TNR_ID] = true;
1755 #ifndef ISP2401
1756 params->config_changed[IA_CSS_TNR_ID] = true;
1757
1758 #endif
1759 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_tnr_config() leave: "
1760 "return_void\n");
1761 }
1762
1763 /* Code generated by genparam/gencode.c:gen_get_function() */
1764
1765 static void
1766 ia_css_get_ob_config(const struct ia_css_isp_parameters *params,
1767 struct ia_css_ob_config *config){
1768 if (config == NULL)
1769 return;
1770
1771 assert(params != NULL);
1772 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ob_config() enter: "
1773 "config=%p\n",config);
1774
1775 *config = params->ob_config;
1776
1777 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ob_config() leave\n");
1778 ia_css_ob_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1779 }
1780
1781 /* Code generated by genparam/gencode.c:gen_set_function() */
1782
1783 void
1784 ia_css_set_ob_config(struct ia_css_isp_parameters *params,
1785 const struct ia_css_ob_config *config)
1786 {
1787 if (config == NULL)
1788 return;
1789
1790 assert(params != NULL);
1791 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ob_config() enter:\n");
1792 ia_css_ob_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1793 params->ob_config = *config;
1794 params->config_changed[IA_CSS_OB_ID] = true;
1795 #ifndef ISP2401
1796 params->config_changed[IA_CSS_OB_ID] = true;
1797
1798 #endif
1799 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ob_config() leave: "
1800 "return_void\n");
1801 }
1802
1803 /* Code generated by genparam/gencode.c:gen_get_function() */
1804
1805 static void
1806 ia_css_get_de_config(const struct ia_css_isp_parameters *params,
1807 struct ia_css_de_config *config){
1808 if (config == NULL)
1809 return;
1810
1811 assert(params != NULL);
1812 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_de_config() enter: "
1813 "config=%p\n",config);
1814
1815 *config = params->de_config;
1816
1817 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_de_config() leave\n");
1818 ia_css_de_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1819 }
1820
1821 /* Code generated by genparam/gencode.c:gen_set_function() */
1822
1823 void
1824 ia_css_set_de_config(struct ia_css_isp_parameters *params,
1825 const struct ia_css_de_config *config)
1826 {
1827 if (config == NULL)
1828 return;
1829
1830 assert(params != NULL);
1831 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_de_config() enter:\n");
1832 ia_css_de_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1833 params->de_config = *config;
1834 params->config_changed[IA_CSS_DE_ID] = true;
1835 #ifndef ISP2401
1836 params->config_changed[IA_CSS_DE_ID] = true;
1837
1838 #endif
1839 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_de_config() leave: "
1840 "return_void\n");
1841 }
1842
1843 /* Code generated by genparam/gencode.c:gen_get_function() */
1844
1845 static void
1846 ia_css_get_anr_config(const struct ia_css_isp_parameters *params,
1847 struct ia_css_anr_config *config){
1848 if (config == NULL)
1849 return;
1850
1851 assert(params != NULL);
1852 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr_config() enter: "
1853 "config=%p\n",config);
1854
1855 *config = params->anr_config;
1856
1857 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr_config() leave\n");
1858 ia_css_anr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1859 }
1860
1861 /* Code generated by genparam/gencode.c:gen_set_function() */
1862
1863 void
1864 ia_css_set_anr_config(struct ia_css_isp_parameters *params,
1865 const struct ia_css_anr_config *config)
1866 {
1867 if (config == NULL)
1868 return;
1869
1870 assert(params != NULL);
1871 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_anr_config() enter:\n");
1872 ia_css_anr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1873 params->anr_config = *config;
1874 params->config_changed[IA_CSS_ANR_ID] = true;
1875 #ifndef ISP2401
1876 params->config_changed[IA_CSS_ANR_ID] = true;
1877
1878 #endif
1879 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_anr_config() leave: "
1880 "return_void\n");
1881 }
1882
1883 /* Code generated by genparam/gencode.c:gen_get_function() */
1884
1885 static void
1886 ia_css_get_anr2_config(const struct ia_css_isp_parameters *params,
1887 struct ia_css_anr_thres *config){
1888 if (config == NULL)
1889 return;
1890
1891 assert(params != NULL);
1892 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr2_config() enter: "
1893 "config=%p\n",config);
1894
1895 *config = params->anr_thres;
1896
1897 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr2_config() leave\n");
1898 ia_css_anr2_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1899 }
1900
1901 /* Code generated by genparam/gencode.c:gen_set_function() */
1902
1903 void
1904 ia_css_set_anr2_config(struct ia_css_isp_parameters *params,
1905 const struct ia_css_anr_thres *config)
1906 {
1907 if (config == NULL)
1908 return;
1909
1910 assert(params != NULL);
1911 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_anr2_config() enter:\n");
1912 ia_css_anr2_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1913 params->anr_thres = *config;
1914 params->config_changed[IA_CSS_ANR2_ID] = true;
1915 #ifndef ISP2401
1916 params->config_changed[IA_CSS_ANR2_ID] = true;
1917
1918 #endif
1919 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_anr2_config() leave: "
1920 "return_void\n");
1921 }
1922
1923 /* Code generated by genparam/gencode.c:gen_get_function() */
1924
1925 static void
1926 ia_css_get_ce_config(const struct ia_css_isp_parameters *params,
1927 struct ia_css_ce_config *config){
1928 if (config == NULL)
1929 return;
1930
1931 assert(params != NULL);
1932 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ce_config() enter: "
1933 "config=%p\n",config);
1934
1935 *config = params->ce_config;
1936
1937 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ce_config() leave\n");
1938 ia_css_ce_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1939 }
1940
1941 /* Code generated by genparam/gencode.c:gen_set_function() */
1942
1943 void
1944 ia_css_set_ce_config(struct ia_css_isp_parameters *params,
1945 const struct ia_css_ce_config *config)
1946 {
1947 if (config == NULL)
1948 return;
1949
1950 assert(params != NULL);
1951 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ce_config() enter:\n");
1952 ia_css_ce_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1953 params->ce_config = *config;
1954 params->config_changed[IA_CSS_CE_ID] = true;
1955 #ifndef ISP2401
1956 params->config_changed[IA_CSS_CE_ID] = true;
1957
1958 #endif
1959 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ce_config() leave: "
1960 "return_void\n");
1961 }
1962
1963 /* Code generated by genparam/gencode.c:gen_get_function() */
1964
1965 static void
1966 ia_css_get_ecd_config(const struct ia_css_isp_parameters *params,
1967 struct ia_css_ecd_config *config){
1968 if (config == NULL)
1969 return;
1970
1971 assert(params != NULL);
1972 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ecd_config() enter: "
1973 "config=%p\n",config);
1974
1975 *config = params->ecd_config;
1976
1977 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ecd_config() leave\n");
1978 ia_css_ecd_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1979 }
1980
1981 /* Code generated by genparam/gencode.c:gen_set_function() */
1982
1983 void
1984 ia_css_set_ecd_config(struct ia_css_isp_parameters *params,
1985 const struct ia_css_ecd_config *config)
1986 {
1987 if (config == NULL)
1988 return;
1989
1990 assert(params != NULL);
1991 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ecd_config() enter:\n");
1992 ia_css_ecd_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1993 params->ecd_config = *config;
1994 params->config_changed[IA_CSS_ECD_ID] = true;
1995 #ifndef ISP2401
1996 params->config_changed[IA_CSS_ECD_ID] = true;
1997
1998 #endif
1999 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ecd_config() leave: "
2000 "return_void\n");
2001 }
2002
2003 /* Code generated by genparam/gencode.c:gen_get_function() */
2004
2005 static void
2006 ia_css_get_ynr_config(const struct ia_css_isp_parameters *params,
2007 struct ia_css_ynr_config *config){
2008 if (config == NULL)
2009 return;
2010
2011 assert(params != NULL);
2012 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ynr_config() enter: "
2013 "config=%p\n",config);
2014
2015 *config = params->ynr_config;
2016
2017 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ynr_config() leave\n");
2018 ia_css_ynr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2019 }
2020
2021 /* Code generated by genparam/gencode.c:gen_set_function() */
2022
2023 void
2024 ia_css_set_ynr_config(struct ia_css_isp_parameters *params,
2025 const struct ia_css_ynr_config *config)
2026 {
2027 if (config == NULL)
2028 return;
2029
2030 assert(params != NULL);
2031 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ynr_config() enter:\n");
2032 ia_css_ynr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2033 params->ynr_config = *config;
2034 params->config_changed[IA_CSS_YNR_ID] = true;
2035 #ifndef ISP2401
2036 params->config_changed[IA_CSS_YNR_ID] = true;
2037
2038 #endif
2039 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ynr_config() leave: "
2040 "return_void\n");
2041 }
2042
2043 /* Code generated by genparam/gencode.c:gen_get_function() */
2044
2045 static void
2046 ia_css_get_fc_config(const struct ia_css_isp_parameters *params,
2047 struct ia_css_fc_config *config){
2048 if (config == NULL)
2049 return;
2050
2051 assert(params != NULL);
2052 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_fc_config() enter: "
2053 "config=%p\n",config);
2054
2055 *config = params->fc_config;
2056
2057 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_fc_config() leave\n");
2058 ia_css_fc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2059 }
2060
2061 /* Code generated by genparam/gencode.c:gen_set_function() */
2062
2063 void
2064 ia_css_set_fc_config(struct ia_css_isp_parameters *params,
2065 const struct ia_css_fc_config *config)
2066 {
2067 if (config == NULL)
2068 return;
2069
2070 assert(params != NULL);
2071 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_fc_config() enter:\n");
2072 ia_css_fc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2073 params->fc_config = *config;
2074 params->config_changed[IA_CSS_FC_ID] = true;
2075 #ifndef ISP2401
2076 params->config_changed[IA_CSS_FC_ID] = true;
2077
2078 #endif
2079 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_fc_config() leave: "
2080 "return_void\n");
2081 }
2082
2083 /* Code generated by genparam/gencode.c:gen_get_function() */
2084
2085 static void
2086 ia_css_get_cnr_config(const struct ia_css_isp_parameters *params,
2087 struct ia_css_cnr_config *config){
2088 if (config == NULL)
2089 return;
2090
2091 assert(params != NULL);
2092 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_cnr_config() enter: "
2093 "config=%p\n",config);
2094
2095 *config = params->cnr_config;
2096
2097 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_cnr_config() leave\n");
2098 ia_css_cnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2099 }
2100
2101 /* Code generated by genparam/gencode.c:gen_set_function() */
2102
2103 void
2104 ia_css_set_cnr_config(struct ia_css_isp_parameters *params,
2105 const struct ia_css_cnr_config *config)
2106 {
2107 if (config == NULL)
2108 return;
2109
2110 assert(params != NULL);
2111 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_cnr_config() enter:\n");
2112 ia_css_cnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2113 params->cnr_config = *config;
2114 params->config_changed[IA_CSS_CNR_ID] = true;
2115 #ifndef ISP2401
2116 params->config_changed[IA_CSS_CNR_ID] = true;
2117
2118 #endif
2119 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_cnr_config() leave: "
2120 "return_void\n");
2121 }
2122
2123 /* Code generated by genparam/gencode.c:gen_get_function() */
2124
2125 static void
2126 ia_css_get_macc_config(const struct ia_css_isp_parameters *params,
2127 struct ia_css_macc_config *config){
2128 if (config == NULL)
2129 return;
2130
2131 assert(params != NULL);
2132 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_macc_config() enter: "
2133 "config=%p\n",config);
2134
2135 *config = params->macc_config;
2136
2137 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_macc_config() leave\n");
2138 ia_css_macc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2139 }
2140
2141 /* Code generated by genparam/gencode.c:gen_set_function() */
2142
2143 void
2144 ia_css_set_macc_config(struct ia_css_isp_parameters *params,
2145 const struct ia_css_macc_config *config)
2146 {
2147 if (config == NULL)
2148 return;
2149
2150 assert(params != NULL);
2151 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_macc_config() enter:\n");
2152 ia_css_macc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2153 params->macc_config = *config;
2154 params->config_changed[IA_CSS_MACC_ID] = true;
2155 #ifndef ISP2401
2156 params->config_changed[IA_CSS_MACC_ID] = true;
2157
2158 #endif
2159 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_macc_config() leave: "
2160 "return_void\n");
2161 }
2162
2163 /* Code generated by genparam/gencode.c:gen_get_function() */
2164
2165 static void
2166 ia_css_get_ctc_config(const struct ia_css_isp_parameters *params,
2167 struct ia_css_ctc_config *config){
2168 if (config == NULL)
2169 return;
2170
2171 assert(params != NULL);
2172 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ctc_config() enter: "
2173 "config=%p\n",config);
2174
2175 *config = params->ctc_config;
2176
2177 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ctc_config() leave\n");
2178 ia_css_ctc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2179 }
2180
2181 /* Code generated by genparam/gencode.c:gen_set_function() */
2182
2183 void
2184 ia_css_set_ctc_config(struct ia_css_isp_parameters *params,
2185 const struct ia_css_ctc_config *config)
2186 {
2187 if (config == NULL)
2188 return;
2189
2190 assert(params != NULL);
2191 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ctc_config() enter:\n");
2192 ia_css_ctc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2193 params->ctc_config = *config;
2194 params->config_changed[IA_CSS_CTC_ID] = true;
2195 #ifndef ISP2401
2196 params->config_changed[IA_CSS_CTC_ID] = true;
2197
2198 #endif
2199 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ctc_config() leave: "
2200 "return_void\n");
2201 }
2202
2203 /* Code generated by genparam/gencode.c:gen_get_function() */
2204
2205 static void
2206 ia_css_get_aa_config(const struct ia_css_isp_parameters *params,
2207 struct ia_css_aa_config *config){
2208 if (config == NULL)
2209 return;
2210
2211 assert(params != NULL);
2212 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_aa_config() enter: "
2213 "config=%p\n",config);
2214
2215 *config = params->aa_config;
2216
2217 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_aa_config() leave\n");
2218 ia_css_aa_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2219 }
2220
2221 /* Code generated by genparam/gencode.c:gen_set_function() */
2222
2223 void
2224 ia_css_set_aa_config(struct ia_css_isp_parameters *params,
2225 const struct ia_css_aa_config *config)
2226 {
2227 if (config == NULL)
2228 return;
2229
2230 assert(params != NULL);
2231 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_aa_config() enter:\n");
2232 ia_css_aa_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2233 params->aa_config = *config;
2234 params->config_changed[IA_CSS_AA_ID] = true;
2235 #ifndef ISP2401
2236 params->config_changed[IA_CSS_AA_ID] = true;
2237
2238 #endif
2239 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_aa_config() leave: "
2240 "return_void\n");
2241 }
2242
2243 /* Code generated by genparam/gencode.c:gen_get_function() */
2244
2245 static void
2246 ia_css_get_yuv2rgb_config(const struct ia_css_isp_parameters *params,
2247 struct ia_css_cc_config *config){
2248 if (config == NULL)
2249 return;
2250
2251 assert(params != NULL);
2252 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_yuv2rgb_config() enter: "
2253 "config=%p\n",config);
2254
2255 *config = params->yuv2rgb_cc_config;
2256
2257 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_yuv2rgb_config() leave\n");
2258 ia_css_yuv2rgb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2259 }
2260
2261 /* Code generated by genparam/gencode.c:gen_set_function() */
2262
2263 void
2264 ia_css_set_yuv2rgb_config(struct ia_css_isp_parameters *params,
2265 const struct ia_css_cc_config *config)
2266 {
2267 if (config == NULL)
2268 return;
2269
2270 assert(params != NULL);
2271 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_yuv2rgb_config() enter:\n");
2272 ia_css_yuv2rgb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2273 params->yuv2rgb_cc_config = *config;
2274 params->config_changed[IA_CSS_YUV2RGB_ID] = true;
2275 #ifndef ISP2401
2276 params->config_changed[IA_CSS_YUV2RGB_ID] = true;
2277
2278 #endif
2279 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_yuv2rgb_config() leave: "
2280 "return_void\n");
2281 }
2282
2283 /* Code generated by genparam/gencode.c:gen_get_function() */
2284
2285 static void
2286 ia_css_get_rgb2yuv_config(const struct ia_css_isp_parameters *params,
2287 struct ia_css_cc_config *config){
2288 if (config == NULL)
2289 return;
2290
2291 assert(params != NULL);
2292 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_rgb2yuv_config() enter: "
2293 "config=%p\n",config);
2294
2295 *config = params->rgb2yuv_cc_config;
2296
2297 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_rgb2yuv_config() leave\n");
2298 ia_css_rgb2yuv_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2299 }
2300
2301 /* Code generated by genparam/gencode.c:gen_set_function() */
2302
2303 void
2304 ia_css_set_rgb2yuv_config(struct ia_css_isp_parameters *params,
2305 const struct ia_css_cc_config *config)
2306 {
2307 if (config == NULL)
2308 return;
2309
2310 assert(params != NULL);
2311 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_rgb2yuv_config() enter:\n");
2312 ia_css_rgb2yuv_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2313 params->rgb2yuv_cc_config = *config;
2314 params->config_changed[IA_CSS_RGB2YUV_ID] = true;
2315 #ifndef ISP2401
2316 params->config_changed[IA_CSS_RGB2YUV_ID] = true;
2317
2318 #endif
2319 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_rgb2yuv_config() leave: "
2320 "return_void\n");
2321 }
2322
2323 /* Code generated by genparam/gencode.c:gen_get_function() */
2324
2325 static void
2326 ia_css_get_csc_config(const struct ia_css_isp_parameters *params,
2327 struct ia_css_cc_config *config){
2328 if (config == NULL)
2329 return;
2330
2331 assert(params != NULL);
2332 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_csc_config() enter: "
2333 "config=%p\n",config);
2334
2335 *config = params->cc_config;
2336
2337 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_csc_config() leave\n");
2338 ia_css_csc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2339 }
2340
2341 /* Code generated by genparam/gencode.c:gen_set_function() */
2342
2343 void
2344 ia_css_set_csc_config(struct ia_css_isp_parameters *params,
2345 const struct ia_css_cc_config *config)
2346 {
2347 if (config == NULL)
2348 return;
2349
2350 assert(params != NULL);
2351 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_csc_config() enter:\n");
2352 ia_css_csc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2353 params->cc_config = *config;
2354 params->config_changed[IA_CSS_CSC_ID] = true;
2355 #ifndef ISP2401
2356 params->config_changed[IA_CSS_CSC_ID] = true;
2357
2358 #endif
2359 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_csc_config() leave: "
2360 "return_void\n");
2361 }
2362
2363 /* Code generated by genparam/gencode.c:gen_get_function() */
2364
2365 static void
2366 ia_css_get_nr_config(const struct ia_css_isp_parameters *params,
2367 struct ia_css_nr_config *config){
2368 if (config == NULL)
2369 return;
2370
2371 assert(params != NULL);
2372 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_nr_config() enter: "
2373 "config=%p\n",config);
2374
2375 *config = params->nr_config;
2376
2377 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_nr_config() leave\n");
2378 ia_css_nr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2379 }
2380
2381 /* Code generated by genparam/gencode.c:gen_set_function() */
2382
2383 void
2384 ia_css_set_nr_config(struct ia_css_isp_parameters *params,
2385 const struct ia_css_nr_config *config)
2386 {
2387 if (config == NULL)
2388 return;
2389
2390 assert(params != NULL);
2391 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_nr_config() enter:\n");
2392 ia_css_nr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2393 params->nr_config = *config;
2394 params->config_changed[IA_CSS_BNR_ID] = true;
2395 params->config_changed[IA_CSS_NR_ID] = true;
2396 #ifndef ISP2401
2397 params->config_changed[IA_CSS_NR_ID] = true;
2398
2399 #endif
2400 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_nr_config() leave: "
2401 "return_void\n");
2402 }
2403
2404 /* Code generated by genparam/gencode.c:gen_get_function() */
2405
2406 static void
2407 ia_css_get_gc_config(const struct ia_css_isp_parameters *params,
2408 struct ia_css_gc_config *config){
2409 if (config == NULL)
2410 return;
2411
2412 assert(params != NULL);
2413 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_gc_config() enter: "
2414 "config=%p\n",config);
2415
2416 *config = params->gc_config;
2417
2418 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_gc_config() leave\n");
2419 ia_css_gc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2420 }
2421
2422 /* Code generated by genparam/gencode.c:gen_set_function() */
2423
2424 void
2425 ia_css_set_gc_config(struct ia_css_isp_parameters *params,
2426 const struct ia_css_gc_config *config)
2427 {
2428 if (config == NULL)
2429 return;
2430
2431 assert(params != NULL);
2432 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_gc_config() enter:\n");
2433 ia_css_gc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2434 params->gc_config = *config;
2435 params->config_changed[IA_CSS_GC_ID] = true;
2436 #ifndef ISP2401
2437 params->config_changed[IA_CSS_GC_ID] = true;
2438
2439 #endif
2440 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_gc_config() leave: "
2441 "return_void\n");
2442 }
2443
2444 /* Code generated by genparam/gencode.c:gen_get_function() */
2445
2446 static void
2447 ia_css_get_sdis_horicoef_config(const struct ia_css_isp_parameters *params,
2448 struct ia_css_dvs_coefficients *config){
2449 if (config == NULL)
2450 return;
2451
2452 assert(params != NULL);
2453 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horicoef_config() enter: "
2454 "config=%p\n",config);
2455
2456 *config = params->dvs_coefs;
2457
2458 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horicoef_config() leave\n");
2459 ia_css_sdis_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2460 }
2461
2462 /* Code generated by genparam/gencode.c:gen_set_function() */
2463
2464 void
2465 ia_css_set_sdis_horicoef_config(struct ia_css_isp_parameters *params,
2466 const struct ia_css_dvs_coefficients *config)
2467 {
2468 if (config == NULL)
2469 return;
2470
2471 assert(params != NULL);
2472 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_horicoef_config() enter:\n");
2473 ia_css_sdis_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2474 params->dvs_coefs = *config;
2475 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2476 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2477 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2478 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2479 #ifndef ISP2401
2480 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2481
2482 #endif
2483 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_horicoef_config() leave: "
2484 "return_void\n");
2485 }
2486
2487 /* Code generated by genparam/gencode.c:gen_get_function() */
2488
2489 static void
2490 ia_css_get_sdis_vertcoef_config(const struct ia_css_isp_parameters *params,
2491 struct ia_css_dvs_coefficients *config){
2492 if (config == NULL)
2493 return;
2494
2495 assert(params != NULL);
2496 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertcoef_config() enter: "
2497 "config=%p\n",config);
2498
2499 *config = params->dvs_coefs;
2500
2501 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertcoef_config() leave\n");
2502 ia_css_sdis_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2503 }
2504
2505 /* Code generated by genparam/gencode.c:gen_set_function() */
2506
2507 void
2508 ia_css_set_sdis_vertcoef_config(struct ia_css_isp_parameters *params,
2509 const struct ia_css_dvs_coefficients *config)
2510 {
2511 if (config == NULL)
2512 return;
2513
2514 assert(params != NULL);
2515 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_vertcoef_config() enter:\n");
2516 ia_css_sdis_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2517 params->dvs_coefs = *config;
2518 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2519 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2520 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2521 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2522 #ifndef ISP2401
2523 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2524
2525 #endif
2526 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_vertcoef_config() leave: "
2527 "return_void\n");
2528 }
2529
2530 /* Code generated by genparam/gencode.c:gen_get_function() */
2531
2532 static void
2533 ia_css_get_sdis_horiproj_config(const struct ia_css_isp_parameters *params,
2534 struct ia_css_dvs_coefficients *config){
2535 if (config == NULL)
2536 return;
2537
2538 assert(params != NULL);
2539 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horiproj_config() enter: "
2540 "config=%p\n",config);
2541
2542 *config = params->dvs_coefs;
2543
2544 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horiproj_config() leave\n");
2545 ia_css_sdis_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2546 }
2547
2548 /* Code generated by genparam/gencode.c:gen_set_function() */
2549
2550 void
2551 ia_css_set_sdis_horiproj_config(struct ia_css_isp_parameters *params,
2552 const struct ia_css_dvs_coefficients *config)
2553 {
2554 if (config == NULL)
2555 return;
2556
2557 assert(params != NULL);
2558 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_horiproj_config() enter:\n");
2559 ia_css_sdis_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2560 params->dvs_coefs = *config;
2561 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2562 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2563 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2564 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2565 #ifndef ISP2401
2566 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2567
2568 #endif
2569 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_horiproj_config() leave: "
2570 "return_void\n");
2571 }
2572
2573 /* Code generated by genparam/gencode.c:gen_get_function() */
2574
2575 static void
2576 ia_css_get_sdis_vertproj_config(const struct ia_css_isp_parameters *params,
2577 struct ia_css_dvs_coefficients *config){
2578 if (config == NULL)
2579 return;
2580
2581 assert(params != NULL);
2582 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertproj_config() enter: "
2583 "config=%p\n",config);
2584
2585 *config = params->dvs_coefs;
2586
2587 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertproj_config() leave\n");
2588 ia_css_sdis_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2589 }
2590
2591 /* Code generated by genparam/gencode.c:gen_set_function() */
2592
2593 void
2594 ia_css_set_sdis_vertproj_config(struct ia_css_isp_parameters *params,
2595 const struct ia_css_dvs_coefficients *config)
2596 {
2597 if (config == NULL)
2598 return;
2599
2600 assert(params != NULL);
2601 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_vertproj_config() enter:\n");
2602 ia_css_sdis_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2603 params->dvs_coefs = *config;
2604 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2605 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2606 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2607 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2608 #ifndef ISP2401
2609 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2610
2611 #endif
2612 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_vertproj_config() leave: "
2613 "return_void\n");
2614 }
2615
2616 /* Code generated by genparam/gencode.c:gen_get_function() */
2617
2618 static void
2619 ia_css_get_sdis2_horicoef_config(const struct ia_css_isp_parameters *params,
2620 struct ia_css_dvs2_coefficients *config){
2621 if (config == NULL)
2622 return;
2623
2624 assert(params != NULL);
2625 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horicoef_config() enter: "
2626 "config=%p\n",config);
2627
2628 *config = params->dvs2_coefs;
2629
2630 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horicoef_config() leave\n");
2631 ia_css_sdis2_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2632 }
2633
2634 /* Code generated by genparam/gencode.c:gen_set_function() */
2635
2636 void
2637 ia_css_set_sdis2_horicoef_config(struct ia_css_isp_parameters *params,
2638 const struct ia_css_dvs2_coefficients *config)
2639 {
2640 if (config == NULL)
2641 return;
2642
2643 assert(params != NULL);
2644 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_horicoef_config() enter:\n");
2645 ia_css_sdis2_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2646 params->dvs2_coefs = *config;
2647 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2648 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2649 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2650 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2651 #ifndef ISP2401
2652 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2653
2654 #endif
2655 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_horicoef_config() leave: "
2656 "return_void\n");
2657 }
2658
2659 /* Code generated by genparam/gencode.c:gen_get_function() */
2660
2661 static void
2662 ia_css_get_sdis2_vertcoef_config(const struct ia_css_isp_parameters *params,
2663 struct ia_css_dvs2_coefficients *config){
2664 if (config == NULL)
2665 return;
2666
2667 assert(params != NULL);
2668 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertcoef_config() enter: "
2669 "config=%p\n",config);
2670
2671 *config = params->dvs2_coefs;
2672
2673 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertcoef_config() leave\n");
2674 ia_css_sdis2_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2675 }
2676
2677 /* Code generated by genparam/gencode.c:gen_set_function() */
2678
2679 void
2680 ia_css_set_sdis2_vertcoef_config(struct ia_css_isp_parameters *params,
2681 const struct ia_css_dvs2_coefficients *config)
2682 {
2683 if (config == NULL)
2684 return;
2685
2686 assert(params != NULL);
2687 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_vertcoef_config() enter:\n");
2688 ia_css_sdis2_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2689 params->dvs2_coefs = *config;
2690 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2691 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2692 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2693 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2694 #ifndef ISP2401
2695 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2696
2697 #endif
2698 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_vertcoef_config() leave: "
2699 "return_void\n");
2700 }
2701
2702 /* Code generated by genparam/gencode.c:gen_get_function() */
2703
2704 static void
2705 ia_css_get_sdis2_horiproj_config(const struct ia_css_isp_parameters *params,
2706 struct ia_css_dvs2_coefficients *config){
2707 if (config == NULL)
2708 return;
2709
2710 assert(params != NULL);
2711 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horiproj_config() enter: "
2712 "config=%p\n",config);
2713
2714 *config = params->dvs2_coefs;
2715
2716 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horiproj_config() leave\n");
2717 ia_css_sdis2_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2718 }
2719
2720 /* Code generated by genparam/gencode.c:gen_set_function() */
2721
2722 void
2723 ia_css_set_sdis2_horiproj_config(struct ia_css_isp_parameters *params,
2724 const struct ia_css_dvs2_coefficients *config)
2725 {
2726 if (config == NULL)
2727 return;
2728
2729 assert(params != NULL);
2730 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_horiproj_config() enter:\n");
2731 ia_css_sdis2_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2732 params->dvs2_coefs = *config;
2733 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2734 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2735 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2736 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2737 #ifndef ISP2401
2738 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2739
2740 #endif
2741 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_horiproj_config() leave: "
2742 "return_void\n");
2743 }
2744
2745 /* Code generated by genparam/gencode.c:gen_get_function() */
2746
2747 static void
2748 ia_css_get_sdis2_vertproj_config(const struct ia_css_isp_parameters *params,
2749 struct ia_css_dvs2_coefficients *config){
2750 if (config == NULL)
2751 return;
2752
2753 assert(params != NULL);
2754 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertproj_config() enter: "
2755 "config=%p\n",config);
2756
2757 *config = params->dvs2_coefs;
2758
2759 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertproj_config() leave\n");
2760 ia_css_sdis2_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2761 }
2762
2763 /* Code generated by genparam/gencode.c:gen_set_function() */
2764
2765 void
2766 ia_css_set_sdis2_vertproj_config(struct ia_css_isp_parameters *params,
2767 const struct ia_css_dvs2_coefficients *config)
2768 {
2769 if (config == NULL)
2770 return;
2771
2772 assert(params != NULL);
2773 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_vertproj_config() enter:\n");
2774 ia_css_sdis2_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2775 params->dvs2_coefs = *config;
2776 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2777 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2778 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2779 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2780 #ifndef ISP2401
2781 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2782
2783 #endif
2784 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_vertproj_config() leave: "
2785 "return_void\n");
2786 }
2787
2788 /* Code generated by genparam/gencode.c:gen_get_function() */
2789
2790 static void
2791 ia_css_get_r_gamma_config(const struct ia_css_isp_parameters *params,
2792 struct ia_css_rgb_gamma_table *config){
2793 if (config == NULL)
2794 return;
2795
2796 assert(params != NULL);
2797 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_r_gamma_config() enter: "
2798 "config=%p\n",config);
2799
2800 *config = params->r_gamma_table;
2801
2802 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_r_gamma_config() leave\n");
2803 ia_css_r_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2804 }
2805
2806 /* Code generated by genparam/gencode.c:gen_set_function() */
2807
2808 void
2809 ia_css_set_r_gamma_config(struct ia_css_isp_parameters *params,
2810 const struct ia_css_rgb_gamma_table *config)
2811 {
2812 if (config == NULL)
2813 return;
2814
2815 assert(params != NULL);
2816 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_r_gamma_config() enter:\n");
2817 ia_css_r_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2818 params->r_gamma_table = *config;
2819 params->config_changed[IA_CSS_R_GAMMA_ID] = true;
2820 #ifndef ISP2401
2821 params->config_changed[IA_CSS_R_GAMMA_ID] = true;
2822
2823 #endif
2824 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_r_gamma_config() leave: "
2825 "return_void\n");
2826 }
2827
2828 /* Code generated by genparam/gencode.c:gen_get_function() */
2829
2830 static void
2831 ia_css_get_g_gamma_config(const struct ia_css_isp_parameters *params,
2832 struct ia_css_rgb_gamma_table *config){
2833 if (config == NULL)
2834 return;
2835
2836 assert(params != NULL);
2837 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_g_gamma_config() enter: "
2838 "config=%p\n",config);
2839
2840 *config = params->g_gamma_table;
2841
2842 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_g_gamma_config() leave\n");
2843 ia_css_g_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2844 }
2845
2846 /* Code generated by genparam/gencode.c:gen_set_function() */
2847
2848 void
2849 ia_css_set_g_gamma_config(struct ia_css_isp_parameters *params,
2850 const struct ia_css_rgb_gamma_table *config)
2851 {
2852 if (config == NULL)
2853 return;
2854
2855 assert(params != NULL);
2856 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_g_gamma_config() enter:\n");
2857 ia_css_g_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2858 params->g_gamma_table = *config;
2859 params->config_changed[IA_CSS_G_GAMMA_ID] = true;
2860 #ifndef ISP2401
2861 params->config_changed[IA_CSS_G_GAMMA_ID] = true;
2862
2863 #endif
2864 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_g_gamma_config() leave: "
2865 "return_void\n");
2866 }
2867
2868 /* Code generated by genparam/gencode.c:gen_get_function() */
2869
2870 static void
2871 ia_css_get_b_gamma_config(const struct ia_css_isp_parameters *params,
2872 struct ia_css_rgb_gamma_table *config){
2873 if (config == NULL)
2874 return;
2875
2876 assert(params != NULL);
2877 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_b_gamma_config() enter: "
2878 "config=%p\n",config);
2879
2880 *config = params->b_gamma_table;
2881
2882 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_b_gamma_config() leave\n");
2883 ia_css_b_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2884 }
2885
2886 /* Code generated by genparam/gencode.c:gen_set_function() */
2887
2888 void
2889 ia_css_set_b_gamma_config(struct ia_css_isp_parameters *params,
2890 const struct ia_css_rgb_gamma_table *config)
2891 {
2892 if (config == NULL)
2893 return;
2894
2895 assert(params != NULL);
2896 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_b_gamma_config() enter:\n");
2897 ia_css_b_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2898 params->b_gamma_table = *config;
2899 params->config_changed[IA_CSS_B_GAMMA_ID] = true;
2900 #ifndef ISP2401
2901 params->config_changed[IA_CSS_B_GAMMA_ID] = true;
2902
2903 #endif
2904 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_b_gamma_config() leave: "
2905 "return_void\n");
2906 }
2907
2908 /* Code generated by genparam/gencode.c:gen_get_function() */
2909
2910 static void
2911 ia_css_get_xnr_table_config(const struct ia_css_isp_parameters *params,
2912 struct ia_css_xnr_table *config){
2913 if (config == NULL)
2914 return;
2915
2916 assert(params != NULL);
2917 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_table_config() enter: "
2918 "config=%p\n",config);
2919
2920 *config = params->xnr_table;
2921
2922 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_table_config() leave\n");
2923 ia_css_xnr_table_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2924 }
2925
2926 /* Code generated by genparam/gencode.c:gen_set_function() */
2927
2928 void
2929 ia_css_set_xnr_table_config(struct ia_css_isp_parameters *params,
2930 const struct ia_css_xnr_table *config)
2931 {
2932 if (config == NULL)
2933 return;
2934
2935 assert(params != NULL);
2936 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_xnr_table_config() enter:\n");
2937 ia_css_xnr_table_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2938 params->xnr_table = *config;
2939 params->config_changed[IA_CSS_XNR_TABLE_ID] = true;
2940 #ifndef ISP2401
2941 params->config_changed[IA_CSS_XNR_TABLE_ID] = true;
2942
2943 #endif
2944 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_xnr_table_config() leave: "
2945 "return_void\n");
2946 }
2947
2948 /* Code generated by genparam/gencode.c:gen_get_function() */
2949
2950 static void
2951 ia_css_get_formats_config(const struct ia_css_isp_parameters *params,
2952 struct ia_css_formats_config *config){
2953 if (config == NULL)
2954 return;
2955
2956 assert(params != NULL);
2957 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_formats_config() enter: "
2958 "config=%p\n",config);
2959
2960 *config = params->formats_config;
2961
2962 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_formats_config() leave\n");
2963 ia_css_formats_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2964 }
2965
2966 /* Code generated by genparam/gencode.c:gen_set_function() */
2967
2968 void
2969 ia_css_set_formats_config(struct ia_css_isp_parameters *params,
2970 const struct ia_css_formats_config *config)
2971 {
2972 if (config == NULL)
2973 return;
2974
2975 assert(params != NULL);
2976 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_formats_config() enter:\n");
2977 ia_css_formats_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2978 params->formats_config = *config;
2979 params->config_changed[IA_CSS_FORMATS_ID] = true;
2980 #ifndef ISP2401
2981 params->config_changed[IA_CSS_FORMATS_ID] = true;
2982
2983 #endif
2984 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_formats_config() leave: "
2985 "return_void\n");
2986 }
2987
2988 /* Code generated by genparam/gencode.c:gen_get_function() */
2989
2990 static void
2991 ia_css_get_xnr_config(const struct ia_css_isp_parameters *params,
2992 struct ia_css_xnr_config *config){
2993 if (config == NULL)
2994 return;
2995
2996 assert(params != NULL);
2997 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_config() enter: "
2998 "config=%p\n",config);
2999
3000 *config = params->xnr_config;
3001
3002 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_config() leave\n");
3003 ia_css_xnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3004 }
3005
3006 /* Code generated by genparam/gencode.c:gen_set_function() */
3007
3008 void
3009 ia_css_set_xnr_config(struct ia_css_isp_parameters *params,
3010 const struct ia_css_xnr_config *config)
3011 {
3012 if (config == NULL)
3013 return;
3014
3015 assert(params != NULL);
3016 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_xnr_config() enter:\n");
3017 ia_css_xnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3018 params->xnr_config = *config;
3019 params->config_changed[IA_CSS_XNR_ID] = true;
3020 #ifndef ISP2401
3021 params->config_changed[IA_CSS_XNR_ID] = true;
3022
3023 #endif
3024 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_xnr_config() leave: "
3025 "return_void\n");
3026 }
3027
3028 /* Code generated by genparam/gencode.c:gen_get_function() */
3029
3030 static void
3031 ia_css_get_xnr3_config(const struct ia_css_isp_parameters *params,
3032 struct ia_css_xnr3_config *config){
3033 if (config == NULL)
3034 return;
3035
3036 assert(params != NULL);
3037 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr3_config() enter: "
3038 "config=%p\n",config);
3039
3040 *config = params->xnr3_config;
3041
3042 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr3_config() leave\n");
3043 ia_css_xnr3_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3044 }
3045
3046 /* Code generated by genparam/gencode.c:gen_set_function() */
3047
3048 void
3049 ia_css_set_xnr3_config(struct ia_css_isp_parameters *params,
3050 const struct ia_css_xnr3_config *config)
3051 {
3052 if (config == NULL)
3053 return;
3054
3055 assert(params != NULL);
3056 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_xnr3_config() enter:\n");
3057 ia_css_xnr3_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3058 params->xnr3_config = *config;
3059 params->config_changed[IA_CSS_XNR3_ID] = true;
3060 #ifndef ISP2401
3061 params->config_changed[IA_CSS_XNR3_ID] = true;
3062
3063 #endif
3064 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_xnr3_config() leave: "
3065 "return_void\n");
3066 }
3067
3068 /* Code generated by genparam/gencode.c:gen_get_function() */
3069
3070 static void
3071 ia_css_get_s3a_config(const struct ia_css_isp_parameters *params,
3072 struct ia_css_3a_config *config){
3073 if (config == NULL)
3074 return;
3075
3076 assert(params != NULL);
3077 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_s3a_config() enter: "
3078 "config=%p\n",config);
3079
3080 *config = params->s3a_config;
3081
3082 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_s3a_config() leave\n");
3083 ia_css_s3a_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3084 }
3085
3086 /* Code generated by genparam/gencode.c:gen_set_function() */
3087
3088 void
3089 ia_css_set_s3a_config(struct ia_css_isp_parameters *params,
3090 const struct ia_css_3a_config *config)
3091 {
3092 if (config == NULL)
3093 return;
3094
3095 assert(params != NULL);
3096 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_s3a_config() enter:\n");
3097 ia_css_s3a_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3098 params->s3a_config = *config;
3099 params->config_changed[IA_CSS_BH_ID] = true;
3100 params->config_changed[IA_CSS_S3A_ID] = true;
3101 #ifndef ISP2401
3102 params->config_changed[IA_CSS_S3A_ID] = true;
3103
3104 #endif
3105 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_s3a_config() leave: "
3106 "return_void\n");
3107 }
3108
3109 /* Code generated by genparam/gencode.c:gen_get_function() */
3110
3111 static void
3112 ia_css_get_output_config(const struct ia_css_isp_parameters *params,
3113 struct ia_css_output_config *config){
3114 if (config == NULL)
3115 return;
3116
3117 assert(params != NULL);
3118 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_output_config() enter: "
3119 "config=%p\n",config);
3120
3121 *config = params->output_config;
3122
3123 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_output_config() leave\n");
3124 ia_css_output_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3125 }
3126
3127 /* Code generated by genparam/gencode.c:gen_set_function() */
3128
3129 void
3130 ia_css_set_output_config(struct ia_css_isp_parameters *params,
3131 const struct ia_css_output_config *config)
3132 {
3133 if (config == NULL)
3134 return;
3135
3136 assert(params != NULL);
3137 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_output_config() enter:\n");
3138 ia_css_output_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3139 params->output_config = *config;
3140 params->config_changed[IA_CSS_OUTPUT_ID] = true;
3141 #ifndef ISP2401
3142 params->config_changed[IA_CSS_OUTPUT_ID] = true;
3143
3144 #endif
3145 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_output_config() leave: "
3146 "return_void\n");
3147 }
3148
3149 /* Code generated by genparam/gencode.c:gen_global_access_function() */
3150
3151 void
3152 ia_css_get_configs(struct ia_css_isp_parameters *params,
3153 const struct ia_css_isp_config *config)
3154 {
3155 ia_css_get_dp_config(params, config->dp_config);
3156 ia_css_get_wb_config(params, config->wb_config);
3157 ia_css_get_tnr_config(params, config->tnr_config);
3158 ia_css_get_ob_config(params, config->ob_config);
3159 ia_css_get_de_config(params, config->de_config);
3160 ia_css_get_anr_config(params, config->anr_config);
3161 ia_css_get_anr2_config(params, config->anr_thres);
3162 ia_css_get_ce_config(params, config->ce_config);
3163 ia_css_get_ecd_config(params, config->ecd_config);
3164 ia_css_get_ynr_config(params, config->ynr_config);
3165 ia_css_get_fc_config(params, config->fc_config);
3166 ia_css_get_cnr_config(params, config->cnr_config);
3167 ia_css_get_macc_config(params, config->macc_config);
3168 ia_css_get_ctc_config(params, config->ctc_config);
3169 ia_css_get_aa_config(params, config->aa_config);
3170 ia_css_get_yuv2rgb_config(params, config->yuv2rgb_cc_config);
3171 ia_css_get_rgb2yuv_config(params, config->rgb2yuv_cc_config);
3172 ia_css_get_csc_config(params, config->cc_config);
3173 ia_css_get_nr_config(params, config->nr_config);
3174 ia_css_get_gc_config(params, config->gc_config);
3175 ia_css_get_sdis_horicoef_config(params, config->dvs_coefs);
3176 ia_css_get_sdis_vertcoef_config(params, config->dvs_coefs);
3177 ia_css_get_sdis_horiproj_config(params, config->dvs_coefs);
3178 ia_css_get_sdis_vertproj_config(params, config->dvs_coefs);
3179 ia_css_get_sdis2_horicoef_config(params, config->dvs2_coefs);
3180 ia_css_get_sdis2_vertcoef_config(params, config->dvs2_coefs);
3181 ia_css_get_sdis2_horiproj_config(params, config->dvs2_coefs);
3182 ia_css_get_sdis2_vertproj_config(params, config->dvs2_coefs);
3183 ia_css_get_r_gamma_config(params, config->r_gamma_table);
3184 ia_css_get_g_gamma_config(params, config->g_gamma_table);
3185 ia_css_get_b_gamma_config(params, config->b_gamma_table);
3186 ia_css_get_xnr_table_config(params, config->xnr_table);
3187 ia_css_get_formats_config(params, config->formats_config);
3188 ia_css_get_xnr_config(params, config->xnr_config);
3189 ia_css_get_xnr3_config(params, config->xnr3_config);
3190 ia_css_get_s3a_config(params, config->s3a_config);
3191 ia_css_get_output_config(params, config->output_config);
3192 }
3193
3194 /* Code generated by genparam/gencode.c:gen_global_access_function() */
3195
3196 void
3197 ia_css_set_configs(struct ia_css_isp_parameters *params,
3198 const struct ia_css_isp_config *config)
3199 {
3200 ia_css_set_dp_config(params, config->dp_config);
3201 ia_css_set_wb_config(params, config->wb_config);
3202 ia_css_set_tnr_config(params, config->tnr_config);
3203 ia_css_set_ob_config(params, config->ob_config);
3204 ia_css_set_de_config(params, config->de_config);
3205 ia_css_set_anr_config(params, config->anr_config);
3206 ia_css_set_anr2_config(params, config->anr_thres);
3207 ia_css_set_ce_config(params, config->ce_config);
3208 ia_css_set_ecd_config(params, config->ecd_config);
3209 ia_css_set_ynr_config(params, config->ynr_config);
3210 ia_css_set_fc_config(params, config->fc_config);
3211 ia_css_set_cnr_config(params, config->cnr_config);
3212 ia_css_set_macc_config(params, config->macc_config);
3213 ia_css_set_ctc_config(params, config->ctc_config);
3214 ia_css_set_aa_config(params, config->aa_config);
3215 ia_css_set_yuv2rgb_config(params, config->yuv2rgb_cc_config);
3216 ia_css_set_rgb2yuv_config(params, config->rgb2yuv_cc_config);
3217 ia_css_set_csc_config(params, config->cc_config);
3218 ia_css_set_nr_config(params, config->nr_config);
3219 ia_css_set_gc_config(params, config->gc_config);
3220 ia_css_set_sdis_horicoef_config(params, config->dvs_coefs);
3221 ia_css_set_sdis_vertcoef_config(params, config->dvs_coefs);
3222 ia_css_set_sdis_horiproj_config(params, config->dvs_coefs);
3223 ia_css_set_sdis_vertproj_config(params, config->dvs_coefs);
3224 ia_css_set_sdis2_horicoef_config(params, config->dvs2_coefs);
3225 ia_css_set_sdis2_vertcoef_config(params, config->dvs2_coefs);
3226 ia_css_set_sdis2_horiproj_config(params, config->dvs2_coefs);
3227 ia_css_set_sdis2_vertproj_config(params, config->dvs2_coefs);
3228 ia_css_set_r_gamma_config(params, config->r_gamma_table);
3229 ia_css_set_g_gamma_config(params, config->g_gamma_table);
3230 ia_css_set_b_gamma_config(params, config->b_gamma_table);
3231 ia_css_set_xnr_table_config(params, config->xnr_table);
3232 ia_css_set_formats_config(params, config->formats_config);
3233 ia_css_set_xnr_config(params, config->xnr_config);
3234 ia_css_set_xnr3_config(params, config->xnr3_config);
3235 ia_css_set_s3a_config(params, config->s3a_config);
3236 ia_css_set_output_config(params, config->output_config);
3237 }
3238