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()
205 size = zone_element_size((void *)kernel_addr, in copyio()
217 (void *)kernel_addr, size, nbytes); in copyio()
243 __asan_storeN((uptr)kernel_addr, nbytes); in copyio()
248 __asan_loadN((uptr)kernel_addr, nbytes); in copyio()
286 copy_type, (void *)user_addr, kernel_addr, nbytes, lencopied, use_kernel_map, in copyio()
296 kernel_addr, nbytes, 0, 0); in copyio()
301 kernel_addr, in copyio()
306 error = _bcopy(kernel_addr, in copyio()
313 PHYSMAP_PTOV(kernel_addr), in copyio()
318 error = _bcopy((const void *) PHYSMAP_PTOV(kernel_addr), in copyio()
325 (void *) kernel_addr); in copyio()
330 (void *) kernel_addr); in copyio()
334 error = _copyout_atomic32((const void *) kernel_addr, in copyio()
339 error = _copyout_atomic64((const void *) kernel_addr, in copyio()
345 kernel_addr, in copyio()
363 if (*(kernel_addr + bytes_copied - 1) == 0) { in copyio()
405 COPYIO_TRACE(debug_type | DBG_FUNC_END, user_addr, kernel_addr, nbytes, error, 0); in copyio()
432 copyinmsg(const user_addr_t user_addr, char *kernel_addr, mach_msg_size_t nbytes) in copyinmsg() argument
434 return copyio(COPYIN, user_addr, kernel_addr, nbytes, NULL, 0); in copyinmsg()
438 copyin(const user_addr_t user_addr, void *kernel_addr, vm_size_t nbytes) in copyin() argument
440 return copyio(COPYIN, user_addr, kernel_addr, nbytes, NULL, 0); in copyin()
449 copyin_atomic32(const user_addr_t user_addr, uint32_t *kernel_addr) in copyin_atomic32() argument
455 return copyio(COPYINATOMIC32, user_addr, (char *)(uintptr_t)kernel_addr, 4, NULL, 0); in copyin_atomic32()
474 copyin_atomic64(const user_addr_t user_addr, uint64_t *kernel_addr) in copyin_atomic64() argument
480 return copyio(COPYINATOMIC64, user_addr, (char *)(uintptr_t)kernel_addr, 8, NULL, 0); in copyin_atomic64()
504 copyinstr(const user_addr_t user_addr, char *kernel_addr, vm_size_t nbytes, vm_size_t *lencopied) in copyinstr() argument
508 return copyio(COPYINSTR, user_addr, kernel_addr, nbytes, lencopied, 0); in copyinstr()
512 copyoutmsg(const char *kernel_addr, user_addr_t user_addr, mach_msg_size_t nbytes) in copyoutmsg() argument
514 CALL_COPYOUT_SHIM_MSG(kernel_addr, user_addr, (vm_size_t)nbytes) in copyoutmsg()
515 return copyio(COPYOUT, user_addr, (char *)(uintptr_t)kernel_addr, nbytes, NULL, 0); in copyoutmsg()
519 copyout(const void *kernel_addr, user_addr_t user_addr, vm_size_t nbytes) in copyout() argument
521 CALL_COPYOUT_SHIM_NRML(kernel_addr, user_addr, nbytes) in copyout()
522 return copyio(COPYOUT, user_addr, (char *)(uintptr_t)kernel_addr, nbytes, NULL, 0); in copyout()