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