• 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 refs:cur_func

50 static void assign_alt_irq (struct pci_func * cur_func, u8 class_code)
54 if (cur_func->irq[j] == 0xff) {
57 cur_func->irq[j] = SCSI_IRQ;
60 cur_func->irq[j] = LAN_IRQ;
63 cur_func->irq[j] = OTHER_IRQ;
89 struct pci_func *cur_func, *prev_func;
98 cur_func = func;
108 ibmphp_pci_bus->number = cur_func->busno;
110 cur_func->function = function;
112 debug ("inside the loop, cur_func->busno = %x, cur_func->device = %x, cur_func->funcion = %x\n",
113 cur_func->busno, cur_func->device, cur_func->function);
137 "Please choose another device.\n", cur_func->device);
141 "Please choose another device.\n", cur_func->device);
147 assign_alt_irq (cur_func, class_code);
148 if ((rc = configure_device (cur_func)) < 0) {
151 cur_func->device, cur_func->busno);
155 cur_func->next = NULL;
159 assign_alt_irq (cur_func, class_code);
160 if ((rc = configure_device (cur_func)) < 0) {
163 cur_func->device, cur_func->busno);
172 newfunc->busno = cur_func->busno;
174 cur_func->next = newfunc;
175 cur_func = newfunc;
177 newfunc->irq[j] = cur_func->irq[j];
183 "Please insert another card.\n", cur_func->device);
186 assign_alt_irq (cur_func, class_code);
187 rc = configure_bridge (&cur_func, slotno);
190 err ("Bus %x, devfunc %x\n", cur_func->busno, cur_func->device);
213 newfunc->irq[j] = cur_func->irq[j];
216 for (prev_func = cur_func; prev_func->next; prev_func = prev_func->next) ;
219 cur_func->next = newfunc;
238 newfunc->busno = cur_func->busno;
241 newfunc->irq[j] = cur_func->irq[j];
242 for (prev_func = cur_func; prev_func->next; prev_func = prev_func->next) ;
244 cur_func = newfunc;
251 "Please insert another card.\n", cur_func->device);
255 assign_alt_irq (cur_func, class_code);
257 debug ("cur_func->busno b4 configure_bridge is %x\n", cur_func->busno);
258 rc = configure_bridge (&cur_func, slotno);
261 err ("Bus %x, devfunc %x\n", cur_func->busno, cur_func->device);
271 debug ("cur_func->busno = %x, device = %x, function = %x\n",
272 cur_func->busno, device, function);
287 newfunc->irq[j] = cur_func->irq[j];
290 for (prev_func = cur_func; prev_func->next; prev_func = prev_func->next) ;
293 cur_func->next = newfunc;
327 if (cur_func->io[i]) {
328 ibmphp_remove_resource (cur_func->io[i]);
329 cur_func->io[i] = NULL;
330 } else if (cur_func->pfmem[i]) {
331 ibmphp_remove_resource (cur_func->pfmem[i]);
332 cur_func->pfmem[i] = NULL;
333 } else if (cur_func->mem[i]) {
334 ibmphp_remove_resource (cur_func->mem[i]);
335 cur_func->mem[i] = NULL;
378 pcibios_read_config_byte(cur_func->busno, cur_func->device,
381 pcibios_write_config_dword(cur_func->busno, cur_func->device,
384 pcibios_write_config_dword(cur_func->busno, cur_func->device,
1573 struct pci_func *cur_func = NULL;
1588 cur_func = sl->func;
1589 while (cur_func) {
1591 if (cur_func->bus) {
1599 if (cur_func->io[i]) {
1602 ibmphp_remove_resource (cur_func->io[i]);
1603 cur_func->io[i] = NULL;
1605 if (cur_func->mem[i]) {
1608 ibmphp_remove_resource (cur_func->mem[i]);
1609 cur_func->mem[i] = NULL;
1611 if (cur_func->pfmem[i]) {
1614 ibmphp_remove_resource (cur_func->pfmem[i]);
1615 cur_func->pfmem[i] = NULL;
1619 temp_func = cur_func->next;
1620 kfree (cur_func);
1621 cur_func = temp_func;