drivers/dma/owl-dma.c
Source file repositories/reference/linux-study-clean/drivers/dma/owl-dma.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/owl-dma.c- Extension
.c- Size
- 32425 bytes
- Lines
- 1278
- 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/bitops.hlinux/clk.hlinux/delay.hlinux/dmaengine.hlinux/dma-mapping.hlinux/dmapool.hlinux/err.hlinux/init.hlinux/interrupt.hlinux/io.hlinux/mm.hlinux/module.hlinux/of.hlinux/of_dma.hlinux/platform_device.hlinux/slab.hvirt-dma.h
Detected Declarations
struct owl_dma_llistruct owl_dma_txdstruct owl_dma_pchanstruct owl_dma_vchanstruct owl_dmaenum owl_dmadesc_offsetsenum owl_dma_idfunction pchan_updatefunction pchan_writelfunction pchan_readlfunction dma_updatefunction dma_writelfunction dma_readlfunction llc_hw_ctrlafunction llc_hw_ctrlbfunction llc_hw_flenfunction owl_dma_free_llifunction owl_dma_cfg_llifunction owl_dma_pchan_busyfunction owl_dma_terminate_pchanfunction owl_dma_pause_pchanfunction owl_dma_resume_pchanfunction owl_dma_start_next_txdfunction owl_dma_phy_freefunction owl_dma_interruptfunction for_each_set_bitfunction owl_dma_free_txdfunction owl_dma_desc_freefunction owl_dma_terminate_allfunction owl_dma_configfunction owl_dma_pausefunction owl_dma_resumefunction owl_dma_getbytes_chanfunction list_for_each_entryfunction owl_dma_tx_statusfunction owl_dma_phy_alloc_and_startfunction owl_dma_issue_pendingfunction for_each_sgfunction owl_dma_free_chan_resourcesfunction owl_dma_freefunction list_for_each_entry_safefunction owl_dma_probefunction owl_dma_removefunction owl_dma_initfunction owl_dma_exitmodule init owl_dma_init
Annotated Snippet
subsys_initcall(owl_dma_init);
static void __exit owl_dma_exit(void)
{
platform_driver_unregister(&owl_dma_driver);
}
module_exit(owl_dma_exit);
MODULE_AUTHOR("David Liu <liuwei@actions-semi.com>");
MODULE_AUTHOR("Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>");
MODULE_DESCRIPTION("Actions Semi Owl SoCs DMA driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/clk.h`, `linux/delay.h`, `linux/dmaengine.h`, `linux/dma-mapping.h`, `linux/dmapool.h`, `linux/err.h`, `linux/init.h`.
- Detected declarations: `struct owl_dma_lli`, `struct owl_dma_txd`, `struct owl_dma_pchan`, `struct owl_dma_vchan`, `struct owl_dma`, `enum owl_dmadesc_offsets`, `enum owl_dma_id`, `function pchan_update`, `function pchan_writel`, `function pchan_readl`.
- 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.