Lines Matching refs:req_size
590 s64 cvmx_bootmem_phy_alloc(u64 req_size, u64 address_min, in cvmx_bootmem_phy_alloc() argument
604 __func__, CAST_ULL(req_size), CAST_ULL(address_min), in cvmx_bootmem_phy_alloc()
619 if (!req_size) in cvmx_bootmem_phy_alloc()
623 req_size = (req_size + (CVMX_BOOTMEM_ALIGNMENT_SIZE - 1)) & in cvmx_bootmem_phy_alloc()
650 address_max = address_min + req_size; in cvmx_bootmem_phy_alloc()
659 if (req_size > address_max - address_min) in cvmx_bootmem_phy_alloc()
689 if ((free_start + req_size) > free_end) in cvmx_bootmem_phy_alloc()
695 if ((free_end - address_min) < req_size) in cvmx_bootmem_phy_alloc()
697 if ((address_max - free_start) < req_size) in cvmx_bootmem_phy_alloc()
724 desired_min_addr = usable_max - req_size; in cvmx_bootmem_phy_alloc()
754 if ((desired_min_addr + req_size) < (ent_addr + ent_size)) { in cvmx_bootmem_phy_alloc()
755 new_ent_addr = ent_addr + req_size; in cvmx_bootmem_phy_alloc()
756 new_ent_size = ent_size - req_size; in cvmx_bootmem_phy_alloc()
773 if (desired_min_addr != ent_addr || ent_size != req_size) in cvmx_bootmem_phy_alloc()
776 CAST_ULL(ent_size), CAST_ULL(req_size)); in cvmx_bootmem_phy_alloc()
791 CAST_ULL(req_size), in cvmx_bootmem_phy_alloc()