drivers/staging/media/atomisp/pci/isp/kernels/ref/ref_1.0/ia_css_ref.host.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/atomisp/pci/isp/kernels/ref/ref_1.0/ia_css_ref.host.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/atomisp/pci/isp/kernels/ref/ref_1.0/ia_css_ref.host.c- Extension
.c- Size
- 2033 bytes
- Lines
- 78
- 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
assert_support.hia_css_frame_public.hia_css_frame.hia_css_binary.hia_css_isp_configs.hisp.hia_css_ref.host.h
Detected Declarations
function Copyrightfunction ia_css_ref_configurefunction ia_css_init_ref_state
Annotated Snippet
if (from->ref_frames[i]) {
to->ref_frame_addr_y[i] = from->ref_frames[i]->data +
from->ref_frames[i]->planes.yuv.y.offset;
to->ref_frame_addr_c[i] = from->ref_frames[i]->data +
from->ref_frames[i]->planes.yuv.u.offset;
} else {
to->ref_frame_addr_y[i] = 0;
to->ref_frame_addr_c[i] = 0;
}
}
/* Assume divisiblity here, may need to generalize to fixed point. */
if (elems_a % to->port_b.elems != 0)
return -EINVAL;
return 0;
}
int ia_css_ref_configure(const struct ia_css_binary *binary,
const struct ia_css_frame * const *ref_frames,
const uint32_t dvs_frame_delay)
{
struct ia_css_ref_configuration config;
unsigned int i;
for (i = 0; i < MAX_NUM_VIDEO_DELAY_FRAMES; i++)
config.ref_frames[i] = ref_frames[i];
config.dvs_frame_delay = dvs_frame_delay;
return ia_css_configure_ref(binary, &config);
}
void
ia_css_init_ref_state(
struct sh_css_isp_ref_dmem_state *state,
unsigned int size)
{
(void)size;
assert(MAX_NUM_VIDEO_DELAY_FRAMES >= 2);
state->ref_in_buf_idx = 0;
state->ref_out_buf_idx = 1;
}
Annotation
- Immediate include surface: `assert_support.h`, `ia_css_frame_public.h`, `ia_css_frame.h`, `ia_css_binary.h`, `ia_css_isp_configs.h`, `isp.h`, `ia_css_ref.host.h`.
- Detected declarations: `function Copyright`, `function ia_css_ref_configure`, `function ia_css_init_ref_state`.
- 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.