Lines Matching refs:ctx
59 smb_ssn_send(struct smb_ctx *ctx, struct mbdata *mbp)
61 return (nb_ssn_send(ctx, mbp, 0, mbp->mb_count));
69 nb_ssn_send(struct smb_ctx *ctx, struct mbdata *mbp,
102 if (t_snd(ctx->ct_tran_fd, m->m_data, m->m_len, 0) < 0) {
119 smb_ssn_recv(struct smb_ctx *ctx, struct mbdata *mbp)
122 err = nb_ssn_recv(ctx, mbp, &mtype, &mlen);
144 nb_ssn_recv(struct smb_ctx *ctx, struct mbdata *mb,
150 int fd = ctx->ct_tran_fd;
157 if ((err = nb_ssn_pollin(ctx, tmo)) != 0) {
193 if ((err = nb_ssn_pollin(ctx, tmo)) != 0) {
245 nb_ssn_pollin(struct smb_ctx *ctx, int tmo)
250 pfd[0].fd = ctx->ct_tran_fd;
273 nb_ssn_request(struct smb_ctx *ctx, char *srvname)
286 ucwks = utf8_str_toupper(ctx->ct_locname);
295 lcl.nn_scope = ctx->ct_nb->nb_scope;
300 srv.nn_scope = ctx->ct_nb->nb_scope;
313 err = nb_ssn_send(ctx, &req, NB_SSN_REQUEST, req.mb_count);
318 err = nb_ssn_recv(ctx, &res, &mtype, &mlen);