Lines Matching refs:mp
812 sendit(struct proc *p, int s, struct user_msghdr *mp, uio_t uiop,
834 if (mp->msg_name != USER_ADDR_NULL) {
835 if (mp->msg_namelen > sizeof (ss)) {
836 error = getsockaddr(so, &to, mp->msg_name,
837 mp->msg_namelen, TRUE);
839 error = getsockaddr_s(so, &ss, mp->msg_name,
840 mp->msg_namelen, TRUE);
850 if (mp->msg_control != USER_ADDR_NULL) {
851 if (mp->msg_controllen < sizeof (struct cmsghdr)) {
855 error = sockargs(&control, mp->msg_control,
856 mp->msg_controllen, MT_CONTROL);
1106 recvit(struct proc *p, int s, struct user_msghdr *mp, uio_t uiop,
1156 (struct mbuf **)0, mp->msg_control ? &control : (struct mbuf **)0,
1157 &mp->msg_flags);
1169 if (mp->msg_name) {
1172 len = mp->msg_namelen;
1181 error = copyout(fromsa, mp->msg_name, (unsigned)len);
1185 mp->msg_namelen = sa_len;
1193 if (mp->msg_control) {
1194 len = mp->msg_controllen;
1196 mp->msg_controllen = 0;
1197 ctlbuf = mp->msg_control;
1205 mp->msg_flags |= MSG_CTRUNC;
1218 mp->msg_controllen = ctlbuf - mp->msg_control;
1803 sockargs(struct mbuf **mp, user_addr_t data, int buflen, int type)
1830 *mp = m;