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);
311 int function;
349 new_slot->function = 0;
365 /* If multi-function device, set max_functions to 8 */
371 function = 0;
379 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &secondary_bus);
398 (new_slot->function != (u8) function))
410 new_slot->function = (u8) function;
415 devfn = (new_slot->device << 3) | new_slot->function;
420 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) &(new_slot->config_space[cloop]));
427 function++;
431 /* this loop skips to the next present function
434 while ((function < max_functions) && (!stop_it)) {
435 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_VENDOR_ID, &ID);
437 function++;
440 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), 0x0B, &class_code);
444 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_HEADER_TYPE, &header_type);
451 } while (function < max_functions);
475 int function = 0;
495 while (function < max_functions) {
498 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS, &secondary_bus);
515 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *) &(new_slot->config_space[cloop]));
517 function++;
521 /* this loop skips to the next present function
524 while ((function < max_functions) && (!stop_it)) {
525 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID);
528 function++;
530 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code);
531 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &header_type);
569 devfn = PCI_DEVFN(func->device, func->function);
683 * this function is for hot plug ADD
714 devfn = PCI_DEVFN(func->device, func->function);
967 devfn = PCI_DEVFN(func->device, func->function);
1003 dbg("bus = %x, device = %x, function = %x\n", func->bus, func->device, func->function);
1022 * this function checks to see if a board is the same as the
1049 devfn = PCI_DEVFN(func->device, func->function);
1152 /* Get the next function */
1166 * this function is for hot plug ADD!
1276 while (func && (func->function != (dev_func & 0x07))) {