Lines Matching refs:nds
508 ndr_stream_t *nds = &mxa->recv_nds;
537 saved_offset = nds->pdu_scan_offset;
538 saved_size = nds->pdu_size;
540 nds->pdu_scan_offset = hdr->frag_length;
541 nds->pdu_size = nds->pdu_max_size;
546 nds_show_state(nds);
550 nds->pdu_scan_offset = saved_offset;
551 nds->pdu_size = saved_size;
595 ndr_stream_t *nds = &mxa->recv_nds;
601 ndr_decode_frag_hdr(nds, &frag_hdr);
610 if (frag_size > (nds->pdu_size - nds->pdu_scan_offset))
613 ndr_remove_frag_hdr(nds);
614 nds->pdu_scan_offset += frag_size - NDR_RSP_HDR_SIZE;
847 * The transaction and the two nds streams use the same heap, which
976 ndr_stream_t *nds = &mxa->send_nds;
979 NDS_RESET(nds);
1033 ndr_stream_t *nds = &mxa->send_nds;
1041 pdu_size = nds->pdu_size;
1042 pdu_buf = nds->pdu_base_addr;
1075 nds->pdu_scan_offset = 0;
1077 pdu_size = nds->pdu_size;
1078 ndr_build_frag(nds, pdu_buf, pdu_size);
1088 nds->pdu_scan_offset = 0;
1090 ndr_build_frag(nds, pdu_buf, frag_size);
1117 nds->pdu_scan_offset = 0;
1119 bcopy(nds->pdu_base_addr, pdu_buf, NDR_RSP_HDR_SIZE);
1121 ndr_build_frag(nds, pdu_buf, frag_size);
1138 ndr_build_frag(ndr_stream_t *nds, uint8_t *buf, uint32_t len)
1151 if (nds->frags.head == NULL) {
1152 nds->frags.head = frag;
1153 nds->frags.tail = frag;
1154 nds->frags.nfrag = 1;
1156 nds->frags.tail->next = frag;
1157 nds->frags.tail = frag;
1158 ++nds->frags.nfrag;