Lines Matching defs:l_ioctl
1915 struct aironet_ioctl l_ioctl;
2007 error = copyin(ifr->ifr_data, &l_ioctl, sizeof(l_ioctl));
2010 mode = l_ioctl.command;
2014 error = readrids(ifp, &l_ioctl);
2016 error = writerids(ifp, &l_ioctl);
2018 error = flashcard(ifp, &l_ioctl);
2025 error = copyout(&l_ioctl, ifr->ifr_data, sizeof(l_ioctl));
2031 error = copyin(ifr->ifr_data, &l_ioctl, sizeof(l_ioctl));
2034 l_ioctl.command = 0;
2036 (void) copyout(&error, l_ioctl.data, sizeof(error));
3317 readrids(struct ifnet *ifp, struct aironet_ioctl *l_ioctl)
3323 switch (l_ioctl->command) {
3371 l_ioctl->len = sc->areq.an_len - 4; /* just data */
3375 if (copyout(&(sc->areq.an_len), l_ioctl->data,
3381 if (copyout(&(sc->areq.an_val), l_ioctl->data + 2,
3382 l_ioctl->len)) {
3393 writerids(struct ifnet *ifp, struct aironet_ioctl *l_ioctl)
3401 command = l_ioctl->command;
3437 l_ioctl->len = sc->areq.an_len - 4; /* just data */
3441 error = copyout(&(sc->areq.an_len), l_ioctl->data,
3448 error = copyout(&(sc->areq.an_val), l_ioctl->data + 2,
3449 l_ioctl->len);
3472 if (l_ioctl->len > sizeof(sc->areq.an_val) + 4)
3474 sc->areq.an_len = l_ioctl->len + 4; /* add type & length */
3479 error = copyin((l_ioctl->data) + 2, &sc->areq.an_val,
3480 l_ioctl->len);
3752 flashcard(struct ifnet *ifp, struct aironet_ioctl *l_ioctl)
3762 status = l_ioctl->command;
3764 switch (l_ioctl->command) {
3781 status = copyin(l_ioctl->data, &sc->areq, l_ioctl->len);
3792 status = copyin(l_ioctl->data, &sc->areq, l_ioctl->len);
3803 if (l_ioctl->len > FLASH_SIZE) {
3805 l_ioctl->len, FLASH_SIZE);
3809 status = copyin(l_ioctl->data, sc->an_flash_buffer, l_ioctl->len);