Lines Matching defs:slot

157 							 int slot, int func)
165 && slot == PCI_SLOT(psdev->dev->devfn)
175 int slot, int func)
182 psdev = pcistub_device_find_locked(domain, bus, slot, func);
213 int slot, int func)
221 psdev = pcistub_device_find_locked(domain, bus, slot, func);
323 /* Match the specified device by domain, bus, slot, func and also if
1006 int *slot, int *func)
1010 switch (sscanf(buf, " %x:%x:%x.%x %n", domain, bus, slot, func,
1014 sscanf(buf, " %x:%x:%x.* %n", domain, bus, slot, &parsed);
1017 *slot = *func = -1;
1026 switch (sscanf(buf, " %x:%x.%x %n", bus, slot, func, &parsed)) {
1029 sscanf(buf, " %x:%x.* %n", bus, slot, &parsed);
1032 *slot = *func = -1;
1043 *slot, int *func, int *reg, int *size, int *mask)
1047 sscanf(buf, " %x:%x:%x.%x-%x:%x:%x %n", domain, bus, slot, func,
1054 sscanf(buf, " %x:%x.%x-%x:%x:%x %n", bus, slot, func, reg, size,
1062 static int pcistub_device_id_add(int domain, int bus, int slot, int func)
1065 int rc = 0, devfn = PCI_DEVFN(slot, func);
1067 if (slot < 0) {
1068 for (slot = 0; !rc && slot < 32; ++slot)
1069 rc = pcistub_device_id_add(domain, bus, slot, func);
1075 rc = pcistub_device_id_add(domain, bus, slot, func);
1086 || PCI_SLOT(devfn) != slot
1095 domain, bus, slot, func);
1102 static int pcistub_device_id_remove(int domain, int bus, int slot, int func)
1112 && (slot < 0 || PCI_SLOT(pci_dev_id->devfn) == slot)
1115 * slot could be in the list more than once
1123 domain, bus, slot, func);
1131 static int pcistub_reg_add(int domain, int bus, int slot, int func,
1143 psdev = pcistub_device_find(domain, bus, slot, func);
1176 int domain, bus, slot, func;
1179 err = str_to_slot(buf, &domain, &bus, &slot, &func);
1183 err = pcistub_device_id_add(domain, bus, slot, func);
1195 int domain, bus, slot, func;
1198 err = str_to_slot(buf, &domain, &bus, &slot, &func);
1202 err = pcistub_device_id_remove(domain, bus, slot, func);
1268 int domain, bus, slot, func;
1271 err = str_to_slot(buf, &domain, &bus, &slot, &func);
1275 psdev = pcistub_device_find(domain, bus, slot, func);
1306 int domain, bus, slot, func, reg, size, mask;
1309 err = str_to_quirk(buf, &domain, &bus, &slot, &func, &reg, &size,
1314 err = pcistub_reg_add(domain, bus, slot, func, reg, size, mask);
1370 int domain, bus, slot, func;
1375 err = str_to_slot(buf, &domain, &bus, &slot, &func);
1379 psdev = pcistub_device_find(domain, bus, slot, func);
1434 int domain, bus, slot, func;
1439 err = str_to_slot(buf, &domain, &bus, &slot, &func);
1443 psdev = pcistub_device_find(domain, bus, slot, func);
1512 int domain, bus, slot, func;
1521 &domain, &bus, &slot, &func, &parsed);
1527 &domain, &bus, &slot, &parsed);
1530 slot = func = -1;
1541 &bus, &slot, &func, &parsed);
1547 &bus, &slot, &parsed);
1550 slot = func = -1;
1561 err = pcistub_device_id_add(domain, bus, slot, func);