Lines Matching refs:pci_bus

1118 	struct pci_bus *bus = ctrl->pci_bus;  in set_controller_speed()
1258 struct pci_bus *bus = ctrl->pci_bus; in board_replaced()
1416 struct pci_bus *bus = ctrl->pci_bus; in board_added()
1508 ctrl->pci_bus->number = func->bus; in board_added()
1509 …rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(func->device, func->function), PCI_VENDOR_… in board_added()
2075 struct pci_bus *pci_bus = ctrl->pci_bus; in cpqhp_process_SS() local
2086 pci_bus->number = func->bus; in cpqhp_process_SS()
2090 rc = pci_bus_read_config_byte(pci_bus, devfn, 0x0B, &class_code); in cpqhp_process_SS()
2099 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &header_type); in cpqhp_process_SS()
2105 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_BRIDGE_CONTROL, &BCR); in cpqhp_process_SS()
2268 ctrl->pci_bus->number = func->bus; in configure_new_device()
2269 …rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(func->device, func->function), 0x0E, &temp_… in configure_new_device()
2307 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(func->device, function), 0x00, &ID); in configure_new_device()
2378 struct pci_bus *pci_bus; in configure_new_function() local
2381 pci_bus = ctrl->pci_bus; in configure_new_function()
2382 pci_bus->number = func->bus; in configure_new_function()
2386 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &temp_byte); in configure_new_function()
2393 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_PRIMARY_BUS, func->bus); in configure_new_function()
2408 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, temp_byte); in configure_new_function()
2415 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, temp_byte); in configure_new_function()
2421 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SEC_LATENCY_TIMER, temp_byte); in configure_new_function()
2424 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_LATENCY_TIMER, temp_byte); in configure_new_function()
2430 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_CACHE_LINE_SIZE, temp_byte); in configure_new_function()
2510 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_IO_BASE, temp_byte); in configure_new_function()
2513 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_IO_LIMIT, temp_byte); in configure_new_function()
2523 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_BASE, temp_word); in configure_new_function()
2526 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, temp_word); in configure_new_function()
2533 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_BASE, temp_word); in configure_new_function()
2536 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, temp_word); in configure_new_function()
2549 pci_bus->number = hold_bus_node->base; in configure_new_function()
2550 pci_bus_read_config_dword(pci_bus, PCI_DEVFN(device, 0), 0x00, &ID); in configure_new_function()
2551 pci_bus->number = func->bus; in configure_new_function()
2605 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, temp_byte); in configure_new_function()
2626 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_IO_BASE, temp_byte); in configure_new_function()
2645 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_IO_LIMIT, temp_byte); in configure_new_function()
2651 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_IO_LIMIT, temp_word); in configure_new_function()
2677 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_BASE, temp_word); in configure_new_function()
2696 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, temp_word); in configure_new_function()
2703 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_MEMORY_LIMIT, temp_word); in configure_new_function()
2729 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_BASE, temp_word); in configure_new_function()
2748 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, temp_word); in configure_new_function()
2754 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_PREF_MEMORY_LIMIT, temp_word); in configure_new_function()
2780 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_COMMAND, command); in configure_new_function()
2786 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_BRIDGE_CONTROL, command); in configure_new_function()
2789 rc = pci_bus_read_config_byte(pci_bus, devfn, 0x0B, &class_code); in configure_new_function()
2799 dbg("CND: bus=%d, devfn=%d, offset=%d\n", pci_bus->number, devfn, cloop); in configure_new_function()
2800 rc = pci_bus_write_config_dword(pci_bus, devfn, cloop, temp_register); in configure_new_function()
2802 rc = pci_bus_read_config_dword(pci_bus, devfn, cloop, &temp_register); in configure_new_function()
2862 rc = pci_bus_write_config_dword(pci_bus, devfn, cloop, base); in configure_new_function()
2873 rc = pci_bus_write_config_dword(pci_bus, devfn, cloop, base); in configure_new_function()
2879 rc = pci_bus_read_config_byte(pci_bus, devfn, in configure_new_function()
2893 rc = pci_bus_read_config_byte(pci_bus, devfn, 0x0B, &class_code); in configure_new_function()
2902 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_INTERRUPT_LINE, IRQ); in configure_new_function()
2918 rc = pci_bus_write_config_byte(pci_bus, devfn, in configure_new_function()
2923 rc = pci_bus_write_config_byte(pci_bus, devfn, in configure_new_function()
2928 rc = pci_bus_write_config_word(pci_bus, devfn, in configure_new_function()
2938 rc = pci_bus_write_config_word(pci_bus, devfn, in configure_new_function()