Lines Matching refs:cur_addr
432 uint64_t cur_addr; in __cvmx_bootmem_phy_free() local
455 cur_addr = cvmx_bootmem_desc->head_addr; in __cvmx_bootmem_phy_free()
456 if (cur_addr == 0 || phy_addr < cur_addr) { in __cvmx_bootmem_phy_free()
458 if (cur_addr && phy_addr + size > cur_addr) in __cvmx_bootmem_phy_free()
460 else if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
464 (cur_addr)); in __cvmx_bootmem_phy_free()
467 (cur_addr) + size); in __cvmx_bootmem_phy_free()
472 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); in __cvmx_bootmem_phy_free()
481 while (cur_addr && phy_addr > cur_addr) { in __cvmx_bootmem_phy_free()
482 prev_addr = cur_addr; in __cvmx_bootmem_phy_free()
483 cur_addr = cvmx_bootmem_phy_get_next(cur_addr); in __cvmx_bootmem_phy_free()
486 if (!cur_addr) { in __cvmx_bootmem_phy_free()
515 if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
518 cvmx_bootmem_phy_get_size(cur_addr) + in __cvmx_bootmem_phy_free()
521 cvmx_bootmem_phy_get_next(cur_addr)); in __cvmx_bootmem_phy_free()
525 } else if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
529 (cur_addr) + size); in __cvmx_bootmem_phy_free()
532 (cur_addr)); in __cvmx_bootmem_phy_free()
540 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); in __cvmx_bootmem_phy_free()