drivers/staging/media/atomisp/pci/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/isp/kernels/macc/macc1_5/ia_css_macc1_5.host.c- Extension
.c- Size
- 1397 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_types.hsh_css_defs.hia_css_debug.hia_css_macc1_5.host.h
Detected Declarations
function ia_css_macc1_5_encodefunction ia_css_macc1_5_vmem_encodefunction ia_css_macc1_5_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_types.h"
#include "sh_css_defs.h"
#ifndef IA_CSS_NO_DEBUG
/* FIXME: See BZ 4427 */
#include "ia_css_debug.h"
#endif
#include "ia_css_macc1_5.host.h"
const struct ia_css_macc1_5_config default_macc1_5_config = {
1
};
void
ia_css_macc1_5_encode(
struct sh_css_isp_macc1_5_params *to,
const struct ia_css_macc1_5_config *from,
unsigned int size)
{
(void)size;
to->exp = from->exp;
}
void
ia_css_macc1_5_vmem_encode(
struct sh_css_isp_macc1_5_vmem_params *params,
const struct ia_css_macc1_5_table *from,
unsigned int size)
{
unsigned int i, j, k, idx;
static const unsigned int idx_map[] = {
0, 1, 3, 2, 6, 7, 5, 4, 12, 13, 15, 14, 10, 11, 9, 8
};
(void)size;
for (k = 0; k < 4; k++)
for (i = 0; i < IA_CSS_MACC_NUM_AXES; i++) {
idx = idx_map[i] + (k * IA_CSS_MACC_NUM_AXES);
j = 4 * i;
params->data[0][(idx)] = from->data[j];
params->data[1][(idx)] = from->data[j + 1];
params->data[2][(idx)] = from->data[j + 2];
params->data[3][(idx)] = from->data[j + 3];
}
}
#ifndef IA_CSS_NO_DEBUG
void
ia_css_macc1_5_debug_dtrace(
const struct ia_css_macc1_5_config *config,
unsigned int level)
{
ia_css_debug_dtrace(level,
"config.exp=%d\n",
config->exp);
}
#endif
Annotation
- Immediate include surface: `ia_css_types.h`, `sh_css_defs.h`, `ia_css_debug.h`, `ia_css_macc1_5.host.h`.
- Detected declarations: `function ia_css_macc1_5_encode`, `function ia_css_macc1_5_vmem_encode`, `function ia_css_macc1_5_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.