Lines Matching refs:range_cur
370 struct range_node *range_cur = NULL; in add_bus_range() local
377 range_cur = bus_cur->rangeMem; in add_bus_range()
381 range_cur = bus_cur->rangePFMem; in add_bus_range()
385 range_cur = bus_cur->rangeIO; in add_bus_range()
391 while (range_cur) { in add_bus_range()
392 if (range->start < range_cur->start) in add_bus_range()
394 range_prev = range_cur; in add_bus_range()
395 range_cur = range_cur->next; in add_bus_range()
411 range->next = range_cur; in add_bus_range()
414 } else if (!range_cur) { in add_bus_range()
423 range->next = range_cur; in add_bus_range()
424 range->rangeno = range_cur->rangeno; in add_bus_range()
429 ++range_cur->rangeno; in add_bus_range()
430 range_cur = range_cur->next; in add_bus_range()
580 struct range_node *range_cur = NULL; in ibmphp_add_resource() local
601 range_cur = bus_cur->rangeIO; in ibmphp_add_resource()
605 range_cur = bus_cur->rangeMem; in ibmphp_add_resource()
609 range_cur = bus_cur->rangePFMem; in ibmphp_add_resource()
616 while (range_cur) { in ibmphp_add_resource()
617 if ((res->start >= range_cur->start) && (res->end <= range_cur->end)) { in ibmphp_add_resource()
618 res->rangeno = range_cur->rangeno; in ibmphp_add_resource()
621 range_cur = range_cur->next; in ibmphp_add_resource()
629 if (!range_cur) { in ibmphp_add_resource()
1425 struct range_node *range_cur; in remove_ranges() local
1431 range_cur = bus_cur->rangeIO; in remove_ranges()
1433 if (ibmphp_find_resource(bus_prev, range_cur->start, &res, IO) < 0) in remove_ranges()
1437 range_tmp = range_cur; in remove_ranges()
1438 range_cur = range_cur->next; in remove_ranges()
1445 range_cur = bus_cur->rangeMem; in remove_ranges()
1447 if (ibmphp_find_resource(bus_prev, range_cur->start, &res, MEM) < 0) in remove_ranges()
1451 range_tmp = range_cur; in remove_ranges()
1452 range_cur = range_cur->next; in remove_ranges()
1459 range_cur = bus_cur->rangePFMem; in remove_ranges()
1461 if (ibmphp_find_resource(bus_prev, range_cur->start, &res, PFMEM) < 0) in remove_ranges()
1465 range_tmp = range_cur; in remove_ranges()
1466 range_cur = range_cur->next; in remove_ranges()
1554 struct range_node *range_cur; in ibmphp_free_resources() local
1563 range_cur = bus_cur->rangeIO; in ibmphp_free_resources()
1565 if (!range_cur) in ibmphp_free_resources()
1567 range_tmp = range_cur; in ibmphp_free_resources()
1568 range_cur = range_cur->next; in ibmphp_free_resources()
1574 range_cur = bus_cur->rangeMem; in ibmphp_free_resources()
1576 if (!range_cur) in ibmphp_free_resources()
1578 range_tmp = range_cur; in ibmphp_free_resources()
1579 range_cur = range_cur->next; in ibmphp_free_resources()
1585 range_cur = bus_cur->rangePFMem; in ibmphp_free_resources()
1587 if (!range_cur) in ibmphp_free_resources()
1589 range_tmp = range_cur; in ibmphp_free_resources()
1590 range_cur = range_cur->next; in ibmphp_free_resources()
1867 struct range_node *range_cur = NULL; in range_exists_already() local
1870 range_cur = bus_cur->rangeIO; in range_exists_already()
1873 range_cur = bus_cur->rangeMem; in range_exists_already()
1876 range_cur = bus_cur->rangePFMem; in range_exists_already()
1883 while (range_cur) { in range_exists_already()
1884 if ((range_cur->start == range->start) && (range_cur->end == range->end)) in range_exists_already()
1886 range_cur = range_cur->next; in range_exists_already()