drivers/dma/qcom/gpi.c
Source file repositories/reference/linux-study-clean/drivers/dma/qcom/gpi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/qcom/gpi.c- Extension
.c- Size
- 66378 bytes
- Lines
- 2330
- 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
dt-bindings/dma/qcom-gpi.hlinux/bitfield.hlinux/dma-mapping.hlinux/dmaengine.hlinux/module.hlinux/of_dma.hlinux/platform_device.hlinux/dma/qcom-gpi-dma.hlinux/scatterlist.hlinux/slab.h../dmaengine.h../virt-dma.h
Detected Declarations
struct gpi_ringstruct gpi_devstruct gchanstruct gpiistruct gpi_descenum CNTXT_OFFSenum msm_gpi_tce_codeenum GPI_EV_TYPEenum gpii_irq_settingsenum gpi_ev_stateenum gpi_ch_stateenum gpi_cmdenum gpi_pm_statefunction to_physicalfunction gpi_read_regfunction gpi_write_regfunction gpi_update_regfunction gpi_disable_interruptsfunction gpi_config_interruptsfunction gpi_send_cmdfunction gpi_write_ch_dbfunction gpi_write_ev_dbfunction gpi_process_ieobfunction gpi_process_ch_ctrl_irqfunction gpi_process_gen_err_irqfunction gpi_process_glob_err_irqfunction gpi_handle_irqfunction gpi_process_imed_data_eventfunction gpi_process_xfer_compl_eventfunction gpi_process_eventsfunction gpi_ev_taskletfunction gpi_mark_stale_eventsfunction gpi_reset_chanfunction gpi_start_chanfunction gpi_stop_chanfunction gpi_alloc_chanfunction gpi_alloc_ev_chanfunction gpi_ring_num_elements_availfunction gpi_ring_add_elementfunction gpi_ring_recycle_ev_elementfunction gpi_free_ringfunction gpi_alloc_ringfunction gpi_queue_xferfunction gpi_terminate_allfunction gpi_pausefunction gpi_resumefunction gpi_desc_freefunction gpi_peripheral_config
Annotated Snippet
subsys_initcall(gpi_init)
MODULE_DESCRIPTION("QCOM GPI DMA engine driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `dt-bindings/dma/qcom-gpi.h`, `linux/bitfield.h`, `linux/dma-mapping.h`, `linux/dmaengine.h`, `linux/module.h`, `linux/of_dma.h`, `linux/platform_device.h`, `linux/dma/qcom-gpi-dma.h`.
- Detected declarations: `struct gpi_ring`, `struct gpi_dev`, `struct gchan`, `struct gpii`, `struct gpi_desc`, `enum CNTXT_OFFS`, `enum msm_gpi_tce_code`, `enum GPI_EV_TYPE`, `enum gpii_irq_settings`, `enum gpi_ev_state`.
- 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.