Lines Matching refs:current_res

300 	struct pci_resource *current_res;  in sort_by_size()  local
317 current_res = *head; in sort_by_size()
319 current_res->next = (*head)->next; in sort_by_size()
320 (*head)->next = current_res; in sort_by_size()
323 current_res = *head; in sort_by_size()
325 while (current_res->next && current_res->next->next) { in sort_by_size()
326 if (current_res->next->length > current_res->next->next->length) { in sort_by_size()
328 next_res = current_res->next; in sort_by_size()
329 current_res->next = current_res->next->next; in sort_by_size()
330 current_res = current_res->next; in sort_by_size()
331 next_res->next = current_res->next; in sort_by_size()
332 current_res->next = next_res; in sort_by_size()
334 current_res = current_res->next; in sort_by_size()
348 struct pci_resource *current_res; in sort_by_max_size() local
365 current_res = *head; in sort_by_max_size()
367 current_res->next = (*head)->next; in sort_by_max_size()
368 (*head)->next = current_res; in sort_by_max_size()
371 current_res = *head; in sort_by_max_size()
373 while (current_res->next && current_res->next->next) { in sort_by_max_size()
374 if (current_res->next->length < current_res->next->next->length) { in sort_by_max_size()
376 next_res = current_res->next; in sort_by_max_size()
377 current_res->next = current_res->next->next; in sort_by_max_size()
378 current_res = current_res->next; in sort_by_max_size()
379 next_res->next = current_res->next; in sort_by_max_size()
380 current_res->next = next_res; in sort_by_max_size()
382 current_res = current_res->next; in sort_by_max_size()