drivers/dma/at_xdmac.c
Source file repositories/reference/linux-study-clean/drivers/dma/at_xdmac.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/at_xdmac.c- Extension
.c- Size
- 77738 bytes
- Lines
- 2511
- 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
asm/barrier.hdt-bindings/dma/at91.hlinux/clk.hlinux/dmaengine.hlinux/dmapool.hlinux/interrupt.hlinux/irq.hlinux/kernel.hlinux/list.hlinux/module.hlinux/of_dma.hlinux/of_platform.hlinux/platform_device.hlinux/pm.hlinux/pm_runtime.hdmaengine.h
Detected Declarations
struct at_xdmac_layoutstruct at_xdmac_chanstruct at_xdmacstruct at_xdmac_lldstruct at_xdmac_descenum atc_statusfunction at_xdmac_chan_is_cyclicfunction at_xdmac_chan_is_pausedfunction at_xdmac_chan_is_paused_internalfunction at_xdmac_chan_is_peripheral_xferfunction at_xdmac_get_dwidthfunction at_xdmac_runtime_suspend_descriptorsfunction list_for_each_entry_safefunction at_xdmac_runtime_resume_descriptorsfunction list_for_each_entry_safefunction at_xdmac_chan_is_enabledfunction at_xdmac_offfunction list_for_each_entry_safefunction at_xdmac_start_xferfunction at_xdmac_tx_submitfunction at_xdmac_init_used_descfunction at_xdmac_queue_descfunction at_xdmac_increment_block_countfunction at_xdmac_compute_chan_conffunction at_xdmac_check_slave_configfunction at_xdmac_set_slave_configfunction at_xdmac_prep_slave_sgfunction at_xdmac_prep_dma_cyclicfunction at_xdmac_align_widthfunction at_xdmac_interleaved_queue_descfunction at_xdmac_prep_interleavedfunction at_xdmac_prep_dma_memcpyfunction at_xdmac_prep_dma_memsetfunction at_xdmac_prep_dma_memset_sgfunction elementsfunction yetfunction at_xdmac_tx_statusfunction at_xdmac_advance_workfunction at_xdmac_handle_cyclicfunction at_xdmac_handle_errorfunction at_xdmac_taskletfunction at_xdmac_interruptfunction at_xdmac_issue_pendingfunction at_xdmac_device_configfunction at_xdmac_device_pause_setfunction at_xdmac_device_pause_internalfunction at_xdmac_device_pausefunction at_xdmac_device_resume_internal
Annotated Snippet
subsys_initcall(at_xdmac_init);
static void __exit at_xdmac_exit(void)
{
platform_driver_unregister(&at_xdmac_driver);
}
module_exit(at_xdmac_exit);
MODULE_DESCRIPTION("Atmel Extended DMA Controller driver");
MODULE_AUTHOR("Ludovic Desroches <ludovic.desroches@atmel.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `asm/barrier.h`, `dt-bindings/dma/at91.h`, `linux/clk.h`, `linux/dmaengine.h`, `linux/dmapool.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/kernel.h`.
- Detected declarations: `struct at_xdmac_layout`, `struct at_xdmac_chan`, `struct at_xdmac`, `struct at_xdmac_lld`, `struct at_xdmac_desc`, `enum atc_status`, `function at_xdmac_chan_is_cyclic`, `function at_xdmac_chan_is_paused`, `function at_xdmac_chan_is_paused_internal`, `function at_xdmac_chan_is_peripheral_xfer`.
- 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.