drivers/media/pci/intel/ipu3/ipu3-cio2.c
Source file repositories/reference/linux-study-clean/drivers/media/pci/intel/ipu3/ipu3-cio2.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/intel/ipu3/ipu3-cio2.c- Extension
.c- Size
- 55809 bytes
- Lines
- 1990
- Domain
- Driver Families
- Bucket
- drivers/media
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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 an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bitops.hlinux/delay.hlinux/interrupt.hlinux/iopoll.hlinux/mm.hlinux/module.hlinux/pci.hlinux/pfn.hlinux/pm_runtime.hlinux/property.hlinux/vmalloc.hmedia/ipu-bridge.hmedia/v4l2-ctrls.hmedia/v4l2-device.hmedia/v4l2-event.hmedia/v4l2-fwnode.hmedia/v4l2-mc.hmedia/v4l2-ioctl.hmedia/videobuf2-dma-sg.hipu3-cio2.h
Detected Declarations
struct ipu3_cio2_fmtstruct sensor_async_subdevfunction cio2_bytesperlinefunction cio2_fbpt_exit_dummyfunction cio2_fbpt_init_dummyfunction cio2_fbpt_entry_enablefunction cio2_fbpt_entry_init_dummyfunction cio2_fbpt_entry_init_buffunction cio2_fbpt_initfunction cio2_fbpt_exitfunction Hzfunction cio2_csi2_calc_timingfunction cio2_hw_initfunction cio2_hw_exitfunction cio2_buffer_donefunction cio2_queue_event_soffunction cio2_irq_log_irq_errsfunction cio2_irq_log_port_errsfunction cio2_irq_handle_oncefunction cio2_irqfunction cio2_vb2_return_all_buffersfunction cio2_vb2_queue_setupfunction cio2_vb2_buf_initfunction cio2_vb2_buf_queuefunction cio2_vb2_buf_cleanupfunction cio2_vb2_start_streamingfunction cio2_vb2_stop_streamingfunction cio2_v4l2_querycapfunction cio2_v4l2_enum_fmtfunction cio2_v4l2_g_fmtfunction cio2_v4l2_try_fmtfunction cio2_v4l2_s_fmtfunction cio2_video_enum_inputfunction cio2_video_g_inputfunction cio2_video_s_inputfunction cio2_subdev_subscribe_eventfunction cio2_subdev_init_statefunction cio2_subdev_set_fmtfunction cio2_subdev_enum_mbus_codefunction cio2_subdev_link_validate_get_formatfunction cio2_video_link_validatefunction cio2_notifier_boundfunction cio2_notifier_unbindfunction cio2_notifier_completefunction list_for_each_entryfunction cio2_parse_firmwarefunction cio2_queue_initfunction cio2_queue_exit
Annotated Snippet
static struct pci_driver cio2_pci_driver = {
.name = CIO2_NAME,
.id_table = cio2_pci_id_table,
.probe = cio2_pci_probe,
.remove = cio2_pci_remove,
.driver = {
.pm = &cio2_pm_ops,
},
};
module_pci_driver(cio2_pci_driver);
MODULE_AUTHOR("Tuukka Toivonen");
MODULE_AUTHOR("Tianshu Qiu <tian.shu.qiu@intel.com>");
MODULE_AUTHOR("Jian Xu Zheng");
MODULE_AUTHOR("Yuning Pu");
MODULE_AUTHOR("Yong Zhi <yong.zhi@intel.com>");
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("IPU3 CIO2 driver");
MODULE_IMPORT_NS("INTEL_IPU_BRIDGE");
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/iopoll.h`, `linux/mm.h`, `linux/module.h`, `linux/pci.h`, `linux/pfn.h`.
- Detected declarations: `struct ipu3_cio2_fmt`, `struct sensor_async_subdev`, `function cio2_bytesperline`, `function cio2_fbpt_exit_dummy`, `function cio2_fbpt_init_dummy`, `function cio2_fbpt_entry_enable`, `function cio2_fbpt_entry_init_dummy`, `function cio2_fbpt_entry_init_buf`, `function cio2_fbpt_init`, `function cio2_fbpt_exit`.
- Atlas domain: Driver Families / drivers/media.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.