Lines Matching refs:td

73 #define nb_sosend(so,m,flags,td) sosend(so, NULL, 0, m, 0, flags, td)
76 u_int8_t *rpcodep, struct thread *td);
77 static int smb_nbst_disconnect(struct smb_vc *vcp, struct thread *td);
145 nb_connect_in(struct nbpcb *nbp, struct sockaddr_in *to, struct thread *td)
151 td->td_ucred, td);
171 error = soconnect(so, (struct sockaddr*)to, td);
178 (error = nb_intr(nbp, td->td_proc)) != 0) {
193 smb_nbst_disconnect(nbp->nbp_vc, td);
198 nbssn_rq_request(struct nbpcb *nbp, struct thread *td)
221 error = nb_sosend(nbp->nbp_tso, mbp->mb_top, 0, td);
233 error = selsocket(nbp->nbp_tso, POLLIN, &tv, td);
243 error = nbssn_recv(nbp, &m0, &rplen, &rpcode, td);
273 smb_nbst_disconnect(nbp->nbp_vc, td);
274 error = nb_connect_in(nbp, &sin, td);
276 error = nbssn_rq_request(nbp, td);
278 smb_nbst_disconnect(nbp->nbp_vc, td);
290 u_int8_t *rpcodep, int flags, struct thread *td)
306 auio.uio_td = td;
330 u_int8_t *rpcodep, struct thread *td)
352 error = nbssn_recvhdr(nbp, &len, &rpcode, MSG_DONTWAIT, td);
386 auio.uio_td = td;
452 smb_nbst_create(struct smb_vc *vcp, struct thread *td)
468 smb_nbst_done(struct smb_vc *vcp, struct thread *td)
474 smb_nbst_disconnect(vcp, td);
484 smb_nbst_bind(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td)
517 smb_nbst_connect(struct smb_vc *vcp, struct sockaddr *sap, struct thread *td)
543 error = nb_connect_in(nbp, &sin, td);
556 error = nbssn_rq_request(nbp, td);
558 smb_nbst_disconnect(vcp, td);
563 smb_nbst_disconnect(struct smb_vc *vcp, struct thread *td)
583 smb_nbst_send(struct smb_vc *vcp, struct mbuf *m0, struct thread *td)
594 error = nb_sosend(nbp->nbp_tso, m0, 0, td);
604 smb_nbst_recv(struct smb_vc *vcp, struct mbuf **mpp, struct thread *td)
611 error = nbssn_recv(nbp, mpp, &rplen, &rpcode, td);