Lines Matching +full:ctrl +full:- +full:module
1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
16 #include <linux/module.h>
26 struct controller *ctrl = p_slot->ctrl; in shpchp_configure_device() local
27 struct pci_dev *bridge = ctrl->pci_dev; in shpchp_configure_device()
28 struct pci_bus *parent = bridge->subordinate; in shpchp_configure_device()
33 dev = pci_get_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device()
35 ctrl_err(ctrl, "Device %s already exists at %04x:%02x:%02x, cannot hot-add\n", in shpchp_configure_device()
37 p_slot->bus, p_slot->device); in shpchp_configure_device()
39 ret = -EINVAL; in shpchp_configure_device()
43 num = pci_scan_slot(parent, PCI_DEVFN(p_slot->device, 0)); in shpchp_configure_device()
45 ctrl_err(ctrl, "No new device found\n"); in shpchp_configure_device()
46 ret = -ENODEV; in shpchp_configure_device()
51 if (PCI_SLOT(dev->devfn) == p_slot->device) in shpchp_configure_device()
66 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; in shpchp_unconfigure_device()
68 struct controller *ctrl = p_slot->ctrl; in shpchp_unconfigure_device() local
70 ctrl_dbg(ctrl, "%s: domain:bus:dev = %04x:%02x:%02x\n", in shpchp_unconfigure_device()
71 __func__, pci_domain_nr(parent), p_slot->bus, p_slot->device); in shpchp_unconfigure_device()
75 list_for_each_entry_safe(dev, temp, &parent->devices, bus_list) { in shpchp_unconfigure_device()
76 if (PCI_SLOT(dev->devfn) != p_slot->device) in shpchp_unconfigure_device()