Lines Matching refs:phy_addr

398 int __cvmx_bootmem_phy_free(uint64_t phy_addr, uint64_t size, uint32_t flags)  in __cvmx_bootmem_phy_free()  argument
406 (unsigned long long)phy_addr, (unsigned long long)size); in __cvmx_bootmem_phy_free()
424 if (cur_addr == 0 || phy_addr < cur_addr) { in __cvmx_bootmem_phy_free()
426 if (cur_addr && phy_addr + size > cur_addr) in __cvmx_bootmem_phy_free()
428 else if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
430 cvmx_bootmem_phy_set_next(phy_addr, in __cvmx_bootmem_phy_free()
433 cvmx_bootmem_phy_set_size(phy_addr, in __cvmx_bootmem_phy_free()
436 cvmx_bootmem_desc->head_addr = phy_addr; in __cvmx_bootmem_phy_free()
440 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); in __cvmx_bootmem_phy_free()
441 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
442 cvmx_bootmem_desc->head_addr = phy_addr; in __cvmx_bootmem_phy_free()
449 while (cur_addr && phy_addr > cur_addr) { in __cvmx_bootmem_phy_free()
461 phy_addr) { in __cvmx_bootmem_phy_free()
466 cvmx_bootmem_phy_set_next(prev_addr, phy_addr); in __cvmx_bootmem_phy_free()
467 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
468 cvmx_bootmem_phy_set_next(phy_addr, 0); in __cvmx_bootmem_phy_free()
478 phy_addr) { in __cvmx_bootmem_phy_free()
483 if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
493 } else if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
495 cvmx_bootmem_phy_set_size(phy_addr, in __cvmx_bootmem_phy_free()
498 cvmx_bootmem_phy_set_next(phy_addr, in __cvmx_bootmem_phy_free()
501 cvmx_bootmem_phy_set_next(prev_addr, phy_addr); in __cvmx_bootmem_phy_free()
507 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
508 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); in __cvmx_bootmem_phy_free()
509 cvmx_bootmem_phy_set_next(prev_addr, phy_addr); in __cvmx_bootmem_phy_free()