Lines Matching refs:mbp

134 	struct mbdata *mbp = &rqp->rq_rq;  in smb_rq_wstart()  local
136 (void) mb_fit(mbp, 1, &rqp->rq_wcntp); in smb_rq_wstart()
137 rqp->rq_wcbase = mbp->mb_count; in smb_rq_wstart()
147 struct mbdata *mbp = &rqp->rq_rq; in smb_rq_wend() local
154 wcnt = mbp->mb_count - rqp->rq_wcbase; in smb_rq_wend()
180 struct mbdata *mbp = &rqp->rq_rq; in smb_rq_bstart() local
182 (void) mb_fit(mbp, 2, &rqp->rq_bcntp); in smb_rq_bstart()
183 rqp->rq_bcbase = mbp->mb_count; in smb_rq_bstart()
193 struct mbdata *mbp = &rqp->rq_rq; in smb_rq_bend() local
200 bcnt = mbp->mb_count - rqp->rq_bcbase; in smb_rq_bend()
219 struct mbdata *mbp; in smb_rq_simple() local
233 mbp = smb_rq_getrequest(rqp); in smb_rq_simple()
234 error = m_lineup(mbp->mb_top, &mbp->mb_top); in smb_rq_simple()
238 data = mtod(mbp->mb_top, char *); in smb_rq_simple()
239 len = m_totlen(mbp->mb_top); in smb_rq_simple()
256 mbp = smb_rq_getreply(rqp); in smb_rq_simple()
262 mb_initm(mbp, m); in smb_rq_simple()
340 struct mbdata mbtmp, *mbp; in smb_rq_internal() local
354 mbp = &mbtmp; in smb_rq_internal()
355 mbp->mb_cur = mbp->mb_top; in smb_rq_internal()
356 mbp->mb_pos = mbp->mb_cur->m_data; in smb_rq_internal()
357 mbp->mb_count = 0; in smb_rq_internal()
359 save_mlen = mbp->mb_cur->m_len; in smb_rq_internal()
360 mbp->mb_cur->m_len = 0; in smb_rq_internal()
365 mb_put_mem(mbp, ffsmb, SMB_SIGLEN, MB_MSYSTEM); in smb_rq_internal()
366 mb_put_uint8(mbp, rqp->rq_cmd); in smb_rq_internal()
367 mb_put_uint32le(mbp, 0); /* status */ in smb_rq_internal()
368 mb_put_uint8(mbp, rqp->rq_hflags); in smb_rq_internal()
369 mb_put_uint16le(mbp, rqp->rq_hflags2); in smb_rq_internal()
371 mb_put_mem(mbp, NULL, 12, MB_MZERO); in smb_rq_internal()
372 mb_put_uint16le(mbp, rqp->rq_tid); in smb_rq_internal()
373 mb_put_uint16le(mbp, 0); /* pid_lo */ in smb_rq_internal()
374 mb_put_uint16le(mbp, rqp->rq_uid); in smb_rq_internal()
375 mb_put_uint16le(mbp, rqp->rq_mid); in smb_rq_internal()
378 mbp->mb_cur->m_len = save_mlen; in smb_rq_internal()
399 mbp = &rqp->rq_rp; in smb_rq_internal()
400 if (mbp->mb_cur->m_len < SMB_HDRLEN) { in smb_rq_internal()
420 md_get_mem(mbp, (char *)sigbuf, 4, MB_MSYSTEM); in smb_rq_internal()
425 md_get_uint8(mbp, &ctmp); /* SMB cmd */ in smb_rq_internal()
426 md_get_uint32le(mbp, &rqp->rq_status); in smb_rq_internal()
427 md_get_uint8(mbp, &rqp->rq_hflags); in smb_rq_internal()
428 md_get_uint16le(mbp, &rqp->rq_hflags2); in smb_rq_internal()
430 md_get_mem(mbp, NULL, 12, MB_MSYSTEM); in smb_rq_internal()
431 md_get_uint16le(mbp, &rqp->rq_tid); in smb_rq_internal()
432 md_get_uint16le(mbp, NULL); /* pid_lo */ in smb_rq_internal()
433 md_get_uint16le(mbp, &rqp->rq_uid); in smb_rq_internal()
434 md_get_uint16le(mbp, &rqp->rq_mid); in smb_rq_internal()