Lines Matching refs:resources
43 u8 behind_bridge, struct resource_lists *resources);
45 u8 behind_bridge, struct resource_lists *resources);
2269 u8 behind_bridge, struct resource_lists *resources) in configure_new_device() argument
2296 rc = configure_new_function(ctrl, new_slot, behind_bridge, resources); in configure_new_device()
2306 cpqhp_return_board_resources(new_slot, resources); in configure_new_device()
2366 struct resource_lists *resources) in configure_new_function() argument
2412 bus_node = get_max_resource(&(resources->bus_head), 1); in configure_new_function()
2448 io_node = get_max_resource(&(resources->io_head), 0x1000); in configure_new_function()
2451 mem_node = get_max_resource(&(resources->mem_head), 0x100000); in configure_new_function()
2454 p_mem_node = get_max_resource(&(resources->p_mem_head), 0x100000); in configure_new_function()
2469 if (!resources->irqs) { in configure_new_function()
2477 irqs.barber_pole = resources->irqs->barber_pole; in configure_new_function()
2478 irqs.interrupt[0] = resources->irqs->interrupt[0]; in configure_new_function()
2479 irqs.interrupt[1] = resources->irqs->interrupt[1]; in configure_new_function()
2480 irqs.interrupt[2] = resources->irqs->interrupt[2]; in configure_new_function()
2481 irqs.interrupt[3] = resources->irqs->interrupt[3]; in configure_new_function()
2482 irqs.valid_INT = resources->irqs->valid_INT; in configure_new_function()
2589 if (resources->irqs) { in configure_new_function()
2590 resources->irqs->interrupt[0] = irqs.interrupt[0]; in configure_new_function()
2591 resources->irqs->interrupt[1] = irqs.interrupt[1]; in configure_new_function()
2592 resources->irqs->interrupt[2] = irqs.interrupt[2]; in configure_new_function()
2593 resources->irqs->interrupt[3] = irqs.interrupt[3]; in configure_new_function()
2594 resources->irqs->valid_INT = irqs.valid_INT; in configure_new_function()
2624 return_resource(&(resources->bus_head), temp_resources.bus_head); in configure_new_function()
2641 return_resource(&(resources->io_head), io_node); in configure_new_function()
2660 return_resource(&(resources->io_head), io_node); in configure_new_function()
2666 return_resource(&(resources->io_head), io_node); in configure_new_function()
2692 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2712 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2718 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2744 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2763 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2769 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2827 io_node = get_io_resource(&(resources->io_head), base); in configure_new_function()
2846 p_mem_node = get_resource(&(resources->p_mem_head), base); in configure_new_function()
2862 mem_node = get_resource(&(resources->mem_head), base); in configure_new_function()
2900 if (temp_byte && resources->irqs && in configure_new_function()
2901 (resources->irqs->valid_INT & in configure_new_function()
2902 (0x01 << ((temp_byte + resources->irqs->barber_pole - 1) & 0x03)))) { in configure_new_function()
2904 IRQ = resources->irqs->interrupt[(temp_byte + in configure_new_function()
2905 resources->irqs->barber_pole - 1) & 0x03]; in configure_new_function()
2927 resources->irqs->interrupt[(temp_byte + resources->irqs->barber_pole - 1) & 0x03] = IRQ; in configure_new_function()
2928 resources->irqs->valid_INT |= 0x01 << (temp_byte + resources->irqs->barber_pole - 1) & 0x03; in configure_new_function()
2966 return_resource(&(resources-> bus_head), hold_bus_node); in configure_new_function()
2967 return_resource(&(resources-> io_head), hold_IO_node); in configure_new_function()
2968 return_resource(&(resources-> mem_head), hold_mem_node); in configure_new_function()
2969 return_resource(&(resources-> p_mem_head), hold_p_mem_node); in configure_new_function()