Lines Matching refs:ctrl
32 int pciehp_configure_device(struct controller *ctrl) in pciehp_configure_device() argument
35 struct pci_dev *bridge = ctrl->pcie->port; in pciehp_configure_device()
47 ctrl_dbg(ctrl, "Device %s already exists at %04x:%02x:00, skipping hot-add\n", in pciehp_configure_device()
56 ctrl_err(ctrl, "No new device found\n"); in pciehp_configure_device()
71 up_read(&ctrl->reset_lock); in pciehp_configure_device()
73 down_read_nested(&ctrl->reset_lock, ctrl->depth); in pciehp_configure_device()
76 ctrl->dsn = pci_get_dsn(dev); in pciehp_configure_device()
95 void pciehp_unconfigure_device(struct controller *ctrl, bool presence) in pciehp_unconfigure_device() argument
98 struct pci_bus *parent = ctrl->pcie->port->subordinate; in pciehp_unconfigure_device()
101 ctrl_dbg(ctrl, "%s: domain:bus:dev = %04x:%02x:00\n", in pciehp_unconfigure_device()
123 up_read(&ctrl->reset_lock); in pciehp_unconfigure_device()
125 down_read_nested(&ctrl->reset_lock, ctrl->depth); in pciehp_unconfigure_device()