drivers/dma/fsldma.c
Source file repositories/reference/linux-study-clean/drivers/dma/fsldma.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/fsldma.c- Extension
.c- Size
- 35808 bytes
- Lines
- 1442
- 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/init.hlinux/module.hlinux/pci.hlinux/slab.hlinux/interrupt.hlinux/dmaengine.hlinux/delay.hlinux/dma-mapping.hlinux/dmapool.hlinux/of.hlinux/of_address.hlinux/of_irq.hlinux/platform_device.hlinux/fsldma.hdmaengine.hfsldma.h
Detected Declarations
function set_srfunction get_srfunction set_mrfunction get_mrfunction set_cdarfunction get_cdarfunction set_bcrfunction get_bcrfunction set_desc_cntfunction set_desc_srcfunction set_desc_dstfunction set_desc_nextfunction set_ld_eolfunction dma_initfunction dma_is_idlefunction dma_startfunction dma_haltfunction addressfunction addressfunction fsl_chan_set_request_countfunction fsl_chan_toggle_ext_pausefunction fsl_chan_toggle_ext_startfunction fsl_dma_external_startfunction append_ld_queuefunction fsl_dma_tx_submitfunction fsl_dma_free_descriptorfunction fsldma_clean_completed_descriptorfunction fsldma_run_tx_complete_actionsfunction fsldma_clean_running_descriptorfunction fsl_chan_xfer_ld_queuefunction fsldma_cleanup_descriptorsfunction fsl_dma_alloc_chan_resourcesfunction fsldma_free_desc_listfunction fsldma_free_desc_list_reversefunction fsl_dma_free_chan_resourcesfunction fsl_dma_prep_memcpyfunction fsl_dma_device_terminate_allfunction fsl_dma_device_configfunction fsl_dma_memcpy_issue_pendingfunction fsl_tx_statusfunction fsldma_chan_irqfunction dma_do_taskletfunction fsldma_ctrl_irqfunction fsldma_free_irqsfunction fsldma_request_irqsfunction fsl_dma_chan_probefunction fsl_dma_chan_removefunction fsldma_of_probe
Annotated Snippet
subsys_initcall(fsldma_init);
module_exit(fsldma_exit);
MODULE_DESCRIPTION("Freescale Elo series DMA driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/init.h`, `linux/module.h`, `linux/pci.h`, `linux/slab.h`, `linux/interrupt.h`, `linux/dmaengine.h`, `linux/delay.h`, `linux/dma-mapping.h`.
- Detected declarations: `function set_sr`, `function get_sr`, `function set_mr`, `function get_mr`, `function set_cdar`, `function get_cdar`, `function set_bcr`, `function get_bcr`, `function set_desc_cnt`, `function set_desc_src`.
- 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.