Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/misc/vmw_vmci/
Dvmci_host.c264 unsigned int cmd, void __user *uptr) in vmci_host_get_version() argument
267 int __user *vptr = uptr; in vmci_host_get_version()
299 void __user *uptr) in vmci_host_do_init_context() argument
305 if (copy_from_user(&init_block, uptr, sizeof(init_block))) { in vmci_host_do_init_context()
341 if (copy_to_user(uptr, &init_block, sizeof(init_block))) { in vmci_host_do_init_context()
363 void __user *uptr) in vmci_host_do_send_datagram() argument
374 if (copy_from_user(&send_info, uptr, sizeof(send_info))) in vmci_host_do_send_datagram()
413 return copy_to_user(uptr, &send_info, sizeof(send_info)) ? -EFAULT : 0; in vmci_host_do_send_datagram()
418 void __user *uptr) in vmci_host_do_receive_datagram() argument
430 if (copy_from_user(&recv_info, uptr, sizeof(recv_info))) in vmci_host_do_receive_datagram()
[all …]
/linux-6.6.21/arch/s390/kernel/
Duprobes.c269 void *uptr; in handle_insn_ril() local
274 uptr = (void *)(regs->psw.addr + (insn->disp * 2)); in handle_insn_ril()
281 rx->u64 = (unsigned long)uptr; in handle_insn_ril()
288 rc = emu_load_ril((u16 __user *)uptr, &rx->u32[1]); in handle_insn_ril()
291 rc = emu_load_ril((s16 __user *)uptr, &rx->u64); in handle_insn_ril()
294 rc = emu_load_ril((s16 __user *)uptr, &rx->u32[1]); in handle_insn_ril()
297 rc = emu_load_ril((u16 __user *)uptr, &rx->u64); in handle_insn_ril()
300 rc = emu_load_ril((u64 __user *)uptr, &rx->u64); in handle_insn_ril()
303 rc = emu_load_ril((s32 __user *)uptr, &rx->u64); in handle_insn_ril()
306 rc = emu_load_ril((u32 __user *)uptr, &rx->u32[1]); in handle_insn_ril()
[all …]
/linux-6.6.21/tools/net/ynl/lib/
Dynl.h165 unsigned long uptr = (unsigned long)obj; in ynl_dump_obj_is_last() local
167 uptr -= offsetof(struct ynl_dump_list_type, data); in ynl_dump_obj_is_last()
168 return uptr == (unsigned long)YNL_LIST_END; in ynl_dump_obj_is_last()
173 unsigned long uptr = (unsigned long)obj; in ynl_dump_obj_next() local
176 uptr -= offsetof(struct ynl_dump_list_type, data); in ynl_dump_obj_next()
177 list = (void *)uptr; in ynl_dump_obj_next()
178 uptr = (unsigned long)list->next; in ynl_dump_obj_next()
179 uptr += offsetof(struct ynl_dump_list_type, data); in ynl_dump_obj_next()
181 return (void *)uptr; in ynl_dump_obj_next()
/linux-6.6.21/drivers/iommu/iommufd/
Diommufd_test.h65 __aligned_u64 uptr; member
69 __aligned_u64 uptr; member
84 __aligned_u64 uptr; member
89 __aligned_u64 uptr; member
Dselftest.c516 size_t length, void __user *uptr) in iommufd_test_md_check_pa() argument
524 (uintptr_t)uptr % MOCK_IO_PAGE_SIZE || in iommufd_test_md_check_pa()
525 check_add_overflow((uintptr_t)uptr, (uintptr_t)length, &end)) in iommufd_test_md_check_pa()
538 npages = get_user_pages_fast((uintptr_t)uptr & PAGE_MASK, 1, 0, in iommufd_test_md_check_pa()
554 pfn * PAGE_SIZE + ((uintptr_t)uptr % PAGE_SIZE)) { in iommufd_test_md_check_pa()
559 uptr += MOCK_IO_PAGE_SIZE; in iommufd_test_md_check_pa()
570 void __user *uptr, size_t length, in iommufd_test_md_check_refs() argument
575 if (length % PAGE_SIZE || (uintptr_t)uptr % PAGE_SIZE || in iommufd_test_md_check_refs()
576 check_add_overflow((uintptr_t)uptr, (uintptr_t)length, &end)) in iommufd_test_md_check_refs()
583 npages = get_user_pages_fast((uintptr_t)uptr, 1, 0, pages); in iommufd_test_md_check_refs()
[all …]
Dpages.c743 uintptr_t uptr; in pfn_reader_user_pin() local
779 uptr = (uintptr_t)(pages->uptr + start_index * PAGE_SIZE); in pfn_reader_user_pin()
781 rc = pin_user_pages_fast(uptr, npages, user->gup_flags, in pfn_reader_user_pin()
788 rc = pin_user_pages_remote(pages->source_mm, uptr, npages, in pfn_reader_user_pin()
1141 struct iopt_pages *iopt_alloc_pages(void __user *uptr, unsigned long length, in iopt_alloc_pages() argument
1154 if (check_add_overflow((unsigned long)uptr, length, &end)) in iopt_alloc_pages()
1166 pages->uptr = (void __user *)ALIGN_DOWN((uintptr_t)uptr, PAGE_SIZE); in iopt_alloc_pages()
1167 pages->npages = DIV_ROUND_UP(length + (uptr - pages->uptr), PAGE_SIZE); in iopt_alloc_pages()
1802 pages->source_mm, (uintptr_t)(pages->uptr + index * PAGE_SIZE), in iopt_pages_rw_page()
1870 if (copy_to_user(pages->uptr + start_byte, data, length)) in iopt_pages_rw_access()
[all …]
Dio_pagetable.c109 unsigned long uptr, unsigned long length) in iopt_alloc_iova() argument
111 unsigned long page_offset = uptr % PAGE_SIZE; in iopt_alloc_iova()
126 if (!uptr) in iopt_alloc_iova()
131 1UL << __ffs64(uptr)); in iopt_alloc_iova()
263 (uintptr_t)elm->pages->uptr + elm->start_byte, length); in iopt_alloc_area_pages()
398 unsigned long *iova, void __user *uptr, in iopt_map_user_pages() argument
406 elm.pages = iopt_alloc_pages(uptr, length, iommu_prot & IOMMU_WRITE); in iopt_map_user_pages()
412 elm.start_byte = uptr - elm.pages->uptr; in iopt_map_user_pages()
Dio_pagetable.h198 void __user *uptr; member
209 struct iopt_pages *iopt_alloc_pages(void __user *uptr, unsigned long length,
/linux-6.6.21/arch/s390/include/asm/
Dcompat.h125 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument
127 return (void __user *)(unsigned long)(uptr & 0x7fffffffUL); in compat_ptr()
129 #define compat_ptr(uptr) compat_ptr(uptr) argument
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_bo_list.c198 const void __user *uptr = u64_to_user_ptr(in->bo_info_ptr); in amdgpu_bo_create_list_entry_array() local
213 if (copy_from_user(info, uptr, bytes)) in amdgpu_bo_create_list_entry_array()
222 if (copy_from_user(&info[i], uptr, bytes)) in amdgpu_bo_create_list_entry_array()
225 uptr += in->bo_info_size; in amdgpu_bo_create_list_entry_array()
/linux-6.6.21/arch/s390/pci/
Dpci_clp.c569 void __user *uptr; in clp_normal_command() local
582 uptr = (void __force __user *)(unsigned long) req->data_p; in clp_normal_command()
583 if (copy_from_user(lpcb, uptr, PAGE_SIZE) != 0) in clp_normal_command()
602 if (copy_to_user(uptr, lpcb, PAGE_SIZE) != 0) in clp_normal_command()
615 void __user *uptr; in clp_immediate_command() local
622 uptr = (void __force __user *)(unsigned long) req->data_p; in clp_immediate_command()
626 return put_user(exists, (int __user *) uptr); in clp_immediate_command()
629 return put_user(ilp, (unsigned long __user *) uptr); in clp_immediate_command()
/linux-6.6.21/ipc/
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()
Dmsg.c732 static long compat_ksys_msgctl(int msqid, int cmd, void __user *uptr, int version) in compat_ksys_msgctl() argument
750 if (copy_to_user(uptr, &msginfo, sizeof(struct msginfo))) in compat_ksys_msgctl()
760 if (copy_compat_msqid_to_user(uptr, &msqid64, version)) in compat_ksys_msgctl()
764 if (copy_compat_msqid_from_user(&msqid64, uptr, version)) in compat_ksys_msgctl()
774 COMPAT_SYSCALL_DEFINE3(msgctl, int, msqid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument
776 return compat_ksys_msgctl(msqid, cmd, uptr, IPC_64); in COMPAT_SYSCALL_DEFINE3()
780 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr) in compat_ksys_old_msgctl() argument
784 return compat_ksys_msgctl(msqid, cmd, uptr, version); in compat_ksys_old_msgctl()
787 COMPAT_SYSCALL_DEFINE3(old_msgctl, int, msqid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument
789 return compat_ksys_old_msgctl(msqid, cmd, uptr); in COMPAT_SYSCALL_DEFINE3()
Dshm.c1440 static long compat_ksys_shmctl(int shmid, int cmd, void __user *uptr, int version) in compat_ksys_shmctl() argument
1457 if (copy_compat_shminfo_to_user(uptr, &shminfo, version)) in compat_ksys_shmctl()
1466 if (put_compat_shm_info(&shm_info, uptr)) in compat_ksys_shmctl()
1476 if (copy_compat_shmid_to_user(uptr, &sem64, version)) in compat_ksys_shmctl()
1481 if (copy_compat_shmid_from_user(&sem64, uptr, version)) in compat_ksys_shmctl()
1495 COMPAT_SYSCALL_DEFINE3(shmctl, int, shmid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument
1497 return compat_ksys_shmctl(shmid, cmd, uptr, IPC_64); in COMPAT_SYSCALL_DEFINE3()
1501 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr) in compat_ksys_old_shmctl() argument
1505 return compat_ksys_shmctl(shmid, cmd, uptr, version); in compat_ksys_old_shmctl()
1508 COMPAT_SYSCALL_DEFINE3(old_shmctl, int, shmid, int, cmd, void __user *, uptr) in COMPAT_SYSCALL_DEFINE3() argument
[all …]
Dutil.h282 long compat_ksys_old_msgctl(int msqid, int cmd, void __user *uptr);
287 long compat_ksys_old_shmctl(int shmid, int cmd, void __user *uptr);
/linux-6.6.21/drivers/usb/mon/
Dmon_bin.c1086 struct mon_bin_mfetch __user *uptr; in mon_bin_ioctl() local
1088 uptr = (struct mon_bin_mfetch __user *)arg; in mon_bin_ioctl()
1090 if (copy_from_user(&mfetch, uptr, sizeof(mfetch))) in mon_bin_ioctl()
1097 if (put_user(ret, &uptr->nflush)) in mon_bin_ioctl()
1103 if (put_user(ret, &uptr->nfetch)) in mon_bin_ioctl()
1165 struct mon_bin_mfetch32 __user *uptr; in mon_bin_compat_ioctl() local
1167 uptr = (struct mon_bin_mfetch32 __user *) compat_ptr(arg); in mon_bin_compat_ioctl()
1169 if (copy_from_user(&mfetch, uptr, sizeof(mfetch))) in mon_bin_compat_ioctl()
1176 if (put_user(ret, &uptr->nflush32)) in mon_bin_compat_ioctl()
1183 if (put_user(ret, &uptr->nfetch32)) in mon_bin_compat_ioctl()
/linux-6.6.21/drivers/virt/acrn/
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-6.6.21/tools/testing/selftests/iommu/
Diommufd_fail_nth.c415 .uptr = (uintptr_t)tmp }, in TEST_FAIL_NTH()
447 .uptr = (uintptr_t)tmp_big }, in TEST_FAIL_NTH()
495 .uptr = (uintptr_t)buffer }, in TEST_FAIL_NTH()
554 .uptr = (uintptr_t)buffer }, in TEST_FAIL_NTH()
Diommufd.c649 access_cmd.access_pages.uptr = (uintptr_t)buf + PAGE_SIZE; in TEST_F()
671 .uptr = (uintptr_t)buffer }, in TEST_F()
678 .uptr = (uintptr_t)buffer }, in TEST_F()
743 .uptr = (uintptr_t)buffer }, in TEST_F()
771 .access_rw = { .uptr = (uintptr_t)tmp }, in check_access_rw()
817 access_cmd.access_rw.uptr = (uintptr_t)tmp2; in check_access_rw()
1148 .uptr = (uintptr_t)(_ptr) }, \
1313 .uptr = (uintptr_t)buffer }, in TEST_F()
/linux-6.6.21/include/linux/
Dcompat.h744 asmlinkage long compat_sys_msgctl(int first, int second, void __user *uptr);
750 asmlinkage long compat_sys_shmctl(int first, int second, void __user *uptr);
977 static inline void __user *compat_ptr(compat_uptr_t uptr) in compat_ptr() argument
979 return (void __user *)(unsigned long)uptr; in compat_ptr()
983 static inline compat_uptr_t ptr_to_compat(void __user *uptr) in ptr_to_compat() argument
985 return (u32)(unsigned long)uptr; in ptr_to_compat()
/linux-6.6.21/net/batman-adv/
Dtvlv.h34 int (*uptr)(struct batadv_priv *bat_priv,
/linux-6.6.21/arch/arm64/kvm/
Dguest.c488 char __user *uptr = (char __user *)reg->addr; in get_sve_reg() local
502 if (copy_to_user(uptr, vcpu->arch.sve_state + region.koffset, in get_sve_reg()
504 clear_user(uptr + region.klen, region.upad)) in get_sve_reg()
514 const char __user *uptr = (const char __user *)reg->addr; in set_sve_reg() local
528 if (copy_from_user(vcpu->arch.sve_state + region.koffset, uptr, in set_sve_reg()
/linux-6.6.21/include/uapi/xen/
Dprivcmd.h82 void __user *uptr; member
/linux-6.6.21/drivers/xen/
Dprivcmd.c596 offset_in_page(kbufs[i].uptr) + kbufs[i].size, in lock_pages()
602 (unsigned long)kbufs[i].uptr + off * PAGE_SIZE, in lock_pages()
664 if (!access_ok(kbufs[i].uptr, in privcmd_ioctl_dm_op()
671 offset_in_page(kbufs[i].uptr) + kbufs[i].size, in privcmd_ioctl_dm_op()
692 set_xen_guest_handle(xbufs[i].h, kbufs[i].uptr); in privcmd_ioctl_dm_op()
/linux-6.6.21/drivers/vfio/
Dvfio_main.c1209 void __user *uptr = (void __user *)arg; in vfio_device_fops_unl_ioctl() local
1213 return vfio_df_ioctl_bind_iommufd(df, uptr); in vfio_device_fops_unl_ioctl()
1227 ret = vfio_df_ioctl_attach_pt(df, uptr); in vfio_device_fops_unl_ioctl()
1231 ret = vfio_df_ioctl_detach_pt(df, uptr); in vfio_device_fops_unl_ioctl()
1238 ret = vfio_ioctl_device_feature(device, uptr); in vfio_device_fops_unl_ioctl()

12