Lines Matching refs:phy_addr

437 int __cvmx_bootmem_phy_free(uint64_t phy_addr, uint64_t size, uint32_t flags)  in __cvmx_bootmem_phy_free()  argument
445 (unsigned long long)phy_addr, (unsigned long long)size); in __cvmx_bootmem_phy_free()
463 if (cur_addr == 0 || phy_addr < cur_addr) { in __cvmx_bootmem_phy_free()
465 if (cur_addr && phy_addr + size > cur_addr) in __cvmx_bootmem_phy_free()
467 else if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
469 cvmx_bootmem_phy_set_next(phy_addr, in __cvmx_bootmem_phy_free()
472 cvmx_bootmem_phy_set_size(phy_addr, in __cvmx_bootmem_phy_free()
475 cvmx_bootmem_desc->head_addr = phy_addr; in __cvmx_bootmem_phy_free()
479 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); in __cvmx_bootmem_phy_free()
480 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
481 cvmx_bootmem_desc->head_addr = phy_addr; in __cvmx_bootmem_phy_free()
488 while (cur_addr && phy_addr > cur_addr) { in __cvmx_bootmem_phy_free()
500 phy_addr) { in __cvmx_bootmem_phy_free()
505 cvmx_bootmem_phy_set_next(prev_addr, phy_addr); in __cvmx_bootmem_phy_free()
506 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
507 cvmx_bootmem_phy_set_next(phy_addr, 0); in __cvmx_bootmem_phy_free()
517 phy_addr) { in __cvmx_bootmem_phy_free()
522 if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
532 } else if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
534 cvmx_bootmem_phy_set_size(phy_addr, in __cvmx_bootmem_phy_free()
537 cvmx_bootmem_phy_set_next(phy_addr, in __cvmx_bootmem_phy_free()
540 cvmx_bootmem_phy_set_next(prev_addr, phy_addr); in __cvmx_bootmem_phy_free()
546 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
547 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); in __cvmx_bootmem_phy_free()
548 cvmx_bootmem_phy_set_next(prev_addr, phy_addr); in __cvmx_bootmem_phy_free()