Lines Matching refs:resources
44 u8 behind_bridge, struct resource_lists *resources);
46 u8 behind_bridge, struct resource_lists *resources);
2262 u8 behind_bridge, struct resource_lists * resources) in configure_new_device() argument
2289 rc = configure_new_function(ctrl, new_slot, behind_bridge, resources); in configure_new_device()
2299 cpqhp_return_board_resources(new_slot, resources); in configure_new_device()
2359 struct resource_lists *resources) in configure_new_function() argument
2405 bus_node = get_max_resource(&(resources->bus_head), 1); in configure_new_function()
2441 io_node = get_max_resource(&(resources->io_head), 0x1000); in configure_new_function()
2444 mem_node = get_max_resource(&(resources->mem_head), 0x100000); in configure_new_function()
2447 p_mem_node = get_max_resource(&(resources->p_mem_head), 0x100000); in configure_new_function()
2462 if (!resources->irqs) { in configure_new_function()
2470 irqs.barber_pole = resources->irqs->barber_pole; in configure_new_function()
2471 irqs.interrupt[0] = resources->irqs->interrupt[0]; in configure_new_function()
2472 irqs.interrupt[1] = resources->irqs->interrupt[1]; in configure_new_function()
2473 irqs.interrupt[2] = resources->irqs->interrupt[2]; in configure_new_function()
2474 irqs.interrupt[3] = resources->irqs->interrupt[3]; in configure_new_function()
2475 irqs.valid_INT = resources->irqs->valid_INT; in configure_new_function()
2596 if (resources->irqs) { in configure_new_function()
2597 resources->irqs->interrupt[0] = irqs.interrupt[0]; in configure_new_function()
2598 resources->irqs->interrupt[1] = irqs.interrupt[1]; in configure_new_function()
2599 resources->irqs->interrupt[2] = irqs.interrupt[2]; in configure_new_function()
2600 resources->irqs->interrupt[3] = irqs.interrupt[3]; in configure_new_function()
2601 resources->irqs->valid_INT = irqs.valid_INT; in configure_new_function()
2631 return_resource(&(resources->bus_head), temp_resources.bus_head); in configure_new_function()
2648 return_resource(&(resources->io_head), io_node); in configure_new_function()
2667 return_resource(&(resources->io_head), io_node); in configure_new_function()
2673 return_resource(&(resources->io_head), io_node); in configure_new_function()
2699 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2719 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2725 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2751 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2770 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2776 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2834 io_node = get_io_resource(&(resources->io_head), base); in configure_new_function()
2853 p_mem_node = get_resource(&(resources->p_mem_head), base); in configure_new_function()
2869 mem_node = get_resource(&(resources->mem_head), base); in configure_new_function()
2885 mem_node = get_resource(&(resources->mem_head), base); in configure_new_function()
2926 if (temp_byte && resources->irqs && in configure_new_function()
2927 (resources->irqs->valid_INT & in configure_new_function()
2928 (0x01 << ((temp_byte + resources->irqs->barber_pole - 1) & 0x03)))) { in configure_new_function()
2930 IRQ = resources->irqs->interrupt[(temp_byte + in configure_new_function()
2931 resources->irqs->barber_pole - 1) & 0x03]; in configure_new_function()
2954 resources->irqs->interrupt[(temp_byte + resources->irqs->barber_pole - 1) & 0x03] = IRQ; in configure_new_function()
2955 resources->irqs->valid_INT |= 0x01 << (temp_byte + resources->irqs->barber_pole - 1) & 0x03; in configure_new_function()
2993 return_resource(&(resources-> bus_head), hold_bus_node); in configure_new_function()
2994 return_resource(&(resources-> io_head), hold_IO_node); in configure_new_function()
2995 return_resource(&(resources-> mem_head), hold_mem_node); in configure_new_function()
2996 return_resource(&(resources-> p_mem_head), hold_p_mem_node); in configure_new_function()