hpc_ptr 193 drivers/pci/hotplug/ibmphp_ebda.c struct controller *hpc_ptr; hpc_ptr 196 drivers/pci/hotplug/ibmphp_ebda.c list_for_each_entry(hpc_ptr, &ebda_hpc_head, ebda_hpc_list) { hpc_ptr 197 drivers/pci/hotplug/ibmphp_ebda.c for (index = 0; index < hpc_ptr->slot_count; index++) { hpc_ptr 198 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - physical slot#: %x\n", __func__, hpc_ptr->slots[index].slot_num); hpc_ptr 199 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - pci bus# of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_bus_num); hpc_ptr 200 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - index into ctlr addr: %x\n", __func__, hpc_ptr->slots[index].ctl_index); hpc_ptr 201 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - cap of the slot: %x\n", __func__, hpc_ptr->slots[index].slot_cap); hpc_ptr 204 drivers/pci/hotplug/ibmphp_ebda.c for (index = 0; index < hpc_ptr->bus_count; index++) hpc_ptr 205 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - bus# of each bus controlled by this ctlr: %x\n", __func__, hpc_ptr->buses[index].bus_num); hpc_ptr 207 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - type of hpc: %x\n", __func__, hpc_ptr->ctlr_type); hpc_ptr 208 drivers/pci/hotplug/ibmphp_ebda.c switch (hpc_ptr->ctlr_type) { hpc_ptr 210 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - bus: %x\n", __func__, hpc_ptr->u.pci_ctlr.bus); hpc_ptr 211 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - dev_fun: %x\n", __func__, hpc_ptr->u.pci_ctlr.dev_fun); hpc_ptr 212 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - irq: %x\n", __func__, hpc_ptr->irq); hpc_ptr 216 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - io_start: %x\n", __func__, hpc_ptr->u.isa_ctlr.io_start); hpc_ptr 217 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - io_end: %x\n", __func__, hpc_ptr->u.isa_ctlr.io_end); hpc_ptr 218 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - irq: %x\n", __func__, hpc_ptr->irq); hpc_ptr 223 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - wpegbbar: %lx\n", __func__, hpc_ptr->u.wpeg_ctlr.wpegbbar); hpc_ptr 224 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - i2c_addr: %x\n", __func__, hpc_ptr->u.wpeg_ctlr.i2c_addr); hpc_ptr 225 drivers/pci/hotplug/ibmphp_ebda.c debug("%s - irq: %x\n", __func__, hpc_ptr->irq); hpc_ptr 687 drivers/pci/hotplug/ibmphp_ebda.c struct controller *hpc_ptr; hpc_ptr 715 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr = alloc_ebda_hpc(slot_num, bus_num); hpc_ptr 716 drivers/pci/hotplug/ibmphp_ebda.c if (!hpc_ptr) { hpc_ptr 720 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->ctlr_id = ctlr_id; hpc_ptr 721 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->ctlr_relative_id = ctlr; hpc_ptr 722 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->slot_count = slot_num; hpc_ptr 723 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->bus_count = bus_num; hpc_ptr 726 drivers/pci/hotplug/ibmphp_ebda.c debug("ctlr_relative_id: %x\n", hpc_ptr->ctlr_relative_id); hpc_ptr 731 drivers/pci/hotplug/ibmphp_ebda.c slot_ptr = hpc_ptr->slots; hpc_ptr 755 drivers/pci/hotplug/ibmphp_ebda.c bus_info_ptr1->controller_id = hpc_ptr->ctlr_id; hpc_ptr 773 drivers/pci/hotplug/ibmphp_ebda.c bus_ptr = hpc_ptr->buses; hpc_ptr 796 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->ctlr_type = temp; hpc_ptr 798 drivers/pci/hotplug/ibmphp_ebda.c switch (hpc_ptr->ctlr_type) { hpc_ptr 800 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.pci_ctlr.bus = readb(io_mem + addr); hpc_ptr 801 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.pci_ctlr.dev_fun = readb(io_mem + addr + 1); hpc_ptr 802 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->irq = readb(io_mem + addr + 2); hpc_ptr 805 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.pci_ctlr.bus, hpc_ptr 806 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.pci_ctlr.dev_fun, hpc_ptr->irq); hpc_ptr 810 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.isa_ctlr.io_start = readw(io_mem + addr); hpc_ptr 811 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.isa_ctlr.io_end = readw(io_mem + addr + 2); hpc_ptr 812 drivers/pci/hotplug/ibmphp_ebda.c if (!request_region(hpc_ptr->u.isa_ctlr.io_start, hpc_ptr 813 drivers/pci/hotplug/ibmphp_ebda.c (hpc_ptr->u.isa_ctlr.io_end - hpc_ptr->u.isa_ctlr.io_start + 1), hpc_ptr 818 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->irq = readb(io_mem + addr + 4); hpc_ptr 824 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.wpeg_ctlr.wpegbbar = readl(io_mem + addr); hpc_ptr 825 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->u.wpeg_ctlr.i2c_addr = readb(io_mem + addr + 4); hpc_ptr 826 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->irq = readb(io_mem + addr + 5); hpc_ptr 837 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->revision = 0xff; hpc_ptr 838 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->options = 0xff; hpc_ptr 839 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->starting_slot_num = hpc_ptr->slots[0].slot_num; hpc_ptr 840 drivers/pci/hotplug/ibmphp_ebda.c hpc_ptr->ending_slot_num = hpc_ptr->slots[slot_num-1].slot_num; hpc_ptr 843 drivers/pci/hotplug/ibmphp_ebda.c for (index = 0; index < hpc_ptr->slot_count; index++) { hpc_ptr 852 drivers/pci/hotplug/ibmphp_ebda.c tmp_slot->capabilities = hpc_ptr->slots[index].slot_cap; hpc_ptr 853 drivers/pci/hotplug/ibmphp_ebda.c if ((hpc_ptr->slots[index].slot_cap & EBDA_SLOT_133_MAX) == EBDA_SLOT_133_MAX) hpc_ptr 855 drivers/pci/hotplug/ibmphp_ebda.c else if ((hpc_ptr->slots[index].slot_cap & EBDA_SLOT_100_MAX) == EBDA_SLOT_100_MAX) hpc_ptr 857 drivers/pci/hotplug/ibmphp_ebda.c else if ((hpc_ptr->slots[index].slot_cap & EBDA_SLOT_66_MAX) == EBDA_SLOT_66_MAX) hpc_ptr 860 drivers/pci/hotplug/ibmphp_ebda.c if ((hpc_ptr->slots[index].slot_cap & EBDA_SLOT_PCIX_CAP) == EBDA_SLOT_PCIX_CAP) hpc_ptr 866 drivers/pci/hotplug/ibmphp_ebda.c tmp_slot->bus = hpc_ptr->slots[index].slot_bus_num; hpc_ptr 868 drivers/pci/hotplug/ibmphp_ebda.c bus_info_ptr1 = ibmphp_find_same_bus_num(hpc_ptr->slots[index].slot_bus_num); hpc_ptr 875 drivers/pci/hotplug/ibmphp_ebda.c tmp_slot->ctrl = hpc_ptr; hpc_ptr 877 drivers/pci/hotplug/ibmphp_ebda.c tmp_slot->ctlr_index = hpc_ptr->slots[index].ctl_index; hpc_ptr 878 drivers/pci/hotplug/ibmphp_ebda.c tmp_slot->number = hpc_ptr->slots[index].slot_num; hpc_ptr 895 drivers/pci/hotplug/ibmphp_ebda.c list_add(&hpc_ptr->ebda_hpc_list, &ebda_hpc_head); hpc_ptr 912 drivers/pci/hotplug/ibmphp_ebda.c free_ebda_hpc(hpc_ptr);