Lines Matching refs:bus_mem
563 struct resource_node *bus_mem[2] = {NULL, NULL}; in configure_bridge() local
739 bus_mem[count] = kzalloc(sizeof(struct resource_node), GFP_KERNEL); in configure_bridge()
740 if (!bus_mem[count]) { in configure_bridge()
744 bus_mem[count]->type = MEM; in configure_bridge()
745 bus_mem[count]->busno = func->busno; in configure_bridge()
746 bus_mem[count]->devfunc = PCI_DEVFN(func->device, in configure_bridge()
748 bus_mem[count]->len = len[count]; in configure_bridge()
749 if (ibmphp_check_resource(bus_mem[count], 0) == 0) { in configure_bridge()
750 ibmphp_add_resource(bus_mem[count]); in configure_bridge()
751 func->mem[count] = bus_mem[count]; in configure_bridge()
755 kfree(bus_mem[count]); in configure_bridge()
794 } else if (bus_mem[count]) { in configure_bridge()
795 ibmphp_remove_resource(bus_mem[count]); in configure_bridge()
1033 } else if (bus_mem[i]) { in configure_bridge()
1034 ibmphp_remove_resource(bus_mem[i]); in configure_bridge()