Home
last modified time | relevance | path

Searched refs:argp (Results 101 - 125 of 777) sorted by relevance

12345678910>>...32

/kernel/linux/linux-5.10/drivers/vhost/
H A Dvdpa.c130 static long vhost_vdpa_get_device_id(struct vhost_vdpa *v, u8 __user *argp) in vhost_vdpa_get_device_id() argument
138 if (copy_to_user(argp, &device_id, sizeof(device_id))) in vhost_vdpa_get_device_id()
302 static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp) in vhost_vdpa_get_vring_num() argument
310 if (copy_to_user(argp, &num, sizeof(num))) in vhost_vdpa_get_vring_num()
324 static long vhost_vdpa_set_config_call(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_set_config_call() argument
332 if (copy_from_user(&fd, argp, sizeof(fd))) in vhost_vdpa_set_config_call()
353 static long vhost_vdpa_get_iova_range(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_iova_range() argument
360 if (copy_to_user(argp, &range, sizeof(range))) in vhost_vdpa_get_iova_range()
366 void __user *argp) in vhost_vdpa_vring_ioctl()
377 r = get_user(idx, (u32 __user *)argp); in vhost_vdpa_vring_ioctl()
365 vhost_vdpa_vring_ioctl(struct vhost_vdpa *v, unsigned int cmd, void __user *argp) vhost_vdpa_vring_ioctl() argument
446 void __user *argp = (void __user *)arg; vhost_vdpa_unlocked_ioctl() local
[all...]
/kernel/linux/linux-6.6/drivers/staging/vc04_services/interface/vchiq_arm/
H A Dvchiq_dev.c638 struct vchiq_create_service __user *argp; in vchiq_ioctl() local
641 argp = (void __user *)arg; in vchiq_ioctl()
642 if (copy_from_user(&args, argp, sizeof(args))) { in vchiq_ioctl()
651 if (put_user(args.handle, &argp->handle)) { in vchiq_ioctl()
746 struct vchiq_queue_bulk_transfer __user *argp; in vchiq_ioctl() local
752 argp = (void __user *)arg; in vchiq_ioctl()
753 if (copy_from_user(&args, argp, sizeof(args))) { in vchiq_ioctl()
759 dir, &argp->mode); in vchiq_ioctl()
764 struct vchiq_await_completion __user *argp; in vchiq_ioctl() local
766 argp in vchiq_ioctl()
1023 vchiq_compat_ioctl_queue_bulk(struct file *file, unsigned int cmd, struct vchiq_queue_bulk_transfer32 __user *argp) vchiq_compat_ioctl_queue_bulk() argument
1059 vchiq_compat_ioctl_await_completion(struct file *file, unsigned int cmd, struct vchiq_await_completion32 __user *argp) vchiq_compat_ioctl_await_completion() argument
1145 void __user *argp = compat_ptr(arg); vchiq_compat_ioctl() local
[all...]
/kernel/linux/linux-6.6/fs/btrfs/
H A Dioctl.c1743 void __user *argp) in btrfs_ioctl_tree_search()
1745 struct btrfs_ioctl_search_args __user *uargs = argp; in btrfs_ioctl_tree_search()
1773 void __user *argp) in btrfs_ioctl_tree_search_v2()
1775 struct btrfs_ioctl_search_args_v2 __user *uarg = argp; in btrfs_ioctl_tree_search_v2()
2051 void __user *argp) in btrfs_ioctl_ino_lookup()
2056 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup()
2082 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup()
2101 static int btrfs_ioctl_ino_lookup_user(struct file *file, void __user *argp) in btrfs_ioctl_ino_lookup_user() argument
2107 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup_user()
2125 if (ret == 0 && copy_to_user(argp, arg in btrfs_ioctl_ino_lookup_user()
1742 btrfs_ioctl_tree_search(struct inode *inode, void __user *argp) btrfs_ioctl_tree_search() argument
1772 btrfs_ioctl_tree_search_v2(struct inode *inode, void __user *argp) btrfs_ioctl_tree_search_v2() argument
2050 btrfs_ioctl_ino_lookup(struct btrfs_root *root, void __user *argp) btrfs_ioctl_ino_lookup() argument
2133 btrfs_ioctl_get_subvol_info(struct inode *inode, void __user *argp) btrfs_ioctl_get_subvol_info() argument
2253 btrfs_ioctl_get_subvol_rootref(struct btrfs_root *root, void __user *argp) btrfs_ioctl_get_subvol_rootref() argument
2573 btrfs_ioctl_defrag(struct file *file, void __user *argp) btrfs_ioctl_defrag() argument
2900 btrfs_ioctl_default_subvol(struct file *file, void __user *argp) btrfs_ioctl_default_subvol() argument
3131 btrfs_ioctl_start_sync(struct btrfs_root *root, void __user *argp) btrfs_ioctl_start_sync() argument
3162 btrfs_ioctl_wait_sync(struct btrfs_fs_info *fs_info, void __user *argp) btrfs_ioctl_wait_sync() argument
4355 _btrfs_ioctl_send(struct inode *inode, void __user *argp, bool compat) _btrfs_ioctl_send() argument
4391 btrfs_ioctl_encoded_read(struct file *file, void __user *argp, bool compat) btrfs_ioctl_encoded_read() argument
4474 btrfs_ioctl_encoded_write(struct file *file, void __user *argp, bool compat) btrfs_ioctl_encoded_write() argument
4580 void __user *argp = (void __user *)arg; btrfs_ioctl() local
[all...]
/kernel/linux/linux-5.10/drivers/watchdog/
H A Dwdrtas.c275 int __user *argp = (void __user *)arg; in wdrtas_ioctl() local
285 if (copy_to_user(argp, &wdinfo, sizeof(wdinfo))) in wdrtas_ioctl()
291 return put_user(i, argp); in wdrtas_ioctl()
295 return put_user(i, argp); in wdrtas_ioctl()
302 return put_user(i, argp); in wdrtas_ioctl()
305 if (get_user(i, argp)) in wdrtas_ioctl()
323 if (get_user(i, argp)) in wdrtas_ioctl()
338 return put_user(wdrtas_interval, argp); in wdrtas_ioctl()
H A Diop_wdt.c128 int __user *argp = (int __user *)arg; in iop_wdt_ioctl() local
132 if (copy_to_user(argp, &ident, sizeof(ident))) in iop_wdt_ioctl()
139 ret = put_user(0, argp); in iop_wdt_ioctl()
143 ret = put_user(boot_status, argp); in iop_wdt_ioctl()
172 ret = put_user(iop_watchdog_timeout(), argp); in iop_wdt_ioctl()
H A Dmv64x60_wdt.c180 void __user *argp = (void __user *)arg; in mv64x60_wdt_ioctl() local
191 if (copy_to_user(argp, &info, sizeof(info))) in mv64x60_wdt_ioctl()
197 if (put_user(wdt_status, (int __user *)argp)) in mv64x60_wdt_ioctl()
206 if (get_user(options, (int __user *)argp)) in mv64x60_wdt_ioctl()
222 if (get_user(timeout, (int __user *)argp)) in mv64x60_wdt_ioctl()
228 if (put_user(mv64x60_wdt_timeout, (int __user *)argp)) in mv64x60_wdt_ioctl()
H A Drc32434_wdt.c191 void __user *argp = (void __user *)arg; in rc32434_wdt_ioctl() local
202 if (copy_to_user(argp, &ident, sizeof(ident))) in rc32434_wdt_ioctl()
208 if (copy_to_user(argp, &value, sizeof(int))) in rc32434_wdt_ioctl()
212 if (copy_from_user(&value, argp, sizeof(int))) in rc32434_wdt_ioctl()
229 if (copy_from_user(&new_timeout, argp, sizeof(int))) in rc32434_wdt_ioctl()
235 return copy_to_user(argp, &timeout, sizeof(int)) ? -EFAULT : 0; in rc32434_wdt_ioctl()
H A Dgef_wdt.c163 void __user *argp = (void __user *)arg; in gef_wdt_ioctl() local
173 if (copy_to_user(argp, &info, sizeof(info))) in gef_wdt_ioctl()
179 if (put_user(wdt_status, (int __user *)argp)) in gef_wdt_ioctl()
185 if (get_user(options, (int __user *)argp)) in gef_wdt_ioctl()
201 if (get_user(timeout, (int __user *)argp)) in gef_wdt_ioctl()
207 if (put_user(gef_wdt_timeout, (int __user *)argp)) in gef_wdt_ioctl()
/kernel/linux/linux-5.10/net/atm/
H A Dioctl.c58 void __user *argp = (void __user *)arg; in do_vcc_ioctl() local
71 (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
86 error = put_user(amount, (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
128 error = get_user(backend, (atm_backend_t __user *)argp); in do_vcc_ioctl()
173 struct compat_atm_iobuf __user *ciobuf = argp; in do_vcc_ioctl()
181 struct atm_iobuf __user *iobuf = argp; in do_vcc_ioctl()
192 struct compat_atmif_sioc __user *csioc = argp; in do_vcc_ioctl()
203 struct atmif_sioc __user *sioc = argp; in do_vcc_ioctl()
/kernel/linux/linux-6.6/drivers/watchdog/
H A Dwdrtas.c275 int __user *argp = (void __user *)arg; in wdrtas_ioctl() local
285 if (copy_to_user(argp, &wdinfo, sizeof(wdinfo))) in wdrtas_ioctl()
291 return put_user(i, argp); in wdrtas_ioctl()
295 return put_user(i, argp); in wdrtas_ioctl()
302 return put_user(i, argp); in wdrtas_ioctl()
305 if (get_user(i, argp)) in wdrtas_ioctl()
323 if (get_user(i, argp)) in wdrtas_ioctl()
338 return put_user(wdrtas_interval, argp); in wdrtas_ioctl()
H A Dgef_wdt.c163 void __user *argp = (void __user *)arg; in gef_wdt_ioctl() local
173 if (copy_to_user(argp, &info, sizeof(info))) in gef_wdt_ioctl()
179 if (put_user(wdt_status, (int __user *)argp)) in gef_wdt_ioctl()
185 if (get_user(options, (int __user *)argp)) in gef_wdt_ioctl()
201 if (get_user(timeout, (int __user *)argp)) in gef_wdt_ioctl()
207 if (put_user(gef_wdt_timeout, (int __user *)argp)) in gef_wdt_ioctl()
H A Drc32434_wdt.c191 void __user *argp = (void __user *)arg; in rc32434_wdt_ioctl() local
202 if (copy_to_user(argp, &ident, sizeof(ident))) in rc32434_wdt_ioctl()
208 if (copy_to_user(argp, &value, sizeof(int))) in rc32434_wdt_ioctl()
212 if (copy_from_user(&value, argp, sizeof(int))) in rc32434_wdt_ioctl()
229 if (copy_from_user(&new_timeout, argp, sizeof(int))) in rc32434_wdt_ioctl()
235 return copy_to_user(argp, &timeout, sizeof(int)) ? -EFAULT : 0; in rc32434_wdt_ioctl()
/kernel/linux/linux-6.6/net/atm/
H A Dioctl.c58 void __user *argp = (void __user *)arg; in do_vcc_ioctl() local
71 (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
86 error = put_user(amount, (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
128 error = get_user(backend, (atm_backend_t __user *)argp); in do_vcc_ioctl()
173 struct compat_atm_iobuf __user *ciobuf = argp; in do_vcc_ioctl()
181 struct atm_iobuf __user *iobuf = argp; in do_vcc_ioctl()
192 struct compat_atmif_sioc __user *csioc = argp; in do_vcc_ioctl()
203 struct atmif_sioc __user *sioc = argp; in do_vcc_ioctl()
/kernel/linux/linux-5.10/drivers/platform/x86/intel_speed_select_if/
H A Disst_if_common.c264 static int isst_if_get_platform_info(void __user *argp) in isst_if_get_platform_info() argument
274 if (copy_to_user(argp, &info, sizeof(info))) in isst_if_get_platform_info()
442 static long isst_if_exec_multi_cmd(void __user *argp, struct isst_if_cmd_cb *cb) in isst_if_exec_multi_cmd() argument
451 if (copy_from_user(&cmd_count, argp, sizeof(cmd_count))) in isst_if_exec_multi_cmd()
462 ptr = argp + cb->offset; in isst_if_exec_multi_cmd()
497 void __user *argp = (void __user *)arg; in isst_if_def_ioctl() local
504 ret = isst_if_get_platform_info(argp); in isst_if_def_ioctl()
510 ret = isst_if_exec_multi_cmd(argp, &cmd_cb); in isst_if_def_ioctl()
515 ret = isst_if_exec_multi_cmd(argp, cb); in isst_if_def_ioctl()
520 ret = isst_if_exec_multi_cmd(argp, c in isst_if_def_ioctl()
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/core/
H A Dfb_chrdev.c70 void __user *argp = (void __user *)arg; in do_fb_ioctl() local
79 ret = copy_to_user(argp, &var, sizeof(var)) ? -EFAULT : 0; in do_fb_ioctl()
82 if (copy_from_user(&var, argp, sizeof(var))) in do_fb_ioctl()
95 if (!ret && copy_to_user(argp, &var, sizeof(var))) in do_fb_ioctl()
105 ret = copy_to_user(argp, &fix, sizeof(fix)) ? -EFAULT : 0; in do_fb_ioctl()
108 if (copy_from_user(&cmap, argp, sizeof(cmap))) in do_fb_ioctl()
113 if (copy_from_user(&cmap, argp, sizeof(cmap))) in do_fb_ioctl()
121 if (copy_from_user(&var, argp, sizeof(var))) in do_fb_ioctl()
128 if (ret == 0 && copy_to_user(argp, &var, sizeof(var))) in do_fb_ioctl()
135 ret = fbcon_get_con2fb_map_ioctl(argp); in do_fb_ioctl()
[all...]
/third_party/python/Modules/_ctypes/libffi_osx/x86/
H A Dx86-ffi64.c440 char* argp; in ffi_call() local
461 argp = stack + sizeof(RegisterArgs); in ffi_call()
491 argp = (void *) ALIGN (argp, align); in ffi_call()
492 memcpy (argp, avalue[i], size); in ffi_call()
493 argp += size; in ffi_call()
625 char* argp) in ffi_closure_unix64_inner()
687 argp = (void *) ALIGN (argp, align); in ffi_closure_unix64_inner()
688 avalue[i] = argp; in ffi_closure_unix64_inner()
621 ffi_closure_unix64_inner( ffi_closure* closure, void* rvalue, RegisterArgs* reg_args, char* argp) ffi_closure_unix64_inner() argument
[all...]
/kernel/linux/linux-5.10/drivers/s390/char/
H A Dvmcp.c204 int __user *argp; in vmcp_ioctl() local
208 argp = compat_ptr(arg); in vmcp_ioctl()
210 argp = (int __user *)arg; in vmcp_ioctl()
215 ret = put_user(session->resp_code, argp); in vmcp_ioctl()
219 ret = get_user(session->bufsize, argp); in vmcp_ioctl()
228 ret = put_user(session->resp_size, argp); in vmcp_ioctl()
/kernel/linux/linux-6.6/drivers/s390/char/
H A Dvmcp.c204 int __user *argp; in vmcp_ioctl() local
208 argp = compat_ptr(arg); in vmcp_ioctl()
210 argp = (int __user *)arg; in vmcp_ioctl()
215 ret = put_user(session->resp_code, argp); in vmcp_ioctl()
219 ret = get_user(session->bufsize, argp); in vmcp_ioctl()
228 ret = put_user(session->resp_size, argp); in vmcp_ioctl()
/third_party/elfutils/tests/
H A Ddwflmodtest.c27 #include <argp.h>
250 { .argp = dwfl_standard_argp () }, in main()
251 { .argp = NULL } in main()
253 const struct argp argp = in main() local
257 (void) argp_parse (&argp, argc, argv, 0, NULL, &dwfl); in main()
/kernel/liteos_a/net/lwip-2.1/porting/src/
H A Dsockets.c48 msg.argp = argp; \
62 void *argp; member
1377 static u8_t lwip_ioctl_impl(const struct lwip_sock *sock, long cmd, void *argp) argument
1384 struct ifreq *ifr = (struct ifreq *)argp;
1387 struct rtentry *rmten = (struct rtentry *)argp;
1580 return lwip_ioctl_impl(msg->sock, msg->cmd, msg->argp);
1585 static int do_ioctl_SIOCGIFCONF(int sockfd, long cmd, void *argp) argument
1592 if (LOS_ArchCopyFromUser(&ifc, argp, sizeof(struct ifconf)) != 0) {
1623 if (LOS_ArchCopyToUser(argp,
1630 socks_ioctl(int sockfd, long cmd, void *argp) global() argument
[all...]
/kernel/linux/linux-6.6/drivers/vhost/
H A Dvdpa.c244 static long vhost_vdpa_get_device_id(struct vhost_vdpa *v, u8 __user *argp) in vhost_vdpa_get_device_id() argument
252 if (copy_to_user(argp, &device_id, sizeof(device_id))) in vhost_vdpa_get_device_id()
452 static long vhost_vdpa_get_vring_num(struct vhost_vdpa *v, u16 __user *argp) in vhost_vdpa_get_vring_num() argument
460 if (copy_to_user(argp, &num, sizeof(num))) in vhost_vdpa_get_vring_num()
474 static long vhost_vdpa_set_config_call(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_set_config_call() argument
482 if (copy_from_user(&fd, argp, sizeof(fd))) in vhost_vdpa_set_config_call()
503 static long vhost_vdpa_get_iova_range(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_iova_range() argument
510 if (copy_to_user(argp, &range, sizeof(range))) in vhost_vdpa_get_iova_range()
515 static long vhost_vdpa_get_config_size(struct vhost_vdpa *v, u32 __user *argp) in vhost_vdpa_get_config_size() argument
523 if (copy_to_user(argp, in vhost_vdpa_get_config_size()
529 vhost_vdpa_get_vqs_count(struct vhost_vdpa *v, u32 __user *argp) vhost_vdpa_get_vqs_count() argument
570 vhost_vdpa_vring_ioctl(struct vhost_vdpa *v, unsigned int cmd, void __user *argp) vhost_vdpa_vring_ioctl() argument
684 void __user *argp = (void __user *)arg; vhost_vdpa_unlocked_ioctl() local
[all...]
/kernel/linux/linux-5.10/fs/btrfs/
H A Dioctl.c2315 void __user *argp) in btrfs_ioctl_tree_search()
2326 uargs = (struct btrfs_ioctl_search_args __user *)argp; in btrfs_ioctl_tree_search()
2349 void __user *argp) in btrfs_ioctl_tree_search_v2()
2362 uarg = (struct btrfs_ioctl_search_args_v2 __user *)argp; in btrfs_ioctl_tree_search_v2()
2642 void __user *argp) in btrfs_ioctl_ino_lookup()
2648 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup()
2676 if (ret == 0 && copy_to_user(argp, args, sizeof(*args))) in btrfs_ioctl_ino_lookup()
2695 static int btrfs_ioctl_ino_lookup_user(struct file *file, void __user *argp) in btrfs_ioctl_ino_lookup_user() argument
2701 args = memdup_user(argp, sizeof(*args)); in btrfs_ioctl_ino_lookup_user()
2719 if (ret == 0 && copy_to_user(argp, arg in btrfs_ioctl_ino_lookup_user()
2314 btrfs_ioctl_tree_search(struct file *file, void __user *argp) btrfs_ioctl_tree_search() argument
2348 btrfs_ioctl_tree_search_v2(struct file *file, void __user *argp) btrfs_ioctl_tree_search_v2() argument
2641 btrfs_ioctl_ino_lookup(struct file *file, void __user *argp) btrfs_ioctl_ino_lookup() argument
2727 btrfs_ioctl_get_subvol_info(struct file *file, void __user *argp) btrfs_ioctl_get_subvol_info() argument
2849 btrfs_ioctl_get_subvol_rootref(struct file *file, void __user *argp) btrfs_ioctl_get_subvol_rootref() argument
3147 btrfs_ioctl_defrag(struct file *file, void __user *argp) btrfs_ioctl_defrag() argument
3440 btrfs_ioctl_default_subvol(struct file *file, void __user *argp) btrfs_ioctl_default_subvol() argument
3671 btrfs_ioctl_start_sync(struct btrfs_root *root, void __user *argp) btrfs_ioctl_start_sync() argument
3700 btrfs_ioctl_wait_sync(struct btrfs_fs_info *fs_info, void __user *argp) btrfs_ioctl_wait_sync() argument
4875 _btrfs_ioctl_send(struct file *file, void __user *argp, bool compat) _btrfs_ioctl_send() argument
4916 void __user *argp = (void __user *)arg; btrfs_ioctl() local
[all...]
/kernel/linux/common_modules/ucollection/
H A Dunified_collection_driver.c16 static long (*unified_collection_ioctl_cb[])(unsigned int cmd, void __user *argp) = {
22 void __user *argp = u64_to_user_ptr(arg); in unified_collection_ioctl() local
31 return unified_collection_ioctl_cb[_IOC_TYPE(cmd)](cmd, argp); in unified_collection_ioctl()
/kernel/linux/linux-5.10/sound/core/
H A Dhwdep_compat.c43 void __user *argp = compat_ptr(arg); in snd_hwdep_ioctl_compat() local
48 return snd_hwdep_ioctl(file, cmd, (unsigned long)argp); in snd_hwdep_ioctl_compat()
50 return snd_hwdep_dsp_load_compat(hw, argp); in snd_hwdep_ioctl_compat()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/benchs/
H A Dbench_bpf_loop.c4 #include <argp.h>
43 const struct argp bench_bpf_loop_argp = {
93 .argp = &bench_bpf_loop_argp,

Completed in 24 milliseconds

12345678910>>...32