Home
last modified time | relevance | path

Searched refs:user_ptr (Results 1 – 25 of 38) sorted by relevance

12

/kernel/linux/linux-5.10/arch/arm/lib/
Duaccess_with_memcpy.c238 void *user_ptr, *kernel_ptr;
250 user_ptr = vmap(&dst_page, 1, VM_IOREMAP, __pgprot(__P010));
251 if (!user_ptr)
255 ret = __copy_to_user_memcpy(user_ptr, kernel_ptr, PAGE_SIZE);
259 ret |= __copy_to_user_memcpy(user_ptr, kernel_ptr, size);
261 ret |= __copy_to_user_std(user_ptr, kernel_ptr, size);
268 ret |= __clear_user_memset(user_ptr, size);
270 ret |= __clear_user_std(user_ptr, size);
278 vunmap(user_ptr);
/kernel/linux/linux-5.10/net/ieee802154/
Dnl802154.c644 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 …]
/kernel/linux/linux-5.10/net/batman-adv/
Dnetlink.c413 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_mesh()
442 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_set_mesh()
711 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_start()
768 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_tp_meter_cancel()
892 struct batadv_hard_iface *hard_iface = info->user_ptr[1]; in batadv_netlink_get_hardif()
893 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_hardif()
925 struct batadv_hard_iface *hard_iface = info->user_ptr[1]; in batadv_netlink_set_hardif()
926 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_set_hardif()
1102 struct batadv_softif_vlan *vlan = info->user_ptr[1]; in batadv_netlink_get_vlan()
1103 struct batadv_priv *bat_priv = info->user_ptr[0]; in batadv_netlink_get_vlan()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dtest_probe_read_user_str.c11 void *user_ptr = 0; variable
20 ret = bpf_probe_read_user_str(buf, sizeof(buf), user_ptr); in on_write()
/kernel/linux/linux-5.10/drivers/accessibility/speakup/
Di18n.c511 char *user_ptr = user; in fmt_validate() local
515 user_ptr = next_specifier(user_ptr); in fmt_validate()
516 if (template_ptr && user_ptr) { in fmt_validate()
518 valid = compare_specifiers(&template_ptr, &user_ptr); in fmt_validate()
523 if (template_ptr || user_ptr) in fmt_validate()
/kernel/linux/linux-5.10/net/wireless/
Dnl80211.c2818 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_wiphy()
3077 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_channel()
3078 struct net_device *netdev = info->user_ptr[1]; in nl80211_set_channel()
3085 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_wds_peer()
3086 struct net_device *dev = info->user_ptr[1]; in nl80211_set_wds_peer()
3614 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_interface()
3615 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_get_interface()
3752 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_interface()
3756 struct net_device *dev = info->user_ptr[1]; in nl80211_set_interface()
3822 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_new_interface()
[all …]
Dpmsr.c243 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_pmsr_start()
244 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_pmsr_start()
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
Detnaviv_drv.c372 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()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Datomisp_acc.c347 if (map->user_ptr) { in atomisp_acc_map()
349 if ((unsigned long)map->user_ptr & ~PAGE_MASK) { in atomisp_acc_map()
352 __func__, map->user_ptr); in atomisp_acc_map()
367 cssptr = hmm_alloc(map->length, HMM_BO_USER, 0, map->user_ptr, in atomisp_acc_map()
389 __func__, map->user_ptr, cssptr, map->length); in atomisp_acc_map()
Datomisp_compat_ioctl32.c651 compat_uptr_t user_ptr; in get_atomisp_acc_map32() local
656 get_user(user_ptr, &up->user_ptr) || in get_atomisp_acc_map32()
657 put_user(compat_ptr(user_ptr), &kp->user_ptr) || in get_atomisp_acc_map32()
671 void __user *user_ptr; in put_atomisp_acc_map32() local
676 get_user(user_ptr, &kp->user_ptr) || in put_atomisp_acc_map32()
677 put_user(ptr_to_compat(user_ptr), &up->user_ptr) || in put_atomisp_acc_map32()
Datomisp_compat_ioctl32.h176 compat_uptr_t user_ptr; /* Pointer into user space */ member
/kernel/linux/linux-5.10/net/core/
Ddevlink.c430 info->user_ptr[0] = devlink; in devlink_nl_pre_doit()
437 info->user_ptr[1] = devlink_port; in devlink_nl_pre_doit()
441 info->user_ptr[1] = devlink_port; in devlink_nl_pre_doit()
457 devlink = info->user_ptr[0]; in devlink_nl_post_doit()
849 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_get_doit()
900 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_cmd_port_get_doit()
1045 struct devlink_port *devlink_port = info->user_ptr[1]; in devlink_nl_cmd_port_set_doit()
1083 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_split_doit()
1128 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_unsplit_doit()
1179 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_sb_get_doit()
[all …]
/kernel/linux/linux-5.10/arch/x86/xen/
Dmmu_pv.c446 pgd_t *user_ptr = NULL; in xen_get_user_pgd() local
450 user_ptr = (pgd_t *)page->private; in xen_get_user_pgd()
451 if (user_ptr) in xen_get_user_pgd()
452 user_ptr += offset; in xen_get_user_pgd()
455 return user_ptr; in xen_get_user_pgd()
489 pgd_t *user_ptr = xen_get_user_pgd((pgd_t *)ptr); in xen_set_p4d() local
492 trace_xen_mmu_set_p4d(ptr, (p4d_t *)user_ptr, val); in xen_set_p4d()
498 if (user_ptr) { in xen_set_p4d()
499 WARN_ON(xen_page_pinned(user_ptr)); in xen_set_p4d()
501 *user_ptr = pgd_val; in xen_set_p4d()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dprobe_read_user_str.c20 skel->bss->user_ptr = buf; in test_one_str()
/kernel/linux/linux-5.10/arch/arm64/kernel/
Darmv8_deprecated.c375 const void __user *user_ptr; in swp_handler() local
407 user_ptr = (const void __user *)(unsigned long)(address & ~3); in swp_handler()
408 if (!access_ok(user_ptr, 4)) { in swp_handler()
/kernel/linux/linux-5.10/drivers/gpu/drm/panfrost/
Dpanfrost_perfcnt.c240 void __user *user_ptr = (void __user *)(uintptr_t)req->buf_ptr; in panfrost_ioctl_perfcnt_dump() local
257 if (copy_to_user(user_ptr, perfcnt->buf, perfcnt->bosize)) in panfrost_ioctl_perfcnt_dump()
/kernel/linux/linux-5.10/drivers/android/
Dbinder_alloc.h131 uintptr_t user_ptr);
Dbinder_alloc.c128 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_userptr.c793 if (offset_in_page(args->user_ptr | args->user_size)) in i915_gem_userptr_ioctl()
796 if (!access_ok((char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl()
818 obj->userptr.ptr = args->user_ptr; in i915_gem_userptr_ioctl()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/drm/
Detnaviv_drm.h135 __u64 user_ptr; member
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/drm/
Detnaviv_drm.h148 __u64 user_ptr; member
/kernel/linux/linux-5.10/include/uapi/drm/
Detnaviv_drm.h230 __u64 user_ptr; /* in, page aligned user pointer */ member
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Dradeon_cs.c342 p->chunks[i].user_ptr = cdata; in radeon_cs_parser_init()
633 ib_chunk->user_ptr, in radeon_cs_ib_fill()
655 else if (copy_from_user(parser->ib.ptr, ib_chunk->user_ptr, ib_chunk->length_dw * 4)) in radeon_cs_ib_fill()
/kernel/linux/linux-5.10/kernel/bpf/
Dhelpers.c607 const void __user *, user_ptr) in BPF_CALL_3() argument
609 int ret = copy_from_user(dst, user_ptr, size); in BPF_CALL_3()
/kernel/linux/linux-5.10/include/net/
Dgenetlink.h92 void * user_ptr[2]; member

12