Displaying 2 results from an estimated 2 matches for "do_something_for_pci_display_device".
2023 Aug 25
7
[PATCH 0/5] Add the pci_get_base_class() helper and use it
...uit the need.
For example, if an application want to process all PCI(e) display devices
in a system, it can achieve such goal by writing the code as following:
pdev = NULL;
do {
pdev = pci_get_base_class(PCI_BASE_CLASS_DISPLAY, pdev);
if (!pdev)
break;
do_something_for_pci_display_device(pdev);
} while (1);
Sui Jingfeng (5):
PCI: Add the pci_get_base_class() helper
ALSA: hda/intel: Use pci_get_base_class() to reduce duplicated code
drm/nouveau: Use pci_get_base_class() to reduce duplicated code
drm/amdgpu: Use pci_get_base_class() to reduce duplicated code
drm/radeon...
2023 Aug 25
0
[PATCH 1/5] PCI: Add the pci_get_base_class() helper
...se_class() function to suit the need.
For example, if an application want to process all PCI(e) display devices
in a system, it can achieve such goal by writing the code as following:
pdev = NULL;
do {
pdev = pci_get_base_class(PCI_BASE_CLASS_DISPLAY, pdev);
if (!pdev)
break;
do_something_for_pci_display_device(pdev);
} while (1);
Cc: Bjorn Helgaas <bhelgaas at google.com>
Signed-off-by: Sui Jingfeng <suijingfeng at loongson.cn>
---
drivers/pci/search.c | 31 +++++++++++++++++++++++++++++++
include/linux/pci.h | 5 +++++
2 files changed, 36 insertions(+)
diff --git a/drivers/pci/search.c...