drivers/crypto/marvell/octeontx/otx_cptvf_main.c
Source file repositories/reference/linux-study-clean/drivers/crypto/marvell/octeontx/otx_cptvf_main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/marvell/octeontx/otx_cptvf_main.c- Extension
.c- Size
- 24812 bytes
- Lines
- 978
- Domain
- Driver Families
- Bucket
- drivers/crypto
- 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/interrupt.hlinux/module.hotx_cptvf.hotx_cptvf_algs.hotx_cptvf_reqmgr.h
Detected Declarations
function vq_work_handlerfunction init_worker_threadsfunction cleanup_worker_threadsfunction free_pending_queuesfunction for_each_pending_queuefunction alloc_pending_queuesfunction for_each_pending_queuefunction init_pending_queuesfunction cleanup_pending_queuesfunction free_command_queuesfunction alloc_command_queuesfunction init_command_queuesfunction cleanup_command_queuesfunction cptvf_sw_cleanupfunction cptvf_sw_initfunction cptvf_free_irq_affinityfunction cptvf_write_vq_ctlfunction otx_cptvf_write_vq_doorbellfunction cptvf_write_vq_inprogfunction cptvf_write_vq_done_numwaitfunction cptvf_read_vq_done_numwaitfunction cptvf_write_vq_done_timewaitfunction cptvf_read_vq_done_timewaitfunction cptvf_enable_swerr_interruptsfunction cptvf_enable_mbox_interruptsfunction cptvf_enable_done_interruptsfunction cptvf_clear_dovf_intrfunction cptvf_clear_irde_intrfunction cptvf_clear_nwrp_intrfunction cptvf_clear_mbox_intrfunction cptvf_clear_swerr_intrfunction cptvf_read_vf_misc_intr_statusfunction cptvf_misc_intr_handlerfunction cptvf_read_vq_done_countfunction cptvf_write_vq_done_ackfunction cptvf_done_intr_handlerfunction cptvf_set_irq_affinityfunction cptvf_write_vq_saddrfunction cptvf_device_initfunction vf_type_showfunction vf_engine_group_showfunction vf_engine_group_storefunction vf_coalesc_time_wait_showfunction vf_coalesc_num_wait_showfunction vf_coalesc_time_wait_storefunction vf_coalesc_num_wait_storefunction otx_cptvf_probefunction otx_cptvf_remove
Annotated Snippet
static struct pci_driver otx_cptvf_pci_driver = {
.name = DRV_NAME,
.id_table = otx_cptvf_id_table,
.probe = otx_cptvf_probe,
.remove = otx_cptvf_remove,
};
module_pci_driver(otx_cptvf_pci_driver);
MODULE_AUTHOR("Marvell International Ltd.");
MODULE_DESCRIPTION("Marvell OcteonTX CPT Virtual Function Driver");
MODULE_LICENSE("GPL v2");
MODULE_VERSION(DRV_VERSION);
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/module.h`, `otx_cptvf.h`, `otx_cptvf_algs.h`, `otx_cptvf_reqmgr.h`.
- Detected declarations: `function vq_work_handler`, `function init_worker_threads`, `function cleanup_worker_threads`, `function free_pending_queues`, `function for_each_pending_queue`, `function alloc_pending_queues`, `function for_each_pending_queue`, `function init_pending_queues`, `function cleanup_pending_queues`, `function free_command_queues`.
- Atlas domain: Driver Families / drivers/crypto.
- 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.