• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/pci/hotplug/

Lines Matching defs:function

91 		func->pci_dev = pci_get_bus_and_slot(func->bus,PCI_DEVFN(func->device, func->function));
97 num = pci_scan_slot(ctrl->pci_dev->bus, PCI_DEVFN(func->device, func->function));
101 func->pci_dev = pci_get_bus_and_slot(func->bus, PCI_DEVFN(func->device, func->function));
124 dbg("%s: bus/dev/func = %x/%x/%x\n", __func__, func->bus, func->device, func->function);
309 int function;
346 new_slot->function = 0;
362 /* If multi-function device, set max_functions to 8 */
368 function = 0;
376 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_SECONDARY_BUS, &secondary_bus);
395 (new_slot->function != (u8) function))
407 new_slot->function = (u8) function;
412 new_slot->pci_dev = pci_get_bus_and_slot(new_slot->bus, (new_slot->device << 3) | new_slot->function);
415 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), cloop << 2, (u32 *) & (new_slot-> config_space [cloop]));
422 function++;
426 /* this loop skips to the next present function
429 while ((function < max_functions) && (!stop_it)) {
430 rc = pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_VENDOR_ID, &ID);
432 function++;
435 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), 0x0B, &class_code);
439 rc = pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(device, function), PCI_HEADER_TYPE, &header_type);
446 } while (function < max_functions);
470 int function = 0;
485 if (header_type & 0x80) /* Multi-function device */
490 while (function < max_functions) {
493 pci_bus_read_config_byte (ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_SECONDARY_BUS, &secondary_bus);
510 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), cloop << 2, (u32 *) & (new_slot-> config_space [cloop]));
512 function++;
516 /* this loop skips to the next present function
519 while ((function < max_functions) && (!stop_it)) {
520 pci_bus_read_config_dword(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_VENDOR_ID, &ID);
523 function++;
525 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), 0x0B, &class_code);
526 pci_bus_read_config_byte(ctrl->pci_bus, PCI_DEVFN(new_slot->device, function), PCI_HEADER_TYPE, &header_type);
564 devfn = PCI_DEVFN(func->device, func->function);
674 * this function is for hot plug ADD
705 devfn = PCI_DEVFN(func->device, func->function);
958 devfn = PCI_DEVFN(func->device, func->function);
994 dbg("bus = %x, device = %x, function = %x\n", func->bus, func->device, func->function);
1013 * this function checks to see if a board is the same as the
1040 devfn = PCI_DEVFN(func->device, func->function);
1143 /* Get the next function */
1157 * this function is for hot plug ADD!
1267 while (func && (func->function != (dev_func & 0x07))) {