Lines Matching defs:func
157 int slot, int func)
166 && func == PCI_FUNC(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,
1013 *func = -1;
1017 *slot = *func = -1;
1026 switch (sscanf(buf, " %x:%x.%x %n", bus, slot, func, &parsed)) {
1028 *func = -1;
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);
1069 rc = pcistub_device_id_add(domain, bus, slot, func);
1073 if (func < 0) {
1074 for (func = 0; !rc && func < 8; ++func)
1075 rc = pcistub_device_id_add(domain, bus, slot, func);
1087 || PCI_FUNC(devfn) != func)
1095 domain, bus, slot, func);
1102 static int pcistub_device_id_remove(int domain, int bus, int slot, int func)
1113 && (func < 0 || PCI_FUNC(pci_dev_id->devfn) == func)) {
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, ®, &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);
1524 func = -1;
1530 slot = func = -1;
1541 &bus, &slot, &func, &parsed);
1544 func = -1;
1550 slot = func = -1;
1561 err = pcistub_device_id_add(domain, bus, slot, func);