Lines Matching refs:nds

243 ndo_process(ndr_stream_t *nds, ndr_typeinfo_t *ti, char *datum)  in ndo_process()  argument
248 myref.stream = nds; in ndo_process()
257 ndo_operation(ndr_stream_t *nds, ndr_typeinfo_t *ti, int opnum, char *datum) in ndo_operation() argument
262 myref.stream = nds; in ndo_operation()
291 ndr_stream_t *nds; in ndr_topmost() local
305 nds = top_ref->stream; in ndr_topmost()
311 assert(nds->outer_queue_tailp && !*nds->outer_queue_tailp); in ndr_topmost()
312 assert(!nds->outer_current); in ndr_topmost()
378 outer_ref->pdu_offset = nds->pdu_scan_offset; in ndr_topmost()
387 nds->outer_current = outer_ref; in ndr_topmost()
388 nds->outer_queue_tailp = &nds->outer_current->next; in ndr_topmost()
389 nds->pdu_scan_offset = outer_ref->pdu_end_offset; in ndr_topmost()
396 nds->pdu_scan_offset = outer_ref->pdu_end_offset; in ndr_topmost()
399 nds->outer_current = nds->outer_current->next; in ndr_topmost()
400 return (ndr_run_outer_queue(nds)); in ndr_topmost()
406 ndr_stream_t *nds = arg_ref->stream; in ndr_enter_outer_queue() local
410 outer_ref = (ndr_ref_t *)NDS_MALLOC(nds, sizeof (*outer_ref), arg_ref); in ndr_enter_outer_queue()
421 outer_ref->enclosing = nds->outer_current; in ndr_enter_outer_queue()
425 assert(nds->outer_queue_tailp); in ndr_enter_outer_queue()
427 outer_ref->next = *nds->outer_queue_tailp; in ndr_enter_outer_queue()
428 *nds->outer_queue_tailp = outer_ref; in ndr_enter_outer_queue()
429 nds->outer_queue_tailp = &outer_ref->next; in ndr_enter_outer_queue()
434 ndr_run_outer_queue(ndr_stream_t *nds) in ndr_run_outer_queue() argument
436 while (nds->outer_current) { in ndr_run_outer_queue()
437 nds->outer_queue_tailp = &nds->outer_current->next; in ndr_run_outer_queue()
439 if (!ndr_outer(nds->outer_current)) in ndr_run_outer_queue()
442 nds->outer_current = nds->outer_current->next; in ndr_run_outer_queue()
590 ndr_stream_t *nds = outer_ref->stream; in ndr_outer() local
607 outer_ref->pdu_offset = nds->pdu_scan_offset; in ndr_outer()
654 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_fixed() local
694 switch (nds->m_op) { in ndr_outer_fixed()
706 valp = NDS_MALLOC(nds, n_alloc, outer_ref); in ndr_outer_fixed()
722 myref.stream = nds; in ndr_outer_fixed()
737 nds->pdu_scan_offset = outer_ref->pdu_end_offset; in ndr_outer_fixed()
744 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_fixed_array() local
784 switch (nds->m_op) { in ndr_outer_fixed_array()
796 valp = NDS_MALLOC(nds, n_alloc, outer_ref); in ndr_outer_fixed_array()
812 myref.stream = nds; in ndr_outer_fixed_array()
828 nds->pdu_scan_offset = outer_ref->pdu_end_offset; in ndr_outer_fixed_array()
835 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_conformant_array() local
877 switch (nds->m_op) { in ndr_outer_conformant_array()
914 valp = NDS_MALLOC(nds, n_alloc, outer_ref); in ndr_outer_conformant_array()
937 myref.stream = nds; in ndr_outer_conformant_array()
956 nds->pdu_scan_offset = outer_ref->pdu_end_offset; in ndr_outer_conformant_array()
963 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_conformant_construct() local
1004 switch (nds->m_op) { in ndr_outer_conformant_construct()
1047 valp = NDS_MALLOC(nds, n_alloc, outer_ref); in ndr_outer_conformant_construct()
1067 myref.stream = nds; in ndr_outer_conformant_construct()
1082 nds->pdu_scan_offset = outer_ref->pdu_end_offset; in ndr_outer_conformant_construct()
1095 ndr_stream_t *nds = ref->stream; in ndr_size_is() local
1096 ndr_ref_t *outer_ref = nds->outer_current; in ndr_size_is()
1128 switch (nds->m_op) { in ndr_size_is()
1164 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_string() local
1198 switch (nds->m_op) { in ndr_outer_string()
1222 if ((nds->flags & NDS_F_NONULL) == 0) in ndr_outer_string()
1252 if (nds->flags & NDS_F_NOTERM) in ndr_outer_string()
1311 valp = NDS_MALLOC(nds, n_alloc, outer_ref); in ndr_outer_string()
1352 myref.stream = nds; in ndr_outer_string()
1373 nds->pdu_scan_offset = outer_ref->pdu_end_offset; in ndr_outer_string()
1383 nds->pdu_scan_offset = outer_ref->pdu_end_offset; in ndr_outer_string()
1391 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_peek_sizing() local
1397 if (pdu_offset < nds->outer_current->pdu_offset || in ndr_outer_peek_sizing()
1398 pdu_offset > nds->outer_current->pdu_end_offset || in ndr_outer_peek_sizing()
1399 pdu_offset+4 > nds->outer_current->pdu_end_offset) { in ndr_outer_peek_sizing()
1404 switch (nds->m_op) { in ndr_outer_peek_sizing()
1410 rc = NDS_GET_PDU(nds, pdu_offset, 4, (char *)sizing_p, in ndr_outer_peek_sizing()
1411 nds->swap, outer_ref); in ndr_outer_peek_sizing()
1426 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_poke_sizing() local
1432 if (pdu_offset < nds->outer_current->pdu_offset || in ndr_outer_poke_sizing()
1433 pdu_offset > nds->outer_current->pdu_end_offset || in ndr_outer_poke_sizing()
1434 pdu_offset+4 > nds->outer_current->pdu_end_offset) { in ndr_outer_poke_sizing()
1439 switch (nds->m_op) { in ndr_outer_poke_sizing()
1441 rc = NDS_PUT_PDU(nds, pdu_offset, 4, (char *)sizing_p, in ndr_outer_poke_sizing()
1442 nds->swap, outer_ref); in ndr_outer_poke_sizing()
1465 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_align() local
1472 n_pad = ((align + 1) - nds->pdu_scan_offset) & align; in ndr_outer_align()
1474 n_pad = NDR_ALIGN4(nds->pdu_scan_offset); in ndr_outer_align()
1483 switch (nds->m_op) { in ndr_outer_align()
1485 rc = NDS_PAD_PDU(nds, nds->pdu_scan_offset, n_pad, outer_ref); in ndr_outer_align()
1500 nds->pdu_scan_offset += n_pad; in ndr_outer_align()
1507 ndr_stream_t *nds = outer_ref->stream; in ndr_outer_grow() local
1511 pdu_want_size = nds->pdu_scan_offset + n_total; in ndr_outer_grow()
1513 if (pdu_want_size <= nds->pdu_max_size) { in ndr_outer_grow()
1517 switch (nds->m_op) { in ndr_outer_grow()
1521 rc = NDS_GROW_PDU(nds, pdu_want_size, outer_ref); in ndr_outer_grow()
1539 if (nds->pdu_size < pdu_want_size) in ndr_outer_grow()
1540 nds->pdu_size = pdu_want_size; in ndr_outer_grow()
1559 ndr_stream_t *nds = arg_ref->stream; in ndr_inner_align() local
1572 switch (nds->m_op) { in ndr_inner_align()
1574 rc = NDS_PAD_PDU(nds, arg_ref->pdu_offset, n_pad, arg_ref); in ndr_inner_align()
1593 nds->pdu_scan_offset += n_pad; in ndr_inner_align()
1702 ndr_stream_t *nds = arg_ref->stream; in ndr_inner_pointer() local
1732 switch (nds->m_op) { in ndr_inner_pointer()
1754 ndr_stream_t *nds = arg_ref->stream; in ndr_inner_reference() local
1779 switch (nds->m_op) { in ndr_inner_reference()
1896 ndr_stream_t *nds = ref->stream; in ndr_basic_integer() local
1900 switch (nds->m_op) { in ndr_basic_integer()
1902 rc = NDS_PUT_PDU(nds, ref->pdu_offset, size, in ndr_basic_integer()
1903 valp, nds->swap, ref); in ndr_basic_integer()
1907 rc = NDS_GET_PDU(nds, ref->pdu_offset, size, in ndr_basic_integer()
1908 valp, nds->swap, ref); in ndr_basic_integer()
1996 ndr_stream_t *nds = encl_ref->stream; in ndr_s_wchar() local
2006 if (nds->m_op == NDR_M_OP_UNMARSHALL) { in ndr_s_wchar()
2021 if (nds->m_op == NDR_M_OP_MARSHALL) { in ndr_s_wchar()
2065 if (nds->m_op == NDR_M_OP_UNMARSHALL) { in ndr_s_wchar()
2088 ndr_mbstowcs(ndr_stream_t *nds, ndr_wchar_t *wcs, const char *mbs, in ndr_mbstowcs() argument
2094 if (nds == NULL || NDR_MODE_MATCH(nds, NDR_MODE_RETURN_SEND)) { in ndr_mbstowcs()