• Home
  • Raw
  • Download

Lines Matching refs:ctrl

86 	ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n",  in release_slot()
94 static int init_slots(struct controller *ctrl) in init_slots() argument
103 for (i = 0; i < ctrl->num_slots; i++) { in init_slots()
125 slot->ctrl = ctrl; in init_slots()
126 slot->bus = ctrl->pci_dev->subordinate->number; in init_slots()
127 slot->device = ctrl->slot_device_offset + i; in init_slots()
128 slot->hpc_ops = ctrl->hpc_ops; in init_slots()
129 slot->number = ctrl->first_slot + (ctrl->slot_num_inc * i); in init_slots()
146 …ctrl_dbg(ctrl, "Registering domain:bus:dev=%04x:%02x:%02x hp_slot=%x sun=%x slot_device_offset=%x\… in init_slots()
147 pci_domain_nr(ctrl->pci_dev->subordinate), in init_slots()
149 ctrl->slot_device_offset); in init_slots()
151 ctrl->pci_dev->subordinate, slot->device, name); in init_slots()
153 ctrl_err(ctrl, "pci_hp_register failed with error %d\n", in init_slots()
163 list_add(&slot->slot_list, &ctrl->slot_list); in init_slots()
179 void cleanup_slots(struct controller *ctrl) in cleanup_slots() argument
183 list_for_each_entry_safe(slot, next, &ctrl->slot_list, slot_list) { in cleanup_slots()
198 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in set_attention_status()
211 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in enable_slot()
221 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in disable_slot()
232 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_power_status()
247 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_attention_status()
262 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_latch_status()
277 ctrl_dbg(slot->ctrl, "%s: physical_slot = %s\n", in get_adapter_status()
302 struct controller *ctrl; in shpc_probe() local
307 ctrl = kzalloc(sizeof(*ctrl), GFP_KERNEL); in shpc_probe()
308 if (!ctrl) { in shpc_probe()
312 INIT_LIST_HEAD(&ctrl->slot_list); in shpc_probe()
314 rc = shpc_init(ctrl, pdev); in shpc_probe()
316 ctrl_dbg(ctrl, "Controller initialization failed\n"); in shpc_probe()
320 pci_set_drvdata(pdev, ctrl); in shpc_probe()
323 rc = init_slots(ctrl); in shpc_probe()
325 ctrl_err(ctrl, "Slot initialization failed\n"); in shpc_probe()
329 rc = shpchp_create_ctrl_files(ctrl); in shpc_probe()
336 cleanup_slots(ctrl); in shpc_probe()
338 ctrl->hpc_ops->release_ctlr(ctrl); in shpc_probe()
340 kfree(ctrl); in shpc_probe()
347 struct controller *ctrl = pci_get_drvdata(dev); in shpc_remove() local
349 shpchp_remove_ctrl_files(ctrl); in shpc_remove()
350 ctrl->hpc_ops->release_ctlr(ctrl); in shpc_remove()
351 kfree(ctrl); in shpc_remove()