Lines Matching refs:slot

161 static void pci_cfgrw(int in, int bus, int slot, int func, int coff,
207 * <bus>:<slot>:<func>,<emul>[,<config>]
208 * <slot>[:<func>],<emul>[,<config>]
210 * slot is 0..31
223 EPRINTLN("Invalid PCI slot info field \"%s\"", aopt);
258 * pci.<bus>.<slot>.<func>
260 * Where "bus", "slot", and "func" are all decimal values without
293 /* <bus>:<slot>:<func> */
296 /* <slot>:<func> */
299 /* <slot> */
314 EPRINTLN("pci slot %d:%d:%d: unknown device \"%s\"", bnum, snum,
323 EPRINTLN("pci slot %d:%d:%d already occupied!", bnum, snum,
1119 pci_emul_init(struct vmctx *ctx, struct pci_devemu *pde, int bus, int slot,
1129 pdi->pi_slot = slot;
1137 slot, func);
1449 int bus, slot, func, coff, in;
1453 slot = (addr >> 15) & 0x1f;
1458 pci_cfgrw(in, bus, slot, func, coff, bytes, (uint32_t *)val);
1506 int bus, slot, func;
1539 for (slot = 0; slot < MAXSLOTS; slot++) {
1540 si = &bi->slotinfo[slot];
1544 "pci.%d.%d.%d", bus, slot, func);
1552 EPRINTLN("pci slot %d:%d:%d: missing "
1553 "\"device\" value", bus, slot, func);
1558 EPRINTLN("pci slot %d:%d:%d: unknown "
1559 "device \"%s\"", bus, slot, func,
1564 EPRINTLN("pci slot %d:%d:%d: legacy "
1566 bus, slot, func, emul,
1571 error = pci_emul_init(ctx, pde, bus, slot,
1617 for (slot = 0; slot < MAXSLOTS; slot++) {
1618 si = &bi->slotinfo[slot];
1687 pci_apic_prt_entry(int bus __unused, int slot, int pin, struct pci_irq *irq,
1693 dsdt_line(" 0x%X,", slot << 16 | 0xffff);
1701 pci_pirq_prt_entry(int bus __unused, int slot, int pin, struct pci_irq *irq,
1711 dsdt_line(" 0x%X,", slot << 16 | 0xffff);
1730 int func, slot;
1862 for (slot = 0; slot < MAXSLOTS; slot++) {
1863 si = &bi->slotinfo[slot];
1980 * Just allocate a pin from our slot. The pin will be
2067 int count, slot, pin;
2072 for (slot = 0; slot < MAXSLOTS; slot++) {
2073 slotinfo = &pci_businfo[bus]->slotinfo[slot];
2089 int slot, pin;
2094 for (slot = 0; slot < MAXSLOTS; slot++) {
2095 si = &bi->slotinfo[slot];
2099 cb(bus, slot, pin + 1, &ii->ii_irq, arg);
2105 * Return 1 if the emulated device in 'slot' is a multi-function device.
2109 pci_emul_is_mfdev(int bus, int slot)
2117 si = &bi->slotinfo[slot];
2129 * whether or not is a multi-function being emulated in the pci 'slot'.
2132 pci_emul_hdrtype_fixup(int bus, int slot, int off, int bytes, uint32_t *rv)
2137 mfdev = pci_emul_is_mfdev(bus, slot);
2241 pci_cfgrw(int in, int bus, int slot, int func, int coff, int bytes,
2252 si = &bi->slotinfo[slot];
2258 * Just return if there is no device at this slot:func or if the
2303 pci_emul_hdrtype_fixup(bus, slot, coff, bytes, valp);
2732 unsigned bus = 0, slot = 0, func = 0;
2738 slot = cursor ? cursor->pi_slot : 0;
2745 if (slot >= MAXSLOTS)
2746 slot = 0;
2748 for (; slot < MAXSLOTS; slot++) {
2749 si = &bi->slotinfo[slot];