Lines Matching refs:rval
66 kern_return_t rval = 0;
101 rval = kmem_suballoc(kernel_map, (vm_offset_t *) &kext_alloc_base,
105 if (rval != KERN_SUCCESS) {
106 panic("kext_alloc_init: kmem_suballoc failed 0x%x\n", rval);
155 kern_return_t rval = 0;
171 rval = mach_vm_map(g_kext_map,
182 if (rval != KERN_SUCCESS) {
183 printf("mach_vm_map failed - %d\n", rval);
187 rval = mach_vm_allocate(g_kext_map, &addr, size, flags);
188 if (rval != KERN_SUCCESS) {
189 printf("vm_allocate failed - %d\n", rval);
197 rval = KERN_INVALID_ADDRESS;
202 rval = KERN_SUCCESS;
205 return rval;
211 kern_return_t rval;
213 rval = mach_vm_deallocate(g_kext_map, addr, size);
214 assert(rval == KERN_SUCCESS);