Searched refs:user_ptr (Results 1 - 25 of 50) sorted by relevance

12

/linux-master/tools/testing/selftests/bpf/progs/
H A Dread_vsyscall.c9 void *user_ptr = 0; variable
22 read_ret[0] = bpf_probe_read_kernel(buf, sizeof(buf), user_ptr);
23 read_ret[1] = bpf_probe_read_kernel_str(buf, sizeof(buf), user_ptr);
24 read_ret[2] = bpf_probe_read(buf, sizeof(buf), user_ptr);
25 read_ret[3] = bpf_probe_read_str(buf, sizeof(buf), user_ptr);
26 read_ret[4] = bpf_probe_read_user(buf, sizeof(buf), user_ptr);
27 read_ret[5] = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr);
40 read_ret[6] = bpf_copy_from_user(buf, sizeof(buf), user_ptr);
41 read_ret[7] = bpf_copy_from_user_task(buf, sizeof(buf), user_ptr,
H A Dtest_probe_read_user_str.c11 void *user_ptr = 0; variable
20 ret = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr);
H A Dtest_attach_probe_manual.c15 void *user_ptr = 0; variable
H A Dtest_attach_probe.c20 void *user_ptr = 0; variable
86 bpf_copy_from_user(data, sizeof(data), user_ptr);
H A Duprobe_multi.c27 void *user_ptr = 0; variable
33 bpf_copy_from_user(data, sizeof(data), user_ptr);
/linux-master/arch/arm/lib/
H A Duaccess_with_memcpy.c231 void *user_ptr, *kernel_ptr;
243 user_ptr = vmap(&dst_page, 1, VM_IOREMAP, __pgprot(__PAGE_COPY));
244 if (!user_ptr)
248 ret = __copy_to_user_memcpy(user_ptr, kernel_ptr, PAGE_SIZE);
252 ret |= __copy_to_user_memcpy(user_ptr, kernel_ptr, size);
254 ret |= __copy_to_user_std(user_ptr, kernel_ptr, size);
261 ret |= __clear_user_memset(user_ptr, size);
263 ret |= __clear_user_std(user_ptr, size);
271 vunmap(user_ptr);
/linux-master/net/ieee802154/
H A Dnl802154.c663 struct cfg802154_registered_device *rdev = info->user_ptr[0];
906 struct cfg802154_registered_device *rdev = info->user_ptr[0];
907 struct wpan_dev *wdev = info->user_ptr[1];
924 struct cfg802154_registered_device *rdev = info->user_ptr[0];
955 struct cfg802154_registered_device *rdev = info->user_ptr[0];
956 struct wpan_dev *wpan_dev = info->user_ptr[1];
962 * user_ptr[1] so that nl802154_post_doit won't dereference it
968 info->user_ptr[1] = NULL;
975 struct cfg802154_registered_device *rdev = info->user_ptr[0];
994 struct cfg802154_registered_device *rdev = info->user_ptr[
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dread_vsyscall.c50 skel->bss->user_ptr = (void *)VSYSCALL_ADDR;
H A Dprobe_read_user_str.c20 skel->bss->user_ptr = buf;
/linux-master/drivers/accessibility/speakup/
H A Di18n.c518 char *user_ptr = user; local
522 user_ptr = next_specifier(user_ptr);
523 if (template_ptr && user_ptr) {
525 valid = compare_specifiers(&template_ptr, &user_ptr);
530 if (template_ptr || user_ptr)
/linux-master/net/batman-adv/
H A Dnetlink.c69 * saved in info->user_ptr[0]
76 * saved in info->user_ptr[1]
83 * saved in info->user_ptr[1]
411 struct batadv_priv *bat_priv = info->user_ptr[0];
440 struct batadv_priv *bat_priv = info->user_ptr[0];
709 struct batadv_priv *bat_priv = info->user_ptr[0];
766 struct batadv_priv *bat_priv = info->user_ptr[0];
894 struct batadv_hard_iface *hard_iface = info->user_ptr[1];
895 struct batadv_priv *bat_priv = info->user_ptr[0];
927 struct batadv_hard_iface *hard_iface = info->user_ptr[
[all...]
/linux-master/drivers/gpu/drm/i915/gem/
H A Di915_gem_userptr.c490 if (offset_in_page(args->user_ptr | args->user_size))
493 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size))
513 ret = probe_range(current->mm, args->user_ptr, args->user_size);
531 obj->userptr.ptr = args->user_ptr;
/linux-master/net/devlink/
H A Dnetlink.c222 info->user_ptr[0] = devlink;
229 info->user_ptr[1] = devlink_port;
233 info->user_ptr[1] = devlink_port;
274 devlink = info->user_ptr[0];
H A Dsb.c207 struct devlink *devlink = info->user_ptr[0];
309 struct devlink *devlink = info->user_ptr[0];
418 struct devlink *devlink = info->user_ptr[0];
509 struct devlink_port *devlink_port = info->user_ptr[1];
627 struct devlink_port *devlink_port = info->user_ptr[1];
628 struct devlink *devlink = info->user_ptr[0];
719 struct devlink_port *devlink_port = info->user_ptr[1];
867 struct devlink_port *devlink_port = info->user_ptr[1];
868 struct devlink *devlink = info->user_ptr[0];
905 struct devlink *devlink = info->user_ptr[
[all...]
H A Ddpipe.c217 struct devlink *devlink = info->user_ptr[0];
294 struct devlink *devlink = info->user_ptr[0];
483 devlink = dump_ctx->info->user_ptr[0];
568 struct devlink *devlink = info->user_ptr[0];
655 struct devlink *devlink = info->user_ptr[0];
718 struct devlink *devlink = info->user_ptr[0];
752 struct devlink *devlink = info->user_ptr[0];
H A Dport.c556 struct devlink_port *devlink_port = info->user_ptr[1];
779 struct devlink_port *devlink_port = info->user_ptr[1];
805 struct devlink_port *devlink_port = info->user_ptr[1];
806 struct devlink *devlink = info->user_ptr[0];
836 struct devlink_port *devlink_port = info->user_ptr[1];
837 struct devlink *devlink = info->user_ptr[0];
848 struct devlink *devlink = info->user_ptr[0];
910 struct devlink_port *devlink_port = info->user_ptr[1];
912 struct devlink *devlink = info->user_ptr[0];
H A Dresource.c110 struct devlink *devlink = info->user_ptr[0];
222 struct devlink *devlink = info->user_ptr[0];
290 struct devlink *devlink = info->user_ptr[0];
H A Drate.c217 struct devlink *devlink = info->user_ptr[0];
462 struct devlink *devlink = info->user_ptr[0];
484 struct devlink *devlink = info->user_ptr[0];
540 struct devlink *devlink = info->user_ptr[0];
/linux-master/net/wireless/
H A Dnl80211.c3150 struct cfg80211_registered_device *rdev = info->user_ptr[0];
3440 struct cfg80211_registered_device *rdev = info->user_ptr[0];
3442 struct net_device *netdev = info->user_ptr[1];
4045 struct cfg80211_registered_device *rdev = info->user_ptr[0];
4046 struct wireless_dev *wdev = info->user_ptr[1];
4183 struct cfg80211_registered_device *rdev = info->user_ptr[0];
4187 struct net_device *dev = info->user_ptr[1];
4252 struct cfg80211_registered_device *rdev = info->user_ptr[0];
4345 struct cfg80211_registered_device *rdev = info->user_ptr[0];
4360 struct cfg80211_registered_device *rdev = info->user_ptr[
[all...]
/linux-master/drivers/gpu/drm/etnaviv/
H A Detnaviv_drv.c392 if (offset_in_page(args->user_ptr | args->user_size) ||
393 (uintptr_t)args->user_ptr != args->user_ptr ||
395 args->user_ptr & ~PAGE_MASK)
398 if (!access_ok((void __user *)(unsigned long)args->user_ptr,
402 return etnaviv_gem_new_userptr(dev, file, args->user_ptr,
/linux-master/drivers/android/
H A Dbinder_alloc.h133 unsigned long user_ptr);
/linux-master/drivers/media/v4l2-core/
H A Dv4l2-compat-ioctl32.c1030 void __user *user_ptr, size_t array_size,
1050 struct v4l2_plane32 __user *p32 = user_ptr;
1073 struct v4l2_ext_control32 __user *ec32 = user_ptr;
1093 if (copy_from_user(mbuf, user_ptr, array_size))
1101 int v4l2_compat_put_array_args(struct file *file, void __user *user_ptr, argument
1120 struct v4l2_plane32 __user *p32 = user_ptr;
1143 struct v4l2_ext_control32 __user *ec32 = user_ptr;
1166 if (copy_to_user(user_ptr, mbuf, array_size))
1029 v4l2_compat_get_array_args(struct file *file, void *mbuf, void __user *user_ptr, size_t array_size, unsigned int cmd, void *arg) argument
/linux-master/arch/arm64/kernel/
H A Darmv8_deprecated.c167 const void __user *user_ptr; local
199 user_ptr = (const void __user *)(unsigned long)(address & ~3);
200 if (!access_ok(user_ptr, 4)) {
/linux-master/arch/x86/xen/
H A Dmmu_pv.c466 pgd_t *user_ptr = NULL; local
470 user_ptr = (pgd_t *)page->private;
471 if (user_ptr)
472 user_ptr += offset;
475 return user_ptr;
509 pgd_t *user_ptr = xen_get_user_pgd((pgd_t *)ptr); local
512 trace_xen_mmu_set_p4d(ptr, (p4d_t *)user_ptr, val);
518 if (user_ptr) {
519 WARN_ON(xen_page_pinned(user_ptr));
521 *user_ptr
[all...]
/linux-master/drivers/gpu/drm/panfrost/
H A Dpanfrost_perfcnt.c243 void __user *user_ptr = (void __user *)(uintptr_t)req->buf_ptr; local
260 if (copy_to_user(user_ptr, perfcnt->buf, perfcnt->bosize))

Completed in 520 milliseconds

12