Home
last modified time | relevance | path

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

/net/bluetooth/bnep/
Dsock.c52 static int do_bnep_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_bnep_sock_ioctl() argument
62 BT_DBG("cmd %x arg %p", cmd, argp); in do_bnep_sock_ioctl()
69 if (copy_from_user(&ca, argp, sizeof(ca))) in do_bnep_sock_ioctl()
84 if (copy_to_user(argp, &ca, sizeof(ca))) in do_bnep_sock_ioctl()
95 if (copy_from_user(&cd, argp, sizeof(cd))) in do_bnep_sock_ioctl()
101 if (copy_from_user(&cl, argp, sizeof(cl))) in do_bnep_sock_ioctl()
108 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_bnep_sock_ioctl()
114 if (copy_from_user(&ci, argp, sizeof(ci))) in do_bnep_sock_ioctl()
118 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_bnep_sock_ioctl()
124 if (copy_to_user(argp, &supp_feat, sizeof(supp_feat))) in do_bnep_sock_ioctl()
[all …]
/net/bluetooth/cmtp/
Dsock.c66 static int do_cmtp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_cmtp_sock_ioctl() argument
75 BT_DBG("cmd %x arg %p", cmd, argp); in do_cmtp_sock_ioctl()
82 if (copy_from_user(&ca, argp, sizeof(ca))) in do_cmtp_sock_ioctl()
96 if (copy_to_user(argp, &ca, sizeof(ca))) in do_cmtp_sock_ioctl()
107 if (copy_from_user(&cd, argp, sizeof(cd))) in do_cmtp_sock_ioctl()
113 if (copy_from_user(&cl, argp, sizeof(cl))) in do_cmtp_sock_ioctl()
120 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_cmtp_sock_ioctl()
126 if (copy_from_user(&ci, argp, sizeof(ci))) in do_cmtp_sock_ioctl()
130 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_cmtp_sock_ioctl()
147 void __user *argp = compat_ptr(arg); in cmtp_sock_compat_ioctl() local
[all …]
/net/bluetooth/hidp/
Dsock.c49 static int do_hidp_sock_ioctl(struct socket *sock, unsigned int cmd, void __user *argp) in do_hidp_sock_ioctl() argument
59 BT_DBG("cmd %x arg %p", cmd, argp); in do_hidp_sock_ioctl()
66 if (copy_from_user(&ca, argp, sizeof(ca))) in do_hidp_sock_ioctl()
81 if (!err && copy_to_user(argp, &ca, sizeof(ca))) in do_hidp_sock_ioctl()
93 if (copy_from_user(&cd, argp, sizeof(cd))) in do_hidp_sock_ioctl()
99 if (copy_from_user(&cl, argp, sizeof(cl))) in do_hidp_sock_ioctl()
106 if (!err && copy_to_user(argp, &cl, sizeof(cl))) in do_hidp_sock_ioctl()
112 if (copy_from_user(&ci, argp, sizeof(ci))) in do_hidp_sock_ioctl()
116 if (!err && copy_to_user(argp, &ci, sizeof(ci))) in do_hidp_sock_ioctl()
149 void __user *argp = compat_ptr(arg); in hidp_sock_compat_ioctl() local
[all …]
/net/x25/
Daf_x25.c1371 void __user *argp = (void __user *)arg; in x25_ioctl() local
1381 rc = put_user(amount, (unsigned int __user *)argp); in x25_ioctl()
1396 rc = put_user(amount, (unsigned int __user *)argp); in x25_ioctl()
1417 rc = x25_route_ioctl(cmd, argp); in x25_ioctl()
1420 rc = x25_subscr_ioctl(cmd, argp); in x25_ioctl()
1426 rc = x25_subscr_ioctl(cmd, argp); in x25_ioctl()
1430 rc = copy_to_user(argp, &x25->facilities, in x25_ioctl()
1440 if (copy_from_user(&facilities, argp, sizeof(facilities))) in x25_ioctl()
1482 rc = copy_to_user(argp, &x25->dte_facilities, in x25_ioctl()
1493 if (copy_from_user(&dtefacs, argp, sizeof(dtefacs))) in x25_ioctl()
[all …]
/net/atm/
Dioctl.c58 void __user *argp = (void __user *)arg; in do_vcc_ioctl() local
69 (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
81 (int __user *)argp) ? -EFAULT : 0; in do_vcc_ioctl()
123 error = get_user(backend, (atm_backend_t __user *)argp); in do_vcc_ioctl()
165 error = atm_dev_ioctl(cmd, argp, compat); in do_vcc_ioctl()
Dpppoatm.c446 void __user *argp = (void __user *)arg; in pppoatm_ioctl() local
453 if (get_user(b, (atm_backend_t __user *) argp)) in pppoatm_ioctl()
461 return pppoatm_assign_vcc(atmvcc, argp); in pppoatm_ioctl()
465 chan), (int __user *) argp) ? -EFAULT : 0; in pppoatm_ioctl()
468 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/
Dsocket.c1037 void __user *argp = (void __user *)arg; in sock_do_ioctl() local
1050 if (copy_from_user(&ifc, argp, sizeof(struct ifconf))) in sock_do_ioctl()
1055 if (!err && copy_to_user(argp, &ifc, sizeof(struct ifconf))) in sock_do_ioctl()
1060 if (copy_from_user(&ifr, argp, sizeof(struct ifreq))) in sock_do_ioctl()
1064 if (copy_to_user(argp, &ifr, sizeof(struct ifreq))) in sock_do_ioctl()
1092 void __user *argp = (void __user *)arg; in sock_ioctl() local
1102 if (copy_from_user(&ifr, argp, sizeof(struct ifreq))) in sock_ioctl()
1106 if (copy_to_user(argp, &ifr, sizeof(struct ifreq))) in sock_ioctl()
1111 err = wext_handle_ioctl(net, cmd, argp); in sock_ioctl()
1118 if (get_user(pid, (int __user *)argp)) in sock_ioctl()
[all …]
/net/ax25/
Daf_ax25.c1691 void __user *argp = (void __user *)arg; in ax25_ioctl() local
1702 res = put_user(amount, (int __user *)argp); in ax25_ioctl()
1712 res = put_user(amount, (int __user *) 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()
1804 if (copy_to_user(argp, &ax25_info, sizeof(struct ax25_info_struct))) { in ax25_ioctl()
1820 if (copy_from_user(&ax25_fwd, argp, sizeof(ax25_fwd))) { in ax25_ioctl()
/net/rose/
Daf_rose.c1258 void __user *argp = (void __user *)arg; in rose_ioctl() local
1267 return put_user(amount, (unsigned int __user *) argp); in rose_ioctl()
1276 return put_user(amount, (unsigned int __user *) argp); in rose_ioctl()
1296 return rose_rt_ioctl(cmd, argp); in rose_ioctl()
1302 return copy_to_user(argp, &rose_cause, sizeof(struct rose_cause_struct)) ? -EFAULT : 0; in rose_ioctl()
1307 if (copy_from_user(&rose_cause, argp, sizeof(struct rose_cause_struct))) in rose_ioctl()
1318 if (copy_from_user(&rose_callsign, argp, sizeof(ax25_address))) in rose_ioctl()
1326 return copy_to_user(argp, &rose_callsign, sizeof(ax25_address)) ? -EFAULT : 0; in rose_ioctl()
/net/qrtr/
Dqrtr.c928 void __user *argp = (void __user *)arg; in qrtr_ioctl() local
944 rc = put_user(len, (int __user *)argp); in qrtr_ioctl()
950 rc = put_user(len, (int __user *)argp); in qrtr_ioctl()
953 if (copy_from_user(&ifr, argp, sizeof(ifr))) { in qrtr_ioctl()
960 if (copy_to_user(argp, &ifr, sizeof(ifr))) { in qrtr_ioctl()
/net/bluetooth/
Dhci_sock.c966 void __user *argp = (void __user *)arg; in hci_sock_ioctl() local
1004 return hci_get_dev_list(argp); in hci_sock_ioctl()
1007 return hci_get_dev_info(argp); in hci_sock_ioctl()
1010 return hci_get_conn_list(argp); in hci_sock_ioctl()
1042 return hci_dev_cmd(cmd, argp); in hci_sock_ioctl()
1045 return hci_inquiry(argp); in hci_sock_ioctl()
/net/netrom/
Daf_netrom.c1178 void __user *argp = (void __user *)arg; in nr_ioctl() local
1189 return put_user(amount, (int __user *)argp); in nr_ioctl()
1201 return put_user(amount, (int __user *)argp); in nr_ioctl()
1221 return nr_rt_ioctl(cmd, argp); in nr_ioctl()
/net/wireless/
Dwext-core.c1092 void __user *argp = (void __user *)arg; in compat_wext_handle_ioctl() local
1098 if (copy_from_user(&iwr, argp, sizeof(struct iwreq))) in compat_wext_handle_ioctl()
1115 copy_to_user(argp, &iwr, sizeof(struct iwreq))) in compat_wext_handle_ioctl()
/net/appletalk/
Dddp.c1784 void __user *argp = (void __user *)arg; in atalk_ioctl() local
1793 rc = put_user(amount, (int __user *)argp); in atalk_ioctl()
1806 rc = put_user(amount, (int __user *)argp); in atalk_ioctl()
1814 rc = atrtr_ioctl(cmd, argp); in atalk_ioctl()
1825 rc = atif_ioctl(cmd, argp); in atalk_ioctl()
/net/tipc/
Dsocket.c3111 void __user *argp = (void __user *)arg; in tipc_ioctl() local
3115 if (copy_from_user(&lnr, argp, sizeof(lnr))) in tipc_ioctl()
3120 if (copy_to_user(argp, &lnr, sizeof(lnr))) in tipc_ioctl()
3126 if (copy_from_user(&nr, argp, sizeof(nr))) in tipc_ioctl()
3130 if (copy_to_user(argp, &nr, sizeof(nr))) in tipc_ioctl()