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