Lines Matching refs:comp
989 static int readrids(struct net_device *dev, aironet_ioctl *comp);
990 static int writerids(struct net_device *dev, aironet_ioctl *comp);
991 int flashcard(struct net_device *dev, aironet_ioctl *comp);
6637 static int readrids(struct net_device *dev, aironet_ioctl *comp) { argument
6646 switch(comp->command)
6670 if (copy_to_user(comp->data, &ai->micstats,
6671 min((int)comp->len,(int)sizeof(ai->micstats))))
6675 case AIRORRID: ridcode = comp->len; break;
6689 if (comp->command == AIRORRID)
6692 len = comp->len;
6694 if (copy_to_user(comp->data, iobuf, min(len, (int)RIDS_SIZE))) {
6706 static int writerids(struct net_device *dev, aironet_ioctl *comp) { argument
6723 switch(comp->command)
6768 if (copy_to_user(comp->data, iobuf,
6769 min((int)comp->len, (int)RIDS_SIZE))) {
6779 if(comp->len > RIDS_SIZE)
6785 if (copy_from_user(iobuf,comp->data,comp->len)) {
6790 if (comp->command == AIROPCFG) {
6802 if((*writer)(ai, ridcode, iobuf,comp->len,1)) {
6819 int flashcard(struct net_device *dev, aironet_ioctl *comp) { argument
6832 switch(comp->command)
6844 if(comp->len != sizeof(int))
6846 if (copy_from_user(&z,comp->data,comp->len))
6851 if(comp->len != sizeof(int))
6853 if (copy_from_user(&z,comp->data,comp->len))
6860 if(comp->len > FLASHSIZE)
6862 if(copy_from_user(((struct airo_info *)dev->priv)->flash,comp->data,comp->len))