drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/isp/kernels/bnr/bnr2_2/ia_css_bnr2_2.host.c- Extension
.c- Size
- 3937 bytes
- Lines
- 124
- Domain
- Driver Families
- Bucket
- drivers/staging
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
type_support.hia_css_bnr2_2.host.hia_css_debug.h
Detected Declarations
function ia_css_bnr2_2_encodefunction ia_css_bnr2_2_debug_dtrace
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Support for Intel Camera Imaging ISP subsystem.
* Copyright (c) 2015, Intel Corporation.
*/
#include "type_support.h"
#include "ia_css_bnr2_2.host.h"
#ifndef IA_CSS_NO_DEBUG
#include "ia_css_debug.h" /* ia_css_debug_dtrace() */
#endif
/* Default kernel parameters. */
const struct ia_css_bnr2_2_config default_bnr2_2_config = {
200,
200,
200,
0,
0,
0,
200,
200,
200,
0,
0,
0,
0,
4096,
8191,
128,
1,
0,
0,
0,
8191,
0,
8191
};
void
ia_css_bnr2_2_encode(
struct sh_css_isp_bnr2_2_params *to,
const struct ia_css_bnr2_2_config *from,
size_t size)
{
(void)size;
to->d_var_gain_r = from->d_var_gain_r;
to->d_var_gain_g = from->d_var_gain_g;
to->d_var_gain_b = from->d_var_gain_b;
to->d_var_gain_slope_r = from->d_var_gain_slope_r;
to->d_var_gain_slope_g = from->d_var_gain_slope_g;
to->d_var_gain_slope_b = from->d_var_gain_slope_b;
to->n_var_gain_r = from->n_var_gain_r;
to->n_var_gain_g = from->n_var_gain_g;
to->n_var_gain_b = from->n_var_gain_b;
to->n_var_gain_slope_r = from->n_var_gain_slope_r;
to->n_var_gain_slope_g = from->n_var_gain_slope_g;
to->n_var_gain_slope_b = from->n_var_gain_slope_b;
to->dir_thres = from->dir_thres;
to->dir_thres_w = from->dir_thres_w;
to->var_offset_coef = from->var_offset_coef;
to->dir_gain = from->dir_gain;
to->detail_gain = from->detail_gain;
to->detail_gain_divisor = from->detail_gain_divisor;
to->detail_level_offset = from->detail_level_offset;
to->d_var_th_min = from->d_var_th_min;
to->d_var_th_max = from->d_var_th_max;
to->n_var_th_min = from->n_var_th_min;
to->n_var_th_max = from->n_var_th_max;
}
#ifndef IA_CSS_NO_DEBUG
void
ia_css_bnr2_2_debug_dtrace(
const struct ia_css_bnr2_2_config *bnr,
unsigned int level)
{
if (!bnr)
return;
ia_css_debug_dtrace(level, "Bayer Noise Reduction 2.2:\n");
ia_css_debug_dtrace(level, "\t%-32s = %d\n", "d_var_gain_r", bnr->d_var_gain_r);
ia_css_debug_dtrace(level, "\t%-32s = %d\n", "d_var_gain_g", bnr->d_var_gain_g);
ia_css_debug_dtrace(level, "\t%-32s = %d\n", "d_var_gain_b", bnr->d_var_gain_b);
ia_css_debug_dtrace(level, "\t%-32s = %d\n", "d_var_gain_slope_r",
Annotation
- Immediate include surface: `type_support.h`, `ia_css_bnr2_2.host.h`, `ia_css_debug.h`.
- Detected declarations: `function ia_css_bnr2_2_encode`, `function ia_css_bnr2_2_debug_dtrace`.
- Atlas domain: Driver Families / drivers/staging.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.