Lines Matching full:resources
29 u8 behind_bridge, struct resource_lists *resources);
31 u8 behind_bridge, struct resource_lists *resources);
391 * do_pre_bridge_resource_split - find node of resources that are unused
469 * do_bridge_resource_split - find one node of resources that aren't in use
711 * @head: the list to search for resources
1247 * This is only used if we don't have resources for hot add.
1633 * resources already. If so, we'll skip the attempt to in remove_board()
2206 * @resources: pointer to set of resource lists
2211 u8 behind_bridge, struct resource_lists *resources) in configure_new_device() argument
2238 rc = configure_new_function(ctrl, new_slot, behind_bridge, resources); in configure_new_device()
2248 cpqhp_return_board_resources(new_slot, resources); in configure_new_device()
2301 * @resources: pointer to set of resource lists
2308 struct resource_lists *resources) in configure_new_function() argument
2354 bus_node = get_max_resource(&(resources->bus_head), 1); in configure_new_function()
2390 io_node = get_max_resource(&(resources->io_head), 0x1000); in configure_new_function()
2393 mem_node = get_max_resource(&(resources->mem_head), 0x100000); in configure_new_function()
2396 p_mem_node = get_max_resource(&(resources->p_mem_head), 0x100000); in configure_new_function()
2411 if (!resources->irqs) { in configure_new_function()
2419 irqs.barber_pole = resources->irqs->barber_pole; in configure_new_function()
2420 irqs.interrupt[0] = resources->irqs->interrupt[0]; in configure_new_function()
2421 irqs.interrupt[1] = resources->irqs->interrupt[1]; in configure_new_function()
2422 irqs.interrupt[2] = resources->irqs->interrupt[2]; in configure_new_function()
2423 irqs.interrupt[3] = resources->irqs->interrupt[3]; in configure_new_function()
2424 irqs.valid_INT = resources->irqs->valid_INT; in configure_new_function()
2436 * if there is a problem,we can just use these to free resources in configure_new_function()
2458 /* If we have IO resources copy them and fill in the bridge's in configure_new_function()
2470 /* Copy the memory resources and fill in the bridge's memory in configure_new_function()
2531 if (resources->irqs) { in configure_new_function()
2532 resources->irqs->interrupt[0] = irqs.interrupt[0]; in configure_new_function()
2533 resources->irqs->interrupt[1] = irqs.interrupt[1]; in configure_new_function()
2534 resources->irqs->interrupt[2] = irqs.interrupt[2]; in configure_new_function()
2535 resources->irqs->interrupt[3] = irqs.interrupt[3]; in configure_new_function()
2536 resources->irqs->valid_INT = irqs.valid_INT; in configure_new_function()
2548 /* Return unused bus resources in configure_new_function()
2566 return_resource(&(resources->bus_head), temp_resources.bus_head); in configure_new_function()
2583 return_resource(&(resources->io_head), io_node); in configure_new_function()
2602 return_resource(&(resources->io_head), io_node); in configure_new_function()
2608 return_resource(&(resources->io_head), io_node); in configure_new_function()
2634 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2653 /* Return unused resources to the pool */ in configure_new_function()
2654 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2660 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2686 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2705 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2711 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2769 io_node = get_io_resource(&(resources->io_head), base); in configure_new_function()
2786 p_mem_node = get_resource(&(resources->p_mem_head), base); in configure_new_function()
2802 mem_node = get_resource(&(resources->mem_head), base); in configure_new_function()
2840 if (temp_byte && resources->irqs && in configure_new_function()
2841 (resources->irqs->valid_INT & in configure_new_function()
2842 (0x01 << ((temp_byte + resources->irqs->barber_pole - 1) & 0x03)))) { in configure_new_function()
2844 IRQ = resources->irqs->interrupt[(temp_byte + in configure_new_function()
2845 resources->irqs->barber_pole - 1) & 0x03]; in configure_new_function()
2867 resources->irqs->interrupt[(temp_byte + resources->irqs->barber_pole - 1) & 0x03] = IRQ; in configure_new_function()
2868 resources->irqs->valid_INT |= 0x01 << (temp_byte + resources->irqs->barber_pole - 1) & 0x03; in configure_new_function()
2906 return_resource(&(resources->bus_head), hold_bus_node); in configure_new_function()
2907 return_resource(&(resources->io_head), hold_IO_node); in configure_new_function()
2908 return_resource(&(resources->mem_head), hold_mem_node); in configure_new_function()
2909 return_resource(&(resources->p_mem_head), hold_p_mem_node); in configure_new_function()