Home
last modified time | relevance | path

Searched refs:uptr (Results 1 – 25 of 35) sorted by relevance

12

/linux/drivers/misc/vmw_vmci/
A Dvmci_host.c259 int __user *vptr = uptr; in vmci_host_get_version()
410 void __user *uptr) in vmci_host_do_receive_datagram() argument
442 void __user *uptr) in vmci_host_do_alloc_queuepair() argument
511 void __user *uptr) in vmci_host_do_queuepair_setva() argument
552 void __user *uptr) in vmci_host_do_queuepair_setpf() argument
630 void __user *uptr) in vmci_host_do_qp_detach() argument
679 void __user *uptr) in vmci_host_do_ctx_remove_notify() argument
703 void __user *uptr) in vmci_host_do_ctx_get_cpt_state() argument
735 void __user *uptr) in vmci_host_do_ctx_set_cpt_state() argument
776 void __user *uptr) in vmci_host_do_set_notify() argument
[all …]
/linux/arch/s390/kernel/
A Duprobes.c275 void *uptr; in handle_insn_ril() local
280 uptr = (void *)(regs->psw.addr + (insn->disp * 2)); in handle_insn_ril()
287 rx->u64 = (unsigned long)uptr; in handle_insn_ril()
294 rc = emu_load_ril((u16 __user *)uptr, &rx->u32[1]); in handle_insn_ril()
297 rc = emu_load_ril((s16 __user *)uptr, &rx->u64); in handle_insn_ril()
300 rc = emu_load_ril((s16 __user *)uptr, &rx->u32[1]); in handle_insn_ril()
303 rc = emu_load_ril((u16 __user *)uptr, &rx->u64); in handle_insn_ril()
306 rc = emu_load_ril((u64 __user *)uptr, &rx->u64); in handle_insn_ril()
309 rc = emu_load_ril((s32 __user *)uptr, &rx->u64); in handle_insn_ril()
312 rc = emu_load_ril((u32 __user *)uptr, &rx->u32[1]); in handle_insn_ril()
[all …]
A Dperf_cpum_cf.c1017 void __user *uptr; in cfset_all_copy() local
1020 uptr = ctrset_read->data; in cfset_all_copy()
1025 ctrset_cpudata = uptr; in cfset_all_copy()
1032 uptr += sizeof(struct s390_ctrset_cpudata) + cpuhw->used; in cfset_all_copy()
1039 uptr - (void __user *)ctrset_read->data); in cfset_all_copy()
/linux/arch/s390/include/asm/
A Dcompat.h166 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument
168 return (void __user *)(unsigned long)(uptr & 0x7fffffffUL); in compat_ptr()
170 #define compat_ptr(uptr) compat_ptr(uptr) argument
/linux/arch/s390/pci/
A Dpci_clp.c556 void __user *uptr; in clp_normal_command() local
569 uptr = (void __force __user *)(unsigned long) req->data_p; in clp_normal_command()
570 if (copy_from_user(lpcb, uptr, PAGE_SIZE) != 0) in clp_normal_command()
589 if (copy_to_user(uptr, lpcb, PAGE_SIZE) != 0) in clp_normal_command()
602 void __user *uptr; in clp_immediate_command() local
609 uptr = (void __force __user *)(unsigned long) req->data_p; in clp_immediate_command()
613 return put_user(exists, (int __user *) uptr); in clp_immediate_command()
616 return put_user(ilp, (unsigned long __user *) uptr); in clp_immediate_command()
/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_bo_list.c226 const void __user *uptr = u64_to_user_ptr(in->bo_info_ptr); in amdgpu_bo_create_list_entry_array() local
241 if (copy_from_user(info, uptr, bytes)) in amdgpu_bo_create_list_entry_array()
250 if (copy_from_user(&info[i], uptr, bytes)) in amdgpu_bo_create_list_entry_array()
253 uptr += in->bo_info_size; in amdgpu_bo_create_list_entry_array()
/linux/ipc/
A Dsyscall.c161 void __user *uptr = compat_ptr(ptr); in compat_ksys_ipc() local
168 if (!uptr) in compat_ksys_ipc()
170 if (copy_from_user(&ipck, uptr, sizeof(ipck))) in compat_ksys_ipc()
A Dmsg.c726 static long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr, int version) in compat_ksys_msgctl() argument
744 if (copy_to_user(uptr, &msginfo, sizeof(struct msginfo))) in compat_ksys_msgctl()
754 if (copy_compat_msqid_to_user(uptr, &msqid64, version)) in compat_ksys_msgctl()
758 if (copy_compat_msqid_from_user(&msqid64, uptr, version)) in compat_ksys_msgctl()
768 COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument
770 return compat_ksys_msgctl(msqid, cmd, uptr, IPC_64); in COMPAT_SYSCALL_DEFINE3()
774 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr) in compat_ksys_old_msgctl() argument
778 return compat_ksys_msgctl(msqid, cmd, uptr, version); in compat_ksys_old_msgctl()
781 COMPAT_SYSCALL_DEFINE3(old_msgctl, int, msqid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument
783 return compat_ksys_old_msgctl(msqid, cmd, uptr); in COMPAT_SYSCALL_DEFINE3()
A Dshm.c1424 static long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version) in compat_ksys_shmctl() argument
1441 if (copy_compat_shminfo_to_user(uptr, &shminfo, version)) in compat_ksys_shmctl()
1450 if (put_compat_shm_info(&shm_info, uptr)) in compat_ksys_shmctl()
1460 if (copy_compat_shmid_to_user(uptr, &sem64, version)) in compat_ksys_shmctl()
1465 if (copy_compat_shmid_from_user(&sem64, uptr, version)) in compat_ksys_shmctl()
1479 COMPAT_SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument
1481 return compat_ksys_shmctl(shmid, cmd, uptr, IPC_64); in COMPAT_SYSCALL_DEFINE3()
1485 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr) in compat_ksys_old_shmctl() argument
1489 return compat_ksys_shmctl(shmid, cmd, uptr, version); in compat_ksys_old_shmctl()
1492 COMPAT_SYSCALL_DEFINE3(old_shmctl, int, shmid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument
[all …]
A Dutil.h284 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr);
289 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr);
/linux/drivers/usb/mon/
A Dmon_bin.c1083 struct mon_bin_mfetch __user *uptr; in mon_bin_ioctl() local
1085 uptr = (struct mon_bin_mfetch __user *)arg; in mon_bin_ioctl()
1087 if (copy_from_user(&mfetch, uptr, sizeof(mfetch))) in mon_bin_ioctl()
1094 if (put_user(ret, &uptr->nflush)) in mon_bin_ioctl()
1100 if (put_user(ret, &uptr->nfetch)) in mon_bin_ioctl()
1162 struct mon_bin_mfetch32 __user *uptr; in mon_bin_compat_ioctl() local
1164 uptr = (struct mon_bin_mfetch32 __user *) compat_ptr(arg); in mon_bin_compat_ioctl()
1166 if (copy_from_user(&mfetch, uptr, sizeof(mfetch))) in mon_bin_compat_ioctl()
1173 if (put_user(ret, &uptr->nflush32)) in mon_bin_compat_ioctl()
1180 if (put_user(ret, &uptr->nfetch32)) in mon_bin_compat_ioctl()
/linux/drivers/virt/acrn/
A Dhsm.c42 static int pmcmd_ioctl(u64 cmd, void __user *uptr) in pmcmd_ioctl() argument
62 if (copy_to_user(uptr, pm_info, sizeof(u64))) in pmcmd_ioctl()
77 if (copy_to_user(uptr, px_data, sizeof(*px_data))) in pmcmd_ioctl()
92 if (copy_to_user(uptr, cx_data, sizeof(*cx_data))) in pmcmd_ioctl()
/linux/include/linux/
A Dcompat.h765 asmlinkage long compat_sys_msgctl(int first, int second, void __user *uptr);
775 asmlinkage long compat_sys_shmctl(int first, int second, void __user *uptr);
974 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument
976 return (void __user *)(unsigned long)uptr; in compat_ptr()
980 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument
982 return (u32)(unsigned long)uptr; in ptr_to_compat()
/linux/drivers/xen/
A Dprivcmd.c591 offset_in_page(kbufs[i].uptr) + kbufs[i].size, in lock_pages()
597 (unsigned long) kbufs[i].uptr, in lock_pages()
656 if (!access_ok(kbufs[i].uptr, in privcmd_ioctl_dm_op()
663 offset_in_page(kbufs[i].uptr) + kbufs[i].size, in privcmd_ioctl_dm_op()
686 set_xen_guest_handle(xbufs[i].h, kbufs[i].uptr); in privcmd_ioctl_dm_op()
/linux/arch/arm64/kvm/
A Dguest.c482 char __user *uptr = (char __user *)reg->addr; in get_sve_reg() local
496 if (copy_to_user(uptr, vcpu->arch.sve_state + region.koffset, in get_sve_reg()
498 clear_user(uptr + region.klen, region.upad)) in get_sve_reg()
508 const char __user *uptr = (const char __user *)reg->addr; in set_sve_reg() local
522 if (copy_from_user(vcpu->arch.sve_state + region.koffset, uptr, in set_sve_reg()
/linux/include/uapi/xen/
A Dprivcmd.h82 void __user *uptr; member
/linux/net/batman-adv/
A Dtvlv.h33 int (*uptr)(struct batadv_priv *bat_priv,
A Dtvlv.c517 int (*uptr)(struct batadv_priv *bat_priv, in batadv_tvlv_handler_register()
541 tvlv_handler->unicast_handler = uptr; in batadv_tvlv_handler_register()
/linux/arch/powerpc/platforms/book3s/
A Dvas-api.c281 void __user *uptr = (void __user *)arg; in coproc_ioc_tx_win_open() local
295 rc = copy_from_user(&uattr, uptr, sizeof(uattr)); in coproc_ioc_tx_win_open()
/linux/net/ipv4/netfilter/
A Darp_tables.c846 static int get_entries(struct net *net, struct arpt_get_entries __user *uptr, in get_entries() argument
855 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in get_entries()
868 t, uptr->entrytable); in get_entries()
1366 struct compat_arpt_get_entries __user *uptr, in compat_get_entries() argument
1375 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in compat_get_entries()
1391 t, uptr->entrytable); in compat_get_entries()
A Dip_tables.c1005 get_entries(struct net *net, struct ipt_get_entries __user *uptr, in get_entries() argument
1014 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in get_entries()
1025 t, uptr->entrytable); in get_entries()
1574 compat_get_entries(struct net *net, struct compat_ipt_get_entries __user *uptr, in compat_get_entries() argument
1584 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in compat_get_entries()
1600 t, uptr->entrytable); in compat_get_entries()
/linux/drivers/android/
A Dbinder_alloc.c132 void __user *uptr; in binder_alloc_prepare_to_free_locked() local
134 uptr = (void __user *)user_ptr; in binder_alloc_prepare_to_free_locked()
140 if (uptr < buffer->user_data) in binder_alloc_prepare_to_free_locked()
142 else if (uptr > buffer->user_data) in binder_alloc_prepare_to_free_locked()
/linux/drivers/staging/vc04_services/interface/vchiq_arm/
A Dvchiq_dev.c383 compat_uptr_t __user *uptr = ubuf; in vchiq_get_user_ptr() local
385 ret = get_user(ptr32, uptr + index); in vchiq_get_user_ptr()
391 uintptr_t ptr, __user *uptr = ubuf; in vchiq_get_user_ptr() local
393 ret = get_user(ptr, uptr + index); in vchiq_get_user_ptr()
/linux/lib/
A Dtest_hmm.c981 char __user *uptr; in dmirror_snapshot() local
1001 uptr = u64_to_user_ptr(cmd->ptr); in dmirror_snapshot()
1014 if (copy_to_user(uptr, perm, n)) { in dmirror_snapshot()
1020 uptr += n; in dmirror_snapshot()
/linux/net/ipv6/netfilter/
A Dip6_tables.c1021 get_entries(struct net *net, struct ip6t_get_entries __user *uptr, in get_entries() argument
1030 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in get_entries()
1042 t, uptr->entrytable); in get_entries()
1583 compat_get_entries(struct net *net, struct compat_ip6t_get_entries __user *uptr, in compat_get_entries() argument
1593 if (copy_from_user(&get, uptr, sizeof(get)) != 0) in compat_get_entries()
1609 t, uptr->entrytable); in compat_get_entries()

Completed in 58 milliseconds

12