drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c
Source file repositories/reference/linux-study-clean/drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/marvell/octeontx2/otx2_cptvf_main.c- Extension
.c- Size
- 11505 bytes
- Lines
- 483
- 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
otx2_cpt_common.hotx2_cptvf.hotx2_cptlf.hotx2_cptvf_algs.hcn10k_cpt.hrvu_reg.h
Detected Declarations
function cptvf_enable_pfvf_mbox_intrsfunction cptvf_disable_pfvf_mbox_intrsfunction cptvf_register_interruptsfunction cptvf_pfvf_mbox_initfunction cptvf_pfvf_mbox_destroyfunction cptlf_work_handlerfunction cleanup_tasklet_workfunction init_tasklet_workfunction free_pending_queuesfunction alloc_pending_queuesfunction lf_sw_cleanupfunction lf_sw_initfunction cptvf_lf_shutdownfunction cptvf_lf_initfunction otx2_cptvf_probefunction otx2_cptvf_remove
Annotated Snippet
static struct pci_driver otx2_cptvf_pci_driver = {
.name = OTX2_CPTVF_DRV_NAME,
.id_table = otx2_cptvf_id_table,
.probe = otx2_cptvf_probe,
.remove = otx2_cptvf_remove,
};
module_pci_driver(otx2_cptvf_pci_driver);
MODULE_IMPORT_NS("CRYPTO_DEV_OCTEONTX2_CPT");
MODULE_AUTHOR("Marvell");
MODULE_DESCRIPTION("Marvell RVU CPT Virtual Function Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `otx2_cpt_common.h`, `otx2_cptvf.h`, `otx2_cptlf.h`, `otx2_cptvf_algs.h`, `cn10k_cpt.h`, `rvu_reg.h`.
- Detected declarations: `function cptvf_enable_pfvf_mbox_intrs`, `function cptvf_disable_pfvf_mbox_intrs`, `function cptvf_register_interrupts`, `function cptvf_pfvf_mbox_init`, `function cptvf_pfvf_mbox_destroy`, `function cptlf_work_handler`, `function cleanup_tasklet_work`, `function init_tasklet_work`, `function free_pending_queues`, `function alloc_pending_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.