drivers/ufs/host/ufshcd-pci.c
Source file repositories/reference/linux-study-clean/drivers/ufs/host/ufshcd-pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ufs/host/ufshcd-pci.c- Extension
.c- Size
- 18368 bytes
- Lines
- 719
- Domain
- Driver Families
- Bucket
- drivers/ufs
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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
ufs/ufshcd.hlinux/delay.hlinux/module.hlinux/pci.hlinux/pm_runtime.hlinux/pm_qos.hlinux/suspend.hlinux/debugfs.hlinux/uuid.hlinux/acpi.hlinux/gpio/consumer.h
Detected Declarations
struct intel_hostenum intel_ufs_dsm_func_idfunction __intel_dsm_supportedfunction __intel_dsmfunction intel_dsmfunction intel_dsm_initfunction ufs_intel_hce_enable_notifyfunction ufs_intel_disable_lccfunction ufs_intel_link_startup_notifyfunction ufs_intel_set_lanesfunction ufs_intel_lkf_pwr_change_notifyfunction ufs_intel_lkf_apply_dev_quirksfunction intel_cache_ltrfunction intel_ltr_setfunction intel_ltr_exposefunction intel_ltr_hidefunction intel_add_debugfsfunction intel_remove_debugfsfunction ufs_intel_device_resetfunction ufs_intel_common_initfunction ufs_intel_common_exitfunction ufs_intel_resumefunction ufs_intel_ehl_initfunction ufs_intel_lkf_initfunction ufs_intel_adl_initfunction ufs_intel_mtl_initfunction ufs_qemu_get_hba_macfunction ufs_qemu_mcq_config_resourcefunction ufs_qemu_op_runtime_configfunction ufshcd_pci_restorefunction ufs_intel_suspend_preparefunction s2idlefunction ufs_intel_resume_completefunction ufshcd_pci_suspend_preparefunction ufshcd_pci_resume_completefunction ufshcd_pci_removefunction ufshcd_pci_probe
Annotated Snippet
static struct pci_driver ufshcd_pci_driver = {
.name = UFSHCD,
.id_table = ufshcd_pci_tbl,
.probe = ufshcd_pci_probe,
.remove = ufshcd_pci_remove,
.driver = {
.pm = &ufshcd_pci_pm_ops
},
};
module_pci_driver(ufshcd_pci_driver);
MODULE_AUTHOR("Santosh Yaragnavi <santosh.sy@samsung.com>");
MODULE_AUTHOR("Vinayak Holikatti <h.vinayak@samsung.com>");
MODULE_DESCRIPTION("UFS host controller PCI glue driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `ufs/ufshcd.h`, `linux/delay.h`, `linux/module.h`, `linux/pci.h`, `linux/pm_runtime.h`, `linux/pm_qos.h`, `linux/suspend.h`, `linux/debugfs.h`.
- Detected declarations: `struct intel_host`, `enum intel_ufs_dsm_func_id`, `function __intel_dsm_supported`, `function __intel_dsm`, `function intel_dsm`, `function intel_dsm_init`, `function ufs_intel_hce_enable_notify`, `function ufs_intel_disable_lcc`, `function ufs_intel_link_startup_notify`, `function ufs_intel_set_lanes`.
- Atlas domain: Driver Families / drivers/ufs.
- Implementation status: pattern implementation candidate.
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.