Home
last modified time | relevance | path

Searched refs:argp (Results 1 – 16 of 16) sorted by relevance

/net/bluetooth/bnep/
Dsock.c59 void __user *argp = (void __user *)arg; in bnep_sock_ioctl() local
69 if (copy_from_user(&ca, argp, sizeof(ca))) in bnep_sock_ioctl()
84 if (copy_to_user(argp, &ca, sizeof(ca))) in bnep_sock_ioctl()
95 if (copy_from_user(&cd, argp, sizeof(cd))) in bnep_sock_ioctl()
101 if (copy_from_user(&cl, argp, sizeof(cl))) in bnep_sock_ioctl()
108 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in bnep_sock_ioctl()
114 if (copy_from_user(&ci, argp, sizeof(ci))) in bnep_sock_ioctl()
118 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in bnep_sock_ioctl()
/net/bluetooth/cmtp/
Dsock.c73 void __user *argp = (void __user *)arg; in cmtp_sock_ioctl() local
83 if (copy_from_user(&ca, argp, sizeof(ca))) in cmtp_sock_ioctl()
97 if (copy_to_user(argp, &ca, sizeof(ca))) in cmtp_sock_ioctl()
108 if (copy_from_user(&cd, argp, sizeof(cd))) in cmtp_sock_ioctl()
114 if (copy_from_user(&cl, argp, sizeof(cl))) in cmtp_sock_ioctl()
121 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in cmtp_sock_ioctl()
127 if (copy_from_user(&ci, argp, sizeof(ci))) in cmtp_sock_ioctl()
131 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in cmtp_sock_ioctl()
/net/irda/irnet/
Dirnet_ppp.c646 void __user *argp = (void __user *)arg; in dev_irnet_ioctl() local
663 if(get_user(val, (int __user *)argp)) in dev_irnet_ioctl()
714 (int __user *)argp)) in dev_irnet_ioctl()
724 (int __user *)argp)) in dev_irnet_ioctl()
764 if(!kernel_termios_to_user_termios((struct termios __user *)argp, &ap->termios)) in dev_irnet_ioctl()
767 if(kernel_termios_to_user_termios_1((struct termios __user *)argp, &ap->termios)) in dev_irnet_ioctl()
780 if(!user_termios_to_kernel_termios(&ap->termios, (struct termios __user *)argp)) in dev_irnet_ioctl()
783 if(!user_termios_to_kernel_termios_1(&ap->termios, (struct termios __user *)argp)) in dev_irnet_ioctl()
821 if(put_user(val, (int __user *)argp)) in dev_irnet_ioctl()
1028 void __user *argp = (void __user *)arg; in ppp_irnet_ioctl() local
[all …]
/net/bluetooth/hidp/
Dsock.c51 void __user *argp = (void __user *) arg; in hidp_sock_ioctl() local
67 if (copy_from_user(&ca, argp, sizeof(ca))) in hidp_sock_ioctl()
81 if (!err && copy_to_user(argp, &ca, sizeof(ca))) in hidp_sock_ioctl()
93 if (copy_from_user(&cd, argp, sizeof(cd))) in hidp_sock_ioctl()
99 if (copy_from_user(&cl, argp, sizeof(cl))) in hidp_sock_ioctl()
106 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in hidp_sock_ioctl()
112 if (copy_from_user(&ci, argp, sizeof(ci))) in hidp_sock_ioctl()
116 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in hidp_sock_ioctl()
/net/atm/
Dioctl.c57 void __user *argp = (void __user *)arg; in do_vcc_ioctl() local
68 (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
80 (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
86 error = compat_sock_get_timestamp(sk, argp); in do_vcc_ioctl()
89 error = sock_get_timestamp(sk, argp); in do_vcc_ioctl()
94 error = compat_sock_get_timestampns(sk, argp); in do_vcc_ioctl()
97 error = sock_get_timestampns(sk, argp); in do_vcc_ioctl()
138 error = get_user(backend, (atm_backend_t __user *)argp); in do_vcc_ioctl()
180 error = atm_dev_ioctl(cmd, argp, compat); in do_vcc_ioctl()
Dpppoatm.c452 void __user *argp = (void __user *)arg; in pppoatm_ioctl() local
459 if (get_user(b, (atm_backend_t __user *) argp)) in pppoatm_ioctl()
467 return pppoatm_assign_vcc(atmvcc, argp); in pppoatm_ioctl()
471 chan), (int __user *) argp) ? -EFAULT : 0; in pppoatm_ioctl()
474 chan), (int __user *) argp) ? -EFAULT : 0; in pppoatm_ioctl()
Dbr2684.c724 void __user *argp = (void __user *)arg; in br2684_ioctl() local
731 err = get_user(b, (atm_backend_t __user *) argp); in br2684_ioctl()
741 return br2684_regvcc(atmvcc, argp); in br2684_ioctl()
743 return br2684_create(argp); in br2684_ioctl()
751 err = br2684_setfilt(atmvcc, argp); in br2684_ioctl()
/net/x25/
Daf_x25.c1361 void __user *argp = (void __user *)arg; in x25_ioctl() local
1371 rc = put_user(amount, (unsigned int __user *)argp); in x25_ioctl()
1386 rc = put_user(amount, (unsigned int __user *)argp); in x25_ioctl()
1394 (struct timeval __user *)argp); in x25_ioctl()
1400 (struct timespec __user *)argp); in x25_ioctl()
1419 rc = x25_route_ioctl(cmd, argp); in x25_ioctl()
1422 rc = x25_subscr_ioctl(cmd, argp); in x25_ioctl()
1428 rc = x25_subscr_ioctl(cmd, argp); in x25_ioctl()
1432 rc = copy_to_user(argp, &x25->facilities, in x25_ioctl()
1442 if (copy_from_user(&facilities, argp, sizeof(facilities))) in x25_ioctl()
[all …]
/net/
Dsocket.c1033 void __user *argp = (void __user *)arg; in sock_do_ioctl() local
1042 err = dev_ioctl(net, cmd, argp); in sock_do_ioctl()
1056 void __user *argp = (void __user *)arg; in sock_ioctl() local
1064 err = dev_ioctl(net, cmd, argp); in sock_ioctl()
1068 err = dev_ioctl(net, cmd, argp); in sock_ioctl()
1075 if (get_user(pid, (int __user *)argp)) in sock_ioctl()
1082 (int __user *)argp); in sock_ioctl()
1094 err = br_ioctl_hook(net, cmd, argp); in sock_ioctl()
1105 err = vlan_ioctl_hook(net, argp); in sock_ioctl()
1116 err = dlci_ioctl_hook(cmd, argp); in sock_ioctl()
[all …]
/net/ax25/
Daf_ax25.c1683 void __user *argp = (void __user *)arg; in ax25_ioctl() local
1694 res = put_user(amount, (int __user *)argp); in ax25_ioctl()
1704 res = put_user(amount, (int __user *) argp); in ax25_ioctl()
1709 res = sock_get_timestamp(sk, argp); in ax25_ioctl()
1713 res = sock_get_timestampns(sk, argp); in ax25_ioctl()
1720 if (copy_from_user(&sax25, argp, sizeof(sax25))) { in ax25_ioctl()
1734 if (get_user(amount, (long __user *)argp)) { in ax25_ioctl()
1754 res = ax25_rt_ioctl(cmd, argp); in ax25_ioctl()
1762 res = ax25_ctl_ioctl(cmd, argp); in ax25_ioctl()
1799 if (copy_to_user(argp, &ax25_info, sizeof(struct ax25_info_struct_deprecated))) { in ax25_ioctl()
[all …]
/net/rose/
Daf_rose.c1285 void __user *argp = (void __user *)arg; in rose_ioctl() local
1294 return put_user(amount, (unsigned int __user *) argp); in rose_ioctl()
1303 return put_user(amount, (unsigned int __user *) argp); in rose_ioctl()
1307 return sock_get_timestamp(sk, (struct timeval __user *) argp); in rose_ioctl()
1310 return sock_get_timestampns(sk, (struct timespec __user *) argp); in rose_ioctl()
1329 return rose_rt_ioctl(cmd, argp); in rose_ioctl()
1335 return copy_to_user(argp, &rose_cause, sizeof(struct rose_cause_struct)) ? -EFAULT : 0; in rose_ioctl()
1340 if (copy_from_user(&rose_cause, argp, sizeof(struct rose_cause_struct))) in rose_ioctl()
1351 if (copy_from_user(&rose_callsign, argp, sizeof(ax25_address))) in rose_ioctl()
1359 return copy_to_user(argp, &rose_callsign, sizeof(ax25_address)) ? -EFAULT : 0; in rose_ioctl()
/net/bluetooth/
Dhci_sock.c527 void __user *argp = (void __user *) arg; in hci_sock_ioctl() local
534 return hci_get_dev_list(argp); in hci_sock_ioctl()
537 return hci_get_dev_info(argp); in hci_sock_ioctl()
540 return hci_get_conn_list(argp); in hci_sock_ioctl()
572 return hci_dev_cmd(cmd, argp); in hci_sock_ioctl()
575 return hci_inquiry(argp); in hci_sock_ioctl()
/net/ipx/
Daf_ipx.c1850 void __user *argp = (void __user *)arg; in ipx_ioctl() local
1858 rc = put_user(amount, (int __user *)argp); in ipx_ioctl()
1866 rc = put_user(amount, (int __user *)argp); in ipx_ioctl()
1873 rc = ipxrtr_ioctl(cmd, argp); in ipx_ioctl()
1882 rc = ipxitf_ioctl(cmd, argp); in ipx_ioctl()
1885 rc = ipxcfg_get_config_data(argp); in ipx_ioctl()
1896 (const unsigned short __user *)argp); in ipx_ioctl()
1899 rc = sock_get_timestamp(sk, argp); in ipx_ioctl()
/net/netrom/
Daf_netrom.c1196 void __user *argp = (void __user *)arg; in nr_ioctl() local
1208 return put_user(amount, (int __user *)argp); in nr_ioctl()
1220 return put_user(amount, (int __user *)argp); in nr_ioctl()
1225 ret = sock_get_timestamp(sk, argp); in nr_ioctl()
1231 ret = sock_get_timestampns(sk, argp); in nr_ioctl()
1252 return nr_rt_ioctl(cmd, argp); in nr_ioctl()
/net/appletalk/
Dddp.c1792 void __user *argp = (void __user *)arg; in atalk_ioctl() local
1801 rc = put_user(amount, (int __user *)argp); in atalk_ioctl()
1814 rc = put_user(amount, (int __user *)argp); in atalk_ioctl()
1818 rc = sock_get_timestamp(sk, argp); in atalk_ioctl()
1821 rc = sock_get_timestampns(sk, argp); in atalk_ioctl()
1828 rc = atrtr_ioctl(cmd, argp); in atalk_ioctl()
1839 rc = atif_ioctl(cmd, argp); in atalk_ioctl()
/net/wireless/
Dwext-core.c1060 void __user *argp = (void __user *)arg; in compat_wext_handle_ioctl() local
1066 if (copy_from_user(&iwr, argp, sizeof(struct iwreq))) in compat_wext_handle_ioctl()
1083 copy_to_user(argp, &iwr, sizeof(struct iwreq))) in compat_wext_handle_ioctl()