drivers/staging/media/atomisp/pci/isp/kernels/tdf/tdf_1.0/ia_css_tdf.host.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/isp/kernels/tdf/tdf_1.0/ia_css_tdf.host.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/isp/kernels/tdf/tdf_1.0/ia_css_tdf.host.c- Extension
.c- Size
- 1833 bytes
- Lines
- 67
- 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_debug.hia_css_tdf.host.h
Detected Declarations
function ia_css_tdf_vmem_encodefunction ia_css_tdf_encodefunction ia_css_tdf_debug_dtrace
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Support for Intel Camera Imaging ISP subsystem.
* Copyright (c) 2015, Intel Corporation.
*/
#include "ia_css_debug.h"
#include "ia_css_tdf.host.h"
static const s16 g_pyramid[8][8] = {
{128, 384, 640, 896, 896, 640, 384, 128},
{384, 1152, 1920, 2688, 2688, 1920, 1152, 384},
{640, 1920, 3200, 4480, 4480, 3200, 1920, 640},
{896, 2688, 4480, 6272, 6272, 4480, 2688, 896},
{896, 2688, 4480, 6272, 6272, 4480, 2688, 896},
{640, 1920, 3200, 4480, 4480, 3200, 1920, 640},
{384, 1152, 1920, 2688, 2688, 1920, 1152, 384},
{128, 384, 640, 896, 896, 640, 384, 128}
};
void
ia_css_tdf_vmem_encode(
struct ia_css_isp_tdf_vmem_params *to,
const struct ia_css_tdf_config *from,
size_t size)
{
unsigned int i;
(void)size;
for (i = 0; i < ISP_VEC_NELEMS; i++) {
to->pyramid[0][i] = g_pyramid[i / 8][i % 8];
to->threshold_flat[0][i] = from->thres_flat_table[i];
to->threshold_detail[0][i] = from->thres_detail_table[i];
}
}
void
ia_css_tdf_encode(
struct ia_css_isp_tdf_dmem_params *to,
const struct ia_css_tdf_config *from,
size_t size)
{
(void)size;
to->Epsilon_0 = from->epsilon_0;
to->Epsilon_1 = from->epsilon_1;
to->EpsScaleText = from->eps_scale_text;
to->EpsScaleEdge = from->eps_scale_edge;
to->Sepa_flat = from->sepa_flat;
to->Sepa_Edge = from->sepa_edge;
to->Blend_Flat = from->blend_flat;
to->Blend_Text = from->blend_text;
to->Blend_Edge = from->blend_edge;
to->Shading_Gain = from->shading_gain;
to->Shading_baseGain = from->shading_base_gain;
to->LocalY_Gain = from->local_y_gain;
to->LocalY_baseGain = from->local_y_base_gain;
}
void
ia_css_tdf_debug_dtrace(
const struct ia_css_tdf_config *config,
unsigned int level)
{
(void)config;
(void)level;
}
Annotation
- Immediate include surface: `ia_css_debug.h`, `ia_css_tdf.host.h`.
- Detected declarations: `function ia_css_tdf_vmem_encode`, `function ia_css_tdf_encode`, `function ia_css_tdf_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.