Lines Matching defs:arg
683 static int lec_vcc_attach(struct atm_vcc *vcc, void __user *arg)
690 bytes_left = copy_from_user(&ioc_data, arg, sizeof(struct atmlec_ioc));
712 static int lec_mcast_attach(struct atm_vcc *vcc, int arg)
714 if (arg < 0 || arg >= MAX_LEC_ITF)
716 arg = array_index_nospec(arg, MAX_LEC_ITF);
717 if (!dev_lec[arg])
719 vcc->proto_data = dev_lec[arg];
720 return lec_mcast_make(netdev_priv(dev_lec[arg]), vcc);
724 static int lecd_attach(struct atm_vcc *vcc, int arg)
729 if (arg < 0)
730 arg = 0;
731 if (arg >= MAX_LEC_ITF)
733 i = array_index_nospec(arg, MAX_LEC_ITF);
991 static int lane_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
1009 err = lecd_attach(vcc, (int)arg);
1014 err = lec_mcast_attach(vcc, (int)arg);
1017 err = lec_vcc_attach(vcc, (void __user *)arg);