drivers/pci/endpoint/functions/pci-epf-mhi.c
Source file repositories/reference/linux-study-clean/drivers/pci/endpoint/functions/pci-epf-mhi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pci/endpoint/functions/pci-epf-mhi.c- Extension
.c- Size
- 26559 bytes
- Lines
- 996
- Domain
- Representative Device Path
- Bucket
- PCIe NVMe Storage Path
- Inferred role
- Representative Device Path: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- Part of the selected hardware vertical slice: PCI discovery, driver binding, NVMe queues, block requests, DMA, interrupts, and completion.
- 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/dmaengine.hlinux/mhi_ep.hlinux/module.hlinux/of_dma.hlinux/platform_device.hlinux/pci-epc.hlinux/pci-epf.h
Detected Declarations
struct pci_epf_mhi_dma_transferstruct pci_epf_mhi_ep_infostruct pci_epf_mhistruct epf_dma_filterfunction get_align_offsetfunction __pci_epf_mhi_alloc_mapfunction pci_epf_mhi_alloc_mapfunction __pci_epf_mhi_unmap_freefunction pci_epf_mhi_unmap_freefunction pci_epf_mhi_raise_irqfunction pci_epf_mhi_iatu_readfunction pci_epf_mhi_iatu_writefunction pci_epf_mhi_dma_callbackfunction pci_epf_mhi_edma_readfunction pci_epf_mhi_edma_writefunction pci_epf_mhi_dma_workerfunction list_for_each_entry_safefunction pci_epf_mhi_dma_async_callbackfunction pci_epf_mhi_edma_read_asyncfunction pci_epf_mhi_edma_write_asyncfunction pci_epf_mhi_filterfunction pci_epf_mhi_dma_initfunction pci_epf_mhi_dma_deinitfunction pci_epf_mhi_epc_initfunction pci_epf_mhi_epc_deinitfunction pci_epf_mhi_link_upfunction pci_epf_mhi_link_downfunction pci_epf_mhi_bus_master_enablefunction pci_epf_mhi_bindfunction pci_epf_mhi_unbindfunction pci_epf_mhi_probefunction pci_epf_mhi_initfunction pci_epf_mhi_exitmodule init pci_epf_mhi_init
Annotated Snippet
module_init(pci_epf_mhi_init);
static void __exit pci_epf_mhi_exit(void)
{
pci_epf_unregister_driver(&pci_epf_mhi_driver);
}
module_exit(pci_epf_mhi_exit);
MODULE_DESCRIPTION("PCI EPF driver for MHI Endpoint devices");
MODULE_AUTHOR("Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/dmaengine.h`, `linux/mhi_ep.h`, `linux/module.h`, `linux/of_dma.h`, `linux/platform_device.h`, `linux/pci-epc.h`, `linux/pci-epf.h`.
- Detected declarations: `struct pci_epf_mhi_dma_transfer`, `struct pci_epf_mhi_ep_info`, `struct pci_epf_mhi`, `struct epf_dma_filter`, `function get_align_offset`, `function __pci_epf_mhi_alloc_map`, `function pci_epf_mhi_alloc_map`, `function __pci_epf_mhi_unmap_free`, `function pci_epf_mhi_unmap_free`, `function pci_epf_mhi_raise_irq`.
- Atlas domain: Representative Device Path / PCIe NVMe Storage Path.
- 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.