/linux-6.1.9/arch/arm/lib/ |
D | uaccess_with_memcpy.c | 228 void *user_ptr, *kernel_ptr; 240 user_ptr = vmap(&dst_page, 1, VM_IOREMAP, __pgprot(__PAGE_COPY)); 241 if (!user_ptr) 245 ret = __copy_to_user_memcpy(user_ptr, kernel_ptr, PAGE_SIZE); 249 ret |= __copy_to_user_memcpy(user_ptr, kernel_ptr, size); 251 ret |= __copy_to_user_std(user_ptr, kernel_ptr, size); 258 ret |= __clear_user_memset(user_ptr, size); 260 ret |= __clear_user_std(user_ptr, size); 268 vunmap(user_ptr);
|
/linux-6.1.9/net/ieee802154/ |
D | nl802154.c | 644 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_get_wpan_phy() 887 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_get_interface() 888 struct wpan_dev *wdev = info->user_ptr[1]; in nl802154_get_interface() 905 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_new_interface() 936 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_del_interface() 937 struct wpan_dev *wpan_dev = info->user_ptr[1]; in nl802154_del_interface() 949 info->user_ptr[1] = NULL; in nl802154_del_interface() 956 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_set_channel() 976 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_set_cca_mode() 1007 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_set_cca_ed_level() [all …]
|
/linux-6.1.9/net/batman-adv/ |
D | netlink.c | 412 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_mesh() 441 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_set_mesh() 710 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_start() 767 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_cancel() 895 struct batadv_hard_iface *hard_iface = info->user_ptr[1]; in batadv_netlink_get_hardif() 896 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_hardif() 928 struct batadv_hard_iface *hard_iface = info->user_ptr[1]; in batadv_netlink_set_hardif() 929 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_set_hardif() 1109 struct batadv_softif_vlan *vlan = info->user_ptr[1]; in batadv_netlink_get_vlan() 1110 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_vlan() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | test_probe_read_user_str.c | 11 void *user_ptr = 0; variable 20 ret = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr); in on_write()
|
D | test_attach_probe.c | 24 void *user_ptr = 0; variable 116 bpf_copy_from_user(data, sizeof(data), user_ptr); in verify_sleepable_user_copy()
|
/linux-6.1.9/drivers/accessibility/speakup/ |
D | i18n.c | 518 char *user_ptr = user; in fmt_validate() local 522 user_ptr = next_specifier(user_ptr); in fmt_validate() 523 if (template_ptr && user_ptr) { in fmt_validate() 525 valid = compare_specifiers(&template_ptr, &user_ptr); in fmt_validate() 530 if (template_ptr || user_ptr) in fmt_validate()
|
/linux-6.1.9/net/wireless/ |
D | nl80211.c | 3105 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_wiphy() 3370 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_channel() 3372 struct net_device *netdev = info->user_ptr[1]; in nl80211_set_channel() 3978 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_interface() 3979 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_get_interface() 4116 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_interface() 4120 struct net_device *dev = info->user_ptr[1]; in nl80211_set_interface() 4187 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in _nl80211_new_interface() 4284 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_new_interface() 4299 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_del_interface() [all …]
|
D | pmsr.c | 263 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_pmsr_start() 264 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_pmsr_start()
|
/linux-6.1.9/drivers/gpu/drm/etnaviv/ |
D | etnaviv_drv.c | 372 if (offset_in_page(args->user_ptr | args->user_size) || in etnaviv_ioctl_gem_userptr() 373 (uintptr_t)args->user_ptr != args->user_ptr || in etnaviv_ioctl_gem_userptr() 375 args->user_ptr & ~PAGE_MASK) in etnaviv_ioctl_gem_userptr() 378 if (!access_ok((void __user *)(unsigned long)args->user_ptr, in etnaviv_ioctl_gem_userptr() 382 return etnaviv_gem_new_userptr(dev, file, args->user_ptr, in etnaviv_ioctl_gem_userptr()
|
/linux-6.1.9/drivers/gpu/drm/i915/gem/ |
D | i915_gem_userptr.c | 516 if (offset_in_page(args->user_ptr | args->user_size)) in i915_gem_userptr_ioctl() 519 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl() 539 ret = probe_range(current->mm, args->user_ptr, args->user_size); in i915_gem_userptr_ioctl() 557 obj->userptr.ptr = args->user_ptr; in i915_gem_userptr_ioctl()
|
/linux-6.1.9/drivers/media/v4l2-core/ |
D | v4l2-compat-ioctl32.c | 1038 void __user *user_ptr, size_t array_size, in v4l2_compat_get_array_args() argument 1051 struct v4l2_clip32 __user *c32 = user_ptr; in v4l2_compat_get_array_args() 1081 struct v4l2_plane32 __user *p32 = user_ptr; in v4l2_compat_get_array_args() 1104 struct v4l2_ext_control32 __user *ec32 = user_ptr; in v4l2_compat_get_array_args() 1124 if (copy_from_user(mbuf, user_ptr, array_size)) in v4l2_compat_get_array_args() 1132 int v4l2_compat_put_array_args(struct file *file, void __user *user_ptr, in v4l2_compat_put_array_args() argument 1144 struct v4l2_clip32 __user *c32 = user_ptr; in v4l2_compat_put_array_args() 1173 struct v4l2_plane32 __user *p32 = user_ptr; in v4l2_compat_put_array_args() 1196 struct v4l2_ext_control32 __user *ec32 = user_ptr; in v4l2_compat_put_array_args() 1219 if (copy_to_user(user_ptr, mbuf, array_size)) in v4l2_compat_put_array_args()
|
D | v4l2-ioctl.c | 3074 void __user **user_ptr, void ***kernel_ptr) in check_array_args() argument 3090 *user_ptr = (void __user *)buf->m.planes; in check_array_args() 3107 *user_ptr = (void __user *)edid->edid; in check_array_args() 3125 *user_ptr = (void __user *)ctrls->controls; in check_array_args() 3146 *user_ptr = (void __user *)fmt->fmt.win.clips; in check_array_args() 3338 void __user *user_ptr = NULL; in video_usercopy() local 3361 err = check_array_args(cmd, parg, &array_size, &user_ptr, &kernel_ptr); in video_usercopy() 3373 user_ptr, array_size, in video_usercopy() 3376 err = copy_from_user(array_buf, user_ptr, array_size) ? in video_usercopy() 3405 *kernel_ptr = (void __force *)user_ptr; in video_usercopy() [all …]
|
/linux-6.1.9/net/core/ |
D | devlink.c | 784 info->user_ptr[0] = devlink; in devlink_nl_pre_doit() 791 info->user_ptr[1] = devlink_port; in devlink_nl_pre_doit() 795 info->user_ptr[1] = devlink_port; in devlink_nl_pre_doit() 804 info->user_ptr[1] = devlink_rate; in devlink_nl_pre_doit() 813 info->user_ptr[1] = rate_node; in devlink_nl_pre_doit() 820 info->user_ptr[1] = linecard; in devlink_nl_pre_doit() 836 devlink = info->user_ptr[0]; in devlink_nl_post_doit() 838 linecard = info->user_ptr[1]; in devlink_nl_post_doit() 1441 struct devlink_rate *devlink_rate = info->user_ptr[1]; in devlink_nl_cmd_rate_get_doit() 1474 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_get_doit() [all …]
|
/linux-6.1.9/arch/x86/xen/ |
D | mmu_pv.c | 450 pgd_t *user_ptr = NULL; in xen_get_user_pgd() local 454 user_ptr = (pgd_t *)page->private; in xen_get_user_pgd() 455 if (user_ptr) in xen_get_user_pgd() 456 user_ptr += offset; in xen_get_user_pgd() 459 return user_ptr; in xen_get_user_pgd() 493 pgd_t *user_ptr = xen_get_user_pgd((pgd_t *)ptr); in xen_set_p4d() local 496 trace_xen_mmu_set_p4d(ptr, (p4d_t *)user_ptr, val); in xen_set_p4d() 502 if (user_ptr) { in xen_set_p4d() 503 WARN_ON(xen_page_pinned(user_ptr)); in xen_set_p4d() 505 *user_ptr = pgd_val; in xen_set_p4d() [all …]
|
/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | probe_read_user_str.c | 20 skel->bss->user_ptr = buf; in test_one_str()
|
D | attach_probe.c | 192 skel->bss->user_ptr = test_data; in test_attach_probe()
|
/linux-6.1.9/arch/arm64/kernel/ |
D | armv8_deprecated.c | 369 const void __user *user_ptr; in swp_handler() local 401 user_ptr = (const void __user *)(unsigned long)(address & ~3); in swp_handler() 402 if (!access_ok(user_ptr, 4)) { in swp_handler()
|
/linux-6.1.9/kernel/bpf/ |
D | helpers.c | 645 const void __user *, user_ptr) in BPF_CALL_3() argument 647 int ret = copy_from_user(dst, user_ptr, size); in BPF_CALL_3() 667 const void __user *, user_ptr, struct task_struct *, tsk, u64, flags) in BPF_CALL_5() argument 678 ret = access_process_vm(tsk, (unsigned long)user_ptr, dst, size, 0); in BPF_CALL_5() 730 void __user *user_ptr = (__force void __user *)unsafe_ptr; in bpf_trace_copy_string() local 738 return strncpy_from_user_nofault(buf, user_ptr, bufsz); in bpf_trace_copy_string() 744 return strncpy_from_user_nofault(buf, user_ptr, bufsz); in bpf_trace_copy_string()
|
/linux-6.1.9/drivers/gpu/drm/panfrost/ |
D | panfrost_perfcnt.c | 243 void __user *user_ptr = (void __user *)(uintptr_t)req->buf_ptr; in panfrost_ioctl_perfcnt_dump() local 260 if (copy_to_user(user_ptr, perfcnt->buf, perfcnt->bosize)) in panfrost_ioctl_perfcnt_dump()
|
/linux-6.1.9/drivers/android/ |
D | binder_alloc.h | 135 uintptr_t user_ptr);
|
D | binder_alloc.c | 128 uintptr_t user_ptr) in binder_alloc_prepare_to_free_locked() argument 134 uptr = (void __user *)user_ptr; in binder_alloc_prepare_to_free_locked() 171 uintptr_t user_ptr) in binder_alloc_prepare_to_free() argument 176 buffer = binder_alloc_prepare_to_free_locked(alloc, user_ptr); in binder_alloc_prepare_to_free()
|
/linux-6.1.9/include/uapi/drm/ |
D | etnaviv_drm.h | 233 __u64 user_ptr; /* in, page aligned user pointer */ member
|
/linux-6.1.9/include/media/ |
D | v4l2-ioctl.h | 693 void __user *user_ptr, size_t array_size, 695 int v4l2_compat_put_array_args(struct file *file, void __user *user_ptr,
|
/linux-6.1.9/drivers/gpu/drm/radeon/ |
D | radeon_cs.c | 341 p->chunks[i].user_ptr = cdata; in radeon_cs_parser_init() 638 ib_chunk->user_ptr, in radeon_cs_ib_fill() 660 else if (copy_from_user(parser->ib.ptr, ib_chunk->user_ptr, ib_chunk->length_dw * 4)) in radeon_cs_ib_fill()
|
/linux-6.1.9/include/net/ |
D | genetlink.h | 106 void * user_ptr[2]; member
|