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