3246d99e6c0fda5461b8b82d42aadc644f934f9e
[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.host.h"
32 #include "isp/kernels/fpn/fpn_1.0/ia_css_fpn.host.h"
33 #include "isp/kernels/gc/gc_1.0/ia_css_gc.host.h"
34 #include "isp/kernels/gc/gc_2/ia_css_gc2.host.h"
35 #include "isp/kernels/macc/macc_1.0/ia_css_macc.host.h"
36 #include "isp/kernels/macc/macc1_5/ia_css_macc1_5.host.h"
37 #include "isp/kernels/ob/ob_1.0/ia_css_ob.host.h"
38 #include "isp/kernels/ob/ob2/ia_css_ob2.host.h"
39 #include "isp/kernels/output/output_1.0/ia_css_output.host.h"
40 #include "isp/kernels/raw_aa_binning/raw_aa_binning_1.0/ia_css_raa.host.h"
41 #include "isp/kernels/s3a/s3a_1.0/ia_css_s3a.host.h"
42 #include "isp/kernels/sc/sc_1.0/ia_css_sc.host.h"
43 #include "isp/kernels/sdis/sdis_1.0/ia_css_sdis.host.h"
44 #include "isp/kernels/sdis/sdis_2/ia_css_sdis2.host.h"
45 #include "isp/kernels/tnr/tnr_1.0/ia_css_tnr.host.h"
46 #include "isp/kernels/uds/uds_1.0/ia_css_uds.host.h"
47 #include "isp/kernels/wb/wb_1.0/ia_css_wb.host.h"
48 #include "isp/kernels/xnr/xnr_1.0/ia_css_xnr.host.h"
49 #include "isp/kernels/xnr/xnr_3.0/ia_css_xnr3.host.h"
50 #include "isp/kernels/ynr/ynr_1.0/ia_css_ynr.host.h"
51 #include "isp/kernels/ynr/ynr_2/ia_css_ynr2.host.h"
52 #include "isp/kernels/fc/fc_1.0/ia_css_formats.host.h"
53 #include "isp/kernels/tdf/tdf_1.0/ia_css_tdf.host.h"
54 #include "isp/kernels/dpc2/ia_css_dpc2.host.h"
55 #include "isp/kernels/eed1_8/ia_css_eed1_8.host.h"
56 #include "isp/kernels/bnlm/ia_css_bnlm.host.h"
57 #include "isp/kernels/conversion/conversion_1.0/ia_css_conversion.host.h"
58 /* Generated code: do not edit or commmit. */
59
60 #include "ia_css_pipeline.h"
61 #include "ia_css_isp_params.h"
62 #include "ia_css_debug.h"
63 #include "assert_support.h"
64
65 /* Code generated by genparam/gencode.c:gen_process_function() */
66
67 static void
68 ia_css_process_aa(
69 unsigned pipe_id,
70 const struct ia_css_pipeline_stage *stage,
71 struct ia_css_isp_parameters *params)
72 {
73 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 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bds() enter:\n");
928
929 ia_css_bds_encode((struct sh_css_isp_bds_params *)
930 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
931 &params->bds_config,
932 size);
933 params->isp_params_changed = true;
934 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
935
936 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_bds() leave:\n");
937 }
938
939 }
940 }
941
942 /* Code generated by genparam/gencode.c:gen_process_function() */
943
944 static void
945 ia_css_process_tnr(
946 unsigned pipe_id,
947 const struct ia_css_pipeline_stage *stage,
948 struct ia_css_isp_parameters *params)
949 {
950 assert(params != NULL);
951
952 {
953 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.tnr.size;
954
955 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.tnr.offset;
956
957 if (size) {
958 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_tnr() enter:\n");
959
960 ia_css_tnr_encode((struct sh_css_isp_tnr_params *)
961 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
962 &params->tnr_config,
963 size);
964 params->isp_params_changed = true;
965 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
966
967 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_tnr() leave:\n");
968 }
969
970 }
971 }
972
973 /* Code generated by genparam/gencode.c:gen_process_function() */
974
975 static void
976 ia_css_process_macc(
977 unsigned pipe_id,
978 const struct ia_css_pipeline_stage *stage,
979 struct ia_css_isp_parameters *params)
980 {
981 assert(params != NULL);
982
983 {
984 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.macc.size;
985
986 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.macc.offset;
987
988 if (size) {
989 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_macc() enter:\n");
990
991 ia_css_macc_encode((struct sh_css_isp_macc_params *)
992 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
993 &params->macc_config,
994 size);
995 params->isp_params_changed = true;
996 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
997
998 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_macc() leave:\n");
999 }
1000
1001 }
1002 }
1003
1004 /* Code generated by genparam/gencode.c:gen_process_function() */
1005
1006 static void
1007 ia_css_process_sdis_horicoef(
1008 unsigned pipe_id,
1009 const struct ia_css_pipeline_stage *stage,
1010 struct ia_css_isp_parameters *params)
1011 {
1012 assert(params != NULL);
1013
1014 {
1015 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_horicoef.size;
1016
1017 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_horicoef.offset;
1018
1019 if (size) {
1020 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horicoef() enter:\n");
1021
1022 ia_css_sdis_horicoef_vmem_encode((struct sh_css_isp_sdis_hori_coef_tbl *)
1023 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1024 &params->dvs_coefs,
1025 size);
1026 params->isp_params_changed = true;
1027 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1028
1029 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horicoef() leave:\n");
1030 }
1031
1032 }
1033 }
1034
1035 /* Code generated by genparam/gencode.c:gen_process_function() */
1036
1037 static void
1038 ia_css_process_sdis_vertcoef(
1039 unsigned pipe_id,
1040 const struct ia_css_pipeline_stage *stage,
1041 struct ia_css_isp_parameters *params)
1042 {
1043 assert(params != NULL);
1044
1045 {
1046 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_vertcoef.size;
1047
1048 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis_vertcoef.offset;
1049
1050 if (size) {
1051 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertcoef() enter:\n");
1052
1053 ia_css_sdis_vertcoef_vmem_encode((struct sh_css_isp_sdis_vert_coef_tbl *)
1054 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1055 &params->dvs_coefs,
1056 size);
1057 params->isp_params_changed = true;
1058 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1059
1060 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertcoef() leave:\n");
1061 }
1062
1063 }
1064 }
1065
1066 /* Code generated by genparam/gencode.c:gen_process_function() */
1067
1068 static void
1069 ia_css_process_sdis_horiproj(
1070 unsigned pipe_id,
1071 const struct ia_css_pipeline_stage *stage,
1072 struct ia_css_isp_parameters *params)
1073 {
1074 assert(params != NULL);
1075
1076 {
1077 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_horiproj.size;
1078
1079 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_horiproj.offset;
1080
1081 if (size) {
1082 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horiproj() enter:\n");
1083
1084 ia_css_sdis_horiproj_encode((struct sh_css_isp_sdis_hori_proj_tbl *)
1085 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1086 &params->dvs_coefs,
1087 size);
1088 params->isp_params_changed = true;
1089 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1090
1091 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_horiproj() leave:\n");
1092 }
1093
1094 }
1095 }
1096
1097 /* Code generated by genparam/gencode.c:gen_process_function() */
1098
1099 static void
1100 ia_css_process_sdis_vertproj(
1101 unsigned pipe_id,
1102 const struct ia_css_pipeline_stage *stage,
1103 struct ia_css_isp_parameters *params)
1104 {
1105 assert(params != NULL);
1106
1107 {
1108 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_vertproj.size;
1109
1110 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis_vertproj.offset;
1111
1112 if (size) {
1113 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertproj() enter:\n");
1114
1115 ia_css_sdis_vertproj_encode((struct sh_css_isp_sdis_vert_proj_tbl *)
1116 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1117 &params->dvs_coefs,
1118 size);
1119 params->isp_params_changed = true;
1120 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1121
1122 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis_vertproj() leave:\n");
1123 }
1124
1125 }
1126 }
1127
1128 /* Code generated by genparam/gencode.c:gen_process_function() */
1129
1130 static void
1131 ia_css_process_sdis2_horicoef(
1132 unsigned pipe_id,
1133 const struct ia_css_pipeline_stage *stage,
1134 struct ia_css_isp_parameters *params)
1135 {
1136 assert(params != NULL);
1137
1138 {
1139 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_horicoef.size;
1140
1141 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_horicoef.offset;
1142
1143 if (size) {
1144 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horicoef() enter:\n");
1145
1146 ia_css_sdis2_horicoef_vmem_encode((struct sh_css_isp_sdis_hori_coef_tbl *)
1147 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1148 &params->dvs2_coefs,
1149 size);
1150 params->isp_params_changed = true;
1151 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1152
1153 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horicoef() leave:\n");
1154 }
1155
1156 }
1157 }
1158
1159 /* Code generated by genparam/gencode.c:gen_process_function() */
1160
1161 static void
1162 ia_css_process_sdis2_vertcoef(
1163 unsigned pipe_id,
1164 const struct ia_css_pipeline_stage *stage,
1165 struct ia_css_isp_parameters *params)
1166 {
1167 assert(params != NULL);
1168
1169 {
1170 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_vertcoef.size;
1171
1172 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.sdis2_vertcoef.offset;
1173
1174 if (size) {
1175 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertcoef() enter:\n");
1176
1177 ia_css_sdis2_vertcoef_vmem_encode((struct sh_css_isp_sdis_vert_coef_tbl *)
1178 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1179 &params->dvs2_coefs,
1180 size);
1181 params->isp_params_changed = true;
1182 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1183
1184 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertcoef() leave:\n");
1185 }
1186
1187 }
1188 }
1189
1190 /* Code generated by genparam/gencode.c:gen_process_function() */
1191
1192 static void
1193 ia_css_process_sdis2_horiproj(
1194 unsigned pipe_id,
1195 const struct ia_css_pipeline_stage *stage,
1196 struct ia_css_isp_parameters *params)
1197 {
1198 assert(params != NULL);
1199
1200 {
1201 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_horiproj.size;
1202
1203 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_horiproj.offset;
1204
1205 if (size) {
1206 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horiproj() enter:\n");
1207
1208 ia_css_sdis2_horiproj_encode((struct sh_css_isp_sdis_hori_proj_tbl *)
1209 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1210 &params->dvs2_coefs,
1211 size);
1212 params->isp_params_changed = true;
1213 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1214
1215 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_horiproj() leave:\n");
1216 }
1217
1218 }
1219 }
1220
1221 /* Code generated by genparam/gencode.c:gen_process_function() */
1222
1223 static void
1224 ia_css_process_sdis2_vertproj(
1225 unsigned pipe_id,
1226 const struct ia_css_pipeline_stage *stage,
1227 struct ia_css_isp_parameters *params)
1228 {
1229 assert(params != NULL);
1230
1231 {
1232 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_vertproj.size;
1233
1234 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.sdis2_vertproj.offset;
1235
1236 if (size) {
1237 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertproj() enter:\n");
1238
1239 ia_css_sdis2_vertproj_encode((struct sh_css_isp_sdis_vert_proj_tbl *)
1240 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1241 &params->dvs2_coefs,
1242 size);
1243 params->isp_params_changed = true;
1244 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1245
1246 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_sdis2_vertproj() leave:\n");
1247 }
1248
1249 }
1250 }
1251
1252 /* Code generated by genparam/gencode.c:gen_process_function() */
1253
1254 static void
1255 ia_css_process_wb(
1256 unsigned pipe_id,
1257 const struct ia_css_pipeline_stage *stage,
1258 struct ia_css_isp_parameters *params)
1259 {
1260 assert(params != NULL);
1261
1262 {
1263 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.wb.size;
1264
1265 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.wb.offset;
1266
1267 if (size) {
1268 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_wb() enter:\n");
1269
1270 ia_css_wb_encode((struct sh_css_isp_wb_params *)
1271 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1272 &params->wb_config,
1273 size);
1274 params->isp_params_changed = true;
1275 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1276
1277 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_wb() leave:\n");
1278 }
1279
1280 }
1281 }
1282
1283 /* Code generated by genparam/gencode.c:gen_process_function() */
1284
1285 static void
1286 ia_css_process_nr(
1287 unsigned pipe_id,
1288 const struct ia_css_pipeline_stage *stage,
1289 struct ia_css_isp_parameters *params)
1290 {
1291 assert(params != NULL);
1292
1293 {
1294 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.nr.size;
1295
1296 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.nr.offset;
1297
1298 if (size) {
1299 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_nr() enter:\n");
1300
1301 ia_css_nr_encode((struct sh_css_isp_ynr_params *)
1302 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1303 &params->nr_config,
1304 size);
1305 params->isp_params_changed = true;
1306 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1307
1308 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_nr() leave:\n");
1309 }
1310
1311 }
1312 }
1313
1314 /* Code generated by genparam/gencode.c:gen_process_function() */
1315
1316 static void
1317 ia_css_process_yee(
1318 unsigned pipe_id,
1319 const struct ia_css_pipeline_stage *stage,
1320 struct ia_css_isp_parameters *params)
1321 {
1322 assert(params != NULL);
1323
1324 {
1325 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.yee.size;
1326
1327 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.yee.offset;
1328
1329 if (size) {
1330 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yee() enter:\n");
1331
1332 ia_css_yee_encode((struct sh_css_isp_yee_params *)
1333 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1334 &params->yee_config,
1335 size);
1336 params->isp_params_changed = true;
1337 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1338
1339 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_yee() leave:\n");
1340 }
1341
1342 }
1343 }
1344
1345 /* Code generated by genparam/gencode.c:gen_process_function() */
1346
1347 static void
1348 ia_css_process_ynr(
1349 unsigned pipe_id,
1350 const struct ia_css_pipeline_stage *stage,
1351 struct ia_css_isp_parameters *params)
1352 {
1353 assert(params != NULL);
1354
1355 {
1356 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ynr.size;
1357
1358 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ynr.offset;
1359
1360 if (size) {
1361 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ynr() enter:\n");
1362
1363 ia_css_ynr_encode((struct sh_css_isp_yee2_params *)
1364 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1365 &params->ynr_config,
1366 size);
1367 params->isp_params_changed = true;
1368 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1369
1370 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ynr() leave:\n");
1371 }
1372
1373 }
1374 }
1375
1376 /* Code generated by genparam/gencode.c:gen_process_function() */
1377
1378 static void
1379 ia_css_process_fc(
1380 unsigned pipe_id,
1381 const struct ia_css_pipeline_stage *stage,
1382 struct ia_css_isp_parameters *params)
1383 {
1384 assert(params != NULL);
1385
1386 {
1387 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.fc.size;
1388
1389 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.fc.offset;
1390
1391 if (size) {
1392 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fc() enter:\n");
1393
1394 ia_css_fc_encode((struct sh_css_isp_fc_params *)
1395 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1396 &params->fc_config,
1397 size);
1398 params->isp_params_changed = true;
1399 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1400
1401 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_fc() leave:\n");
1402 }
1403
1404 }
1405 }
1406
1407 /* Code generated by genparam/gencode.c:gen_process_function() */
1408
1409 static void
1410 ia_css_process_ctc(
1411 unsigned pipe_id,
1412 const struct ia_css_pipeline_stage *stage,
1413 struct ia_css_isp_parameters *params)
1414 {
1415 assert(params != NULL);
1416
1417 {
1418 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.ctc.size;
1419
1420 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.ctc.offset;
1421
1422 if (size) {
1423 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() enter:\n");
1424
1425 ia_css_ctc_encode((struct sh_css_isp_ctc_params *)
1426 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1427 &params->ctc_config,
1428 size);
1429 params->isp_params_changed = true;
1430 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1431
1432 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() leave:\n");
1433 }
1434
1435 }
1436 {
1437 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem0.ctc.size;
1438
1439 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem0.ctc.offset;
1440
1441 if (size) {
1442 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() enter:\n");
1443
1444 ia_css_ctc_vamem_encode((struct sh_css_isp_ctc_vamem_params *)
1445 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM0].address[offset],
1446 &params->ctc_table,
1447 size);
1448 params->isp_params_changed = true;
1449 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM0] = true;
1450
1451 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_ctc() leave:\n");
1452 }
1453
1454 }
1455 }
1456
1457 /* Code generated by genparam/gencode.c:gen_process_function() */
1458
1459 static void
1460 ia_css_process_xnr_table(
1461 unsigned pipe_id,
1462 const struct ia_css_pipeline_stage *stage,
1463 struct ia_css_isp_parameters *params)
1464 {
1465 assert(params != NULL);
1466
1467 {
1468 unsigned size = stage->binary->info->mem_offsets.offsets.param->vamem1.xnr_table.size;
1469
1470 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vamem1.xnr_table.offset;
1471
1472 if (size) {
1473 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr_table() enter:\n");
1474
1475 ia_css_xnr_table_vamem_encode((struct sh_css_isp_xnr_vamem_params *)
1476 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VAMEM1].address[offset],
1477 &params->xnr_table,
1478 size);
1479 params->isp_params_changed = true;
1480 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VAMEM1] = true;
1481
1482 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr_table() leave:\n");
1483 }
1484
1485 }
1486 }
1487
1488 /* Code generated by genparam/gencode.c:gen_process_function() */
1489
1490 static void
1491 ia_css_process_xnr(
1492 unsigned pipe_id,
1493 const struct ia_css_pipeline_stage *stage,
1494 struct ia_css_isp_parameters *params)
1495 {
1496 assert(params != NULL);
1497
1498 {
1499 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.xnr.size;
1500
1501 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.xnr.offset;
1502
1503 if (size) {
1504 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr() enter:\n");
1505
1506 ia_css_xnr_encode((struct sh_css_isp_xnr_params *)
1507 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1508 &params->xnr_config,
1509 size);
1510 params->isp_params_changed = true;
1511 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1512
1513 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr() leave:\n");
1514 }
1515
1516 }
1517 }
1518
1519 /* Code generated by genparam/gencode.c:gen_process_function() */
1520
1521 static void
1522 ia_css_process_xnr3(
1523 unsigned pipe_id,
1524 const struct ia_css_pipeline_stage *stage,
1525 struct ia_css_isp_parameters *params)
1526 {
1527 assert(params != NULL);
1528
1529 {
1530 unsigned size = stage->binary->info->mem_offsets.offsets.param->dmem.xnr3.size;
1531
1532 unsigned offset = stage->binary->info->mem_offsets.offsets.param->dmem.xnr3.offset;
1533
1534 if (size) {
1535 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() enter:\n");
1536
1537 ia_css_xnr3_encode((struct sh_css_isp_xnr3_params *)
1538 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_DMEM].address[offset],
1539 &params->xnr3_config,
1540 size);
1541 params->isp_params_changed = true;
1542 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_DMEM] = true;
1543
1544 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() leave:\n");
1545 }
1546
1547 }
1548 #ifdef ISP2401
1549 {
1550 unsigned size = stage->binary->info->mem_offsets.offsets.param->vmem.xnr3.size;
1551
1552 unsigned offset = stage->binary->info->mem_offsets.offsets.param->vmem.xnr3.offset;
1553
1554 if (size) {
1555 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() enter:\n");
1556
1557 ia_css_xnr3_vmem_encode((struct sh_css_isp_xnr3_vmem_params *)
1558 &stage->binary->mem_params.params[IA_CSS_PARAM_CLASS_PARAM][IA_CSS_ISP_VMEM].address[offset],
1559 &params->xnr3_config,
1560 size);
1561 params->isp_params_changed = true;
1562 params->isp_mem_params_changed[pipe_id][stage->stage_num][IA_CSS_ISP_VMEM] = true;
1563
1564 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_process_xnr3() leave:\n");
1565 }
1566
1567 }
1568 #endif
1569 }
1570
1571 /* Code generated by genparam/gencode.c:gen_param_process_table() */
1572
1573 void (* ia_css_kernel_process_param[IA_CSS_NUM_PARAMETER_IDS])(
1574 unsigned pipe_id,
1575 const struct ia_css_pipeline_stage *stage,
1576 struct ia_css_isp_parameters *params) = {
1577 ia_css_process_aa,
1578 ia_css_process_anr,
1579 ia_css_process_anr2,
1580 ia_css_process_bh,
1581 ia_css_process_cnr,
1582 ia_css_process_crop,
1583 ia_css_process_csc,
1584 ia_css_process_dp,
1585 ia_css_process_bnr,
1586 ia_css_process_de,
1587 ia_css_process_ecd,
1588 ia_css_process_formats,
1589 ia_css_process_fpn,
1590 ia_css_process_gc,
1591 ia_css_process_ce,
1592 ia_css_process_yuv2rgb,
1593 ia_css_process_rgb2yuv,
1594 ia_css_process_r_gamma,
1595 ia_css_process_g_gamma,
1596 ia_css_process_b_gamma,
1597 ia_css_process_uds,
1598 ia_css_process_raa,
1599 ia_css_process_s3a,
1600 ia_css_process_ob,
1601 ia_css_process_output,
1602 ia_css_process_sc,
1603 ia_css_process_bds,
1604 ia_css_process_tnr,
1605 ia_css_process_macc,
1606 ia_css_process_sdis_horicoef,
1607 ia_css_process_sdis_vertcoef,
1608 ia_css_process_sdis_horiproj,
1609 ia_css_process_sdis_vertproj,
1610 ia_css_process_sdis2_horicoef,
1611 ia_css_process_sdis2_vertcoef,
1612 ia_css_process_sdis2_horiproj,
1613 ia_css_process_sdis2_vertproj,
1614 ia_css_process_wb,
1615 ia_css_process_nr,
1616 ia_css_process_yee,
1617 ia_css_process_ynr,
1618 ia_css_process_fc,
1619 ia_css_process_ctc,
1620 ia_css_process_xnr_table,
1621 ia_css_process_xnr,
1622 ia_css_process_xnr3,
1623 };
1624
1625 /* Code generated by genparam/gencode.c:gen_get_function() */
1626
1627 static void
1628 ia_css_get_dp_config(const struct ia_css_isp_parameters *params,
1629 struct ia_css_dp_config *config){
1630 if (config == NULL)
1631 return;
1632
1633 assert(params != NULL);
1634 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_dp_config() enter: "
1635 "config=%p\n",config);
1636
1637 *config = params->dp_config;
1638
1639 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_dp_config() leave\n");
1640 ia_css_dp_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1641 }
1642
1643 /* Code generated by genparam/gencode.c:gen_set_function() */
1644
1645 void
1646 ia_css_set_dp_config(struct ia_css_isp_parameters *params,
1647 const struct ia_css_dp_config *config)
1648 {
1649 if (config == NULL)
1650 return;
1651
1652 assert(params != NULL);
1653 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_dp_config() enter:\n");
1654 ia_css_dp_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1655 params->dp_config = *config;
1656 params->config_changed[IA_CSS_DP_ID] = true;
1657 #ifndef ISP2401
1658 params->config_changed[IA_CSS_DP_ID] = true;
1659
1660 #endif
1661 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_dp_config() leave: "
1662 "return_void\n");
1663 }
1664
1665 /* Code generated by genparam/gencode.c:gen_get_function() */
1666
1667 static void
1668 ia_css_get_wb_config(const struct ia_css_isp_parameters *params,
1669 struct ia_css_wb_config *config){
1670 if (config == NULL)
1671 return;
1672
1673 assert(params != NULL);
1674 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_wb_config() enter: "
1675 "config=%p\n",config);
1676
1677 *config = params->wb_config;
1678
1679 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_wb_config() leave\n");
1680 ia_css_wb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1681 }
1682
1683 /* Code generated by genparam/gencode.c:gen_set_function() */
1684
1685 void
1686 ia_css_set_wb_config(struct ia_css_isp_parameters *params,
1687 const struct ia_css_wb_config *config)
1688 {
1689 if (config == NULL)
1690 return;
1691
1692 assert(params != NULL);
1693 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_wb_config() enter:\n");
1694 ia_css_wb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1695 params->wb_config = *config;
1696 params->config_changed[IA_CSS_WB_ID] = true;
1697 #ifndef ISP2401
1698 params->config_changed[IA_CSS_WB_ID] = true;
1699
1700 #endif
1701 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_wb_config() leave: "
1702 "return_void\n");
1703 }
1704
1705 /* Code generated by genparam/gencode.c:gen_get_function() */
1706
1707 static void
1708 ia_css_get_tnr_config(const struct ia_css_isp_parameters *params,
1709 struct ia_css_tnr_config *config){
1710 if (config == NULL)
1711 return;
1712
1713 assert(params != NULL);
1714 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_tnr_config() enter: "
1715 "config=%p\n",config);
1716
1717 *config = params->tnr_config;
1718
1719 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_tnr_config() leave\n");
1720 ia_css_tnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1721 }
1722
1723 /* Code generated by genparam/gencode.c:gen_set_function() */
1724
1725 void
1726 ia_css_set_tnr_config(struct ia_css_isp_parameters *params,
1727 const struct ia_css_tnr_config *config)
1728 {
1729 if (config == NULL)
1730 return;
1731
1732 assert(params != NULL);
1733 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_tnr_config() enter:\n");
1734 ia_css_tnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1735 params->tnr_config = *config;
1736 params->config_changed[IA_CSS_TNR_ID] = true;
1737 #ifndef ISP2401
1738 params->config_changed[IA_CSS_TNR_ID] = true;
1739
1740 #endif
1741 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_tnr_config() leave: "
1742 "return_void\n");
1743 }
1744
1745 /* Code generated by genparam/gencode.c:gen_get_function() */
1746
1747 static void
1748 ia_css_get_ob_config(const struct ia_css_isp_parameters *params,
1749 struct ia_css_ob_config *config){
1750 if (config == NULL)
1751 return;
1752
1753 assert(params != NULL);
1754 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ob_config() enter: "
1755 "config=%p\n",config);
1756
1757 *config = params->ob_config;
1758
1759 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ob_config() leave\n");
1760 ia_css_ob_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1761 }
1762
1763 /* Code generated by genparam/gencode.c:gen_set_function() */
1764
1765 void
1766 ia_css_set_ob_config(struct ia_css_isp_parameters *params,
1767 const struct ia_css_ob_config *config)
1768 {
1769 if (config == NULL)
1770 return;
1771
1772 assert(params != NULL);
1773 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ob_config() enter:\n");
1774 ia_css_ob_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1775 params->ob_config = *config;
1776 params->config_changed[IA_CSS_OB_ID] = true;
1777 #ifndef ISP2401
1778 params->config_changed[IA_CSS_OB_ID] = true;
1779
1780 #endif
1781 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ob_config() leave: "
1782 "return_void\n");
1783 }
1784
1785 /* Code generated by genparam/gencode.c:gen_get_function() */
1786
1787 static void
1788 ia_css_get_de_config(const struct ia_css_isp_parameters *params,
1789 struct ia_css_de_config *config){
1790 if (config == NULL)
1791 return;
1792
1793 assert(params != NULL);
1794 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_de_config() enter: "
1795 "config=%p\n",config);
1796
1797 *config = params->de_config;
1798
1799 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_de_config() leave\n");
1800 ia_css_de_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1801 }
1802
1803 /* Code generated by genparam/gencode.c:gen_set_function() */
1804
1805 void
1806 ia_css_set_de_config(struct ia_css_isp_parameters *params,
1807 const struct ia_css_de_config *config)
1808 {
1809 if (config == NULL)
1810 return;
1811
1812 assert(params != NULL);
1813 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_de_config() enter:\n");
1814 ia_css_de_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1815 params->de_config = *config;
1816 params->config_changed[IA_CSS_DE_ID] = true;
1817 #ifndef ISP2401
1818 params->config_changed[IA_CSS_DE_ID] = true;
1819
1820 #endif
1821 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_de_config() leave: "
1822 "return_void\n");
1823 }
1824
1825 /* Code generated by genparam/gencode.c:gen_get_function() */
1826
1827 static void
1828 ia_css_get_anr_config(const struct ia_css_isp_parameters *params,
1829 struct ia_css_anr_config *config){
1830 if (config == NULL)
1831 return;
1832
1833 assert(params != NULL);
1834 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr_config() enter: "
1835 "config=%p\n",config);
1836
1837 *config = params->anr_config;
1838
1839 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr_config() leave\n");
1840 ia_css_anr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1841 }
1842
1843 /* Code generated by genparam/gencode.c:gen_set_function() */
1844
1845 void
1846 ia_css_set_anr_config(struct ia_css_isp_parameters *params,
1847 const struct ia_css_anr_config *config)
1848 {
1849 if (config == NULL)
1850 return;
1851
1852 assert(params != NULL);
1853 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_anr_config() enter:\n");
1854 ia_css_anr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1855 params->anr_config = *config;
1856 params->config_changed[IA_CSS_ANR_ID] = true;
1857 #ifndef ISP2401
1858 params->config_changed[IA_CSS_ANR_ID] = true;
1859
1860 #endif
1861 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_anr_config() leave: "
1862 "return_void\n");
1863 }
1864
1865 /* Code generated by genparam/gencode.c:gen_get_function() */
1866
1867 static void
1868 ia_css_get_anr2_config(const struct ia_css_isp_parameters *params,
1869 struct ia_css_anr_thres *config){
1870 if (config == NULL)
1871 return;
1872
1873 assert(params != NULL);
1874 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr2_config() enter: "
1875 "config=%p\n",config);
1876
1877 *config = params->anr_thres;
1878
1879 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_anr2_config() leave\n");
1880 ia_css_anr2_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1881 }
1882
1883 /* Code generated by genparam/gencode.c:gen_set_function() */
1884
1885 void
1886 ia_css_set_anr2_config(struct ia_css_isp_parameters *params,
1887 const struct ia_css_anr_thres *config)
1888 {
1889 if (config == NULL)
1890 return;
1891
1892 assert(params != NULL);
1893 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_anr2_config() enter:\n");
1894 ia_css_anr2_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1895 params->anr_thres = *config;
1896 params->config_changed[IA_CSS_ANR2_ID] = true;
1897 #ifndef ISP2401
1898 params->config_changed[IA_CSS_ANR2_ID] = true;
1899
1900 #endif
1901 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_anr2_config() leave: "
1902 "return_void\n");
1903 }
1904
1905 /* Code generated by genparam/gencode.c:gen_get_function() */
1906
1907 static void
1908 ia_css_get_ce_config(const struct ia_css_isp_parameters *params,
1909 struct ia_css_ce_config *config){
1910 if (config == NULL)
1911 return;
1912
1913 assert(params != NULL);
1914 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ce_config() enter: "
1915 "config=%p\n",config);
1916
1917 *config = params->ce_config;
1918
1919 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ce_config() leave\n");
1920 ia_css_ce_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1921 }
1922
1923 /* Code generated by genparam/gencode.c:gen_set_function() */
1924
1925 void
1926 ia_css_set_ce_config(struct ia_css_isp_parameters *params,
1927 const struct ia_css_ce_config *config)
1928 {
1929 if (config == NULL)
1930 return;
1931
1932 assert(params != NULL);
1933 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ce_config() enter:\n");
1934 ia_css_ce_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1935 params->ce_config = *config;
1936 params->config_changed[IA_CSS_CE_ID] = true;
1937 #ifndef ISP2401
1938 params->config_changed[IA_CSS_CE_ID] = true;
1939
1940 #endif
1941 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ce_config() leave: "
1942 "return_void\n");
1943 }
1944
1945 /* Code generated by genparam/gencode.c:gen_get_function() */
1946
1947 static void
1948 ia_css_get_ecd_config(const struct ia_css_isp_parameters *params,
1949 struct ia_css_ecd_config *config){
1950 if (config == NULL)
1951 return;
1952
1953 assert(params != NULL);
1954 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ecd_config() enter: "
1955 "config=%p\n",config);
1956
1957 *config = params->ecd_config;
1958
1959 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ecd_config() leave\n");
1960 ia_css_ecd_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1961 }
1962
1963 /* Code generated by genparam/gencode.c:gen_set_function() */
1964
1965 void
1966 ia_css_set_ecd_config(struct ia_css_isp_parameters *params,
1967 const struct ia_css_ecd_config *config)
1968 {
1969 if (config == NULL)
1970 return;
1971
1972 assert(params != NULL);
1973 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ecd_config() enter:\n");
1974 ia_css_ecd_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
1975 params->ecd_config = *config;
1976 params->config_changed[IA_CSS_ECD_ID] = true;
1977 #ifndef ISP2401
1978 params->config_changed[IA_CSS_ECD_ID] = true;
1979
1980 #endif
1981 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ecd_config() leave: "
1982 "return_void\n");
1983 }
1984
1985 /* Code generated by genparam/gencode.c:gen_get_function() */
1986
1987 static void
1988 ia_css_get_ynr_config(const struct ia_css_isp_parameters *params,
1989 struct ia_css_ynr_config *config){
1990 if (config == NULL)
1991 return;
1992
1993 assert(params != NULL);
1994 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ynr_config() enter: "
1995 "config=%p\n",config);
1996
1997 *config = params->ynr_config;
1998
1999 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ynr_config() leave\n");
2000 ia_css_ynr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2001 }
2002
2003 /* Code generated by genparam/gencode.c:gen_set_function() */
2004
2005 void
2006 ia_css_set_ynr_config(struct ia_css_isp_parameters *params,
2007 const struct ia_css_ynr_config *config)
2008 {
2009 if (config == NULL)
2010 return;
2011
2012 assert(params != NULL);
2013 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ynr_config() enter:\n");
2014 ia_css_ynr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2015 params->ynr_config = *config;
2016 params->config_changed[IA_CSS_YNR_ID] = true;
2017 #ifndef ISP2401
2018 params->config_changed[IA_CSS_YNR_ID] = true;
2019
2020 #endif
2021 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ynr_config() leave: "
2022 "return_void\n");
2023 }
2024
2025 /* Code generated by genparam/gencode.c:gen_get_function() */
2026
2027 static void
2028 ia_css_get_fc_config(const struct ia_css_isp_parameters *params,
2029 struct ia_css_fc_config *config){
2030 if (config == NULL)
2031 return;
2032
2033 assert(params != NULL);
2034 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_fc_config() enter: "
2035 "config=%p\n",config);
2036
2037 *config = params->fc_config;
2038
2039 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_fc_config() leave\n");
2040 ia_css_fc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2041 }
2042
2043 /* Code generated by genparam/gencode.c:gen_set_function() */
2044
2045 void
2046 ia_css_set_fc_config(struct ia_css_isp_parameters *params,
2047 const struct ia_css_fc_config *config)
2048 {
2049 if (config == NULL)
2050 return;
2051
2052 assert(params != NULL);
2053 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_fc_config() enter:\n");
2054 ia_css_fc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2055 params->fc_config = *config;
2056 params->config_changed[IA_CSS_FC_ID] = true;
2057 #ifndef ISP2401
2058 params->config_changed[IA_CSS_FC_ID] = true;
2059
2060 #endif
2061 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_fc_config() leave: "
2062 "return_void\n");
2063 }
2064
2065 /* Code generated by genparam/gencode.c:gen_get_function() */
2066
2067 static void
2068 ia_css_get_cnr_config(const struct ia_css_isp_parameters *params,
2069 struct ia_css_cnr_config *config){
2070 if (config == NULL)
2071 return;
2072
2073 assert(params != NULL);
2074 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_cnr_config() enter: "
2075 "config=%p\n",config);
2076
2077 *config = params->cnr_config;
2078
2079 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_cnr_config() leave\n");
2080 ia_css_cnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2081 }
2082
2083 /* Code generated by genparam/gencode.c:gen_set_function() */
2084
2085 void
2086 ia_css_set_cnr_config(struct ia_css_isp_parameters *params,
2087 const struct ia_css_cnr_config *config)
2088 {
2089 if (config == NULL)
2090 return;
2091
2092 assert(params != NULL);
2093 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_cnr_config() enter:\n");
2094 ia_css_cnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2095 params->cnr_config = *config;
2096 params->config_changed[IA_CSS_CNR_ID] = true;
2097 #ifndef ISP2401
2098 params->config_changed[IA_CSS_CNR_ID] = true;
2099
2100 #endif
2101 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_cnr_config() leave: "
2102 "return_void\n");
2103 }
2104
2105 /* Code generated by genparam/gencode.c:gen_get_function() */
2106
2107 static void
2108 ia_css_get_macc_config(const struct ia_css_isp_parameters *params,
2109 struct ia_css_macc_config *config){
2110 if (config == NULL)
2111 return;
2112
2113 assert(params != NULL);
2114 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_macc_config() enter: "
2115 "config=%p\n",config);
2116
2117 *config = params->macc_config;
2118
2119 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_macc_config() leave\n");
2120 ia_css_macc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2121 }
2122
2123 /* Code generated by genparam/gencode.c:gen_set_function() */
2124
2125 void
2126 ia_css_set_macc_config(struct ia_css_isp_parameters *params,
2127 const struct ia_css_macc_config *config)
2128 {
2129 if (config == NULL)
2130 return;
2131
2132 assert(params != NULL);
2133 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_macc_config() enter:\n");
2134 ia_css_macc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2135 params->macc_config = *config;
2136 params->config_changed[IA_CSS_MACC_ID] = true;
2137 #ifndef ISP2401
2138 params->config_changed[IA_CSS_MACC_ID] = true;
2139
2140 #endif
2141 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_macc_config() leave: "
2142 "return_void\n");
2143 }
2144
2145 /* Code generated by genparam/gencode.c:gen_get_function() */
2146
2147 static void
2148 ia_css_get_ctc_config(const struct ia_css_isp_parameters *params,
2149 struct ia_css_ctc_config *config){
2150 if (config == NULL)
2151 return;
2152
2153 assert(params != NULL);
2154 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ctc_config() enter: "
2155 "config=%p\n",config);
2156
2157 *config = params->ctc_config;
2158
2159 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_ctc_config() leave\n");
2160 ia_css_ctc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2161 }
2162
2163 /* Code generated by genparam/gencode.c:gen_set_function() */
2164
2165 void
2166 ia_css_set_ctc_config(struct ia_css_isp_parameters *params,
2167 const struct ia_css_ctc_config *config)
2168 {
2169 if (config == NULL)
2170 return;
2171
2172 assert(params != NULL);
2173 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_ctc_config() enter:\n");
2174 ia_css_ctc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2175 params->ctc_config = *config;
2176 params->config_changed[IA_CSS_CTC_ID] = true;
2177 #ifndef ISP2401
2178 params->config_changed[IA_CSS_CTC_ID] = true;
2179
2180 #endif
2181 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_ctc_config() leave: "
2182 "return_void\n");
2183 }
2184
2185 /* Code generated by genparam/gencode.c:gen_get_function() */
2186
2187 static void
2188 ia_css_get_aa_config(const struct ia_css_isp_parameters *params,
2189 struct ia_css_aa_config *config){
2190 if (config == NULL)
2191 return;
2192
2193 assert(params != NULL);
2194 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_aa_config() enter: "
2195 "config=%p\n",config);
2196
2197 *config = params->aa_config;
2198
2199 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_aa_config() leave\n");
2200 }
2201
2202 /* Code generated by genparam/gencode.c:gen_set_function() */
2203
2204 void
2205 ia_css_set_aa_config(struct ia_css_isp_parameters *params,
2206 const struct ia_css_aa_config *config)
2207 {
2208 if (config == NULL)
2209 return;
2210
2211 assert(params != NULL);
2212 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_aa_config() enter:\n");
2213 params->aa_config = *config;
2214 params->config_changed[IA_CSS_AA_ID] = true;
2215 #ifndef ISP2401
2216 params->config_changed[IA_CSS_AA_ID] = true;
2217
2218 #endif
2219 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_aa_config() leave: "
2220 "return_void\n");
2221 }
2222
2223 /* Code generated by genparam/gencode.c:gen_get_function() */
2224
2225 static void
2226 ia_css_get_yuv2rgb_config(const struct ia_css_isp_parameters *params,
2227 struct ia_css_cc_config *config){
2228 if (config == NULL)
2229 return;
2230
2231 assert(params != NULL);
2232 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_yuv2rgb_config() enter: "
2233 "config=%p\n",config);
2234
2235 *config = params->yuv2rgb_cc_config;
2236
2237 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_yuv2rgb_config() leave\n");
2238 ia_css_yuv2rgb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2239 }
2240
2241 /* Code generated by genparam/gencode.c:gen_set_function() */
2242
2243 void
2244 ia_css_set_yuv2rgb_config(struct ia_css_isp_parameters *params,
2245 const struct ia_css_cc_config *config)
2246 {
2247 if (config == NULL)
2248 return;
2249
2250 assert(params != NULL);
2251 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_yuv2rgb_config() enter:\n");
2252 ia_css_yuv2rgb_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2253 params->yuv2rgb_cc_config = *config;
2254 params->config_changed[IA_CSS_YUV2RGB_ID] = true;
2255 #ifndef ISP2401
2256 params->config_changed[IA_CSS_YUV2RGB_ID] = true;
2257
2258 #endif
2259 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_yuv2rgb_config() leave: "
2260 "return_void\n");
2261 }
2262
2263 /* Code generated by genparam/gencode.c:gen_get_function() */
2264
2265 static void
2266 ia_css_get_rgb2yuv_config(const struct ia_css_isp_parameters *params,
2267 struct ia_css_cc_config *config){
2268 if (config == NULL)
2269 return;
2270
2271 assert(params != NULL);
2272 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_rgb2yuv_config() enter: "
2273 "config=%p\n",config);
2274
2275 *config = params->rgb2yuv_cc_config;
2276
2277 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_rgb2yuv_config() leave\n");
2278 ia_css_rgb2yuv_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2279 }
2280
2281 /* Code generated by genparam/gencode.c:gen_set_function() */
2282
2283 void
2284 ia_css_set_rgb2yuv_config(struct ia_css_isp_parameters *params,
2285 const struct ia_css_cc_config *config)
2286 {
2287 if (config == NULL)
2288 return;
2289
2290 assert(params != NULL);
2291 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_rgb2yuv_config() enter:\n");
2292 ia_css_rgb2yuv_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2293 params->rgb2yuv_cc_config = *config;
2294 params->config_changed[IA_CSS_RGB2YUV_ID] = true;
2295 #ifndef ISP2401
2296 params->config_changed[IA_CSS_RGB2YUV_ID] = true;
2297
2298 #endif
2299 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_rgb2yuv_config() leave: "
2300 "return_void\n");
2301 }
2302
2303 /* Code generated by genparam/gencode.c:gen_get_function() */
2304
2305 static void
2306 ia_css_get_csc_config(const struct ia_css_isp_parameters *params,
2307 struct ia_css_cc_config *config){
2308 if (config == NULL)
2309 return;
2310
2311 assert(params != NULL);
2312 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_csc_config() enter: "
2313 "config=%p\n",config);
2314
2315 *config = params->cc_config;
2316
2317 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_csc_config() leave\n");
2318 ia_css_csc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2319 }
2320
2321 /* Code generated by genparam/gencode.c:gen_set_function() */
2322
2323 void
2324 ia_css_set_csc_config(struct ia_css_isp_parameters *params,
2325 const struct ia_css_cc_config *config)
2326 {
2327 if (config == NULL)
2328 return;
2329
2330 assert(params != NULL);
2331 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_csc_config() enter:\n");
2332 ia_css_csc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2333 params->cc_config = *config;
2334 params->config_changed[IA_CSS_CSC_ID] = true;
2335 #ifndef ISP2401
2336 params->config_changed[IA_CSS_CSC_ID] = true;
2337
2338 #endif
2339 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_csc_config() leave: "
2340 "return_void\n");
2341 }
2342
2343 /* Code generated by genparam/gencode.c:gen_get_function() */
2344
2345 static void
2346 ia_css_get_nr_config(const struct ia_css_isp_parameters *params,
2347 struct ia_css_nr_config *config){
2348 if (config == NULL)
2349 return;
2350
2351 assert(params != NULL);
2352 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_nr_config() enter: "
2353 "config=%p\n",config);
2354
2355 *config = params->nr_config;
2356
2357 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_nr_config() leave\n");
2358 ia_css_nr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2359 }
2360
2361 /* Code generated by genparam/gencode.c:gen_set_function() */
2362
2363 void
2364 ia_css_set_nr_config(struct ia_css_isp_parameters *params,
2365 const struct ia_css_nr_config *config)
2366 {
2367 if (config == NULL)
2368 return;
2369
2370 assert(params != NULL);
2371 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_nr_config() enter:\n");
2372 ia_css_nr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2373 params->nr_config = *config;
2374 params->config_changed[IA_CSS_BNR_ID] = true;
2375 params->config_changed[IA_CSS_NR_ID] = true;
2376 #ifndef ISP2401
2377 params->config_changed[IA_CSS_NR_ID] = true;
2378
2379 #endif
2380 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_nr_config() leave: "
2381 "return_void\n");
2382 }
2383
2384 /* Code generated by genparam/gencode.c:gen_get_function() */
2385
2386 static void
2387 ia_css_get_gc_config(const struct ia_css_isp_parameters *params,
2388 struct ia_css_gc_config *config){
2389 if (config == NULL)
2390 return;
2391
2392 assert(params != NULL);
2393 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_gc_config() enter: "
2394 "config=%p\n",config);
2395
2396 *config = params->gc_config;
2397
2398 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_gc_config() leave\n");
2399 ia_css_gc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2400 }
2401
2402 /* Code generated by genparam/gencode.c:gen_set_function() */
2403
2404 void
2405 ia_css_set_gc_config(struct ia_css_isp_parameters *params,
2406 const struct ia_css_gc_config *config)
2407 {
2408 if (config == NULL)
2409 return;
2410
2411 assert(params != NULL);
2412 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_gc_config() enter:\n");
2413 ia_css_gc_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2414 params->gc_config = *config;
2415 params->config_changed[IA_CSS_GC_ID] = true;
2416 #ifndef ISP2401
2417 params->config_changed[IA_CSS_GC_ID] = true;
2418
2419 #endif
2420 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_gc_config() leave: "
2421 "return_void\n");
2422 }
2423
2424 /* Code generated by genparam/gencode.c:gen_get_function() */
2425
2426 static void
2427 ia_css_get_sdis_horicoef_config(const struct ia_css_isp_parameters *params,
2428 struct ia_css_dvs_coefficients *config){
2429 if (config == NULL)
2430 return;
2431
2432 assert(params != NULL);
2433 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horicoef_config() enter: "
2434 "config=%p\n",config);
2435
2436 *config = params->dvs_coefs;
2437
2438 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horicoef_config() leave\n");
2439 ia_css_sdis_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2440 }
2441
2442 /* Code generated by genparam/gencode.c:gen_set_function() */
2443
2444 void
2445 ia_css_set_sdis_horicoef_config(struct ia_css_isp_parameters *params,
2446 const struct ia_css_dvs_coefficients *config)
2447 {
2448 if (config == NULL)
2449 return;
2450
2451 assert(params != NULL);
2452 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_horicoef_config() enter:\n");
2453 ia_css_sdis_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2454 params->dvs_coefs = *config;
2455 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2456 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2457 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2458 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2459 #ifndef ISP2401
2460 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2461
2462 #endif
2463 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_horicoef_config() leave: "
2464 "return_void\n");
2465 }
2466
2467 /* Code generated by genparam/gencode.c:gen_get_function() */
2468
2469 static void
2470 ia_css_get_sdis_vertcoef_config(const struct ia_css_isp_parameters *params,
2471 struct ia_css_dvs_coefficients *config){
2472 if (config == NULL)
2473 return;
2474
2475 assert(params != NULL);
2476 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertcoef_config() enter: "
2477 "config=%p\n",config);
2478
2479 *config = params->dvs_coefs;
2480
2481 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertcoef_config() leave\n");
2482 ia_css_sdis_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2483 }
2484
2485 /* Code generated by genparam/gencode.c:gen_set_function() */
2486
2487 void
2488 ia_css_set_sdis_vertcoef_config(struct ia_css_isp_parameters *params,
2489 const struct ia_css_dvs_coefficients *config)
2490 {
2491 if (config == NULL)
2492 return;
2493
2494 assert(params != NULL);
2495 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_vertcoef_config() enter:\n");
2496 ia_css_sdis_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2497 params->dvs_coefs = *config;
2498 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2499 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2500 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2501 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2502 #ifndef ISP2401
2503 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2504
2505 #endif
2506 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_vertcoef_config() leave: "
2507 "return_void\n");
2508 }
2509
2510 /* Code generated by genparam/gencode.c:gen_get_function() */
2511
2512 static void
2513 ia_css_get_sdis_horiproj_config(const struct ia_css_isp_parameters *params,
2514 struct ia_css_dvs_coefficients *config){
2515 if (config == NULL)
2516 return;
2517
2518 assert(params != NULL);
2519 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horiproj_config() enter: "
2520 "config=%p\n",config);
2521
2522 *config = params->dvs_coefs;
2523
2524 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_horiproj_config() leave\n");
2525 ia_css_sdis_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2526 }
2527
2528 /* Code generated by genparam/gencode.c:gen_set_function() */
2529
2530 void
2531 ia_css_set_sdis_horiproj_config(struct ia_css_isp_parameters *params,
2532 const struct ia_css_dvs_coefficients *config)
2533 {
2534 if (config == NULL)
2535 return;
2536
2537 assert(params != NULL);
2538 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_horiproj_config() enter:\n");
2539 ia_css_sdis_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2540 params->dvs_coefs = *config;
2541 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2542 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2543 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2544 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2545 #ifndef ISP2401
2546 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2547
2548 #endif
2549 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_horiproj_config() leave: "
2550 "return_void\n");
2551 }
2552
2553 /* Code generated by genparam/gencode.c:gen_get_function() */
2554
2555 static void
2556 ia_css_get_sdis_vertproj_config(const struct ia_css_isp_parameters *params,
2557 struct ia_css_dvs_coefficients *config){
2558 if (config == NULL)
2559 return;
2560
2561 assert(params != NULL);
2562 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertproj_config() enter: "
2563 "config=%p\n",config);
2564
2565 *config = params->dvs_coefs;
2566
2567 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis_vertproj_config() leave\n");
2568 ia_css_sdis_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2569 }
2570
2571 /* Code generated by genparam/gencode.c:gen_set_function() */
2572
2573 void
2574 ia_css_set_sdis_vertproj_config(struct ia_css_isp_parameters *params,
2575 const struct ia_css_dvs_coefficients *config)
2576 {
2577 if (config == NULL)
2578 return;
2579
2580 assert(params != NULL);
2581 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis_vertproj_config() enter:\n");
2582 ia_css_sdis_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2583 params->dvs_coefs = *config;
2584 params->config_changed[IA_CSS_SDIS_HORICOEF_ID] = true;
2585 params->config_changed[IA_CSS_SDIS_VERTCOEF_ID] = true;
2586 params->config_changed[IA_CSS_SDIS_HORIPROJ_ID] = true;
2587 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2588 #ifndef ISP2401
2589 params->config_changed[IA_CSS_SDIS_VERTPROJ_ID] = true;
2590
2591 #endif
2592 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis_vertproj_config() leave: "
2593 "return_void\n");
2594 }
2595
2596 /* Code generated by genparam/gencode.c:gen_get_function() */
2597
2598 static void
2599 ia_css_get_sdis2_horicoef_config(const struct ia_css_isp_parameters *params,
2600 struct ia_css_dvs2_coefficients *config){
2601 if (config == NULL)
2602 return;
2603
2604 assert(params != NULL);
2605 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horicoef_config() enter: "
2606 "config=%p\n",config);
2607
2608 *config = params->dvs2_coefs;
2609
2610 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horicoef_config() leave\n");
2611 ia_css_sdis2_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2612 }
2613
2614 /* Code generated by genparam/gencode.c:gen_set_function() */
2615
2616 void
2617 ia_css_set_sdis2_horicoef_config(struct ia_css_isp_parameters *params,
2618 const struct ia_css_dvs2_coefficients *config)
2619 {
2620 if (config == NULL)
2621 return;
2622
2623 assert(params != NULL);
2624 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_horicoef_config() enter:\n");
2625 ia_css_sdis2_horicoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2626 params->dvs2_coefs = *config;
2627 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2628 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2629 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2630 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2631 #ifndef ISP2401
2632 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2633
2634 #endif
2635 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_horicoef_config() leave: "
2636 "return_void\n");
2637 }
2638
2639 /* Code generated by genparam/gencode.c:gen_get_function() */
2640
2641 static void
2642 ia_css_get_sdis2_vertcoef_config(const struct ia_css_isp_parameters *params,
2643 struct ia_css_dvs2_coefficients *config){
2644 if (config == NULL)
2645 return;
2646
2647 assert(params != NULL);
2648 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertcoef_config() enter: "
2649 "config=%p\n",config);
2650
2651 *config = params->dvs2_coefs;
2652
2653 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertcoef_config() leave\n");
2654 ia_css_sdis2_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2655 }
2656
2657 /* Code generated by genparam/gencode.c:gen_set_function() */
2658
2659 void
2660 ia_css_set_sdis2_vertcoef_config(struct ia_css_isp_parameters *params,
2661 const struct ia_css_dvs2_coefficients *config)
2662 {
2663 if (config == NULL)
2664 return;
2665
2666 assert(params != NULL);
2667 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_vertcoef_config() enter:\n");
2668 ia_css_sdis2_vertcoef_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2669 params->dvs2_coefs = *config;
2670 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2671 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2672 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2673 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2674 #ifndef ISP2401
2675 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2676
2677 #endif
2678 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_vertcoef_config() leave: "
2679 "return_void\n");
2680 }
2681
2682 /* Code generated by genparam/gencode.c:gen_get_function() */
2683
2684 static void
2685 ia_css_get_sdis2_horiproj_config(const struct ia_css_isp_parameters *params,
2686 struct ia_css_dvs2_coefficients *config){
2687 if (config == NULL)
2688 return;
2689
2690 assert(params != NULL);
2691 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horiproj_config() enter: "
2692 "config=%p\n",config);
2693
2694 *config = params->dvs2_coefs;
2695
2696 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_horiproj_config() leave\n");
2697 ia_css_sdis2_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2698 }
2699
2700 /* Code generated by genparam/gencode.c:gen_set_function() */
2701
2702 void
2703 ia_css_set_sdis2_horiproj_config(struct ia_css_isp_parameters *params,
2704 const struct ia_css_dvs2_coefficients *config)
2705 {
2706 if (config == NULL)
2707 return;
2708
2709 assert(params != NULL);
2710 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_horiproj_config() enter:\n");
2711 ia_css_sdis2_horiproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2712 params->dvs2_coefs = *config;
2713 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2714 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2715 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2716 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2717 #ifndef ISP2401
2718 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2719
2720 #endif
2721 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_horiproj_config() leave: "
2722 "return_void\n");
2723 }
2724
2725 /* Code generated by genparam/gencode.c:gen_get_function() */
2726
2727 static void
2728 ia_css_get_sdis2_vertproj_config(const struct ia_css_isp_parameters *params,
2729 struct ia_css_dvs2_coefficients *config){
2730 if (config == NULL)
2731 return;
2732
2733 assert(params != NULL);
2734 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertproj_config() enter: "
2735 "config=%p\n",config);
2736
2737 *config = params->dvs2_coefs;
2738
2739 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_sdis2_vertproj_config() leave\n");
2740 ia_css_sdis2_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2741 }
2742
2743 /* Code generated by genparam/gencode.c:gen_set_function() */
2744
2745 void
2746 ia_css_set_sdis2_vertproj_config(struct ia_css_isp_parameters *params,
2747 const struct ia_css_dvs2_coefficients *config)
2748 {
2749 if (config == NULL)
2750 return;
2751
2752 assert(params != NULL);
2753 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_sdis2_vertproj_config() enter:\n");
2754 ia_css_sdis2_vertproj_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2755 params->dvs2_coefs = *config;
2756 params->config_changed[IA_CSS_SDIS2_HORICOEF_ID] = true;
2757 params->config_changed[IA_CSS_SDIS2_VERTCOEF_ID] = true;
2758 params->config_changed[IA_CSS_SDIS2_HORIPROJ_ID] = true;
2759 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2760 #ifndef ISP2401
2761 params->config_changed[IA_CSS_SDIS2_VERTPROJ_ID] = true;
2762
2763 #endif
2764 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_sdis2_vertproj_config() leave: "
2765 "return_void\n");
2766 }
2767
2768 /* Code generated by genparam/gencode.c:gen_get_function() */
2769
2770 static void
2771 ia_css_get_r_gamma_config(const struct ia_css_isp_parameters *params,
2772 struct ia_css_rgb_gamma_table *config){
2773 if (config == NULL)
2774 return;
2775
2776 assert(params != NULL);
2777 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_r_gamma_config() enter: "
2778 "config=%p\n",config);
2779
2780 *config = params->r_gamma_table;
2781
2782 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_r_gamma_config() leave\n");
2783 ia_css_r_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2784 }
2785
2786 /* Code generated by genparam/gencode.c:gen_set_function() */
2787
2788 void
2789 ia_css_set_r_gamma_config(struct ia_css_isp_parameters *params,
2790 const struct ia_css_rgb_gamma_table *config)
2791 {
2792 if (config == NULL)
2793 return;
2794
2795 assert(params != NULL);
2796 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_r_gamma_config() enter:\n");
2797 ia_css_r_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2798 params->r_gamma_table = *config;
2799 params->config_changed[IA_CSS_R_GAMMA_ID] = true;
2800 #ifndef ISP2401
2801 params->config_changed[IA_CSS_R_GAMMA_ID] = true;
2802
2803 #endif
2804 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_r_gamma_config() leave: "
2805 "return_void\n");
2806 }
2807
2808 /* Code generated by genparam/gencode.c:gen_get_function() */
2809
2810 static void
2811 ia_css_get_g_gamma_config(const struct ia_css_isp_parameters *params,
2812 struct ia_css_rgb_gamma_table *config){
2813 if (config == NULL)
2814 return;
2815
2816 assert(params != NULL);
2817 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_g_gamma_config() enter: "
2818 "config=%p\n",config);
2819
2820 *config = params->g_gamma_table;
2821
2822 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_g_gamma_config() leave\n");
2823 ia_css_g_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2824 }
2825
2826 /* Code generated by genparam/gencode.c:gen_set_function() */
2827
2828 void
2829 ia_css_set_g_gamma_config(struct ia_css_isp_parameters *params,
2830 const struct ia_css_rgb_gamma_table *config)
2831 {
2832 if (config == NULL)
2833 return;
2834
2835 assert(params != NULL);
2836 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_g_gamma_config() enter:\n");
2837 ia_css_g_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2838 params->g_gamma_table = *config;
2839 params->config_changed[IA_CSS_G_GAMMA_ID] = true;
2840 #ifndef ISP2401
2841 params->config_changed[IA_CSS_G_GAMMA_ID] = true;
2842
2843 #endif
2844 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_g_gamma_config() leave: "
2845 "return_void\n");
2846 }
2847
2848 /* Code generated by genparam/gencode.c:gen_get_function() */
2849
2850 static void
2851 ia_css_get_b_gamma_config(const struct ia_css_isp_parameters *params,
2852 struct ia_css_rgb_gamma_table *config){
2853 if (config == NULL)
2854 return;
2855
2856 assert(params != NULL);
2857 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_b_gamma_config() enter: "
2858 "config=%p\n",config);
2859
2860 *config = params->b_gamma_table;
2861
2862 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_b_gamma_config() leave\n");
2863 ia_css_b_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2864 }
2865
2866 /* Code generated by genparam/gencode.c:gen_set_function() */
2867
2868 void
2869 ia_css_set_b_gamma_config(struct ia_css_isp_parameters *params,
2870 const struct ia_css_rgb_gamma_table *config)
2871 {
2872 if (config == NULL)
2873 return;
2874
2875 assert(params != NULL);
2876 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_b_gamma_config() enter:\n");
2877 ia_css_b_gamma_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2878 params->b_gamma_table = *config;
2879 params->config_changed[IA_CSS_B_GAMMA_ID] = true;
2880 #ifndef ISP2401
2881 params->config_changed[IA_CSS_B_GAMMA_ID] = true;
2882
2883 #endif
2884 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_b_gamma_config() leave: "
2885 "return_void\n");
2886 }
2887
2888 /* Code generated by genparam/gencode.c:gen_get_function() */
2889
2890 static void
2891 ia_css_get_xnr_table_config(const struct ia_css_isp_parameters *params,
2892 struct ia_css_xnr_table *config){
2893 if (config == NULL)
2894 return;
2895
2896 assert(params != NULL);
2897 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_table_config() enter: "
2898 "config=%p\n",config);
2899
2900 *config = params->xnr_table;
2901
2902 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_table_config() leave\n");
2903 ia_css_xnr_table_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2904 }
2905
2906 /* Code generated by genparam/gencode.c:gen_set_function() */
2907
2908 void
2909 ia_css_set_xnr_table_config(struct ia_css_isp_parameters *params,
2910 const struct ia_css_xnr_table *config)
2911 {
2912 if (config == NULL)
2913 return;
2914
2915 assert(params != NULL);
2916 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_xnr_table_config() enter:\n");
2917 ia_css_xnr_table_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2918 params->xnr_table = *config;
2919 params->config_changed[IA_CSS_XNR_TABLE_ID] = true;
2920 #ifndef ISP2401
2921 params->config_changed[IA_CSS_XNR_TABLE_ID] = true;
2922
2923 #endif
2924 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_xnr_table_config() leave: "
2925 "return_void\n");
2926 }
2927
2928 /* Code generated by genparam/gencode.c:gen_get_function() */
2929
2930 static void
2931 ia_css_get_formats_config(const struct ia_css_isp_parameters *params,
2932 struct ia_css_formats_config *config){
2933 if (config == NULL)
2934 return;
2935
2936 assert(params != NULL);
2937 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_formats_config() enter: "
2938 "config=%p\n",config);
2939
2940 *config = params->formats_config;
2941
2942 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_formats_config() leave\n");
2943 ia_css_formats_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2944 }
2945
2946 /* Code generated by genparam/gencode.c:gen_set_function() */
2947
2948 void
2949 ia_css_set_formats_config(struct ia_css_isp_parameters *params,
2950 const struct ia_css_formats_config *config)
2951 {
2952 if (config == NULL)
2953 return;
2954
2955 assert(params != NULL);
2956 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_formats_config() enter:\n");
2957 ia_css_formats_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2958 params->formats_config = *config;
2959 params->config_changed[IA_CSS_FORMATS_ID] = true;
2960 #ifndef ISP2401
2961 params->config_changed[IA_CSS_FORMATS_ID] = true;
2962
2963 #endif
2964 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_formats_config() leave: "
2965 "return_void\n");
2966 }
2967
2968 /* Code generated by genparam/gencode.c:gen_get_function() */
2969
2970 static void
2971 ia_css_get_xnr_config(const struct ia_css_isp_parameters *params,
2972 struct ia_css_xnr_config *config){
2973 if (config == NULL)
2974 return;
2975
2976 assert(params != NULL);
2977 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_config() enter: "
2978 "config=%p\n",config);
2979
2980 *config = params->xnr_config;
2981
2982 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr_config() leave\n");
2983 ia_css_xnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2984 }
2985
2986 /* Code generated by genparam/gencode.c:gen_set_function() */
2987
2988 void
2989 ia_css_set_xnr_config(struct ia_css_isp_parameters *params,
2990 const struct ia_css_xnr_config *config)
2991 {
2992 if (config == NULL)
2993 return;
2994
2995 assert(params != NULL);
2996 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_xnr_config() enter:\n");
2997 ia_css_xnr_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
2998 params->xnr_config = *config;
2999 params->config_changed[IA_CSS_XNR_ID] = true;
3000 #ifndef ISP2401
3001 params->config_changed[IA_CSS_XNR_ID] = true;
3002
3003 #endif
3004 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_xnr_config() leave: "
3005 "return_void\n");
3006 }
3007
3008 /* Code generated by genparam/gencode.c:gen_get_function() */
3009
3010 static void
3011 ia_css_get_xnr3_config(const struct ia_css_isp_parameters *params,
3012 struct ia_css_xnr3_config *config){
3013 if (config == NULL)
3014 return;
3015
3016 assert(params != NULL);
3017 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr3_config() enter: "
3018 "config=%p\n",config);
3019
3020 *config = params->xnr3_config;
3021
3022 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_xnr3_config() leave\n");
3023 ia_css_xnr3_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3024 }
3025
3026 /* Code generated by genparam/gencode.c:gen_set_function() */
3027
3028 void
3029 ia_css_set_xnr3_config(struct ia_css_isp_parameters *params,
3030 const struct ia_css_xnr3_config *config)
3031 {
3032 if (config == NULL)
3033 return;
3034
3035 assert(params != NULL);
3036 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_xnr3_config() enter:\n");
3037 ia_css_xnr3_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3038 params->xnr3_config = *config;
3039 params->config_changed[IA_CSS_XNR3_ID] = true;
3040 #ifndef ISP2401
3041 params->config_changed[IA_CSS_XNR3_ID] = true;
3042
3043 #endif
3044 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_xnr3_config() leave: "
3045 "return_void\n");
3046 }
3047
3048 /* Code generated by genparam/gencode.c:gen_get_function() */
3049
3050 static void
3051 ia_css_get_s3a_config(const struct ia_css_isp_parameters *params,
3052 struct ia_css_3a_config *config){
3053 if (config == NULL)
3054 return;
3055
3056 assert(params != NULL);
3057 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_s3a_config() enter: "
3058 "config=%p\n",config);
3059
3060 *config = params->s3a_config;
3061
3062 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_s3a_config() leave\n");
3063 ia_css_s3a_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3064 }
3065
3066 /* Code generated by genparam/gencode.c:gen_set_function() */
3067
3068 void
3069 ia_css_set_s3a_config(struct ia_css_isp_parameters *params,
3070 const struct ia_css_3a_config *config)
3071 {
3072 if (config == NULL)
3073 return;
3074
3075 assert(params != NULL);
3076 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_s3a_config() enter:\n");
3077 ia_css_s3a_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3078 params->s3a_config = *config;
3079 params->config_changed[IA_CSS_BH_ID] = true;
3080 params->config_changed[IA_CSS_S3A_ID] = true;
3081 #ifndef ISP2401
3082 params->config_changed[IA_CSS_S3A_ID] = true;
3083
3084 #endif
3085 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_s3a_config() leave: "
3086 "return_void\n");
3087 }
3088
3089 /* Code generated by genparam/gencode.c:gen_get_function() */
3090
3091 static void
3092 ia_css_get_output_config(const struct ia_css_isp_parameters *params,
3093 struct ia_css_output_config *config){
3094 if (config == NULL)
3095 return;
3096
3097 assert(params != NULL);
3098 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_output_config() enter: "
3099 "config=%p\n",config);
3100
3101 *config = params->output_config;
3102
3103 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_get_output_config() leave\n");
3104 ia_css_output_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3105 }
3106
3107 /* Code generated by genparam/gencode.c:gen_set_function() */
3108
3109 void
3110 ia_css_set_output_config(struct ia_css_isp_parameters *params,
3111 const struct ia_css_output_config *config)
3112 {
3113 if (config == NULL)
3114 return;
3115
3116 assert(params != NULL);
3117 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_set_output_config() enter:\n");
3118 ia_css_output_debug_dtrace(config, IA_CSS_DEBUG_TRACE);
3119 params->output_config = *config;
3120 params->config_changed[IA_CSS_OUTPUT_ID] = true;
3121 #ifndef ISP2401
3122 params->config_changed[IA_CSS_OUTPUT_ID] = true;
3123
3124 #endif
3125 ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ia_css_set_output_config() leave: "
3126 "return_void\n");
3127 }
3128
3129 /* Code generated by genparam/gencode.c:gen_global_access_function() */
3130
3131 void
3132 ia_css_get_configs(struct ia_css_isp_parameters *params,
3133 const struct ia_css_isp_config *config)
3134 {
3135 ia_css_get_dp_config(params, config->dp_config);
3136 ia_css_get_wb_config(params, config->wb_config);
3137 ia_css_get_tnr_config(params, config->tnr_config);
3138 ia_css_get_ob_config(params, config->ob_config);
3139 ia_css_get_de_config(params, config->de_config);
3140 ia_css_get_anr_config(params, config->anr_config);
3141 ia_css_get_anr2_config(params, config->anr_thres);
3142 ia_css_get_ce_config(params, config->ce_config);
3143 ia_css_get_ecd_config(params, config->ecd_config);
3144 ia_css_get_ynr_config(params, config->ynr_config);
3145 ia_css_get_fc_config(params, config->fc_config);
3146 ia_css_get_cnr_config(params, config->cnr_config);
3147 ia_css_get_macc_config(params, config->macc_config);
3148 ia_css_get_ctc_config(params, config->ctc_config);
3149 ia_css_get_aa_config(params, config->aa_config);
3150 ia_css_get_yuv2rgb_config(params, config->yuv2rgb_cc_config);
3151 ia_css_get_rgb2yuv_config(params, config->rgb2yuv_cc_config);
3152 ia_css_get_csc_config(params, config->cc_config);
3153 ia_css_get_nr_config(params, config->nr_config);
3154 ia_css_get_gc_config(params, config->gc_config);
3155 ia_css_get_sdis_horicoef_config(params, config->dvs_coefs);
3156 ia_css_get_sdis_vertcoef_config(params, config->dvs_coefs);
3157 ia_css_get_sdis_horiproj_config(params, config->dvs_coefs);
3158 ia_css_get_sdis_vertproj_config(params, config->dvs_coefs);
3159 ia_css_get_sdis2_horicoef_config(params, config->dvs2_coefs);
3160 ia_css_get_sdis2_vertcoef_config(params, config->dvs2_coefs);
3161 ia_css_get_sdis2_horiproj_config(params, config->dvs2_coefs);
3162 ia_css_get_sdis2_vertproj_config(params, config->dvs2_coefs);
3163 ia_css_get_r_gamma_config(params, config->r_gamma_table);
3164 ia_css_get_g_gamma_config(params, config->g_gamma_table);
3165 ia_css_get_b_gamma_config(params, config->b_gamma_table);
3166 ia_css_get_xnr_table_config(params, config->xnr_table);
3167 ia_css_get_formats_config(params, config->formats_config);
3168 ia_css_get_xnr_config(params, config->xnr_config);
3169 ia_css_get_xnr3_config(params, config->xnr3_config);
3170 ia_css_get_s3a_config(params, config->s3a_config);
3171 ia_css_get_output_config(params, config->output_config);
3172 }
3173
3174 /* Code generated by genparam/gencode.c:gen_global_access_function() */
3175
3176 void
3177 ia_css_set_configs(struct ia_css_isp_parameters *params,
3178 const struct ia_css_isp_config *config)
3179 {
3180 ia_css_set_dp_config(params, config->dp_config);
3181 ia_css_set_wb_config(params, config->wb_config);
3182 ia_css_set_tnr_config(params, config->tnr_config);
3183 ia_css_set_ob_config(params, config->ob_config);
3184 ia_css_set_de_config(params, config->de_config);
3185 ia_css_set_anr_config(params, config->anr_config);
3186 ia_css_set_anr2_config(params, config->anr_thres);
3187 ia_css_set_ce_config(params, config->ce_config);
3188 ia_css_set_ecd_config(params, config->ecd_config);
3189 ia_css_set_ynr_config(params, config->ynr_config);
3190 ia_css_set_fc_config(params, config->fc_config);
3191 ia_css_set_cnr_config(params, config->cnr_config);
3192 ia_css_set_macc_config(params, config->macc_config);
3193 ia_css_set_ctc_config(params, config->ctc_config);
3194 ia_css_set_aa_config(params, config->aa_config);
3195 ia_css_set_yuv2rgb_config(params, config->yuv2rgb_cc_config);
3196 ia_css_set_rgb2yuv_config(params, config->rgb2yuv_cc_config);
3197 ia_css_set_csc_config(params, config->cc_config);
3198 ia_css_set_nr_config(params, config->nr_config);
3199 ia_css_set_gc_config(params, config->gc_config);
3200 ia_css_set_sdis_horicoef_config(params, config->dvs_coefs);
3201 ia_css_set_sdis_vertcoef_config(params, config->dvs_coefs);
3202 ia_css_set_sdis_horiproj_config(params, config->dvs_coefs);
3203 ia_css_set_sdis_vertproj_config(params, config->dvs_coefs);
3204 ia_css_set_sdis2_horicoef_config(params, config->dvs2_coefs);
3205 ia_css_set_sdis2_vertcoef_config(params, config->dvs2_coefs);
3206 ia_css_set_sdis2_horiproj_config(params, config->dvs2_coefs);
3207 ia_css_set_sdis2_vertproj_config(params, config->dvs2_coefs);
3208 ia_css_set_r_gamma_config(params, config->r_gamma_table);
3209 ia_css_set_g_gamma_config(params, config->g_gamma_table);
3210 ia_css_set_b_gamma_config(params, config->b_gamma_table);
3211 ia_css_set_xnr_table_config(params, config->xnr_table);
3212 ia_css_set_formats_config(params, config->formats_config);
3213 ia_css_set_xnr_config(params, config->xnr_config);
3214 ia_css_set_xnr3_config(params, config->xnr3_config);
3215 ia_css_set_s3a_config(params, config->s3a_config);
3216 ia_css_set_output_config(params, config->output_config);
3217 }
3218