/titanic_41/usr/src/uts/common/vm/ |
H A D | seg_kmem.c | 826 segkmem_page_create(void *addr, size_t size, int vmflag, void *arg) in segkmem_page_create() argument 838 if (segkmem_reloc == 0 || (vmflag & VM_NORELOC)) in segkmem_page_create() 840 if ((vmflag & VM_NOSLEEP) == 0) in segkmem_page_create() 842 if (vmflag & VM_PANIC) in segkmem_page_create() 844 if (vmflag & VM_PUSHPAGE) in segkmem_page_create() 846 if (vmflag & VM_NORMALPRI) { in segkmem_page_create() 847 ASSERT(vmflag & VM_NOSLEEP); in segkmem_page_create() 860 segkmem_xalloc(vmem_t *vmp, void *inaddr, size_t size, int vmflag, uint_t attr, in segkmem_xalloc() argument 868 if (inaddr == NULL && (addr = vmem_alloc(vmp, size, vmflag)) == NULL) in segkmem_xalloc() 873 if (page_resv(npages, vmflag & VM_KMFLAGS) == 0) { in segkmem_xalloc() [all …]
|
H A D | seg_dev.c | 267 static void *devmap_alloc_pages(vmem_t *vmp, size_t size, int vmflag); 3795 devmap_alloc_pages(vmem_t *vmp, size_t size, int vmflag) in devmap_alloc_pages() argument 3799 vmflag |= (VM_NORELOC | SEGKMEM_SHARELOCKED); in devmap_alloc_pages() 3800 return (segkmem_alloc(vmp, size, vmflag)); in devmap_alloc_pages()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | vmem.c | 670 vmem_populate(vmem_t *vmp, int vmflag) in vmem_populate() argument 698 else if (vmflag & VM_NOSLEEP) in vmem_populate() 700 else if (vmflag & VM_PUSHPAGE) in vmem_populate() 717 p = vmem_alloc(vmem_seg_arena, size, vmflag & VM_KMFLAGS); in vmem_populate() 816 vmem_nextfit_alloc(vmem_t *vmp, size_t size, int vmflag) in vmem_nextfit_alloc() argument 825 if (vmp->vm_nsegfree < VMEM_MINFREE && !vmem_populate(vmp, vmflag)) { in vmem_nextfit_alloc() 881 (vmflag & VM_NOSLEEP)) { in vmem_nextfit_alloc() 884 0, 0, NULL, NULL, vmflag & VM_KMFLAGS)); in vmem_nextfit_alloc() 938 size_t nocross, void *minaddr, void *maxaddr, int vmflag) in vmem_xalloc() argument 953 minaddr, maxaddr, vmflag); in vmem_xalloc() [all …]
|
H A D | bp_map.c | 63 bp_vmem_alloc(vmem_t *vmp, size_t size, int vmflag) in bp_vmem_alloc() argument 65 return (vmem_xalloc(vmp, size, bp_align, 0, 0, NULL, NULL, vmflag)); in bp_vmem_alloc()
|
H A D | kmem.c | 2966 kmem_firewall_va_alloc(vmem_t *vmp, size_t size, int vmflag) in kmem_firewall_va_alloc() argument 2991 addr = vmem_alloc(vmp, realsize, vmflag | VM_NEXTFIT); in kmem_firewall_va_alloc()
|
/titanic_41/usr/src/lib/libumem/common/ |
H A D | vmem.c | 560 vmem_populate(vmem_t *vmp, int vmflag) in vmem_populate() argument 586 ASSERT(vmflag & VM_NOSLEEP); /* we do not allow sleep allocations */ in vmem_populate() 610 p = vmem_alloc(vmem_seg_arena, size, vmflag & VM_UMFLAGS); in vmem_populate() 711 vmem_nextfit_alloc(vmem_t *vmp, size_t size, int vmflag) in vmem_nextfit_alloc() argument 720 if (vmp->vm_nsegfree < VMEM_MINFREE && !vmem_populate(vmp, vmflag)) { in vmem_nextfit_alloc() 778 (vmflag & VM_NOSLEEP)) { in vmem_nextfit_alloc() 781 0, 0, NULL, NULL, vmflag & VM_UMFLAGS)); in vmem_nextfit_alloc() 816 size_t nocross, void *minaddr, void *maxaddr, int vmflag) in vmem_xalloc() argument 829 minaddr, maxaddr, vmflag); in vmem_xalloc() 838 minaddr, maxaddr, vmflag); in vmem_xalloc() [all …]
|
H A D | vmem_base.h | 47 size_t alloc, int vmflag);
|
H A D | umem.c | 2265 umem_firewall_va_alloc(vmem_t *vmp, size_t size, int vmflag) in umem_firewall_va_alloc() argument 2281 return (vmem_alloc(vmp, realsize, vmflag | VM_NEXTFIT)); in umem_firewall_va_alloc()
|
/titanic_41/usr/src/uts/sun4v/vm/ |
H A D | mach_vm_dep.c | 402 contig_mem_span_alloc(vmem_t *vmp, size_t size, int vmflag) in contig_mem_span_alloc() argument 417 NULL, NULL, vmflag)) == NULL) { in contig_mem_span_alloc() 424 if (page_resv(npages, vmflag & VM_KMFLAGS) == 0) { in contig_mem_span_alloc() 430 if (vmflag & VM_NORELOC) in contig_mem_span_alloc() 487 span_alloc_downsize(vmem_t *vmp, size_t *sizep, size_t align, int vmflag) in span_alloc_downsize() argument 508 addr = contig_mem_span_alloc(vmp, page_size, vmflag); in span_alloc_downsize() 521 contig_mem_span_xalloc(vmem_t *vmp, size_t *sizep, size_t align, int vmflag) in contig_mem_span_xalloc() argument 523 return (span_alloc_downsize(vmp, sizep, align, vmflag | VM_NORELOC)); in contig_mem_span_xalloc() 528 int vmflag) in contig_mem_reloc_span_xalloc() argument 530 ASSERT((vmflag & VM_NORELOC) == 0); in contig_mem_reloc_span_xalloc() [all …]
|
/titanic_41/usr/src/uts/i86pc/os/ |
H A D | ddi_impl.c | 1000 page_create_io_wrapper(void *addr, size_t len, int vmflag, void *arg) in page_create_io_wrapper() argument 1006 PG_EXCL | ((vmflag & VM_NOSLEEP) ? 0 : PG_WAIT), &kas, addr, arg)); in page_create_io_wrapper() 1019 segkmem_alloc_io_4P(vmem_t *vmp, size_t size, int vmflag) in segkmem_alloc_io_4P() argument 1021 return (segkmem_xalloc(vmp, NULL, size, vmflag, 0, in segkmem_alloc_io_4P() 1026 segkmem_alloc_io_64G(vmem_t *vmp, size_t size, int vmflag) in segkmem_alloc_io_64G() argument 1028 return (segkmem_xalloc(vmp, NULL, size, vmflag, 0, in segkmem_alloc_io_64G() 1033 segkmem_alloc_io_4G(vmem_t *vmp, size_t size, int vmflag) in segkmem_alloc_io_4G() argument 1035 return (segkmem_xalloc(vmp, NULL, size, vmflag, 0, in segkmem_alloc_io_4G() 1040 segkmem_alloc_io_2G(vmem_t *vmp, size_t size, int vmflag) in segkmem_alloc_io_2G() argument 1042 return (segkmem_xalloc(vmp, NULL, size, vmflag, 0, in segkmem_alloc_io_2G() [all …]
|
/titanic_41/usr/src/uts/sun4/vm/ |
H A D | sfmmu.c | 1093 sfmmu_tsb_page_create(void *addr, size_t size, int vmflag, void *arg) in sfmmu_tsb_page_create() argument 1098 if ((vmflag & VM_NOSLEEP) == 0) in sfmmu_tsb_page_create() 1100 if (vmflag & VM_PANIC) in sfmmu_tsb_page_create() 1102 if (vmflag & VM_PUSHPAGE) in sfmmu_tsb_page_create() 1115 sfmmu_tsb_xalloc(vmem_t *vmp, void *inaddr, size_t size, int vmflag, in sfmmu_tsb_xalloc() argument 1133 NULL, NULL, vmflag)) == NULL)) in sfmmu_tsb_xalloc() 1136 if (page_resv(npages, vmflag & VM_KMFLAGS) == 0) { in sfmmu_tsb_xalloc() 1142 ppl = page_create_func(addr, size, vmflag, pcarg); in sfmmu_tsb_xalloc() 1178 sfmmu_tsb_segkmem_alloc(vmem_t *vmp, size_t size, int vmflag) in sfmmu_tsb_segkmem_alloc() argument 1195 return (sfmmu_tsb_xalloc(vmp, NULL, size, vmflag, 0, in sfmmu_tsb_segkmem_alloc()
|
/titanic_41/usr/src/uts/i86pc/io/ |
H A D | rootnex.c | 3473 int vmflag; in rootnex_setup_copybuf() local 3501 vmflag = VM_SLEEP; in rootnex_setup_copybuf() 3503 vmflag = VM_NOSLEEP; in rootnex_setup_copybuf() 3508 vmflag); in rootnex_setup_copybuf()
|
/titanic_41/usr/src/uts/sfmmu/vm/ |
H A D | hat_sfmmu.c | 798 sfmmu_vmem_xalloc_aligned_wrapper(vmem_t *vmp, size_t size, int vmflag) in sfmmu_vmem_xalloc_aligned_wrapper() argument 800 return (vmem_xalloc(vmp, size, size, 0, 0, NULL, NULL, vmflag)); in sfmmu_vmem_xalloc_aligned_wrapper()
|