drivers/dma/stm32/stm32-dma.c
Source file repositories/reference/linux-study-clean/drivers/dma/stm32/stm32-dma.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/stm32/stm32-dma.c- Extension
.c- Size
- 51799 bytes
- Lines
- 1783
- 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/bitfield.hlinux/clk.hlinux/delay.hlinux/dmaengine.hlinux/dma-mapping.hlinux/err.hlinux/init.hlinux/iopoll.hlinux/jiffies.hlinux/list.hlinux/module.hlinux/of.hlinux/of_dma.hlinux/platform_device.hlinux/pm_runtime.hlinux/reset.hlinux/sched.hlinux/slab.h../virt-dma.h
Detected Declarations
struct stm32_dma_cfgstruct stm32_dma_chan_regstruct stm32_dma_sg_reqstruct stm32_dma_descstruct stm32_dma_mdma_configstruct stm32_dma_chanstruct stm32_dma_deviceenum stm32_dma_widthenum stm32_dma_burst_sizefunction stm32_dma_readfunction stm32_dma_writefunction stm32_dma_get_widthfunction stm32_dma_get_max_widthfunction stm32_dma_fifo_threshold_is_allowedfunction stm32_dma_is_burst_possiblefunction stm32_dma_get_best_burstfunction stm32_dma_get_burstfunction stm32_dma_set_fifo_configfunction stm32_dma_slave_configfunction stm32_dma_irq_statusfunction stm32_dma_irq_clearfunction stm32_dma_disable_chanfunction stm32_dma_stopfunction stm32_dma_terminate_allfunction stm32_dma_synchronizefunction stm32_dma_dump_regfunction stm32_dma_sg_incfunction stm32_dma_start_transferfunction stm32_dma_configure_next_sgfunction stm32_dma_handle_chan_pausedfunction wrongfunction stm32_dma_post_resume_reconfigurefunction stm32_dma_handle_chan_donefunction stm32_dma_chan_irqfunction stm32_dma_issue_pendingfunction stm32_dma_pausefunction stm32_dma_resumefunction stm32_dma_set_xfer_paramfunction stm32_dma_clear_regfunction for_each_sgfunction stm32_dma_get_remaining_bytesfunction stm32_dma_is_current_sgfunction stm32_dma_desc_residuefunction stm32_dma_tx_statusfunction stm32_dma_alloc_chan_resourcesfunction stm32_dma_free_chan_resourcesfunction stm32_dma_desc_freefunction stm32_dma_set_config
Annotated Snippet
subsys_initcall(stm32_dma_init);
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/clk.h`, `linux/delay.h`, `linux/dmaengine.h`, `linux/dma-mapping.h`, `linux/err.h`, `linux/init.h`, `linux/iopoll.h`.
- Detected declarations: `struct stm32_dma_cfg`, `struct stm32_dma_chan_reg`, `struct stm32_dma_sg_req`, `struct stm32_dma_desc`, `struct stm32_dma_mdma_config`, `struct stm32_dma_chan`, `struct stm32_dma_device`, `enum stm32_dma_width`, `enum stm32_dma_burst_size`, `function stm32_dma_read`.
- 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.