drivers/crypto/caam/jr.c
Source file repositories/reference/linux-study-clean/drivers/crypto/caam/jr.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/caam/jr.c- Extension
.c- Size
- 22132 bytes
- Lines
- 843
- Domain
- Driver Families
- Bucket
- drivers/crypto
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/of_irq.hlinux/of_address.hlinux/platform_device.hcompat.hctrl.hregs.hjr.hdesc.hintern.h
Detected Declarations
struct jr_driver_datafunction register_algsfunction unregister_algsfunction caam_jr_crypto_engine_exitfunction caam_jr_stop_processingfunction caam_jr_flushfunction caam_jr_restart_processingfunction caam_reset_hw_jrfunction caam_jr_shutdownfunction caam_jr_removefunction caam_jr_removefunction caam_jr_interruptfunction queuefunction caam_jr_dequeuefunction caam_jr_allocfunction list_for_each_entryfunction caam_jr_freefunction caam_jr_enqueuefunction caam_jr_init_hwfunction caam_jr_reset_indexfunction caam_jr_initfunction caam_jr_irq_dispose_mappingfunction caam_jr_probefunction caam_jr_get_hw_statefunction caam_jr_suspendfunction caam_jr_resumefunction jr_driver_initfunction jr_driver_exitmodule init jr_driver_initexport caam_jr_allocexport caam_jr_freeexport caam_jr_enqueue
Annotated Snippet
module_init(jr_driver_init);
module_exit(jr_driver_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("FSL CAAM JR request backend");
MODULE_AUTHOR("Freescale Semiconductor - NMG/STC");
Annotation
- Immediate include surface: `linux/of_irq.h`, `linux/of_address.h`, `linux/platform_device.h`, `compat.h`, `ctrl.h`, `regs.h`, `jr.h`, `desc.h`.
- Detected declarations: `struct jr_driver_data`, `function register_algs`, `function unregister_algs`, `function caam_jr_crypto_engine_exit`, `function caam_jr_stop_processing`, `function caam_jr_flush`, `function caam_jr_restart_processing`, `function caam_reset_hw_jr`, `function caam_jr_shutdown`, `function caam_jr_remove`.
- Atlas domain: Driver Families / drivers/crypto.
- Implementation status: integration 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.