Lines Matching defs:function

80 							func->function));
86 num = pci_scan_slot(ctrl->pci_dev->bus, PCI_DEVFN(func->device, func->function));
92 func->function));
118 dbg("%s: bus/dev/func = %x/%x/%x\n", __func__, func->bus, func->device, func->function);
309 int function;
347 new_slot->function = 0;
363 /* If multi-function device, set max_functions to 8 */
369 function = 0;
377 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &secondary_bus);
396 (new_slot->function != (u8) function))
408 new_slot->function = (u8) function;
413 devfn = (new_slot->device << 3) | new_slot->function;
418 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(new_slot->config_space[cloop]));
425 function++;
429 /* this loop skips to the next present function
432 while ((function < max_functions) && (!stop_it)) {
433 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_VENDOR_ID, &ID);
435 function++;
438 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), 0x0B, &class_code);
442 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_HEADER_TYPE, &header_type);
449 } while (function < max_functions);
473 int function = 0;
488 if (header_type & 0x80) /* Multi-function device */
493 while (function < max_functions) {
496 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS, &secondary_bus);
513 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *) &(new_slot->config_space[cloop]));
515 function++;
519 /* this loop skips to the next present function
522 while ((function < max_functions) && (!stop_it)) {
523 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID);
526 function++;
528 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code);
529 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &header_type);
567 devfn = PCI_DEVFN(func->device, func->function);
681 * this function is for hot plug ADD
712 devfn = PCI_DEVFN(func->device, func->function);
965 devfn = PCI_DEVFN(func->device, func->function);
1001 dbg("bus = %x, device = %x, function = %x\n", func->bus, func->device, func->function);
1020 * this function checks to see if a board is the same as the
1047 devfn = PCI_DEVFN(func->device, func->function);
1150 /* Get the next function */
1164 * this function is for hot plug ADD!
1274 while (func && (func->function != (dev_func & 0x07))) {