| /freebsd/sys/compat/linux/ |
| H A D | linux_socket.c | 761 bhdr->msg_name = PTRIN(lhdr->msg_name); in linux_to_bsd_msghdr() 763 bhdr->msg_iov = PTRIN(lhdr->msg_iov); in linux_to_bsd_msghdr() 765 bhdr->msg_control = PTRIN(lhdr->msg_control); in linux_to_bsd_msghdr() 898 if ((error = copyin(PTRIN(linux_args->msg), packet, in linux_sendto_hdrincl() 907 msg.msg_name = PTRIN(linux_args->to); in linux_sendto_hdrincl() 1018 error = linux_to_bsd_sockaddr(PTRIN(args->name), &sa, in linux_bind() 1040 error = linux_to_bsd_sockaddr(PTRIN(args->name), &sa, in linux_connect() 1097 if (PTRIN(addr) != NULL) { in linux_accept_common() 1098 error = copyin(PTRIN(namelen), &len, sizeof(len)); in linux_accept_common() 1136 if (PTRIN(addr) != NULL) { in linux_accept_common() [all …]
|
| H A D | linux_ipc.c | 498 return (kern_semop(td, args->semid, PTRIN(args->tsops), in linux_semtimedop_time64() 517 return (kern_semop(td, args->semid, PTRIN(args->tsops), in linux_semtimedop() 571 &linux_semid64, PTRIN(args->arg.buf)); in linux_semctl() 587 &linux_semid64, PTRIN(args->arg.buf))); in linux_semctl() 597 &linux_semid64, PTRIN(args->arg.buf)); in linux_semctl() 619 PTRIN(args->arg.buf), sizeof(linux_seminfo)); in linux_semctl() 629 semun.array = PTRIN(args->arg.array); in linux_semctl() 633 semun.array = PTRIN(args->arg.array); in linux_semctl() 654 msgp = PTRIN(args->msgp); in linux_msgsnd() 673 msgp = PTRIN(args->msgp); in linux_msgrcv() [all …]
|
| H A D | linux_sysctl.c | 83 error = copyout(value, PTRIN(la->oldval), len + 1); in handle_string() 85 error = copyout(&len, PTRIN(la->oldlenp), sizeof(len)); in handle_string() 121 error = copyin(PTRIN(la.name), mib, la.nlen * sizeof(l_int)); in linux_sysctl()
|
| H A D | linux_fork.c | 210 linux_set_cloned_tls(td2, PTRIN(args->tls)); in linux_clone_proc() 255 if (PTRIN(args->stack) == NULL) in linux_clone_thread() 292 linux_set_cloned_tls(newtd, PTRIN(args->tls)); in linux_clone_thread() 455 ca->child_tid = PTRIN(uca->child_tid); in linux_clone3() 456 ca->parent_tid = PTRIN(uca->parent_tid); in linux_clone3()
|
| H A D | linux_socket.h | 89 PTRIN((msg)->msg_control) : \ 95 (((char *)PTRIN((msg)->msg_control)) + \
|
| H A D | linux_futex.c | 832 fargs.ts = PTRIN(args->timeout); in linux_sys_futex() 866 fargs.ts = PTRIN(args->timeout); in linux_sys_futex_time64() 1027 if (fetch_robust_entry(&entry, PTRIN(&head->list.next), &pi)) in release_futexes() 1035 if (fetch_robust_entry(&pending, PTRIN(&head->pending_list), &pip)) in release_futexes() 1039 error = fetch_robust_entry(&next_entry, PTRIN(&entry->next), in release_futexes()
|
| H A D | linux_signal.c | 78 bsa->sa_handler = PTRIN(lsa->lsa_handler); in linux_to_bsd_sigaction() 228 ss.ss_sp = PTRIN(lss.ss_sp); in linux_sigaltstack() 812 si->si_value.sival_ptr = PTRIN(lsi->lsi_value.sival_ptr); in lsiginfo_to_siginfo()
|
| H A D | linux_ioctl.c | 2284 if (PTRIN(ifc.ifc_buf) == NULL) { in linux_ifconf() 2318 error = copyout(sbuf_data(sb), PTRIN(ifc.ifc_buf), ifc.ifc_len); in linux_ifconf() 2545 PTRIN(args->arg)); in linux_ioctl_socket() 2729 vc->next = PTRIN(lvc->next); /* possible pointer size conversion */ in linux_to_bsd_v4l_clip() 2743 vw->clips = PTRIN(lvw->clips); /* possible pointer size conversion */ in linux_to_bsd_v4l_window() 2767 vb->base = PTRIN(lvb->base); /* possible pointer size conversion */ in linux_to_bsd_v4l_buffer() 2791 vc->data = PTRIN(lvc->data); /* possible pointer size conversion */ in linux_to_bsd_v4l_code() 2869 plvc = PTRIN(lvw->clips); in linux_v4l_cliplist_copy() 2884 plvc = PTRIN(((struct l_video_clip *) plvc)->next); in linux_v4l_cliplist_copy() 3134 vb->m.userptr = (unsigned long)PTRIN(lvb->m.userptr); in linux_to_bsd_v4l2_buffer() [all …]
|
| H A D | linux_misc.c | 2144 error = linux_copyin_sigset(td, PTRIN(lpse6.ss), in linux_common_pselect6() 2655 argp = PTRIN(arg); in linux_exec_copyin_args() 2682 envp = PTRIN(arg); in linux_exec_copyin_args() 3010 .path = PTRIN(args->name) in linux_mq_timedsend() 3031 return (kern_kmq_timedsend(td, args->mqd, PTRIN(args->msg_ptr), in linux_mq_timedreceive() 3050 return (kern_kmq_timedreceive(td, args->mqd, PTRIN(args->msg_ptr), in linux_mq_notify()
|
| H A D | linux_elf.c | 542 error = copyout(aarray, PTRIN(base), sizeof(*aarray) * LINUX_AT_COUNT); in __linuxN()
|
| H A D | linux_file.c | 1091 error = freebsd32_copyinuio(PTRIN(uap->vec), uap->vlen, &auio); in linux_preadv() 1118 error = freebsd32_copyinuio(PTRIN(uap->vec), uap->vlen, &auio); in linux_pwritev() 1933 error = freebsd32_copyinuio(PTRIN(args->iovp), args->iovcnt, &auio); in linux_writev()
|
| /freebsd/sys/amd64/linux32/ |
| H A D | linux32_machdep.c | 125 return (kern_semop(td, args->arg1, PTRIN(args->ptr), in linux_ipc() 143 error = copyin(PTRIN(args->ptr), &a.arg, sizeof(a.arg)); in linux_ipc() 152 a.tsops = PTRIN(args->ptr); in linux_ipc() 154 a.timeout = PTRIN(args->arg5); in linux_ipc() 161 a.msgp = PTRIN(args->ptr); in linux_ipc() 178 error = copyin(PTRIN(args->ptr), &tmp, sizeof(tmp)); in linux_ipc() 181 a.msgp = PTRIN(tmp.msgp); in linux_ipc() 184 a.msgp = PTRIN(args->ptr); in linux_ipc() 201 a.buf = PTRIN(args->ptr); in linux_ipc() 210 a.shmaddr = PTRIN(args->ptr); in linux_ipc() [all …]
|
| /freebsd/sys/i386/linux/ |
| H A D | linux_machdep.c | 109 return (kern_semop(td, args->arg1, PTRIN(args->ptr), in linux_ipc() 127 error = copyin(PTRIN(args->ptr), &a.arg, sizeof(a.arg)); in linux_ipc() 136 a.tsops = PTRIN(args->ptr); in linux_ipc() 138 a.timeout = PTRIN(args->arg5); in linux_ipc() 145 a.msgp = PTRIN(args->ptr); in linux_ipc() 162 error = copyin(PTRIN(args->ptr), &tmp, sizeof(tmp)); in linux_ipc() 165 a.msgp = PTRIN(tmp.msgp); in linux_ipc() 168 a.msgp = PTRIN(args->ptr); in linux_ipc() 185 a.buf = PTRIN(args->ptr); in linux_ipc() 194 a.shmaddr = PTRIN(args->ptr); in linux_ipc() [all …]
|
| /freebsd/sys/sys/ |
| H A D | abi_compat.h | 38 #define PTRIN(v) (void *)(uintptr_t)(v) macro 50 (dst).fld = PTRIN((src).fld); \
|
| /freebsd/sys/compat/freebsd32/ |
| H A D | freebsd32_misc.c | 471 argp = PTRIN(arg); in freebsd32_exec_copyin_args() 488 envp = PTRIN(arg); in freebsd32_exec_copyin_args() 559 return (kern_mprotect(td, (uintptr_t)PTRIN(uap->addr), uap->len, in freebsd32_mprotect() 1096 r.vec.iov_base = PTRIN(r32.vec.iov_base); in freebsd32_ptrace() 1153 error = copyin(PTRIN(r32.sr.pscr_args), pscr_args32, in freebsd32_ptrace() 1254 iov[i].iov_base = PTRIN(iov32.iov_base); in freebsd32_copyinuio() 1349 iov[i].iov_base = PTRIN(iov32.iov_base); in freebsd32_copyiniov() 1365 msg->msg_name = PTRIN(m32.msg_name); in freebsd32_copyinmsghdr() 1367 msg->msg_iov = PTRIN(m32.msg_iov); in freebsd32_copyinmsghdr() 1369 msg->msg_control = PTRIN(m32.msg_control); in freebsd32_copyinmsghdr() [all …]
|
| /freebsd/sys/amd64/linux/ |
| H A D | linux_machdep.c | 141 error = copyout(&pcb->pcb_fsbase, PTRIN(args->addr), in linux_arch_prctl() 145 error = copyout(&pcb->pcb_gsbase, PTRIN(args->addr), in linux_arch_prctl() 150 error = copyout(&cet, PTRIN(args->addr), sizeof(cet)); in linux_arch_prctl()
|
| H A D | linux_sysvec.c | 282 error = copyin(PTRIN(sc->sc_fpstate), fp, sizeof(mcp->mc_fpstate)); in linux_fxrstor() 302 error = copyin(PTRIN(sc->sc_fpstate), fp, sizeof(mcp->mc_fpstate)); in linux_xrstor() 310 error = copyin(PTRIN(sc->sc_fpstate), xfpustate, mcp->mc_xfpustate_len); in linux_xrstor() 320 error = copyin(PTRIN(sc->sc_fpstate), &magic2, LINUX_FP_XSTATE_MAGIC2_SIZE); in linux_xrstor()
|
| /freebsd/sys/dev/mpr/ |
| H A D | mpr_user.c | 800 err = copyin(PTRIN(data->PtrRequest), req, data->RequestSize); in mpr_user_pass_thru() 860 err = copyout(cm->cm_reply, PTRIN(data->PtrReply), in mpr_user_pass_thru() 905 err = copyin(PTRIN(data->PtrDataOut), in mpr_user_pass_thru() 910 err = copyin(PTRIN(data->PtrData), in mpr_user_pass_thru() 1064 PTRIN(data->PtrData), data->DataSize); in mpr_user_pass_thru() 1085 err = copyout(cm->cm_reply, PTRIN(data->PtrReply), in mpr_user_pass_thru() 1103 PTRIN(data->PtrReply + in mpr_user_pass_thru() 1142 (PTRIN(data->PtrReply + in mpr_user_pass_thru() 1951 PTRIN(diag_read_buffer.PtrDataBuffer), in mpr_do_diag_action() 2014 PTRIN(data->PtrDiagAction), data->Length, in mpr_user_diag_action() [all …]
|
| /freebsd/sys/dev/mps/ |
| H A D | mps_user.c | 799 err = copyin(PTRIN(data->PtrRequest), req, data->RequestSize); in mps_user_pass_thru() 859 err = copyout(cm->cm_reply, PTRIN(data->PtrReply), in mps_user_pass_thru() 907 err = copyin(PTRIN(data->PtrDataOut), in mps_user_pass_thru() 912 err = copyin(PTRIN(data->PtrData), in mps_user_pass_thru() 995 PTRIN(data->PtrData), data->DataSize); in mps_user_pass_thru() 1016 err = copyout(cm->cm_reply, PTRIN(data->PtrReply), in mps_user_pass_thru() 1033 err = copyout(cm->cm_sense, (PTRIN(data->PtrReply + in mps_user_pass_thru() 1839 PTRIN(diag_read_buffer.PtrDataBuffer), in mps_do_diag_action() 1902 PTRIN(data->PtrDiagAction), data->Length, in mps_user_diag_action() 1965 PTRIN(data->PtrEvents), sizeof(sc->recorded_events)) != 0) in mps_user_event_report()
|
| /freebsd/sys/dev/ipmi/ |
| H A D | ipmi.c | 289 req->addr = PTRIN(req32->addr); in ipmi_ioctl() 295 req->msg.data = PTRIN(req32->msg.data); in ipmi_ioctl() 300 recv->addr = PTRIN(recv32->addr); in ipmi_ioctl() 303 recv->msg.data = PTRIN(recv32->msg.data); in ipmi_ioctl()
|
| /freebsd/sys/dev/mpt/ |
| H A D | mpt_user.c | 627 page_req->buf = PTRIN(page_req32->buf); in mpt_ioctl() 636 ext_page_req->buf = PTRIN(ext_page_req32->buf); in mpt_ioctl() 647 raid_act->buf = PTRIN(raid_act32->buf); in mpt_ioctl()
|
| /freebsd/sys/kern/ |
| H A D | sysv_sem.c | 1943 error = copyin(PTRIN(arg.buf), &dsbuf32, sizeof(dsbuf32)); in freebsd7_freebsd32___semctl() 1955 semun.array = PTRIN(arg.array); in freebsd7_freebsd32___semctl() 1976 error = copyout(&dsbuf32, PTRIN(arg.buf), sizeof(dsbuf32)); in freebsd7_freebsd32___semctl() 2015 error = copyin(PTRIN(arg.buf), &dsbuf32, sizeof(dsbuf32)); in freebsd32___semctl() 2027 semun.array = PTRIN(arg.array); in freebsd32___semctl() 2048 error = copyout(&dsbuf32, PTRIN(arg.buf), sizeof(dsbuf32)); in freebsd32___semctl()
|
| H A D | sysv_shm.c | 1446 ap.shmaddr = PTRIN(uap->a3); in freebsd32_shmsys() 1453 ap.shmaddr = PTRIN(uap->a2); in freebsd32_shmsys() 1469 ap.buf = PTRIN(uap->a4); in freebsd32_shmsys()
|
| /freebsd/sys/dev/mrsas/ |
| H A D | mrsas_ioctl.c | 260 iov_base_ptrin = PTRIN(user_ioc32->sgl[i].iov_base); in mrsas_passthru() 332 iov_base_ptrin = PTRIN(user_ioc32->sgl[i].iov_base); in mrsas_passthru()
|
| /freebsd/sys/amd64/ia32/ |
| H A D | ia32_signal.c | 226 ret = copyin(PTRIN(mcp->mc_xfpustate), xfpustate, in ia32_set_mcontext() 670 PTRIN(sf.sf_uc.uc_mcontext.mc_xfpustate), xfpusave_len) in ia32_sendsig() 899 error = copyin(PTRIN(ucp->uc_mcontext.mc_xfpustate), in freebsd32_sigreturn()
|