/net/sched/ |
H A D | sch_drr.c | 66 struct nlattr **tca, unsigned long *arg) 69 struct drr_class *cl = (struct drr_class *)*arg; 136 *arg = (unsigned long)cl; 147 static int drr_delete_class(struct Qdisc *sch, unsigned long arg) argument 150 struct drr_class *cl = (struct drr_class *)arg; 180 static void drr_put_class(struct Qdisc *sch, unsigned long arg) argument 182 struct drr_class *cl = (struct drr_class *)arg; 210 static void drr_unbind_tcf(struct Qdisc *sch, unsigned long arg) argument 212 struct drr_class *cl = (struct drr_class *)arg; 217 static int drr_graft_class(struct Qdisc *sch, unsigned long arg, argument 65 drr_change_class(struct Qdisc *sch, u32 classid, u32 parentid, struct nlattr **tca, unsigned long *arg) argument 237 drr_class_leaf(struct Qdisc *sch, unsigned long arg) argument 244 drr_qlen_notify(struct Qdisc *csh, unsigned long arg) argument 252 drr_dump_class(struct Qdisc *sch, unsigned long arg, struct sk_buff *skb, struct tcmsg *tcm) argument 274 drr_dump_class_stats(struct Qdisc *sch, unsigned long arg, struct gnet_dump *d) argument 293 drr_walk(struct Qdisc *sch, struct qdisc_walker *arg) argument [all...] |
H A D | sch_pie.c | 423 static void pie_timer(unsigned long arg) argument 425 struct Qdisc *sch = (struct Qdisc *)arg;
|
H A D | sch_tbf.c | 497 static int tbf_graft(struct Qdisc *sch, unsigned long arg, struct Qdisc *new, argument 515 static struct Qdisc *tbf_leaf(struct Qdisc *sch, unsigned long arg) argument 526 static void tbf_put(struct Qdisc *sch, unsigned long arg) argument
|
H A D | cls_flow.c | 328 static void flow_perturbation(unsigned long arg) argument 330 struct flow_filter *f = (struct flow_filter *)arg; 365 unsigned long *arg, bool ovr) 422 fold = (struct flow_filter *)*arg; 523 if (*arg == 0) 528 *arg = (unsigned long)fnew; 542 static int flow_delete(struct tcf_proto *tp, unsigned long arg) argument 544 struct flow_filter *f = (struct flow_filter *)arg; 652 static void flow_walk(struct tcf_proto *tp, struct tcf_walker *arg) argument 658 if (arg 362 flow_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg, bool ovr) argument [all...] |
H A D | cls_u32.c | 500 static int u32_delete(struct tcf_proto *tp, unsigned long arg) argument 502 struct tc_u_hnode *ht = (struct tc_u_hnode *)arg; 693 unsigned long *arg, bool ovr) 714 n = (struct tc_u_knode *)*arg; 762 *arg = (unsigned long)ht; 846 *arg = (unsigned long)n; 862 static void u32_walk(struct tcf_proto *tp, struct tcf_walker *arg) argument 869 if (arg->stop) 877 if (arg->count >= arg 690 u32_change(struct net *net, struct sk_buff *in_skb, struct tcf_proto *tp, unsigned long base, u32 handle, struct nlattr **tca, unsigned long *arg, bool ovr) argument [all...] |
H A D | sch_choke.c | 549 static struct Qdisc *choke_leaf(struct Qdisc *sch, unsigned long arg) argument 586 static void choke_walk(struct Qdisc *sch, struct qdisc_walker *arg) argument 588 if (!arg->stop) { 589 if (arg->fn(sch, 1, arg) < 0) { 590 arg->stop = 1; 593 arg->count++;
|
H A D | sch_fq_codel.c | 479 static struct Qdisc *fq_codel_leaf(struct Qdisc *sch, unsigned long arg) argument 560 static void fq_codel_walk(struct Qdisc *sch, struct qdisc_walker *arg) argument 565 if (arg->stop) 570 arg->count < arg->skip) { 571 arg->count++; 574 if (arg->fn(sch, i + 1, arg) < 0) { 575 arg->stop = 1; 578 arg [all...] |
H A D | sch_generic.c | 271 static void dev_watchdog(unsigned long arg) argument 273 struct net_device *dev = (struct net_device *)arg;
|
/net/wireless/ |
H A D | wext-core.c | 1010 void __user *arg) 1020 copy_to_user(arg, ifr, sizeof(struct iwreq))) 1058 unsigned long arg) 1060 void __user *argp = (void __user *)arg; 1009 wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, void __user *arg) argument 1057 compat_wext_handle_ioctl(struct net *net, unsigned int cmd, unsigned long arg) argument
|
/net/atm/ |
H A D | br2684.c | 147 void *arg) 149 struct atm_dev *atm_dev = arg; 360 static int br2684_setfilt(struct atm_vcc *atmvcc, void __user * arg) argument 365 if (copy_from_user(&fs, arg, sizeof fs)) 531 static int br2684_regvcc(struct atm_vcc *atmvcc, void __user * arg) argument 539 if (copy_from_user(&be, arg, sizeof be)) 661 static int br2684_create(void __user *arg) argument 671 if (copy_from_user(&ni, arg, sizeof ni)) 721 unsigned long arg) 724 void __user *argp = (void __user *)arg; 146 atm_dev_event(struct notifier_block *this, unsigned long event, void *arg) argument 720 br2684_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument [all...] |
H A D | clip.c | 653 static int clip_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 673 err = clip_create(arg); 683 err = clip_mkip(vcc, arg); 686 err = clip_setentry(vcc, (__force __be32)arg); 689 err = clip_encap(vcc, arg);
|
H A D | lec.c | 690 static int lec_vcc_attach(struct atm_vcc *vcc, void __user *arg) argument 697 bytes_left = copy_from_user(&ioc_data, arg, sizeof(struct atmlec_ioc)); 717 static int lec_mcast_attach(struct atm_vcc *vcc, int arg) argument 719 if (arg < 0 || arg >= MAX_LEC_ITF || !dev_lec[arg]) 721 vcc->proto_data = dev_lec[arg]; 722 return lec_mcast_make(netdev_priv(dev_lec[arg]), vcc); 726 static int lecd_attach(struct atm_vcc *vcc, int arg) argument 731 if (arg < 1012 lane_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument [all...] |
/net/bluetooth/ |
H A D | hci_conn.c | 1191 int hci_get_conn_list(void __user *arg) argument 1199 if (copy_from_user(&req, arg, sizeof(req))) 1238 err = copy_to_user(arg, cl, size); 1244 int hci_get_conn_info(struct hci_dev *hdev, void __user *arg) argument 1249 char __user *ptr = arg + sizeof(req); 1251 if (copy_from_user(&req, arg, sizeof(req))) 1272 int hci_get_auth_info(struct hci_dev *hdev, void __user *arg) argument 1277 if (copy_from_user(&req, arg, sizeof(req))) 1289 return copy_to_user(arg, &req, sizeof(req)) ? -EFAULT : 0;
|
H A D | hci_sock.c | 493 static int hci_sock_blacklist_add(struct hci_dev *hdev, void __user *arg) argument 498 if (copy_from_user(&bdaddr, arg, sizeof(bdaddr))) 510 static int hci_sock_blacklist_del(struct hci_dev *hdev, void __user *arg) argument 515 if (copy_from_user(&bdaddr, arg, sizeof(bdaddr))) 529 unsigned long arg) 552 return hci_get_conn_info(hdev, (void __user *) arg); 555 return hci_get_auth_info(hdev, (void __user *) arg); 560 return hci_sock_blacklist_add(hdev, (void __user *) arg); 565 return hci_sock_blacklist_del(hdev, (void __user *) arg); 572 unsigned long arg) 528 hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd, unsigned long arg) argument 571 hci_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument [all...] |
/net/bluetooth/rfcomm/ |
H A D | sock.c | 884 static int rfcomm_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 889 BT_DBG("sk %p cmd %x arg %lx", sk, cmd, arg); 891 err = bt_sock_ioctl(sock, cmd, arg); 896 err = rfcomm_dev_ioctl(sk, cmd, (void __user *) arg);
|
H A D | tty.c | 390 static int __rfcomm_create_dev(struct sock *sk, void __user *arg) argument 396 if (copy_from_user(&req, arg, sizeof(req))) 438 static int __rfcomm_release_dev(void __user *arg) argument 444 if (copy_from_user(&req, arg, sizeof(req))) 481 static int rfcomm_create_dev(struct sock *sk, void __user *arg) argument 486 ret = __rfcomm_create_dev(sk, arg); 492 static int rfcomm_release_dev(void __user *arg) argument 497 ret = __rfcomm_release_dev(arg); 503 static int rfcomm_get_dev_list(void __user *arg) argument 513 if (get_user(dev_num, (u16 __user *) arg)) 554 rfcomm_get_dev_info(void __user *arg) argument 582 rfcomm_dev_ioctl(struct sock *sk, unsigned int cmd, void __user *arg) argument 825 rfcomm_tty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg) argument [all...] |
/net/dccp/ |
H A D | proto.c | 360 int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg) argument 382 rc = put_user(amount, (int __user *)arg);
|
/net/ipv4/ |
H A D | ip_fragment.c | 122 const struct ip4_create_arg *arg = a; local 125 return qp->id == arg->iph->id && 126 qp->saddr == arg->iph->saddr && 127 qp->daddr == arg->iph->daddr && 128 qp->protocol == arg->iph->protocol && 129 qp->user == arg->user; 139 const struct ip4_create_arg *arg = a; local 141 qp->protocol = arg->iph->protocol; 142 qp->id = arg->iph->id; 143 qp->ecn = ip4_frag_ecn(arg 179 ip_expire(unsigned long arg) argument 242 struct ip4_create_arg arg; local [all...] |
/net/llc/ |
H A D | af_llc.c | 1012 * @arg: optional argument for cmd 1017 unsigned long arg) 1016 llc_ui_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
|
/net/netlabel/ |
H A D | netlabel_unlabeled.c | 1073 * @arg: the netlbl_unlhsh_walk_arg structure 1087 void *arg) 1090 struct netlbl_unlhsh_walk_arg *cb_arg = arg; 1083 netlbl_unlabel_staticlist_gen(u32 cmd, const struct netlbl_unlhsh_iface *iface, const struct netlbl_unlhsh_addr4 *addr4, const struct netlbl_unlhsh_addr6 *addr6, void *arg) argument
|
/net/nfc/ |
H A D | digital_core.c | 148 void *arg, struct sk_buff *resp) 150 struct digital_cmd *cmd = arg; 653 static void digital_in_send_complete(struct nfc_digital_dev *ddev, void *arg, argument 656 struct digital_data_exch *data_exch = arg; 147 digital_send_cmd_complete(struct nfc_digital_dev *ddev, void *arg, struct sk_buff *resp) argument
|
/net/nfc/nci/ |
H A D | core.c | 393 static void nci_cmd_timer(unsigned long arg) argument 395 struct nci_dev *ndev = (void *) arg; 402 static void nci_data_timer(unsigned long arg) argument 404 struct nci_dev *ndev = (void *) arg;
|
/net/phonet/ |
H A D | socket.c | 367 unsigned long arg) 377 if (get_user(handle, (__u16 __user *)arg)) 398 return put_user(handle, (__u16 __user *)arg); 401 return sk->sk_prot->ioctl(sk, cmd, arg); 366 pn_socket_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
|
/net/rose/ |
H A D | rose_route.c | 726 int rose_rt_ioctl(unsigned int cmd, void __user *arg) argument 734 if (copy_from_user(&rose_route, arg, sizeof(struct rose_route_struct))) 748 if (copy_from_user(&rose_route, arg, sizeof(struct rose_route_struct)))
|
/net/appletalk/ |
H A D | ddp.c | 661 static int atif_ioctl(int cmd, void __user *arg) argument 674 if (copy_from_user(&atreq, arg, sizeof(atreq))) 873 return copy_to_user(arg, &atreq, sizeof(atreq)) ? -EFAULT : 0; 877 static int atrtr_ioctl(unsigned int cmd, void __user *arg) argument 881 if (copy_from_user(&rt, arg, sizeof(rt))) 1783 static int atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 1787 void __user *argp = (void __user *)arg; 1844 static int atalk_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 1853 return atalk_ioctl(sock, cmd, (unsigned long)compat_ptr(arg));
|