drivers/crypto/atmel-i2c.c
Source file repositories/reference/linux-study-clean/drivers/crypto/atmel-i2c.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/atmel-i2c.c- Extension
.c- Size
- 11024 bytes
- Lines
- 420
- 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.
- 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/bitrev.hlinux/crc16.hlinux/delay.hlinux/device.hlinux/err.hlinux/errno.hlinux/i2c.hlinux/init.hlinux/kernel.hlinux/module.hlinux/scatterlist.hlinux/slab.hlinux/workqueue.hatmel-i2c.h
Detected Declarations
function atmel_i2c_checksumfunction atmel_i2c_init_read_config_cmdfunction atmel_i2c_init_read_otp_cmdfunction atmel_i2c_init_random_cmdfunction atmel_i2c_init_genkey_cmdfunction atmel_i2c_init_ecdh_cmdfunction atmel_i2c_statusfunction atmel_i2c_wakeupfunction atmel_i2c_sleepfunction atmel_i2c_send_receivefunction atmel_i2c_work_handlerfunction atmel_i2c_enqueuefunction atmel_i2c_flush_queuefunction atmel_i2c_wake_token_szfunction device_sanity_checkfunction atmel_i2c_probefunction atmel_i2c_initfunction atmel_i2c_exitmodule init atmel_i2c_initexport atmel_i2c_init_read_config_cmdexport atmel_i2c_init_read_otp_cmdexport atmel_i2c_init_random_cmdexport atmel_i2c_init_genkey_cmdexport atmel_i2c_init_ecdh_cmdexport atmel_i2c_send_receiveexport atmel_i2c_enqueueexport atmel_i2c_flush_queueexport atmel_i2c_probe
Annotated Snippet
module_init(atmel_i2c_init);
module_exit(atmel_i2c_exit);
MODULE_AUTHOR("Tudor Ambarus");
MODULE_DESCRIPTION("Microchip / Atmel ECC (I2C) driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/bitrev.h`, `linux/crc16.h`, `linux/delay.h`, `linux/device.h`, `linux/err.h`, `linux/errno.h`, `linux/i2c.h`, `linux/init.h`.
- Detected declarations: `function atmel_i2c_checksum`, `function atmel_i2c_init_read_config_cmd`, `function atmel_i2c_init_read_otp_cmd`, `function atmel_i2c_init_random_cmd`, `function atmel_i2c_init_genkey_cmd`, `function atmel_i2c_init_ecdh_cmd`, `function atmel_i2c_status`, `function atmel_i2c_wakeup`, `function atmel_i2c_sleep`, `function atmel_i2c_send_receive`.
- 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.
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.