Home
last modified time | relevance | path

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

/Linux-v4.19/arch/arm/lib/
Duaccess_with_memcpy.c235 void *user_ptr, *kernel_ptr;
247 user_ptr = vmap(&dst_page, 1, VM_IOREMAP, __pgprot(__P010));
248 if (!user_ptr)
252 ret = __copy_to_user_memcpy(user_ptr, kernel_ptr, PAGE_SIZE);
256 ret |= __copy_to_user_memcpy(user_ptr, kernel_ptr, size);
258 ret |= __copy_to_user_std(user_ptr, kernel_ptr, size);
265 ret |= __clear_user_memset(user_ptr, size);
267 ret |= __clear_user_std(user_ptr, size);
275 vunmap(user_ptr);
/Linux-v4.19/net/ieee802154/
Dnl802154.c661 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_get_wpan_phy()
898 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_get_interface()
899 struct wpan_dev *wdev = info->user_ptr[1]; in nl802154_get_interface()
916 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_new_interface()
947 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_del_interface()
948 struct wpan_dev *wpan_dev = info->user_ptr[1]; in nl802154_del_interface()
960 info->user_ptr[1] = NULL; in nl802154_del_interface()
967 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_set_channel()
987 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_set_cca_mode()
1018 struct cfg802154_registered_device *rdev = info->user_ptr[0]; in nl802154_set_cca_ed_level()
[all …]
/Linux-v4.19/drivers/staging/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()
/Linux-v4.19/net/wireless/
Dnl80211.c2220 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_wiphy()
2428 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_channel()
2429 struct net_device *netdev = info->user_ptr[1]; in nl80211_set_channel()
2436 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_wds_peer()
2437 struct net_device *dev = info->user_ptr[1]; in nl80211_set_wds_peer()
2968 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_get_interface()
2969 struct wireless_dev *wdev = info->user_ptr[1]; in nl80211_get_interface()
3107 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_set_interface()
3111 struct net_device *dev = info->user_ptr[1]; in nl80211_set_interface()
3173 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_new_interface()
[all …]
/Linux-v4.19/net/core/
Ddevlink.c405 info->user_ptr[0] = devlink; in devlink_nl_pre_doit()
414 info->user_ptr[0] = devlink_port; in devlink_nl_pre_doit()
424 info->user_ptr[1] = devlink_sb; in devlink_nl_pre_doit()
606 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_get_doit()
657 struct devlink_port *devlink_port = info->user_ptr[0]; in devlink_nl_cmd_port_get_doit()
741 struct devlink_port *devlink_port = info->user_ptr[0]; in devlink_nl_cmd_port_set_doit()
769 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_split_doit()
794 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_port_unsplit_doit()
845 struct devlink *devlink = info->user_ptr[0]; in devlink_nl_cmd_sb_get_doit()
846 struct devlink_sb *devlink_sb = info->user_ptr[1]; in devlink_nl_cmd_sb_get_doit()
[all …]
/Linux-v4.19/drivers/gpu/drm/etnaviv/
Detnaviv_drv.c354 if (offset_in_page(args->user_ptr | args->user_size) || in etnaviv_ioctl_gem_userptr()
355 (uintptr_t)args->user_ptr != args->user_ptr || in etnaviv_ioctl_gem_userptr()
357 args->user_ptr & ~PAGE_MASK) in etnaviv_ioctl_gem_userptr()
365 if (!access_ok(access, (void __user *)(unsigned long)args->user_ptr, in etnaviv_ioctl_gem_userptr()
369 return etnaviv_gem_new_userptr(dev, file, args->user_ptr, in etnaviv_ioctl_gem_userptr()
/Linux-v4.19/arch/x86/xen/
Dmmu_pv.c480 pgd_t *user_ptr = NULL; in xen_get_user_pgd() local
484 user_ptr = (pgd_t *)page->private; in xen_get_user_pgd()
485 if (user_ptr) in xen_get_user_pgd()
486 user_ptr += offset; in xen_get_user_pgd()
489 return user_ptr; in xen_get_user_pgd()
523 pgd_t *user_ptr = xen_get_user_pgd((pgd_t *)ptr); in xen_set_p4d() local
526 trace_xen_mmu_set_p4d(ptr, (p4d_t *)user_ptr, val); in xen_set_p4d()
532 if (user_ptr) { in xen_set_p4d()
533 WARN_ON(xen_page_pinned(user_ptr)); in xen_set_p4d()
535 *user_ptr = pgd_val; in xen_set_p4d()
[all …]
/Linux-v4.19/arch/arm64/kernel/
Darmv8_deprecated.c372 const void __user *user_ptr; in swp_handler() local
404 user_ptr = (const void __user *)(unsigned long)(address & ~3); in swp_handler()
405 if (!access_ok(VERIFY_WRITE, user_ptr, 4)) { in swp_handler()
/Linux-v4.19/drivers/android/
Dbinder_alloc.h137 uintptr_t user_ptr);
Dbinder_alloc.c135 uintptr_t user_ptr) in binder_alloc_prepare_to_free_locked() argument
141 kern_ptr = (void *)(user_ptr - alloc->user_buffer_offset); in binder_alloc_prepare_to_free_locked()
160 (u64)user_ptr); in binder_alloc_prepare_to_free_locked()
182 uintptr_t user_ptr) in binder_alloc_prepare_to_free() argument
187 buffer = binder_alloc_prepare_to_free_locked(alloc, user_ptr); in binder_alloc_prepare_to_free()
/Linux-v4.19/drivers/gpu/drm/i915/
Di915_gem_userptr.c791 if (offset_in_page(args->user_ptr | args->user_size)) in i915_gem_userptr_ioctl()
795 (char __user *)(unsigned long)args->user_ptr, args->user_size)) in i915_gem_userptr_ioctl()
820 obj->userptr.ptr = args->user_ptr; in i915_gem_userptr_ioctl()
/Linux-v4.19/include/uapi/drm/
Detnaviv_drm.h222 __u64 user_ptr; /* in, page aligned user pointer */ member
Di915_drm.h1433 __u64 user_ptr; member
/Linux-v4.19/drivers/gpu/drm/radeon/
Dradeon_cs.c336 p->chunks[i].user_ptr = cdata; in radeon_cs_parser_init()
627 ib_chunk->user_ptr, in radeon_cs_ib_fill()
649 else if (copy_from_user(parser->ib.ptr, ib_chunk->user_ptr, ib_chunk->length_dw * 4)) in radeon_cs_ib_fill()
Dradeon.h1058 void __user *user_ptr; member
/Linux-v4.19/include/net/
Dgenetlink.h98 void * user_ptr[2]; member
/Linux-v4.19/drivers/media/v4l2-core/
Dv4l2-ioctl.c2868 void __user **user_ptr, void ***kernel_ptr) in check_array_args() argument
2884 *user_ptr = (void __user *)buf->m.planes; in check_array_args()
2901 *user_ptr = (void __user *)edid->edid; in check_array_args()
2919 *user_ptr = (void __user *)ctrls->controls; in check_array_args()
2943 void __user *user_ptr = NULL; in video_usercopy() local
2990 err = check_array_args(cmd, parg, &array_size, &user_ptr, &kernel_ptr); in video_usercopy()
3007 if (copy_from_user(mbuf, user_ptr, array_size)) in video_usercopy()
3027 *kernel_ptr = (void __force *)user_ptr; in video_usercopy()
3028 if (copy_to_user(user_ptr, mbuf, array_size)) in video_usercopy()
/Linux-v4.19/drivers/gpu/drm/qxl/
Dqxl_display.c628 void *user_ptr; in qxl_cursor_atomic_update() local
642 ret = qxl_bo_kmap(user_bo, &user_ptr); in qxl_cursor_atomic_update()
670 memcpy(cursor->chunk.data, user_ptr, size); in qxl_cursor_atomic_update()
/Linux-v4.19/net/netlink/
Dgenetlink.c593 memset(&info.user_ptr, 0, sizeof(info.user_ptr)); in genl_family_rcv_msg()
/Linux-v4.19/tools/include/uapi/drm/
Di915_drm.h1433 __u64 user_ptr; member
/Linux-v4.19/arch/powerpc/kvm/
Dpowerpc.c1863 void __user *user_ptr = (void __user *)(uintptr_t)cap->args[0]; in kvm_vcpu_ioctl_enable_cap() local
1866 if (copy_from_user(&cfg, user_ptr, sizeof(cfg))) in kvm_vcpu_ioctl_enable_cap()