Lines Matching refs:kernel_addr

168 copyio(int copy_type, user_addr_t user_addr, char *kernel_addr,  in copyio()  argument
184 (void *)user_addr, (void *)kernel_addr, nbytes); in copyio()
188 user_addr, kernel_addr, nbytes, use_kernel_map, 0); in copyio()
198 if (__improbable((vm_offset_t)kernel_addr < VM_MIN_KERNEL_AND_KEXT_ADDRESS)) { in copyio()
199 panic("Invalid copy parameter, copy type: %d, kernel address: %p", copy_type, kernel_addr); in copyio()
201 zone_element_bounds_check((vm_offset_t)kernel_addr, nbytes); in copyio()
225 __asan_storeN((uptr)kernel_addr, nbytes); in copyio()
230 __asan_loadN((uptr)kernel_addr, nbytes); in copyio()
268 copy_type, (void *)user_addr, kernel_addr, nbytes, lencopied, use_kernel_map, in copyio()
278 kernel_addr, nbytes, 0, 0); in copyio()
283 kernel_addr, in copyio()
288 error = _bcopy(kernel_addr, in copyio()
295 PHYSMAP_PTOV(kernel_addr), in copyio()
300 error = _bcopy((const void *) PHYSMAP_PTOV(kernel_addr), in copyio()
307 (void *) kernel_addr); in copyio()
312 (void *) kernel_addr); in copyio()
316 error = _copyout_atomic32((const void *) kernel_addr, in copyio()
321 error = _copyout_atomic64((const void *) kernel_addr, in copyio()
327 kernel_addr, in copyio()
345 if (*(kernel_addr + bytes_copied - 1) == 0) { in copyio()
387 COPYIO_TRACE(debug_type | DBG_FUNC_END, user_addr, kernel_addr, nbytes, error, 0); in copyio()
414 copyinmsg(const user_addr_t user_addr, char *kernel_addr, mach_msg_size_t nbytes) in copyinmsg() argument
416 return copyio(COPYIN, user_addr, kernel_addr, nbytes, NULL, 0); in copyinmsg()
420 copyin(const user_addr_t user_addr, void *kernel_addr, vm_size_t nbytes) in copyin() argument
422 return copyio(COPYIN, user_addr, kernel_addr, nbytes, NULL, 0); in copyin()
431 copyin_atomic32(const user_addr_t user_addr, uint32_t *kernel_addr) in copyin_atomic32() argument
437 return copyio(COPYINATOMIC32, user_addr, (char *)(uintptr_t)kernel_addr, 4, NULL, 0); in copyin_atomic32()
456 copyin_atomic64(const user_addr_t user_addr, uint64_t *kernel_addr) in copyin_atomic64() argument
462 return copyio(COPYINATOMIC64, user_addr, (char *)(uintptr_t)kernel_addr, 8, NULL, 0); in copyin_atomic64()
486 copyinstr(const user_addr_t user_addr, char *kernel_addr, vm_size_t nbytes, vm_size_t *lencopied) in copyinstr() argument
490 return copyio(COPYINSTR, user_addr, kernel_addr, nbytes, lencopied, 0); in copyinstr()
494 copyoutmsg(const char *kernel_addr, user_addr_t user_addr, mach_msg_size_t nbytes) in copyoutmsg() argument
496 CALL_COPYOUT_SHIM_MSG(kernel_addr, user_addr, (vm_size_t)nbytes) in copyoutmsg()
497 return copyio(COPYOUT, user_addr, (char *)(uintptr_t)kernel_addr, nbytes, NULL, 0); in copyoutmsg()
501 copyout(const void *kernel_addr, user_addr_t user_addr, vm_size_t nbytes) in copyout() argument
503 CALL_COPYOUT_SHIM_NRML(kernel_addr, user_addr, nbytes) in copyout()
504 return copyio(COPYOUT, user_addr, (char *)(uintptr_t)kernel_addr, nbytes, NULL, 0); in copyout()