Home
last modified time | relevance | path

Searched refs:SHPC_IDX_TO_PCI (Results 1 – 1 of 1) sorted by relevance

/openbmc/qemu/hw/pci/
H A Dshpc.c122 #define SHPC_IDX_TO_PCI(slot) ((slot) + 1) macro
195 pci_set_byte(shpc->config + SHPC_FIRST_DEV, SHPC_IDX_TO_PCI(0)); in shpc_reset()
216 if (shpc->sec_bus->devices[PCI_DEVFN(SHPC_IDX_TO_PCI(i), 0)]) { in shpc_reset()
247 int pci_slot = SHPC_IDX_TO_PCI(slot); in shpc_free_devices_in_slot()
506 if (pci_slot < SHPC_IDX_TO_PCI(0) || *slot >= shpc->nslots) { in shpc_device_get_slot()
509 pci_slot, SHPC_IDX_TO_PCI(0), in shpc_device_get_slot()
510 SHPC_IDX_TO_PCI(shpc->nslots) - 1); in shpc_device_get_slot()
617 SHPC_IDX_TO_PCI(nslots) > PCI_SLOT_MAX) { in shpc_init()