Lines Matching refs:nds
42 ndr_encode_decode_common(ndr_stream_t *nds, unsigned opnum,
50 if (ndo_operation(nds, ti, opnum, datum))
53 switch (nds->error) {
71 if (nds->m_op == NDR_M_OP_MARSHALL)
183 ndr_stream_t *nds = &mxa->recv_nds;
186 if (!NDR_MODE_MATCH(nds, NDR_MODE_CALL_RECV))
189 rc = ndr_encode_decode_common(nds, mxa->opnum,
201 ndr_stream_t *nds = &mxa->send_nds;
204 if (!NDR_MODE_MATCH(nds, NDR_MODE_RETURN_SEND))
207 rc = ndr_encode_decode_common(nds, mxa->opnum,
219 ndr_stream_t *nds = &mxa->send_nds;
222 if (!NDR_MODE_MATCH(nds, NDR_MODE_CALL_SEND))
225 rc = ndr_encode_decode_common(nds, mxa->opnum,
237 ndr_stream_t *nds = &mxa->recv_nds;
240 if (!NDR_MODE_MATCH(nds, NDR_MODE_RETURN_RECV))
243 rc = ndr_encode_decode_common(nds, mxa->opnum,
253 ndr_stream_t *nds = &mxa->recv_nds;
256 rc = ndr_decode_hdr_common(nds, hdr);
271 ndr_decode_hdr_common(ndr_stream_t *nds, ndr_common_header_t *hdr)
278 if (nds->m_op != NDR_M_OP_UNMARSHALL)
284 rc = NDS_GROW_PDU(nds, sizeof (ndr_common_header_t), 0);
291 rc = NDS_GET_PDU(nds, 0, 8, (char *)hdr, 0, 0);
308 nds->swap = (byte_order != ndr_native_byte_order) ? 1 : 0;
316 rc = ndr_encode_decode_common(nds, ptype, &TYPEINFO(ndr_hdr), hdr);
322 ndr_decode_pac_hdr(ndr_stream_t *nds, ndr_pac_hdr_t *hdr)
326 if (nds->m_op != NDR_M_OP_UNMARSHALL)
332 rc = NDS_GROW_PDU(nds, sizeof (ndr_pac_hdr_t), 0);
339 rc = NDS_GET_PDU(nds, 0, 8, (char *)hdr, 0, 0);
351 nds->swap =
354 rc = ndr_encode_decode_common(nds, NDR_PTYPE_PAC,
366 ndr_decode_frag_hdr(ndr_stream_t *nds, ndr_common_header_t *hdr)
372 pdu = (uint8_t *)nds->pdu_base_offset + nds->pdu_scan_offset;
411 ndr_remove_frag_hdr(ndr_stream_t *nds)
417 hdr = (char *)nds->pdu_base_offset + nds->pdu_scan_offset;
419 nbytes = nds->pdu_size - nds->pdu_scan_offset - NDR_RSP_HDR_SIZE;
422 nds->pdu_size -= NDR_RSP_HDR_SIZE;
454 ndr_stream_t *nds = &mxa->send_nds;
458 if (nds->m_op != NDR_M_OP_MARSHALL)
467 rc = ndr_encode_decode_common(nds, ptype, &TYPEINFO(ndr_hdr), hdr);
500 ndr_stream_t *nds = encl_ref->stream;
520 switch (nds->m_op) {
592 ndr_stream_t *nds = encl_ref->stream;
611 switch (nds->m_op) {