/net/atm/ |
H A D | mpc.c | 605 static int atm_mpoa_vcc_attach(struct atm_vcc *vcc, void __user *arg) argument 613 bytes_left = copy_from_user(&ioc_data, arg, sizeof(struct atmmpc_ioc)); 795 static int atm_mpoa_mpoad_attach(struct atm_vcc *vcc, int arg) argument 813 mpc = find_mpc_by_itfnum(arg); 815 dprintk("allocating new mpc for itf %d\n", arg); 819 mpc->dev_num = arg; 820 mpc->dev = find_lec_by_itfnum(arg); 824 pr_info("mpoad is already present for itf %d\n", arg); 856 return arg; 1444 unsigned long arg) 1443 atm_mpoa_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument [all...] |
/net/ax25/ |
H A D | af_ax25.c | 349 static int ax25_ctl_ioctl(const unsigned int cmd, void __user *arg) argument 358 if (copy_from_user(&ax25_ctl, arg, sizeof(ax25_ctl))) 367 if (ax25_ctl.arg > ULONG_MAX / HZ && ax25_ctl.cmd != AX25_KILL) 389 if (ax25_ctl.arg < 1 || ax25_ctl.arg > 7) 392 if (ax25_ctl.arg < 1 || ax25_ctl.arg > 63) 395 ax25->window = ax25_ctl.arg; 399 if (ax25_ctl.arg < 1 || ax25_ctl.arg > ULONG_MA 1680 ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument [all...] |
/net/bluetooth/hidp/ |
H A D | core.c | 68 static int hidp_session_thread(void *arg); 399 static void hidp_idle_timeout(unsigned long arg) argument 401 struct hidp_session *session = (struct hidp_session *) arg; 1232 static int hidp_session_thread(void *arg) argument 1234 struct hidp_session *session = arg;
|
/net/bluetooth/ |
H A D | sco.c | 75 static void sco_sock_timeout(unsigned long arg) argument 77 struct sock *sk = (struct sock *) arg;
|
/net/decnet/ |
H A D | dn_dev.c | 412 int dn_dev_ioctl(unsigned int cmd, void __user *arg) argument 423 if (copy_from_user(ifr, arg, DN_IFREQ_SIZE)) 489 if (copy_to_user(arg, ifr, DN_IFREQ_SIZE)) 1036 static void dn_dev_timer_func(unsigned long arg) argument 1038 struct net_device *dev = (struct net_device *)arg;
|
/net/ipv4/ |
H A D | af_inet.c | 852 int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 860 err = sock_get_timestamp(sk, (struct timeval __user *)arg); 863 err = sock_get_timestampns(sk, (struct timespec __user *)arg); 868 err = ip_rt_ioctl(net, cmd, (void __user *)arg); 873 err = arp_ioctl(net, cmd, (void __user *)arg); 887 err = devinet_ioctl(net, cmd, (void __user *)arg); 891 err = sk->sk_prot->ioctl(sk, cmd, arg); 901 static int inet_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 907 err = sk->sk_prot->compat_ioctl(sk, cmd, arg);
|
H A D | arp.c | 1180 int arp_ioctl(struct net *net, unsigned int cmd, void __user *arg) argument 1192 err = copy_from_user(&r, arg, sizeof(struct arpreq)); 1240 if (cmd == SIOCGARP && !err && copy_to_user(arg, &r, sizeof(r)))
|
H A D | fib_frontend.c | 482 int ip_rt_ioctl(struct net *net, unsigned int cmd, void __user *arg) argument 494 if (copy_from_user(&rt, arg, sizeof(rt)))
|
H A D | ip_output.c | 1528 const struct ip_reply_arg *arg, 1556 flowi4_init_output(&fl4, arg->bound_dev_if, 1558 RT_TOS(arg->tos), 1560 ip_reply_arg_flowi_flags(arg), 1563 arg->uid); 1571 inet->tos = arg->tos; 1575 sk->sk_bound_dev_if = arg->bound_dev_if; 1579 err = ip_append_data(sk, &fl4, ip_reply_glue_bits, arg->iov->iov_base, 1588 if (arg->csumoffset >= 0) 1590 arg 1525 ip_send_unicast_reply(struct net *net, struct sk_buff *skb, const struct ip_options *sopt, __be32 daddr, __be32 saddr, const struct ip_reply_arg *arg, unsigned int len) argument [all...] |
H A D | raw.c | 845 static int raw_ioctl(struct sock *sk, int cmd, unsigned long arg) argument 851 return put_user(amount, (int __user *)arg); 862 return put_user(amount, (int __user *)arg); 867 return ipmr_ioctl(sk, cmd, (void __user *)arg); 875 static int compat_raw_ioctl(struct sock *sk, unsigned int cmd, unsigned long arg) argument 883 return ipmr_compat_ioctl(sk, cmd, compat_ptr(arg));
|
/net/ipv6/ |
H A D | raw.c | 1121 static int rawv6_ioctl(struct sock *sk, int cmd, unsigned long arg) argument 1127 return put_user(amount, (int __user *)arg); 1139 return put_user(amount, (int __user *)arg); 1144 return ip6mr_ioctl(sk, cmd, (void __user *)arg); 1152 static int compat_rawv6_ioctl(struct sock *sk, unsigned int cmd, unsigned long arg) argument 1160 return ip6mr_compat_ioctl(sk, cmd, compat_ptr(arg));
|
/net/ipx/ |
H A D | af_ipx.c | 98 static int ipxcfg_get_config_data(struct ipx_config_data __user *arg) argument 105 return copy_to_user(arg, &vals, sizeof(vals)) ? -EFAULT : 0; 1117 static int ipxitf_ioctl(unsigned int cmd, void __user *arg) argument 1129 if (copy_from_user(&ifr, arg, sizeof(ifr))) 1154 if (copy_from_user(&ifr, arg, sizeof(ifr))) 1172 if (copy_to_user(arg, &ifr, sizeof(ifr))) 1180 if (get_user(val, (unsigned char __user *) arg)) 1187 if (get_user(val, (unsigned char __user *) arg)) 1838 static int ipx_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 1843 void __user *argp = (void __user *)arg; 1913 ipx_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument [all...] |
/net/irda/ |
H A D | af_irda.c | 1819 * Function irda_ioctl (sock, cmd, arg) 1821 static int irda_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 1836 err = put_user(amount, (unsigned int __user *)arg); 1846 err = put_user(amount, (unsigned int __user *)arg); 1852 err = sock_get_timestamp(sk, (struct timeval __user *)arg); 1876 * Function irda_ioctl (sock, cmd, arg) 1878 static int irda_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
|
/net/l2tp/ |
H A D | l2tp_ppp.c | 575 static void pppol2tp_show(struct seq_file *m, void *arg) argument 577 struct l2tp_session *session = arg; 1004 unsigned int cmd, unsigned long arg) 1009 int val = (int) arg; 1015 "%s: pppol2tp_session_ioctl(cmd=%#x, arg=%#lx)\n", 1016 session->name, cmd, arg); 1028 if (copy_from_user(&ifr, (void __user *) arg, sizeof(struct ifreq))) 1031 if (copy_to_user((void __user *) arg, &ifr, sizeof(struct ifreq))) 1045 if (copy_from_user(&ifr, (void __user *) arg, sizeof(struct ifreq))) 1061 if (put_user(session->mru, (int __user *) arg)) 1003 pppol2tp_session_ioctl(struct l2tp_session *session, unsigned int cmd, unsigned long arg) argument 1137 pppol2tp_tunnel_ioctl(struct l2tp_tunnel *tunnel, unsigned int cmd, unsigned long arg) argument 1198 pppol2tp_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument [all...] |
/net/netrom/ |
H A D | af_netrom.c | 1192 static int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 1195 void __user *argp = (void __user *)arg;
|
/net/nfc/ |
H A D | digital_technology.c | 223 static void digital_in_recv_ats(struct nfc_digital_dev *ddev, void *arg, argument 226 struct nfc_target *target = arg; 280 static void digital_in_recv_sel_res(struct nfc_digital_dev *ddev, void *arg, argument 283 struct nfc_target *target = arg; 395 static void digital_in_recv_sdd_res(struct nfc_digital_dev *ddev, void *arg, argument 398 struct nfc_target *target = arg; 480 static void digital_in_recv_sens_res(struct nfc_digital_dev *ddev, void *arg, argument 579 static void digital_in_recv_attrib_res(struct nfc_digital_dev *ddev, void *arg, argument 582 struct nfc_target *target = arg; 650 static void digital_in_recv_sensb_res(struct nfc_digital_dev *ddev, void *arg, argument 748 digital_in_recv_sensf_res(struct nfc_digital_dev *ddev, void *arg, struct sk_buff *resp) argument 846 digital_in_recv_iso15693_inv_res(struct nfc_digital_dev *ddev, void *arg, struct sk_buff *resp) argument 962 digital_tg_recv_sel_req(struct nfc_digital_dev *ddev, void *arg, struct sk_buff *resp) argument 1027 digital_tg_recv_sdd_req(struct nfc_digital_dev *ddev, void *arg, struct sk_buff *resp) argument 1086 digital_tg_recv_sens_req(struct nfc_digital_dev *ddev, void *arg, struct sk_buff *resp) argument 1115 digital_tg_recv_atr_or_sensf_req(struct nfc_digital_dev *ddev, void *arg, struct sk_buff *resp) argument 1179 digital_tg_recv_sensf_req(struct nfc_digital_dev *ddev, void *arg, struct sk_buff *resp) argument 1277 digital_tg_recv_md_req(struct nfc_digital_dev *ddev, void *arg, struct sk_buff *resp) argument [all...] |
/net/phonet/ |
H A D | pep.c | 928 static int pep_ioctl(struct sock *sk, int cmd, unsigned long arg) argument 950 ret = put_user(answ, (int __user *)arg);
|
/net/rfkill/ |
H A D | core.c | 1215 unsigned long arg) 1214 rfkill_fop_ioctl(struct file *file, unsigned int cmd, unsigned long arg) argument
|
/net/rose/ |
H A D | af_rose.c | 1276 static int rose_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 1280 void __user *argp = (void __user *)arg;
|
/net/sched/ |
H A D | sch_netem.c | 1047 static int netem_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, argument 1064 static struct Qdisc *netem_leaf(struct Qdisc *sch, unsigned long arg) argument 1075 static void netem_put(struct Qdisc *sch, unsigned long arg) argument
|
H A D | sch_sfb.c | 609 static int sfb_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, argument 626 static struct Qdisc *sfb_leaf(struct Qdisc *sch, unsigned long arg) argument 638 static void sfb_put(struct Qdisc *sch, unsigned long arg) argument 643 struct nlattr **tca, unsigned long *arg) 642 sfb_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg) argument
|
H A D | sch_sfq.c | 623 static void sfq_perturbation(unsigned long arg) argument 625 struct Qdisc *sch = (struct Qdisc *)arg; 820 static struct Qdisc *sfq_leaf(struct Qdisc *sch, unsigned long arg) argument 879 static void sfq_walk(struct Qdisc *sch, struct qdisc_walker *arg) argument 884 if (arg->stop) 889 arg->count < arg->skip) { 890 arg->count++; 893 if (arg->fn(sch, i + 1, arg) < [all...] |
/net/sctp/ |
H A D | protocol.c | 596 static void sctp_addr_wq_timeout_handler(unsigned long arg) argument 598 struct net *net = (struct net *)arg;
|
/net/sunrpc/ |
H A D | svc_xprt.c | 585 struct xdr_buf *arg; local 611 /* Make arg->head point to first page and arg->pages point to rest */ 612 arg = &rqstp->rq_arg; 613 arg->head[0].iov_base = page_address(rqstp->rq_pages[0]); 614 arg->head[0].iov_len = PAGE_SIZE; 615 arg->pages = rqstp->rq_pages + 1; 616 arg->page_base = 0; 618 arg->page_len = (pages-2)*PAGE_SIZE; 619 arg [all...] |
/net/vmw_vsock/ |
H A D | af_vsock.c | 1901 unsigned int cmd, unsigned long arg) 1903 return vsock_dev_do_ioctl(filp, cmd, (void __user *)arg); 1908 unsigned int cmd, unsigned long arg) 1910 return vsock_dev_do_ioctl(filp, cmd, compat_ptr(arg)); 1900 vsock_dev_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument 1907 vsock_dev_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) argument
|