Searched refs:bus_node (Results 1 - 7 of 7) sorted by relevance

/linux-4.4.14/arch/powerpc/boot/
H A Dcuboot-pq2.c53 void *bus_node, *parent_node; update_cs_ranges() local
60 bus_node = finddevice("/localbus"); update_cs_ranges()
61 if (!bus_node || !dt_is_compatible(bus_node, "fsl,pq2-localbus")) update_cs_ranges()
64 dt_get_reg_format(bus_node, &naddr, &nsize); update_cs_ranges()
68 parent_node = get_parent(bus_node); update_cs_ranges()
76 if (!dt_xlate_reg(bus_node, 0, (unsigned long *)&ctrl_addr, update_cs_ranges()
80 len = getprop(bus_node, "ranges", cs_ranges_buf, sizeof(cs_ranges_buf)); update_cs_ranges()
/linux-4.4.14/drivers/pci/hotplug/
H A Dibmphp_res.c39 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) alloc_error_bus()
51 struct bus_node *newbus; alloc_error_bus()
58 newbus = kzalloc(sizeof(struct bus_node), GFP_KERNEL); alloc_error_bus()
94 static int __init alloc_bus_range (struct bus_node **new_bus, struct range_node **new_range, struct ebda_pci_rsrc *curr, int flag, u8 first_bus) alloc_bus_range()
96 struct bus_node *newbus; alloc_bus_range()
101 newbus = kzalloc(sizeof(struct bus_node), GFP_KERNEL); alloc_bus_range()
203 struct bus_node *newbus = NULL; ibmphp_rsrc_init()
204 struct bus_node *bus_cur; ibmphp_rsrc_init()
205 struct bus_node *bus_prev; ibmphp_rsrc_init()
373 bus_cur = list_entry (tmp, struct bus_node, bus_list); ibmphp_rsrc_init()
390 static int add_bus_range (int type, struct range_node *range, struct bus_node *bus_cur) add_bus_range()
465 static void update_resources (struct bus_node *bus_cur, int type, int rangeno) update_resources()
509 static void fix_me (struct resource_node *res, struct bus_node *bus_cur, struct range_node *range) fix_me()
564 static void fix_resources (struct bus_node *bus_cur) fix_resources()
601 struct bus_node *bus_cur; ibmphp_add_resource()
781 struct bus_node *bus_cur; ibmphp_remove_resource()
939 static struct range_node *find_range (struct bus_node *bus_cur, struct resource_node *res) find_range()
976 struct bus_node *bus_cur; ibmphp_check_resource()
1362 int ibmphp_remove_bus (struct bus_node *bus, u8 parent_busno) ibmphp_remove_bus()
1366 struct bus_node *prev_bus; ibmphp_remove_bus()
1445 static int remove_ranges (struct bus_node *bus_cur, struct bus_node *bus_prev) remove_ranges()
1501 int ibmphp_find_resource (struct bus_node *bus, u32 start_address, struct resource_node **res, int flag) ibmphp_find_resource()
1574 struct bus_node *bus_cur = NULL; ibmphp_free_resources()
1575 struct bus_node *bus_tmp; ibmphp_free_resources()
1586 bus_cur = list_entry (tmp, struct bus_node, bus_list); ibmphp_free_resources()
1693 struct bus_node *bus_cur; once_over()
1697 bus_cur = list_entry (tmp, struct bus_node, bus_list); once_over()
1739 struct bus_node *bus_cur = find_bus_wprev (pfmem->busno, NULL, 0); ibmphp_add_pfmem_from_mem()
1762 struct bus_node *ibmphp_find_res_bus (u8 bus_number) ibmphp_find_res_bus()
1767 static struct bus_node *find_bus_wprev (u8 bus_number, struct bus_node **prev, u8 flag) find_bus_wprev()
1769 struct bus_node *bus_cur; find_bus_wprev()
1775 bus_cur = list_entry (tmp, struct bus_node, bus_list); find_bus_wprev()
1777 *prev = list_entry (tmp_prev, struct bus_node, bus_list); find_bus_wprev()
1788 struct bus_node *bus_cur = NULL; ibmphp_print_test()
1801 bus_cur = list_entry (tmp, struct bus_node, bus_list); ibmphp_print_test()
1899 static int range_exists_already (struct range_node * range, struct bus_node * bus_cur, u8 type) range_exists_already()
1940 static int __init update_bridge_ranges (struct bus_node **bus) update_bridge_ranges()
1945 struct bus_node *bus_sec; update_bridge_ranges()
1946 struct bus_node *bus_cur; update_bridge_ranges()
H A Dcpqphp_pci.c708 struct pci_resource *bus_node; cpqhp_save_used_resources() local
735 bus_node = kmalloc(sizeof(*bus_node), GFP_KERNEL); cpqhp_save_used_resources()
736 if (!bus_node) cpqhp_save_used_resources()
739 bus_node->base = secondary_bus; cpqhp_save_used_resources()
740 bus_node->length = temp_byte - secondary_bus + 1; cpqhp_save_used_resources()
742 bus_node->next = func->bus_head; cpqhp_save_used_resources()
743 func->bus_head = bus_node; cpqhp_save_used_resources()
1185 struct pci_resource *bus_node; cpqhp_find_available_resources() local
1379 bus_node = kmalloc(sizeof(*bus_node), GFP_KERNEL); cpqhp_find_available_resources()
1380 if (!bus_node) cpqhp_find_available_resources()
1383 bus_node->base = secondary_bus; cpqhp_find_available_resources()
1384 bus_node->length = max_bus - secondary_bus + 1; cpqhp_find_available_resources()
1385 dbg("found bus_node(base, length) = %x, %x\n", cpqhp_find_available_resources()
1386 bus_node->base, bus_node->length); cpqhp_find_available_resources()
1389 bus_node->next = ctrl->bus_head; cpqhp_find_available_resources()
1390 ctrl->bus_head = bus_node; cpqhp_find_available_resources()
1392 bus_node->next = func->bus_head; cpqhp_find_available_resources()
1393 func->bus_head = bus_node; cpqhp_find_available_resources()
H A Dcpqphp_nvram.c447 struct pci_resource *bus_node; compaq_nvram_load() local
608 bus_node = kmalloc(sizeof(struct pci_resource), GFP_KERNEL); compaq_nvram_load()
610 if (!bus_node) compaq_nvram_load()
613 bus_node->base = *(u32*)p_byte; compaq_nvram_load()
617 kfree(bus_node); compaq_nvram_load()
621 bus_node->length = *(u32*)p_byte; compaq_nvram_load()
625 kfree(bus_node); compaq_nvram_load()
629 bus_node->next = ctrl->bus_head; compaq_nvram_load()
630 ctrl->bus_head = bus_node; compaq_nvram_load()
H A Dibmphp.h342 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);
H A Dcpqphp_ctrl.c2384 struct pci_resource *bus_node; configure_new_function() local
2412 bus_node = get_max_resource(&(resources->bus_head), 1); configure_new_function()
2415 if (!bus_node) configure_new_function()
2419 temp_byte = bus_node->base; configure_new_function()
2420 dbg("set Secondary bus = %d\n", bus_node->base); configure_new_function()
2426 temp_byte = bus_node->base + bus_node->length - 1; configure_new_function()
2427 dbg("set subordinate bus = %d\n", bus_node->base + bus_node->length - 1); configure_new_function()
2487 temp_resources.bus_head = bus_node; configure_new_function()
2510 memcpy(hold_bus_node, bus_node, sizeof(struct pci_resource)); configure_new_function()
2512 bus_node->base += 1; configure_new_function()
2513 bus_node->length -= 1; configure_new_function()
2514 bus_node->next = NULL; configure_new_function()
2609 if (bus_node && temp_resources.bus_head) { configure_new_function()
2610 hold_bus_node->length = bus_node->base - hold_bus_node->base; configure_new_function()
H A Dibmphp_pci.c40 static int add_new_bus (struct bus_node *, struct resource_node *, struct resource_node *, struct resource_node *, u8);
589 struct bus_node *bus; configure_bridge()
1230 struct bus_node *bus; unconfigure_boot_device()
1341 struct bus_node *bus; unconfigure_boot_bridge()
1633 static int add_new_bus (struct bus_node *bus, struct resource_node *io, struct resource_node *mem, struct resource_node *pfmem, u8 parent_busno) add_new_bus()
1638 struct bus_node *cur_bus = NULL; add_new_bus()
1699 struct bus_node *bus_cur; find_sec_number()

Completed in 264 milliseconds