Lines Matching refs:ctrl

82 	ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",  in release_slot()
90 static int init_slot(struct controller *ctrl) in init_slot() argument
92 struct slot *slot = ctrl->slot; in init_slot()
117 if (MRL_SENS(ctrl)) in init_slot()
119 if (ATTN_LED(ctrl)) { in init_slot()
130 snprintf(name, SLOT_NAME_SIZE, "%u", PSN(ctrl)); in init_slot()
132 ctrl_dbg(ctrl, "Registering domain:bus:dev=%04x:%02x:00 sun=%x\n", in init_slot()
133 pci_domain_nr(ctrl->pcie->port->subordinate), in init_slot()
134 ctrl->pcie->port->subordinate->number, PSN(ctrl)); in init_slot()
136 ctrl->pcie->port->subordinate, 0, name); in init_slot()
138 ctrl_err(ctrl, in init_slot()
149 static void cleanup_slot(struct controller *ctrl) in cleanup_slot() argument
151 pci_hp_deregister(ctrl->slot->hotplug_slot); in cleanup_slot()
161 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in set_attention_status()
173 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in enable_slot()
184 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in disable_slot()
194 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_power_status()
205 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_attention_status()
216 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_latch_status()
227 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_adapter_status()
238 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in reset_slot()
247 struct controller *ctrl; in pciehp_probe() local
265 ctrl = pcie_init(dev); in pciehp_probe()
266 if (!ctrl) { in pciehp_probe()
270 set_service_data(dev, ctrl); in pciehp_probe()
273 rc = init_slot(ctrl); in pciehp_probe()
276 ctrl_warn(ctrl, "Slot already registered by another hotplug driver\n"); in pciehp_probe()
278 ctrl_err(ctrl, "Slot initialization failed\n"); in pciehp_probe()
283 rc = pcie_init_notification(ctrl); in pciehp_probe()
285 ctrl_err(ctrl, "Notification initialization failed\n"); in pciehp_probe()
290 slot = ctrl->slot; in pciehp_probe()
299 if (!occupied && poweron && POWER_CTRL(ctrl)) in pciehp_probe()
305 cleanup_slot(ctrl); in pciehp_probe()
307 pciehp_release_ctrl(ctrl); in pciehp_probe()
314 struct controller *ctrl = get_service_data(dev); in pciehp_remove() local
316 cleanup_slot(ctrl); in pciehp_remove()
317 pciehp_release_ctrl(ctrl); in pciehp_remove()
328 struct controller *ctrl; in pciehp_resume() local
332 ctrl = get_service_data(dev); in pciehp_resume()
335 pcie_enable_notification(ctrl); in pciehp_resume()
337 slot = ctrl->slot; in pciehp_resume()