Lines Matching refs:phy_addr

802 int __cvmx_bootmem_phy_free(u64 phy_addr, u64 size, u32 flags)  in __cvmx_bootmem_phy_free()  argument
809 CAST_ULL(phy_addr), CAST_ULL(size)); in __cvmx_bootmem_phy_free()
815 if (!size || !phy_addr) in __cvmx_bootmem_phy_free()
824 if (cur_addr == 0 || phy_addr < cur_addr) { in __cvmx_bootmem_phy_free()
826 if (cur_addr && phy_addr + size > cur_addr) in __cvmx_bootmem_phy_free()
828 else if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
830 cvmx_bootmem_phy_set_next(phy_addr, in __cvmx_bootmem_phy_free()
832 cvmx_bootmem_phy_set_size(phy_addr, in __cvmx_bootmem_phy_free()
834 CVMX_BOOTMEM_DESC_SET_FIELD(head_addr, phy_addr); in __cvmx_bootmem_phy_free()
839 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); in __cvmx_bootmem_phy_free()
840 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
841 CVMX_BOOTMEM_DESC_SET_FIELD(head_addr, phy_addr); in __cvmx_bootmem_phy_free()
848 while (cur_addr && phy_addr > cur_addr) { in __cvmx_bootmem_phy_free()
858 if (prev_addr + cvmx_bootmem_phy_get_size(prev_addr) == phy_addr) { in __cvmx_bootmem_phy_free()
862 cvmx_bootmem_phy_set_next(prev_addr, phy_addr); in __cvmx_bootmem_phy_free()
863 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
864 cvmx_bootmem_phy_set_next(phy_addr, 0); in __cvmx_bootmem_phy_free()
873 if (prev_addr + cvmx_bootmem_phy_get_size(prev_addr) == phy_addr) { in __cvmx_bootmem_phy_free()
877 if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
887 } else if (phy_addr + size == cur_addr) { in __cvmx_bootmem_phy_free()
889 cvmx_bootmem_phy_set_size(phy_addr, in __cvmx_bootmem_phy_free()
891 cvmx_bootmem_phy_set_next(phy_addr, in __cvmx_bootmem_phy_free()
893 cvmx_bootmem_phy_set_next(prev_addr, phy_addr); in __cvmx_bootmem_phy_free()
899 cvmx_bootmem_phy_set_size(phy_addr, size); in __cvmx_bootmem_phy_free()
900 cvmx_bootmem_phy_set_next(phy_addr, cur_addr); in __cvmx_bootmem_phy_free()
901 cvmx_bootmem_phy_set_next(prev_addr, phy_addr); in __cvmx_bootmem_phy_free()