Lines Matching refs:temp_byte
131 u8 temp_byte; in handle_presence_change() local
169 temp_byte = (temp_word >> hp_slot) & 0x01; in handle_presence_change()
170 temp_byte |= (temp_word >> (hp_slot + 7)) & 0x02; in handle_presence_change()
172 if (temp_byte != func->presence_save) { in handle_presence_change()
1257 u8 temp_byte; in board_replaced() local
1286 temp_byte = readb(ctrl->hpc_reg + SLOT_POWER); in board_replaced()
1288 writeb(temp_byte, ctrl->hpc_reg + SLOT_POWER); in board_replaced()
1407 u8 temp_byte; in board_added() local
1433 temp_byte = readb(ctrl->hpc_reg + SLOT_POWER); in board_added()
1435 writeb(temp_byte, ctrl->hpc_reg + SLOT_POWER); in board_added()
1614 u8 temp_byte; in remove_board() local
1662 temp_byte = readb(ctrl->hpc_reg + SLOT_SERR); in remove_board()
1663 temp_byte &= ~(0x01 << hp_slot); in remove_board()
1664 writeb(temp_byte, ctrl->hpc_reg + SLOT_SERR); in remove_board()
2213 u8 temp_byte, function, max_functions, stop_it; in configure_new_device() local
2224 …pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(func->device, func->function), 0x0E, &temp_byte); in configure_new_device()
2230 if (temp_byte & 0x80) /* Multi-function device */ in configure_new_device()
2312 u8 temp_byte; in configure_new_function() local
2341 rc = pci_bus_read_config_byte(pci_bus, devfn, PCI_HEADER_TYPE, &temp_byte); in configure_new_function()
2345 if ((temp_byte & 0x7F) == PCI_HEADER_TYPE_BRIDGE) { in configure_new_function()
2361 temp_byte = bus_node->base; in configure_new_function()
2363 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SECONDARY_BUS, temp_byte); in configure_new_function()
2368 temp_byte = bus_node->base + bus_node->length - 1; in configure_new_function()
2370 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, temp_byte); in configure_new_function()
2375 temp_byte = 0x40; in configure_new_function()
2376 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SEC_LATENCY_TIMER, temp_byte); in configure_new_function()
2379 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_LATENCY_TIMER, temp_byte); in configure_new_function()
2384 temp_byte = 0x08; in configure_new_function()
2385 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_CACHE_LINE_SIZE, temp_byte); in configure_new_function()
2464 temp_byte = io_node->base >> 8; in configure_new_function()
2465 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_IO_BASE, temp_byte); in configure_new_function()
2467 temp_byte = (io_node->base + io_node->length - 1) >> 8; in configure_new_function()
2468 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_IO_LIMIT, temp_byte); in configure_new_function()
2557 temp_byte = temp_resources.bus_head->base - 1; in configure_new_function()
2560 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_SUBORDINATE_BUS, temp_byte); in configure_new_function()
2580 temp_byte = (hold_IO_node->base) >> 8; in configure_new_function()
2581 rc = pci_bus_write_config_word(pci_bus, devfn, PCI_IO_BASE, temp_byte); in configure_new_function()
2599 temp_byte = (io_node->base - 1) >> 8; in configure_new_function()
2600 rc = pci_bus_write_config_byte(pci_bus, devfn, PCI_IO_LIMIT, temp_byte); in configure_new_function()
2742 } else if ((temp_byte & 0x7F) == PCI_HEADER_TYPE_NORMAL) { in configure_new_function()
2835 PCI_INTERRUPT_PIN, &temp_byte); in configure_new_function()
2840 if (temp_byte && resources->irqs && 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()
2861 rc = cpqhp_set_irq(func->bus, func->device, temp_byte, IRQ); 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()
2872 temp_byte = 0x40; in configure_new_function()
2874 PCI_LATENCY_TIMER, temp_byte); in configure_new_function()
2877 temp_byte = 0x08; in configure_new_function()
2879 PCI_CACHE_LINE_SIZE, temp_byte); in configure_new_function()