MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / pci_pm_runtime_get

Function pci_pm_runtime_get

components/drivers/pci/procfs.c:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static void pci_pm_runtime_get(struct rt_pci_device *pdev, rt_ubase_t *out_flags)
47{
48 *out_flags = pdev->pm_enabled;
49
50 if (!pdev->pm_enabled)
51 {
52 rt_pci_pme_active(pdev, RT_TRUE);
53 }
54}
55
56static void pci_pm_runtime_put(struct rt_pci_device *pdev, rt_ubase_t *flags)
57{

Callers 2

pci_readFunction · 0.85
pci_writeFunction · 0.85

Calls 1

rt_pci_pme_activeFunction · 0.85

Tested by

no test coverage detected