VM_SLEEP
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
((flags & BUS_DMA_WAITOK) ? VM_SLEEP : VM_NOSLEEP);
VM_SLEEP,
NULL, NULL, NULL, 0, VM_SLEEP, IPL_HIGH);
1, NULL, NULL, NULL, 0, VM_SLEEP, IPL_HIGH);
if (vmem_alloc(its->its_gic->sc_lpi_pool, 1, VM_INSTANTFIT|VM_SLEEP, &n) != 0)
PAGE_SIZE, NULL, NULL, NULL, 0, VM_SLEEP, IPL_NONE);
PAGE_SIZE, NULL, NULL, NULL, 0, VM_SLEEP, IPL_NONE);
sfb_size, VM_SLEEP);
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
sizeof(uint32_t), NULL, NULL, NULL, 0, VM_SLEEP, IPL_VM);
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
VM_SLEEP,
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
VM_SLEEP,
(canwait ? VM_SLEEP : VM_NOSLEEP);
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
VM_SLEEP,
((flags & BUS_DMA_NOWAIT) ? VM_NOSLEEP : VM_SLEEP);
PAGE_SIZE, VM_SLEEP | VM_INSTANTFIT, &va) != 0) {
MAXPHYS, VM_SLEEP | VM_INSTANTFIT, &sc->sc_unalign_buffer) != 0) {
VM_SLEEP,
VM_SLEEP,
VM_SLEEP,
VM_SLEEP,
0, 0, 1, NULL, NULL, NULL, 0, VM_SLEEP, IPL_NONE);
error = vmem_add(arena->vmem, start, end - start + 1, VM_SLEEP);
0, 0, VM_SLEEP);
error = vmem_add(r->arena, start, size, VM_SLEEP);
VM_SLEEP,
VM_SLEEP,
VM_SLEEP,
VM_SLEEP, IPL_NONE);
error = vmem_alloc(seq_arena, 1, VM_SLEEP | VM_BESTFIT, &off);
((kmflags & KM_SLEEP) ? VM_SLEEP : VM_NOSLEEP)
percpu_backend_alloc, NULL, NULL, PERCPU_QCACHE_MAX, VM_SLEEP,
(void)vmem_alloc(percpu_offset_arena, size, VM_SLEEP | VM_BESTFIT,
const vm_flag_t vflags = (flags & PR_WAITOK) ? VM_SLEEP: VM_NOSLEEP;
const vm_flag_t vflags = (flags & PR_WAITOK) ? VM_SLEEP: VM_NOSLEEP;
KASSERT((flags & (VM_SLEEP|VM_NOSLEEP)) != 0);
KASSERT((~flags & (VM_SLEEP|VM_NOSLEEP)) != 0);
if ((flags & VM_SLEEP) != 0) {
KASSERT(error == 0 || (flags & VM_SLEEP) == 0);
KASSERT(error == 0 || (flags & VM_SLEEP) == 0);
if ((flags & VM_SLEEP) != 0) {
if ((flags & VM_SLEEP) != 0) {
vm = vmem_create("test", 0, 0, 1, NULL, NULL, NULL, 0, VM_SLEEP,
rc = vmem_add(vm, 0, 50, VM_SLEEP);
rc = vmem_add(vm, 100, 200, VM_SLEEP);
rc = vmem_add(vm, 2000, 1, VM_SLEEP);
rc = vmem_add(vm, 40000, 65536, VM_SLEEP);
rc = vmem_add(vm, 10000, 10000, VM_SLEEP);
rc = vmem_add(vm, 500, 1000, VM_SLEEP);
rc = vmem_add(vm, 0xffffff00, 0x100, VM_SLEEP);
0xffffff00, 0xffffffff, strat|VM_SLEEP, &p);
rc = vmem_xalloc(vm, 50, 0, 0, 0, 0, 49, strat|VM_SLEEP, &p);
rc = vmem_xalloc(vm, 25, 0, 0, 0, 0, 24, strat|VM_SLEEP, &p);
0xffffff01, 0xffffffff, strat|VM_SLEEP, &p);
0xffffff00, 0xfffffffe, strat|VM_SLEEP, &p);
0xffffff00, 0xffffffff, strat|VM_SLEEP, &p);
minaddr, maxaddr, strat|VM_SLEEP, &p);
rc = vmem_alloc(vm, sz, strat|VM_SLEEP, &p);
kmem_alloc(sz, ((flags) & VM_SLEEP) ? KM_SLEEP : KM_NOSLEEP);
const vm_flag_t vflags = (flags & PR_WAITOK) ? VM_SLEEP: VM_NOSLEEP;
vmflags = VM_SLEEP;
if ((vmflags & VM_SLEEP) != 0) {
KASSERT((flags & (VM_SLEEP|VM_NOSLEEP)) != 0);
KASSERT((~flags & (VM_SLEEP|VM_NOSLEEP)) != 0);
KASSERT((flags & (VM_SLEEP|VM_NOSLEEP)) != 0);
KASSERT((~flags & (VM_SLEEP|VM_NOSLEEP)) != 0);
(flags & VM_SLEEP), "kmalloc");
VMEM_ADDR_MIN, VMEM_ADDR_MAX, VM_INSTANTFIT | VM_SLEEP, &t);
VM_SLEEP | VM_INSTANTFIT, &unit2);
VM_SLEEP, IPL_NONE);
pg = PMAP_ALLOC_POOLPAGE((flags & VM_SLEEP) ?
(flags & VM_SLEEP) ? 0 : UVM_PGA_USERESERVE);
if (flags & VM_SLEEP) {
| ((flags & VM_SLEEP) ? 0 : UVM_PGA_USERESERVE));
if (flags & VM_SLEEP) {
error = vmem_alloc(swapmap, npages, VM_BESTFIT | VM_SLEEP, &result);