Searched refs:bus_node (Results 1 – 6 of 6) sorted by relevance
/drivers/pci/hotplug/ |
D | ibmphp_res.c | 39 static void update_resources (struct bus_node *bus_cur, int type, int rangeno); 41 static int remove_ranges (struct bus_node *, struct bus_node *); 42 static int update_bridge_ranges (struct bus_node **); 43 static int add_bus_range (int type, struct range_node *, struct bus_node *); 44 static void fix_resources (struct bus_node *); 45 static struct bus_node *find_bus_wprev (u8, struct bus_node **, u8); 49 static struct bus_node * __init alloc_error_bus (struct ebda_pci_rsrc *curr, u8 busno, int flag) in alloc_error_bus() 51 struct bus_node *newbus; in alloc_error_bus() 58 newbus = kzalloc(sizeof(struct bus_node), GFP_KERNEL); in alloc_error_bus() 94 static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node **new_range, struct… in alloc_bus_range() [all …]
|
D | cpqphp_pci.c | 708 struct pci_resource *bus_node; in cpqhp_save_used_resources() local 735 bus_node = kmalloc(sizeof(*bus_node), GFP_KERNEL); in cpqhp_save_used_resources() 736 if (!bus_node) in cpqhp_save_used_resources() 739 bus_node->base = secondary_bus; in cpqhp_save_used_resources() 740 bus_node->length = temp_byte - secondary_bus + 1; in cpqhp_save_used_resources() 742 bus_node->next = func->bus_head; in cpqhp_save_used_resources() 743 func->bus_head = bus_node; in cpqhp_save_used_resources() 1185 struct pci_resource *bus_node; in cpqhp_find_available_resources() local 1379 bus_node = kmalloc(sizeof(*bus_node), GFP_KERNEL); in cpqhp_find_available_resources() 1380 if (!bus_node) in cpqhp_find_available_resources() [all …]
|
D | cpqphp_nvram.c | 447 struct pci_resource *bus_node; in compaq_nvram_load() local 608 bus_node = kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in compaq_nvram_load() 610 if (!bus_node) in compaq_nvram_load() 613 bus_node->base = *(u32*)p_byte; in compaq_nvram_load() 617 kfree(bus_node); in compaq_nvram_load() 621 bus_node->length = *(u32*)p_byte; in compaq_nvram_load() 625 kfree(bus_node); in compaq_nvram_load() 629 bus_node->next = ctrl->bus_head; in compaq_nvram_load() 630 ctrl->bus_head = bus_node; in compaq_nvram_load()
|
D | ibmphp.h | 342 struct bus_node { struct 387 int ibmphp_find_resource(struct bus_node *, u32, struct resource_node **, int); 389 int ibmphp_remove_bus(struct bus_node *, u8); 392 struct bus_node *ibmphp_find_res_bus(u8);
|
D | cpqphp_ctrl.c | 2384 struct pci_resource *bus_node; in configure_new_function() local 2412 bus_node = get_max_resource(&(resources->bus_head), 1); in configure_new_function() 2415 if (!bus_node) in configure_new_function() 2419 temp_byte = bus_node->base; in configure_new_function() 2420 dbg("set Secondary bus = %d\n", bus_node->base); in configure_new_function() 2426 temp_byte = bus_node->base + bus_node->length - 1; in configure_new_function() 2427 dbg("set subordinate bus = %d\n", bus_node->base + bus_node->length - 1); in configure_new_function() 2487 temp_resources.bus_head = bus_node; in configure_new_function() 2510 memcpy(hold_bus_node, bus_node, sizeof(struct pci_resource)); in configure_new_function() 2512 bus_node->base += 1; in configure_new_function() [all …]
|
D | ibmphp_pci.c | 40 static int add_new_bus (struct bus_node *, struct resource_node *, struct resource_node *, struct r… 589 struct bus_node *bus; in configure_bridge() 1230 struct bus_node *bus; in unconfigure_boot_device() 1341 struct bus_node *bus; in unconfigure_boot_bridge() 1633 static int add_new_bus (struct bus_node *bus, struct resource_node *io, struct resource_node *mem, … in add_new_bus() 1638 struct bus_node *cur_bus = NULL; in add_new_bus() 1699 struct bus_node *bus_cur; in find_sec_number()
|