Lines Matching refs:req_size
400 ** will reject inconsistent req_size/range requests, so we don't repeat those checks here.
418 ** will reject inconsistent req_size/range requests, so we don't repeat those checks here.
587 int64_t cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min, uint64_t address_max, uint64_t alignment, uint32_t flags)
598 cvmx_dprintf("cvmx_bootmem_phy_alloc: req_size: 0x%llx, min_addr: 0x%llx, max_addr: 0x%llx, align: 0x%llx\n",
599 (ULL)req_size, (ULL)address_min, (ULL)address_max, (ULL)alignment);
610 /* 0 is not a valid req_size for this allocator */
611 if (!req_size)
614 /* Round req_size up to mult of minimum alignment bytes */
615 req_size = (req_size + (CVMX_BOOTMEM_ALIGNMENT_SIZE - 1)) & ~(CVMX_BOOTMEM_ALIGNMENT_SIZE - 1);
619 ** req_size the same as the alignment req_size */
634 address_max = address_min + req_size;
640 if (req_size > address_max - address_min)
670 && req_size <= usable_max - usable_base)
678 desired_min_addr = usable_max - req_size;
686 if (req_size < ent_size)
689 new_ent_addr = ent_addr + req_size;
691 cvmx_bootmem_phy_set_size(new_ent_addr, ent_size - req_size);