drivers/dma/ste_dma40.c
Source file repositories/reference/linux-study-clean/drivers/dma/ste_dma40.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/ste_dma40.c- Extension
.c- Size
- 97562 bytes
- Lines
- 3680
- 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
linux/dma-mapping.hlinux/kernel.hlinux/slab.hlinux/export.hlinux/dmaengine.hlinux/platform_device.hlinux/clk.hlinux/delay.hlinux/log2.hlinux/pm.hlinux/pm_runtime.hlinux/err.hlinux/of.hlinux/of_address.hlinux/of_dma.hlinux/amba/bus.hlinux/regulator/consumer.hdmaengine.hste_dma40.hste_dma40_ll.h
Detected Declarations
struct stedma40_platform_datastruct d40_interrupt_lookupstruct d40_reg_valstruct d40_lli_poolstruct d40_descstruct d40_lcla_poolstruct d40_phy_resstruct d40_basestruct d40_chanstruct d40_gen_dmacstruct d40_baseenum d40_commandenum d40_eventsfunction chan_is_physicalfunction chan_is_logicalfunction d40_pool_lli_allocfunction d40_pool_lli_freefunction d40_lcla_alloc_onefunction d40_lcla_free_allfunction d40_desc_removefunction list_for_each_entry_safefunction d40_desc_freefunction d40_desc_submitfunction d40_phy_lli_loadfunction d40_desc_donefunction d40_log_lli_to_lcxafunction d40_desc_loadfunction d40_desc_queuefunction d40_psize_2_burst_sizefunction d40_size_2_dmalenfunction d40_sg_2_dmalenfunction for_each_sgfunction __d40_execute_command_phyfunction d40_term_allfunction list_for_each_entry_safefunction list_for_each_entry_safefunction __d40_config_set_eventfunction d40_config_set_eventfunction d40_chan_has_eventsfunction __d40_execute_command_logfunction d40_channel_execute_commandfunction d40_get_prmofunction d40_config_writefunction d40_residuefunction d40_tx_is_linkedfunction d40_pausefunction d40_resumefunction d40_tx_submit
Annotated Snippet
subsys_initcall(stedma40_init);
Annotation
- Immediate include surface: `linux/dma-mapping.h`, `linux/kernel.h`, `linux/slab.h`, `linux/export.h`, `linux/dmaengine.h`, `linux/platform_device.h`, `linux/clk.h`, `linux/delay.h`.
- Detected declarations: `struct stedma40_platform_data`, `struct d40_interrupt_lookup`, `struct d40_reg_val`, `struct d40_lli_pool`, `struct d40_desc`, `struct d40_lcla_pool`, `struct d40_phy_res`, `struct d40_base`, `struct d40_chan`, `struct d40_gen_dmac`.
- 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.