drivers/staging/media/ipu7/ipu7-isys-csi2.c
Source file repositories/reference/linux-study-clean/drivers/staging/media/ipu7/ipu7-isys-csi2.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/staging/media/ipu7/ipu7-isys-csi2.c- Extension
.c- Size
- 14872 bytes
- Lines
- 544
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/atomic.hlinux/bits.hlinux/bug.hlinux/delay.hlinux/device.hlinux/io.hlinux/minmax.hlinux/mutex.hlinux/slab.hmedia/media-entity.hmedia/v4l2-ctrls.hmedia/v4l2-device.hmedia/v4l2-event.hmedia/v4l2-subdev.hipu7.hipu7-bus.hipu7-isys.hipu7-isys-csi2.hipu7-isys-csi2-regs.hipu7-isys-csi-phy.h
Detected Declarations
function ipu7_isys_csi2_get_link_freqfunction csi2_subscribe_eventfunction csi2_irq_enablefunction csi2_irq_disablefunction ipu7_isys_csi2_disable_streamfunction ipu7_isys_csi2_enable_streamfunction ipu7_isys_csi2_set_selfunction ipu7_isys_csi2_get_selfunction ipu7_isys_csi2_enable_streamsfunction ipu7_isys_csi2_disable_streamsfunction ipu7_isys_csi2_cleanupfunction ipu7_isys_csi2_initfunction ipu7_isys_csi2_sof_event_by_streamfunction ipu7_isys_csi2_eof_event_by_streamfunction ipu7_isys_csi2_get_remote_desc
Annotated Snippet
if (source_stream == desc.entry[i].stream) {
desc_entry = &desc.entry[i];
break;
}
}
if (!desc_entry) {
dev_err(dev, "Failed to find stream %u from remote subdev\n",
source_stream);
return -EINVAL;
}
if (desc_entry->bus.csi2.vc >= IPU7_NR_OF_CSI2_VC) {
dev_err(dev, "invalid vc %d\n", desc_entry->bus.csi2.vc);
return -EINVAL;
}
*entry = *desc_entry;
for (i = 0; i < desc.num_entries; i++) {
if (desc_entry->bus.csi2.vc == desc.entry[i].bus.csi2.vc)
(*nr_queues)++;
}
return 0;
}
Annotation
- Immediate include surface: `linux/atomic.h`, `linux/bits.h`, `linux/bug.h`, `linux/delay.h`, `linux/device.h`, `linux/io.h`, `linux/minmax.h`, `linux/mutex.h`.
- Detected declarations: `function ipu7_isys_csi2_get_link_freq`, `function csi2_subscribe_event`, `function csi2_irq_enable`, `function csi2_irq_disable`, `function ipu7_isys_csi2_disable_stream`, `function ipu7_isys_csi2_enable_stream`, `function ipu7_isys_csi2_set_sel`, `function ipu7_isys_csi2_get_sel`, `function ipu7_isys_csi2_enable_streams`, `function ipu7_isys_csi2_disable_streams`.
- Atlas domain: Driver Families / drivers/staging.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.