Lines Matching refs:cnt
1399 if (uap->cnt == 0 || uap->cnt > UIO_MAXIOV) {
1403 user_msg = _MALLOC(uap->cnt * sizeof(struct user_msghdr_x),
1410 uiop = _MALLOC(uap->cnt * sizeof(struct uio *),
1421 umsgp = _MALLOC(uap->cnt * size_of_msghdr,
1428 error = copyin(uap->msgp, umsgp, uap->cnt * size_of_msghdr);
1435 UIO_WRITE, uap->cnt, user_msg, uiop);
1444 if (uio_array_is_valid(uiop, uap->cnt) == 0) {
1452 for (i = 0; i < uap->cnt; i++) {
1492 len_before = uio_array_resid(uiop, uap->cnt);
1495 uap->cnt, 0, control, uap->flags);
1497 len_after = uio_array_resid(uiop, uap->cnt);
1510 UIO_WRITE, uap->cnt, user_msg, uiop);
1520 free_uio_array(uiop, uap->cnt);
1977 if (uap->cnt == 0 || uap->cnt > UIO_MAXIOV) {
1981 user_msg = _MALLOC(uap->cnt * sizeof(struct user_msghdr_x),
1988 uiop = _MALLOC(uap->cnt * sizeof(struct uio *),
1999 umsgp = _MALLOC(uap->cnt * size_of_msghdr, M_TEMP, M_WAITOK | M_ZERO);
2005 error = copyin(uap->msgp, umsgp, uap->cnt * size_of_msghdr);
2012 UIO_READ, uap->cnt, user_msg, uiop);
2021 if (uio_array_is_valid(uiop, uap->cnt) == 0) {
2029 for (i = 0; i < uap->cnt; i++) {
2062 len_before = uio_array_resid(uiop, uap->cnt);
2065 uap->cnt, (struct mbuf **)0, NULL, NULL);
2067 len_after = uio_array_resid(uiop, uap->cnt);
2077 UIO_READ, uap->cnt, user_msg, uiop);
2079 error = copyout(umsgp, uap->msgp, uap->cnt * size_of_msghdr);
2092 free_uio_array(uiop, uap->cnt);