Lines Matching refs:so

145 tp_rcvoob(tpcb, so, m, outflags, inflags)
147 register struct socket *so; variable
153 register struct sockbuf *sb = &so->so_rcv;
159 printf("PRU_RCVOOB, sostate 0x%x\n", so->so_state);
167 if ((((so->so_state & SS_ISCONNECTED) == 0)
168 || (so->so_state & SS_ISDISCONNECTING) != 0) &&
169 (so->so_proto->pr_flags & PR_CONNREQUIRED)) {
195 if (so->so_state & SS_NBIO) {
215 dump_mbuf(so->so_rcv.sb_mb, "RCVOOB: Rcv socketbuf");
252 tp_sendoob(tpcb, so, xdata, outflags)
254 register struct socket *so; variable
285 if (so->so_state & SS_NBIO) {
289 sbunlock(&so->so_snd); /* already locked by sosend */
290 sbwait(&so->so_snd);
291 sblock(&so->so_snd, M_WAITOK); /* sosend will unlock on return */
332 dump_mbuf(so->so_snd.sb_mb, "XPD request Regular sndbuf:");
351 tp_usrreq(so, req, m, nam, controlp) in tp_usrreq() argument
352 struct socket *so; in tp_usrreq()
356 register struct tp_pcb *tpcb = sototpcb(so);
364 printf("usrreq(0x%x,%d,0x%x,0x%x,0x%x)\n",so,req,m,nam,outflags);
365 if (so->so_error)
366 printf("WARNING!!! so->so_error is 0x%x\n", so->so_error);
369 tptraceTPCB(TPPTusrreq, "req so m state [", req, so, m,
386 } else if ((error = tp_attach(so, (int)nam)) == 0)
387 tpcb = sototpcb(so);
476 tpcb, so, tpcb->tp_npcb, tpcb->tp_flags);
486 soisconnecting(so);
520 if (so->so_state & SS_ISCONFIRMING) {
529 so->so_rcv.sb_cc, so->so_rcv.sb_hiwat);
533 sbspace(&so->so_rcv), tpcb->tp_lcredit,
534 so->so_rcv.sb_cc, so->so_rcv.sb_hiwat);
538 so->so_rcv.sb_cc, sbspace(&so->so_rcv),
539 so->so_rcv.sb_hiwat);
548 if ((so->so_state & SS_ISCONNECTED) == 0) {
557 error = tp_rcvoob(tpcb, so, m, outflags, (int)nam);
563 error = tp_snd_control(controlp, so, &m);
568 if ((so->so_state & SS_ISCONFIRMING) &&
574 EOPNOTSUPP : tp_sendoob(tpcb, so, m, outflags);
605 struct sockbuf *sb = &so->so_snd;
663 "returning from tp_usrreq", so, tpcb, error,
667 tptraceTPCB(TPPTusrreq, "END req so m state [", req, so, m,
677 tp_ltrace(so, uio)
678 struct socket *so; variable
682 register struct tp_pcb *tpcb = sototpcb(so);
684 tptraceTPCB(TPPTmisc, "sosend so resid iovcnt", so,
704 tp_snd_control(m, so, data)
706 struct socket *so; variable
717 so, ch->cmsg_level, ch->cmsg_type, &m);
723 error = tp_usrreq(so, PRU_DISCONNECT, (struct mbuf *)0,