drivers/soc/qcom/rpmh-rsc.c
Source file repositories/reference/linux-study-clean/drivers/soc/qcom/rpmh-rsc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/soc/qcom/rpmh-rsc.c- Extension
.c- Size
- 35361 bytes
- Lines
- 1157
- Domain
- Driver Families
- Bucket
- drivers/soc
- 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/atomic.hlinux/cpu_pm.hlinux/delay.hlinux/interrupt.hlinux/io.hlinux/iopoll.hlinux/kernel.hlinux/ktime.hlinux/list.hlinux/module.hlinux/notifier.hlinux/of.hlinux/of_irq.hlinux/of_platform.hlinux/platform_device.hlinux/pm_domain.hlinux/pm_runtime.hlinux/slab.hlinux/spinlock.hlinux/wait.hclocksource/arm_arch_timer.hsoc/qcom/cmd-db.hsoc/qcom/tcs.hdt-bindings/soc/qcom,rpmh-rsc.hrpmh-internal.htrace-rpmh.h
Detected Declarations
struct tcs_type_configfunction xloops_to_cyclesfunction tcs_reg_addrfunction tcs_cmd_addrfunction read_tcs_cmdfunction read_tcs_regfunction write_tcs_cmdfunction write_tcs_regfunction write_tcs_reg_syncfunction tcs_invalidatefunction rpmh_rsc_invalidatefunction get_tcs_for_msgfunction get_req_from_tcsfunction __tcs_set_triggerfunction enable_tcs_irqfunction tcs_tx_donefunction for_each_set_bitfunction programfunction check_for_req_inflightfunction for_each_set_bit_fromfunction for_each_set_bitfunction find_free_tcsfunction claim_tcs_for_reqfunction rpmh_rsc_send_datafunction find_slotsfunction rpmh_rsc_write_ctrl_datafunction rpmh_rsc_ctrlr_is_busyfunction rpmh_rsc_write_next_wakeupfunction rpmh_rsc_cpu_pm_callbackfunction rpmh_rsc_pd_callbackfunction rpmh_rsc_pd_attachfunction rpmh_probe_tcs_configfunction rpmh_rsc_probefunction rpmh_driver_initmodule init rpmh_driver_init
Annotated Snippet
core_initcall(rpmh_driver_init);
MODULE_DESCRIPTION("Qualcomm Technologies, Inc. RPMh Driver");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/atomic.h`, `linux/cpu_pm.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/io.h`, `linux/iopoll.h`, `linux/kernel.h`, `linux/ktime.h`.
- Detected declarations: `struct tcs_type_config`, `function xloops_to_cycles`, `function tcs_reg_addr`, `function tcs_cmd_addr`, `function read_tcs_cmd`, `function read_tcs_reg`, `function write_tcs_cmd`, `function write_tcs_reg`, `function write_tcs_reg_sync`, `function tcs_invalidate`.
- Atlas domain: Driver Families / drivers/soc.
- 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.