Lines Matching refs:newfunc
74 struct pci_func *newfunc; /* for multi devices */ in ibmphp_configure_card() local
155 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
156 if (!newfunc) in ibmphp_configure_card()
159 newfunc->busno = cur_func->busno; in ibmphp_configure_card()
160 newfunc->device = device; in ibmphp_configure_card()
161 cur_func->next = newfunc; in ibmphp_configure_card()
162 cur_func = newfunc; in ibmphp_configure_card()
164 newfunc->irq[j] = cur_func->irq[j]; in ibmphp_configure_card()
192 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
193 if (!newfunc) in ibmphp_configure_card()
196 newfunc->busno = sec_number; in ibmphp_configure_card()
197 newfunc->device = (u8) i; in ibmphp_configure_card()
199 newfunc->irq[j] = cur_func->irq[j]; in ibmphp_configure_card()
203 prev_func->next = newfunc; in ibmphp_configure_card()
205 cur_func->next = newfunc; in ibmphp_configure_card()
207 rc = ibmphp_configure_card(newfunc, slotno); in ibmphp_configure_card()
219 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
220 if (!newfunc) in ibmphp_configure_card()
223 newfunc->busno = cur_func->busno; in ibmphp_configure_card()
224 newfunc->device = device; in ibmphp_configure_card()
226 newfunc->irq[j] = cur_func->irq[j]; in ibmphp_configure_card()
228 prev_func->next = newfunc; in ibmphp_configure_card()
229 cur_func = newfunc; in ibmphp_configure_card()
264 newfunc = kzalloc(sizeof(*newfunc), GFP_KERNEL); in ibmphp_configure_card()
265 if (!newfunc) in ibmphp_configure_card()
268 newfunc->busno = sec_number; in ibmphp_configure_card()
269 newfunc->device = (u8) i; in ibmphp_configure_card()
271 newfunc->irq[j] = cur_func->irq[j]; in ibmphp_configure_card()
275 prev_func->next = newfunc; in ibmphp_configure_card()
277 cur_func->next = newfunc; in ibmphp_configure_card()
279 rc = ibmphp_configure_card(newfunc, slotno); in ibmphp_configure_card()