return 0;
}
-static long __lmb_free(phys_addr_t base, phys_size_t size)
+static long _lmb_free(phys_addr_t base, phys_size_t size)
{
struct lmb_region *rgn;
struct alist *lmb_rgn_lst = &lmb.used_mem;
{
long ret;
- ret = __lmb_free(base, size);
+ ret = _lmb_free(base, size);
if (ret < 0)
return ret;
return addr & ~(size - 1);
}
-static phys_addr_t __lmb_alloc_base(phys_size_t size, ulong align,
+static phys_addr_t _lmb_alloc_base(phys_size_t size, ulong align,
phys_addr_t max_addr, enum lmb_flags flags)
{
u8 op;
*/
phys_addr_t lmb_alloc_flags(phys_size_t size, ulong align, uint flags)
{
- return __lmb_alloc_base(size, align, LMB_ALLOC_ANYWHERE,
- flags);
+ return _lmb_alloc_base(size, align, LMB_ALLOC_ANYWHERE,
+ flags);
}
phys_addr_t lmb_alloc_base(phys_size_t size, ulong align, phys_addr_t max_addr)
{
phys_addr_t alloc;
- alloc = __lmb_alloc_base(size, align, max_addr, LMB_NONE);
+ alloc = _lmb_alloc_base(size, align, max_addr, LMB_NONE);
if (alloc == 0)
printf("ERROR: Failed to allocate 0x%lx bytes below 0x%lx.\n",
{
phys_addr_t alloc;
- alloc = __lmb_alloc_base(size, align, max_addr, flags);
+ alloc = _lmb_alloc_base(size, align, max_addr, flags);
if (alloc == 0)
printf("ERROR: Failed to allocate 0x%lx bytes below 0x%lx.\n",
return alloc;
}
-static phys_addr_t __lmb_alloc_addr(phys_addr_t base, phys_size_t size,
+static phys_addr_t _lmb_alloc_addr(phys_addr_t base, phys_size_t size,
enum lmb_flags flags)
{
long rgn;
*/
phys_addr_t lmb_alloc_addr(phys_addr_t base, phys_size_t size)
{
- return __lmb_alloc_addr(base, size, LMB_NONE);
+ return _lmb_alloc_addr(base, size, LMB_NONE);
}
/**
phys_addr_t lmb_alloc_addr_flags(phys_addr_t base, phys_size_t size,
uint flags)
{
- return __lmb_alloc_addr(base, size, flags);
+ return _lmb_alloc_addr(base, size, flags);
}
/* Return number of bytes from a given address that are free */