drivers/dma/at_hdmac.c
Source file repositories/reference/linux-study-clean/drivers/dma/at_hdmac.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/at_hdmac.c- Extension
.c- Size
- 65776 bytes
- Lines
- 2285
- Domain
- Driver Families
- Bucket
- drivers/dma
- 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
dt-bindings/dma/at91.hlinux/bitfield.hlinux/clk.hlinux/dmaengine.hlinux/dmapool.hlinux/dma-mapping.hlinux/interrupt.hlinux/module.hlinux/of.hlinux/overflow.hlinux/of_platform.hlinux/of_dma.hlinux/platform_device.hlinux/slab.hdmaengine.hvirt-dma.h
Detected Declarations
struct at_llistruct atdma_sgstruct at_descstruct at_dma_chanstruct at_dmastruct at_dma_platform_datastruct at_dma_slaveenum atc_statusfunction convert_burstfunction convert_buswidthfunction vdbg_dump_regsfunction vdbg_dump_regsfunction atc_setup_irqfunction atc_enable_chan_irqfunction atc_disable_chan_irqfunction atc_chan_is_enabledfunction atc_chan_is_pausedfunction atc_chan_is_cyclicfunction set_lli_eolfunction atc_get_xfer_widthfunction atdma_lli_chainfunction atc_dostartfunction atdma_desc_freefunction atc_calc_bytes_leftfunction Itemfunction atc_get_residuefunction atc_handle_errorfunction atdma_handle_chan_donefunction at_dma_interruptfunction atc_prep_dma_interleavedfunction atc_prep_dma_memcpyfunction atdma_create_memset_llifunction atc_prep_dma_memsetfunction atc_prep_dma_memset_sgfunction for_each_sgfunction atc_prep_slave_sgfunction for_each_sgfunction for_each_sgfunction atc_dma_cyclic_check_valuesfunction atc_dma_cyclic_fill_descfunction atc_prep_dma_cyclicfunction atc_configfunction atc_pausefunction atc_resumefunction atc_terminate_allfunction dma_async_is_completefunction atc_issue_pendingfunction atc_alloc_chan_resources
Annotated Snippet
subsys_initcall(at_dma_init);
static void __exit at_dma_exit(void)
{
platform_driver_unregister(&at_dma_driver);
}
module_exit(at_dma_exit);
MODULE_DESCRIPTION("Atmel AHB DMA Controller driver");
MODULE_AUTHOR("Nicolas Ferre <nicolas.ferre@atmel.com>");
MODULE_AUTHOR("Tudor Ambarus <tudor.ambarus@microchip.com>");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:at_hdmac");
Annotation
- Immediate include surface: `dt-bindings/dma/at91.h`, `linux/bitfield.h`, `linux/clk.h`, `linux/dmaengine.h`, `linux/dmapool.h`, `linux/dma-mapping.h`, `linux/interrupt.h`, `linux/module.h`.
- Detected declarations: `struct at_lli`, `struct atdma_sg`, `struct at_desc`, `struct at_dma_chan`, `struct at_dma`, `struct at_dma_platform_data`, `struct at_dma_slave`, `enum atc_status`, `function convert_burst`, `function convert_buswidth`.
- Atlas domain: Driver Families / drivers/dma.
- 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.