Lines Matching refs:align
509 span_alloc_downsize(vmem_t *vmp, size_t *sizep, size_t align, int vmflag)
525 * power-of-2, any large page >= size && >= align will
528 if (*sizep <= page_size && align <= page_size) {
543 contig_mem_span_xalloc(vmem_t *vmp, size_t *sizep, size_t align, int vmflag)
545 return (span_alloc_downsize(vmp, sizep, align, vmflag | VM_NORELOC));
549 contig_mem_reloc_span_xalloc(vmem_t *vmp, size_t *sizep, size_t align,
553 return (span_alloc_downsize(vmp, sizep, align, vmflag));
606 contig_vmem_xalloc_aligned_wrapper(vmem_t *vmp, size_t *sizep, size_t align,
609 ASSERT((align & (align - 1)) == 0);
610 return (vmem_xalloc(vmp, *sizep, align, 0, 0, NULL, NULL, vmflag));
647 contig_mem_alloc_align(size_t size, size_t align)
652 ASSERT(align <= contig_mem_import_size_max);
653 ASSERT((align & (align - 1)) == 0);
655 if (align < CONTIG_MEM_ARENA_QUANTUM)
656 align = CONTIG_MEM_ARENA_QUANTUM;
668 buf = vmem_xalloc(contig_mem_arena, size, align, 0, 0,
673 return (vmem_xalloc(static_alloc_arena, size, align, 0, 0,
678 buf = vmem_xalloc(contig_mem_reloc_arena, size, align, 0, 0,