Home
last modified time | relevance | path

Searched refs:PTRIN (Results 1 – 25 of 34) sorted by relevance

12

/freebsd/sys/amd64/linux32/
H A Dlinux32_machdep.c125 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/compat/linux/
H A Dlinux_socket.c704 bhdr->msg_name = PTRIN(lhdr->msg_name); in linux_to_bsd_msghdr()
706 bhdr->msg_iov = PTRIN(lhdr->msg_iov); in linux_to_bsd_msghdr()
708 bhdr->msg_control = PTRIN(lhdr->msg_control); in linux_to_bsd_msghdr()
841 if ((error = copyin(PTRIN(linux_args->msg), packet, in linux_sendto_hdrincl()
850 msg.msg_name = PTRIN(linux_args->to); in linux_sendto_hdrincl()
961 error = linux_to_bsd_sockaddr(PTRIN(args->name), &sa, in linux_bind()
983 error = linux_to_bsd_sockaddr(PTRIN(args->name), &sa, in linux_connect()
1040 if (PTRIN(addr) != NULL) { in linux_accept_common()
1041 error = copyin(PTRIN(namelen), &len, sizeof(len)); in linux_accept_common()
1079 if (PTRIN(addr) != NULL) { in linux_accept_common()
[all …]
H A Dlinux_ipc.c498 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 Dlinux_sysctl.c83 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 Dlinux_fork.c210 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 Dlinux_socket.h89 PTRIN((msg)->msg_control) : \
95 (((char *)PTRIN((msg)->msg_control)) + \
H A Dlinux_futex.c832 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 Dlinux_signal.c78 bsa->sa_handler = PTRIN(lsa->lsa_handler); in linux_to_bsd_sigaction()
220 ss.ss_sp = PTRIN(lss.ss_sp); in linux_sigaltstack()
804 si->si_value.sival_ptr = PTRIN(lsi->lsi_value.sival_ptr); in lsiginfo_to_siginfo()
H A Dlinux_ioctl.c2200 if (PTRIN(ifc.ifc_buf) == NULL) { in linux_ifconf()
2234 error = copyout(sbuf_data(sb), PTRIN(ifc.ifc_buf), ifc.ifc_len); in linux_ifconf()
2461 PTRIN(args->arg)); in linux_ioctl_socket()
2645 vc->next = PTRIN(lvc->next); /* possible pointer size conversion */ in linux_to_bsd_v4l_clip()
2659 vw->clips = PTRIN(lvw->clips); /* possible pointer size conversion */ in linux_to_bsd_v4l_window()
2683 vb->base = PTRIN(lvb->base); /* possible pointer size conversion */ in linux_to_bsd_v4l_buffer()
2707 vc->data = PTRIN(lvc->data); /* possible pointer size conversion */ in linux_to_bsd_v4l_code()
2785 plvc = PTRIN(lvw->clips); in linux_v4l_cliplist_copy()
2800 plvc = PTRIN(((struct l_video_clip *) plvc)->next); in linux_v4l_cliplist_copy()
3050 vb->m.userptr = (unsigned long)PTRIN(lvb->m.userptr); in linux_to_bsd_v4l2_buffer()
[all …]
H A Dlinux_misc.c2139 error = linux_copyin_sigset(td, PTRIN(lpse6.ss), in linux_common_pselect6()
2650 argp = PTRIN(arg); in linux_exec_copyin_args()
2677 envp = PTRIN(arg); in linux_exec_copyin_args()
3005 .path = PTRIN(args->name) in linux_mq_unlink()
3026 return (kern_kmq_timedsend(td, args->mqd, PTRIN(args->msg_ptr), in linux_mq_timedsend()
3045 return (kern_kmq_timedreceive(td, args->mqd, PTRIN(args->msg_ptr), in linux_mq_timedreceive()
H A Dlinux_file.c1036 error = freebsd32_copyinuio(PTRIN(uap->vec), uap->vlen, &auio); in linux_preadv()
1063 error = freebsd32_copyinuio(PTRIN(uap->vec), uap->vlen, &auio); in linux_pwritev()
1870 error = freebsd32_copyinuio(PTRIN(args->iovp), args->iovcnt, &auio); in linux_writev()
H A Dlinux_elf.c542 error = copyout(aarray, PTRIN(base), sizeof(*aarray) * LINUX_AT_COUNT); in __linuxN()
/freebsd/sys/sys/
H A Dabi_compat.h36 #define PTRIN(v) (void *)(uintptr_t)(v) macro
48 (dst).fld = PTRIN((src).fld); \
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_misc.c439 argp = PTRIN(arg); in freebsd32_exec_copyin_args()
456 envp = PTRIN(arg); in freebsd32_exec_copyin_args()
528 return (kern_mprotect(td, (uintptr_t)PTRIN(uap->addr), uap->len, in freebsd32_mprotect()
642 * XXX Do pointers need PTRIN()? in freebsd32_select()
675 * XXX Do pointers need PTRIN()? in freebsd32_pselect()
1059 r.vec.iov_base = PTRIN(r32.vec.iov_base); in freebsd32_ptrace()
1116 error = copyin(PTRIN(r32.sr.pscr_args), pscr_args32, in freebsd32_ptrace()
1214 iov[i].iov_base = PTRIN(iov32.iov_base); in freebsd32_copyinuio()
1309 iov[i].iov_base = PTRIN(iov32.iov_base); in freebsd32_copyiniov()
1325 msg->msg_name = PTRIN(m3 in freebsd32_copyinmsghdr()
[all...]
/freebsd/sys/amd64/linux/
H A Dlinux_machdep.c141 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 Dlinux_sysvec.c282 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 Dmpr_user.c801 err = copyin(PTRIN(data->PtrRequest), req, data->RequestSize); in mpr_user_pass_thru()
861 err = copyout(cm->cm_reply, PTRIN(data->PtrReply), in mpr_user_pass_thru()
906 err = copyin(PTRIN(data->PtrDataOut), in mpr_user_pass_thru()
911 err = copyin(PTRIN(data->PtrData), in mpr_user_pass_thru()
1065 PTRIN(data->PtrData), data->DataSize); in mpr_user_pass_thru()
1086 err = copyout(cm->cm_reply, PTRIN(data->PtrReply), in mpr_user_pass_thru()
1104 PTRIN(data->PtrReply + in mpr_user_pass_thru()
1143 (PTRIN(data->PtrReply + in mpr_user_pass_thru()
1952 PTRIN(diag_read_buffer.PtrDataBuffer), in mpr_do_diag_action()
2015 PTRIN(data->PtrDiagAction), data->Length, in mpr_user_diag_action()
[all …]
/freebsd/sys/dev/mps/
H A Dmps_user.c800 err = copyin(PTRIN(data->PtrRequest), req, data->RequestSize); in mps_user_pass_thru()
860 err = copyout(cm->cm_reply, PTRIN(data->PtrReply), in mps_user_pass_thru()
908 err = copyin(PTRIN(data->PtrDataOut), in mps_user_pass_thru()
913 err = copyin(PTRIN(data->PtrData), in mps_user_pass_thru()
996 PTRIN(data->PtrData), data->DataSize); in mps_user_pass_thru()
1017 err = copyout(cm->cm_reply, PTRIN(data->PtrReply), in mps_user_pass_thru()
1034 err = copyout(cm->cm_sense, (PTRIN(data->PtrReply + in mps_user_pass_thru()
1840 PTRIN(diag_read_buffer.PtrDataBuffer), in mps_do_diag_action()
1903 PTRIN(data->PtrDiagAction), data->Length, in mps_user_diag_action()
1966 PTRIN(data->PtrEvents), sizeof(sc->recorded_events)) != 0) in mps_user_event_report()
/freebsd/sys/dev/ipmi/
H A Dipmi.c289 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 Dmpt_user.c627 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 Dsysv_sem.c1943 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 Dsysv_shm.c1446 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 Dmrsas_ioctl.c260 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 Dia32_signal.c215 ret = copyin(PTRIN(mcp->mc_xfpustate), xfpustate, in ia32_set_mcontext()
659 PTRIN(sf.sf_uc.uc_mcontext.mc_xfpustate), xfpusave_len) in ia32_sendsig()
871 error = copyin(PTRIN(ucp->uc_mcontext.mc_xfpustate), in freebsd32_sigreturn()
/freebsd/sys/dev/mfi/
H A Dmfi.c3085 #define PTRIN(p) ((void *)(uintptr_t)(p)) macro
3254 addr = PTRIN(ioc32->mfi_sgl[i].iov_base); in mfi_ioctl()
3314 addr = PTRIN(ioc32->mfi_sgl[i].iov_base); in mfi_ioctl()
3442 iop_swab.buf = PTRIN(iop32->buf); in mfi_ioctl()
3531 error = copyin(PTRIN(l_ioc.lioc_sgl[i].iov_base), in mfi_linux_ioctl_int()
3574 PTRIN(l_ioc.lioc_sgl[i].iov_base), in mfi_linux_ioctl_int()

12