drivers/staging/media/atomisp/pci/isp/kernels/sc/sc_1.0/ia_css_sc.host.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/isp/kernels/sc/sc_1.0/ia_css_sc.host.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/isp/kernels/sc/sc_1.0/ia_css_sc.host.c- Extension
.c- Size
- 2369 bytes
- Lines
- 83
- 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
ia_css_types.hsh_css_defs.hia_css_debug.hassert_support.hia_css_isp_configs.hia_css_sc.host.h
Detected Declarations
function Copyrightfunction ia_css_sc_dumpfunction sh_css_get_shading_settingsfunction sh_css_set_shading_settings
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Support for Intel Camera Imaging ISP subsystem.
* Copyright (c) 2015, Intel Corporation.
*/
#include "ia_css_types.h"
#include "sh_css_defs.h"
#include "ia_css_debug.h"
#include "assert_support.h"
#define IA_CSS_INCLUDE_CONFIGURATIONS
#include "ia_css_isp_configs.h"
#include "ia_css_sc.host.h"
void
ia_css_sc_encode(
struct sh_css_isp_sc_params *to,
struct ia_css_shading_table **from,
unsigned int size)
{
(void)size;
to->gain_shift = (*from)->fraction_bits;
}
void
ia_css_sc_dump(
const struct sh_css_isp_sc_params *sc,
unsigned int level)
{
if (!sc) return;
ia_css_debug_dtrace(level, "Shading Correction:\n");
ia_css_debug_dtrace(level, "\t%-32s = %d\n",
"sc_gain_shift", sc->gain_shift);
}
/* ------ deprecated(bz675) : from ------ */
/* It looks like @parameter{} (in *.pipe) is used to generate the process/get/set functions,
for parameters which should be used in the isp kernels.
However, the ia_css_shading_settings structure has a parameter which is used only in the css,
and does not have a parameter which is used in the isp kernels.
Then, I did not use @parameter{} to generate the get/set function
for the ia_css_shading_settings structure. (michie) */
void
sh_css_get_shading_settings(const struct ia_css_isp_parameters *params,
struct ia_css_shading_settings *settings)
{
if (!settings)
return;
assert(params);
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
"ia_css_get_shading_settings() enter: settings=%p\n", settings);
*settings = params->shading_settings;
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
"ia_css_get_shading_settings() leave: settings.enable_shading_table_conversion=%d\n",
settings->enable_shading_table_conversion);
}
void
sh_css_set_shading_settings(struct ia_css_isp_parameters *params,
const struct ia_css_shading_settings *settings)
{
if (!settings)
return;
assert(params);
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
"ia_css_set_shading_settings() enter: settings.enable_shading_table_conversion=%d\n",
settings->enable_shading_table_conversion);
params->shading_settings = *settings;
params->shading_settings_changed = true;
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE,
"ia_css_set_shading_settings() leave: return_void\n");
}
/* ------ deprecated(bz675) : to ------ */
Annotation
- Immediate include surface: `ia_css_types.h`, `sh_css_defs.h`, `ia_css_debug.h`, `assert_support.h`, `ia_css_isp_configs.h`, `ia_css_sc.host.h`.
- Detected declarations: `function Copyright`, `function ia_css_sc_dump`, `function sh_css_get_shading_settings`, `function sh_css_set_shading_settings`.
- 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.