Lines Matching refs:mdp

616 	struct mdchain *mdp = &rqp->sr_rp;  in smb_rq_parsehdr()  local
627 mdp_save = *mdp; in smb_rq_parsehdr()
628 error = md_get_mem(mdp, sig, 4, MB_MSYSTEM); in smb_rq_parsehdr()
633 *mdp = mdp_save; in smb_rq_parsehdr()
640 error = md_get_uint8(mdp, &tb); in smb_rq_parsehdr()
644 md_get_uint32le(mdp, &rqp->sr_error); in smb_rq_parsehdr()
645 md_get_uint8(mdp, &rqp->sr_rpflags); in smb_rq_parsehdr()
646 md_get_uint16le(mdp, &rqp->sr_rpflags2); in smb_rq_parsehdr()
649 md_get_mem(mdp, NULL, 12, MB_MSYSTEM); in smb_rq_parsehdr()
651 md_get_uint16le(mdp, &rqp->sr_rptid); in smb_rq_parsehdr()
652 md_get_uint16le(mdp, &rqp->sr_rppid); in smb_rq_parsehdr()
653 md_get_uint16le(mdp, &rqp->sr_rpuid); in smb_rq_parsehdr()
654 error = md_get_uint16le(mdp, &rqp->sr_rpmid); in smb_rq_parsehdr()
785 struct mdchain *mdp) in smb_t2_placedata() argument
793 if (mdp->md_top == NULL) { in smb_t2_placedata()
794 md_initm(mdp, n); in smb_t2_placedata()
796 m_cat(mdp->md_top, n); in smb_t2_placedata()
804 struct mdchain *mdp; in smb_t2_reply() local
830 mdp = &rqp->sr_rp; in smb_t2_reply()
833 (smb_rq_t *), rqp, (mblk_t *), mdp->md_top); in smb_t2_reply()
834 m_dumpm(mdp->md_top); in smb_t2_reply()
836 if ((error2 = md_get_uint8(mdp, &wc)) != 0) in smb_t2_reply()
842 if ((error2 = md_get_uint16le(mdp, &tmp)) != 0) in smb_t2_reply()
846 if ((error2 = md_get_uint16le(mdp, &tmp)) != 0) in smb_t2_reply()
850 if ((error2 = md_get_uint16le(mdp, &tmp)) != 0 || /* reserved */ in smb_t2_reply()
851 (error2 = md_get_uint16le(mdp, &pcount)) != 0 || in smb_t2_reply()
852 (error2 = md_get_uint16le(mdp, &poff)) != 0 || in smb_t2_reply()
853 (error2 = md_get_uint16le(mdp, &pdisp)) != 0) in smb_t2_reply()
861 if ((error2 = md_get_uint16le(mdp, &dcount)) != 0 || in smb_t2_reply()
862 (error2 = md_get_uint16le(mdp, &doff)) != 0 || in smb_t2_reply()
863 (error2 = md_get_uint16le(mdp, &ddisp)) != 0) in smb_t2_reply()
873 md_get_uint8(mdp, &wc); /* SetupCount */ in smb_t2_reply()
874 md_get_uint8(mdp, NULL); /* Reserved2 */ in smb_t2_reply()
877 md_get_uint16le(mdp, NULL); in smb_t2_reply()
879 if ((error2 = md_get_uint16le(mdp, &bc)) != 0) in smb_t2_reply()
888 error2 = smb_t2_placedata(mdp->md_top, poff, in smb_t2_reply()
896 error2 = smb_t2_placedata(mdp->md_top, doff, in smb_t2_reply()
933 struct mdchain *mdp; in smb_nt_reply() local
957 mdp = &rqp->sr_rp; in smb_nt_reply()
960 (smb_rq_t *), rqp, (mblk_t *), mdp->md_top); in smb_nt_reply()
961 m_dumpm(mdp->md_top); in smb_nt_reply()
963 if ((error2 = md_get_uint8(mdp, &wc)) != 0) in smb_nt_reply()
969 md_get_mem(mdp, NULL, 3, MB_MSYSTEM); /* reserved */ in smb_nt_reply()
970 if ((error2 = md_get_uint32le(mdp, &tmp)) != 0) in smb_nt_reply()
974 if ((error2 = md_get_uint32le(mdp, &tmp)) != 0) in smb_nt_reply()
978 if ((error2 = md_get_uint32le(mdp, &pcount)) != 0 || in smb_nt_reply()
979 (error2 = md_get_uint32le(mdp, &poff)) != 0 || in smb_nt_reply()
980 (error2 = md_get_uint32le(mdp, &pdisp)) != 0) in smb_nt_reply()
988 if ((error2 = md_get_uint32le(mdp, &dcount)) != 0 || in smb_nt_reply()
989 (error2 = md_get_uint32le(mdp, &doff)) != 0 || in smb_nt_reply()
990 (error2 = md_get_uint32le(mdp, &ddisp)) != 0) in smb_nt_reply()
1000 md_get_uint8(mdp, &wc); /* SetupCount */ in smb_nt_reply()
1003 md_get_uint16le(mdp, NULL); in smb_nt_reply()
1005 if ((error2 = md_get_uint16le(mdp, &bc)) != 0) in smb_nt_reply()
1014 error2 = smb_t2_placedata(mdp->md_top, poff, pcount, in smb_nt_reply()
1022 error2 = smb_t2_placedata(mdp->md_top, doff, dcount, in smb_nt_reply()
1063 struct mdchain *mdp, mbparam, mbdata; in smb_t2_request_int() local
1264 mdp = &t2p->t2_rdata; in smb_t2_request_int()
1265 if (mdp->md_top) { in smb_t2_request_int()
1266 md_initm(mdp, mdp->md_top); in smb_t2_request_int()
1268 mdp = &t2p->t2_rparam; in smb_t2_request_int()
1269 if (mdp->md_top) { in smb_t2_request_int()
1270 md_initm(mdp, mdp->md_top); in smb_t2_request_int()
1295 struct mdchain *mdp, mbsetup, mbparam, mbdata; in smb_nt_request_int() local
1475 mdp = &ntp->nt_rdata; in smb_nt_request_int()
1476 if (mdp->md_top) { in smb_nt_request_int()
1477 md_initm(mdp, mdp->md_top); in smb_nt_request_int()
1479 mdp = &ntp->nt_rparam; in smb_nt_request_int()
1480 if (mdp->md_top) { in smb_nt_request_int()
1481 md_initm(mdp, mdp->md_top); in smb_nt_request_int()