drivers/crypto/geode-aes.c
Source file repositories/reference/linux-study-clean/drivers/crypto/geode-aes.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/geode-aes.c- Extension
.c- Size
- 10804 bytes
- Lines
- 437
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/kernel.hlinux/pci.hlinux/pci_ids.hlinux/crypto.hlinux/spinlock.hcrypto/algapi.hcrypto/aes.hcrypto/internal/cipher.hcrypto/internal/skcipher.hlinux/io.hlinux/delay.hgeode-aes.h
Detected Declarations
function _writefieldfunction _readfieldfunction do_cryptfunction geode_aes_cryptfunction geode_setkey_cipfunction geode_setkey_skcipherfunction geode_encryptfunction geode_decryptfunction fallback_init_cipfunction fallback_exit_cipfunction geode_init_skcipherfunction geode_exit_skcipherfunction geode_skcipher_cryptfunction geode_cbc_encryptfunction geode_cbc_decryptfunction geode_ecb_encryptfunction geode_ecb_decryptfunction geode_aes_removefunction geode_aes_probe
Annotated Snippet
static struct pci_driver geode_aes_driver = {
.name = "Geode LX AES",
.id_table = geode_aes_tbl,
.probe = geode_aes_probe,
.remove = geode_aes_remove,
};
module_pci_driver(geode_aes_driver);
MODULE_AUTHOR("Advanced Micro Devices, Inc.");
MODULE_DESCRIPTION("Geode LX Hardware AES driver");
MODULE_LICENSE("GPL");
MODULE_IMPORT_NS("CRYPTO_INTERNAL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/pci.h`, `linux/pci_ids.h`, `linux/crypto.h`, `linux/spinlock.h`, `crypto/algapi.h`, `crypto/aes.h`.
- Detected declarations: `function _writefield`, `function _readfield`, `function do_crypt`, `function geode_aes_crypt`, `function geode_setkey_cip`, `function geode_setkey_skcipher`, `function geode_encrypt`, `function geode_decrypt`, `function fallback_init_cip`, `function fallback_exit_cip`.
- 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.
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.