Lines Matching defs:ar
416 agr_setconfig(struct agr_softc *sc, const struct agrreq *ar)
419 int cmd = ar->ar_cmd;
425 error = copyin(ar->ar_buf, ifname,
426 MIN(ar->ar_buflen, sizeof(ifname) - 1));
455 agr_getportlist(struct agr_softc *sc, struct agrreq *ar)
460 char *cp = ar->ar_buf;
461 size_t bufleft = (cp == NULL) ? 0 : ar->ar_buflen;
504 ar->ar_buflen = -bufleft; /* necessary buffer size */
511 agr_getconfig(struct agr_softc *sc, struct agrreq *ar)
513 int cmd = ar->ar_cmd;
519 error = agr_getportlist(sc, ar);
864 agrreq_copyin(const void *ubuf, struct agrreq *ar)
868 error = copyin(ubuf, ar, sizeof(*ar));
873 if (ar->ar_version != AGRREQ_VERSION) {
881 agrreq_copyout(void *ubuf, struct agrreq *ar)
885 KASSERT(ar->ar_version == AGRREQ_VERSION);
887 error = copyout(ar, ubuf, sizeof(*ar));
1016 struct agrreq ar;
1069 error = agrreq_copyin(ifr->ifr_data, &ar);
1072 error = agr_setconfig(sc, &ar);
1079 error = agrreq_copyin(ifr->ifr_data, &ar);
1081 error = agr_getconfig(sc, &ar);
1084 error = agrreq_copyout(ifr->ifr_data, &ar);