Lines Matching defs:function

33  * We also assign the same irq numbers for multi function devices.
61 * Input: function to be added
63 * TO DO: The error case with Multifunction device or multi function bridge,
73 u8 function;
91 /* For every function on the card */
92 for (function = 0x00; function < 0x08; function++) {
93 unsigned int devfn = PCI_DEVFN(device, function);
96 cur_func->function = function;
98 debug("inside the loop, cur_func->busno = %x, cur_func->device = %x, cur_func->function = %x\n",
99 cur_func->busno, cur_func->device, cur_func->function);
112 * |_=> 0 = single function device, 1 = multi-function device
143 function = 0x8;
183 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */
211 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */
251 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */
256 debug("cur_func->busno = %x, device = %x, function = %x\n",
257 cur_func->busno, device, function);
284 func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */
292 function = 0x8;
325 * This function configures the pci BARs of a single device.
352 devfn = PCI_DEVFN(func->device, func->function);
394 io[count]->devfunc = PCI_DEVFN(func->device, func->function);
400 err("cannot allocate requested io for bus %x device %x function %x len %x\n",
401 func->busno, func->device, func->function, len[count]);
431 func->function);
495 func->function);
579 devfn = PCI_DEVFN(func->function, func->device);
660 func->function);
691 func->function);
746 func->function);
815 io->devfunc = PCI_DEVFN(func->device, func->function);
836 mem->devfunc = PCI_DEVFN(func->device, func->function);
857 pfmem->devfunc = PCI_DEVFN(func->device, func->function);
1041 * This function adds up the amount of resources needed behind the PPB bridge
1042 * and passes it to the configure_bridge function
1043 * Input: bridge function
1051 u8 device, function;
1077 for (function = 0; function < 8; function++) {
1078 devfn = PCI_DEVFN(device, function);
1128 debug("count %d device %x function %x wants %x resources\n", count, device, function, bar[count]);
1182 static int unconfigure_boot_device(u8 busno, u8 device, u8 function)
1213 devfn = PCI_DEVFN(device, function);
1225 debug("busno, device, function %x %x %x\n", busno, device, function);
1303 static int unconfigure_boot_bridge(u8 busno, u8 device, u8 function)
1320 devfn = PCI_DEVFN(device, function);
1422 u8 function;
1433 /* For every function on the card */
1434 for (function = 0x0; function < 0x08; function++) {
1435 devfn = PCI_DEVFN(device, function);
1448 * |_=> 0 = single function device, 1 = multi-function device
1457 err("The device %x function %x is VGA compatible and is not supported for hot removing. Please choose another device.\n", device, function);
1460 err("The device %x function %x is not supported for hot removing. Please choose another device.\n", device, function);
1466 rc = unconfigure_boot_device(busno, device, function);
1469 device, function, busno);
1472 function = 0x8;
1475 rc = unconfigure_boot_device(busno, device, function);
1478 device, function, busno);
1485 err("This device %x function %x is not PCI-to-PCI bridge, and is not supported for hot-removing. Please try another card.\n", device, function);
1488 rc = unconfigure_boot_bridge(busno, device, function);
1494 function = 0x8;
1499 err("This device %x function %x is not PCI-to-PCI bridge, and is not supported for hot-removing. Please try another card.\n", device, function);
1502 rc = unconfigure_boot_bridge(busno, device, function);