drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc1_5/ia_css_ctc1_5.host.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc1_5/ia_css_ctc1_5.host.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc1_5/ia_css_ctc1_5.host.c- Extension
.c- Size
- 2591 bytes
- Lines
- 114
- 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.hctc/ctc_1.0/ia_css_ctc.host.hia_css_ctc1_5.host.h
Detected Declarations
function Copyrightfunction ia_css_ctc_encode
Annotated Snippet
if (tmp_dydx <= max_dydx) {
*dydx = tmp_dydx;
*shift = sft;
}
if (tmp_dydx >= max_dydx)
break;
}
ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE_PRIVATE, "ctc_gradient() leave:\n");
}
void
ia_css_ctc_encode(
struct sh_css_isp_ctc_params *to,
const struct ia_css_ctc_config *from,
unsigned int size)
{
(void)size;
to->y0 = from->y0;
to->y1 = from->y1;
to->y2 = from->y2;
to->y3 = from->y3;
to->y4 = from->y4;
to->y5 = from->y5;
to->ce_gain_exp = from->ce_gain_exp;
to->x1 = from->x1;
to->x2 = from->x2;
to->x3 = from->x3;
to->x4 = from->x4;
ctc_gradient(&to->dydx0,
&to->dydx0_shift,
from->y1, from->y0,
from->x1, 0);
ctc_gradient(&to->dydx1,
&to->dydx1_shift,
from->y2, from->y1,
from->x2, from->x1);
ctc_gradient(&to->dydx2,
&to->dydx2_shift,
from->y3, from->y2,
from->x3, from->x2);
ctc_gradient(&to->dydx3,
&to->dydx3_shift,
from->y4, from->y3,
from->x4, from->x3);
ctc_gradient(&to->dydx4,
&to->dydx4_shift,
from->y5, from->y4,
SH_CSS_BAYER_MAXVAL, from->x4);
}
void
ia_css_ctc_dump(
const struct sh_css_isp_ctc_params *ctc,
unsigned int level);
Annotation
- Immediate include surface: `ia_css_types.h`, `sh_css_defs.h`, `ia_css_debug.h`, `assert_support.h`, `ctc/ctc_1.0/ia_css_ctc.host.h`, `ia_css_ctc1_5.host.h`.
- Detected declarations: `function Copyright`, `function ia_css_ctc_encode`.
- 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.