arch/mips/alchemy/common/dbdma.c
Source file repositories/reference/linux-study-clean/arch/mips/alchemy/common/dbdma.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/alchemy/common/dbdma.c- Extension
.c- Size
- 32592 bytes
- Lines
- 1097
- Domain
- Architecture Layer
- Bucket
- arch/mips
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- 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-map-ops.hlinux/init.hlinux/kernel.hlinux/slab.hlinux/spinlock.hlinux/interrupt.hlinux/export.hlinux/syscore_ops.hasm/mach-au1x00/au1000.hasm/mach-au1x00/au1xxx_dbdma.h
Detected Declarations
function au1xxx_ddma_add_devicefunction au1xxx_ddma_del_devicefunction au1xxx_dbdma_chan_allocfunction au1xxx_dbdma_set_devwidthfunction au1xxx_dbdma_ring_allocfunction au1xxx_dbdma_put_sourcefunction au1xxx_dbdma_put_destfunction au1xxx_dbdma_get_destfunction au1xxx_dbdma_stopfunction au1xxx_dbdma_startfunction au1xxx_dbdma_resetfunction au1xxx_get_dma_residuefunction au1xxx_dbdma_chan_freefunction dbdma_interruptfunction au1xxx_dbdma_dumpfunction au1xxx_dbdma_put_dscrfunction alchemy_dbdma_suspendfunction alchemy_dbdma_resumefunction dbdma_setupfunction alchemy_dbdma_initmodule init alchemy_dbdma_initexport au1xxx_ddma_get_nextptr_virtexport au1xxx_ddma_add_deviceexport au1xxx_ddma_del_deviceexport au1xxx_dbdma_chan_allocexport au1xxx_dbdma_set_devwidthexport au1xxx_dbdma_ring_allocexport au1xxx_dbdma_put_sourceexport au1xxx_dbdma_put_destexport au1xxx_dbdma_get_destexport au1xxx_dbdma_stopexport au1xxx_dbdma_startexport au1xxx_dbdma_resetexport au1xxx_get_dma_residueexport au1xxx_dbdma_chan_free
Annotated Snippet
subsys_initcall(alchemy_dbdma_init);
Annotation
- Immediate include surface: `linux/dma-map-ops.h`, `linux/init.h`, `linux/kernel.h`, `linux/slab.h`, `linux/spinlock.h`, `linux/interrupt.h`, `linux/export.h`, `linux/syscore_ops.h`.
- Detected declarations: `function au1xxx_ddma_add_device`, `function au1xxx_ddma_del_device`, `function au1xxx_dbdma_chan_alloc`, `function au1xxx_dbdma_set_devwidth`, `function au1xxx_dbdma_ring_alloc`, `function au1xxx_dbdma_put_source`, `function au1xxx_dbdma_put_dest`, `function au1xxx_dbdma_get_dest`, `function au1xxx_dbdma_stop`, `function au1xxx_dbdma_start`.
- Atlas domain: Architecture Layer / arch/mips.
- 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.