Lines Matching refs:resources
29 u8 behind_bridge, struct resource_lists *resources);
31 u8 behind_bridge, struct resource_lists *resources);
2223 u8 behind_bridge, struct resource_lists *resources) in configure_new_device() argument
2250 rc = configure_new_function(ctrl, new_slot, behind_bridge, resources); in configure_new_device()
2260 cpqhp_return_board_resources(new_slot, resources); in configure_new_device()
2320 struct resource_lists *resources) in configure_new_function() argument
2366 bus_node = get_max_resource(&(resources->bus_head), 1); in configure_new_function()
2402 io_node = get_max_resource(&(resources->io_head), 0x1000); in configure_new_function()
2405 mem_node = get_max_resource(&(resources->mem_head), 0x100000); in configure_new_function()
2408 p_mem_node = get_max_resource(&(resources->p_mem_head), 0x100000); in configure_new_function()
2423 if (!resources->irqs) { in configure_new_function()
2431 irqs.barber_pole = resources->irqs->barber_pole; in configure_new_function()
2432 irqs.interrupt[0] = resources->irqs->interrupt[0]; in configure_new_function()
2433 irqs.interrupt[1] = resources->irqs->interrupt[1]; in configure_new_function()
2434 irqs.interrupt[2] = resources->irqs->interrupt[2]; in configure_new_function()
2435 irqs.interrupt[3] = resources->irqs->interrupt[3]; in configure_new_function()
2436 irqs.valid_INT = resources->irqs->valid_INT; in configure_new_function()
2543 if (resources->irqs) { in configure_new_function()
2544 resources->irqs->interrupt[0] = irqs.interrupt[0]; in configure_new_function()
2545 resources->irqs->interrupt[1] = irqs.interrupt[1]; in configure_new_function()
2546 resources->irqs->interrupt[2] = irqs.interrupt[2]; in configure_new_function()
2547 resources->irqs->interrupt[3] = irqs.interrupt[3]; in configure_new_function()
2548 resources->irqs->valid_INT = irqs.valid_INT; in configure_new_function()
2578 return_resource(&(resources->bus_head), temp_resources.bus_head); in configure_new_function()
2595 return_resource(&(resources->io_head), io_node); in configure_new_function()
2614 return_resource(&(resources->io_head), io_node); in configure_new_function()
2620 return_resource(&(resources->io_head), io_node); in configure_new_function()
2646 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2666 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2672 return_resource(&(resources->mem_head), mem_node); in configure_new_function()
2698 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2717 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2723 return_resource(&(resources->p_mem_head), p_mem_node); in configure_new_function()
2781 io_node = get_io_resource(&(resources->io_head), base); in configure_new_function()
2798 p_mem_node = get_resource(&(resources->p_mem_head), base); in configure_new_function()
2814 mem_node = get_resource(&(resources->mem_head), base); in configure_new_function()
2852 if (temp_byte && resources->irqs && in configure_new_function()
2853 (resources->irqs->valid_INT & in configure_new_function()
2854 (0x01 << ((temp_byte + resources->irqs->barber_pole - 1) & 0x03)))) { in configure_new_function()
2856 IRQ = resources->irqs->interrupt[(temp_byte + in configure_new_function()
2857 resources->irqs->barber_pole - 1) & 0x03]; in configure_new_function()
2879 resources->irqs->interrupt[(temp_byte + resources->irqs->barber_pole - 1) & 0x03] = IRQ; in configure_new_function()
2880 resources->irqs->valid_INT |= 0x01 << (temp_byte + resources->irqs->barber_pole - 1) & 0x03; in configure_new_function()
2918 return_resource(&(resources->bus_head), hold_bus_node); in configure_new_function()
2919 return_resource(&(resources->io_head), hold_IO_node); in configure_new_function()
2920 return_resource(&(resources->mem_head), hold_mem_node); in configure_new_function()
2921 return_resource(&(resources->p_mem_head), hold_p_mem_node); in configure_new_function()