Lines Matching refs:repc

226 	int repc;  in buf_decode()  local
231 repc = 1; in buf_decode()
247 repc = 0; in buf_decode()
249 repc = repc * 10 + c - '0'; in buf_decode()
254 repc = va_arg(ap, int); in buf_decode()
261 if (smb_msgbuf_has_space(mb, repc) == 0) in buf_decode()
264 mb->scan += repc; in buf_decode()
268 if (smb_msgbuf_has_space(mb, repc) == 0) in buf_decode()
272 bcopy(mb->scan, bvalp, repc); in buf_decode()
273 mb->scan += repc; in buf_decode()
277 if (smb_msgbuf_has_space(mb, repc) == 0) in buf_decode()
281 while (repc-- > 0) { in buf_decode()
287 rc = smb_msgbuf_has_space(mb, repc * sizeof (uint16_t)); in buf_decode()
292 while (repc-- > 0) { in buf_decode()
299 rc = smb_msgbuf_has_space(mb, repc * sizeof (int32_t)); in buf_decode()
304 while (repc-- > 0) { in buf_decode()
311 rc = smb_msgbuf_has_space(mb, repc * sizeof (int64_t)); in buf_decode()
316 while (repc-- > 0) { in buf_decode()
329 repc = strlen((const char *)mb->scan) + 1; in buf_decode()
330 if (smb_msgbuf_has_space(mb, repc) == 0) in buf_decode()
332 if ((cvalp = smb_msgbuf_malloc(mb, repc * 2)) == 0) in buf_decode()
337 while (repc > 0) { in buf_decode()
339 repc--; in buf_decode()
346 if (repc > 0) in buf_decode()
347 mb->scan += repc; in buf_decode()
364 repc = 2; /* the null */ in buf_decode()
367 repc += 2; in buf_decode()
370 if (smb_msgbuf_has_space(mb, repc) == 0) in buf_decode()
376 if ((cvalp = smb_msgbuf_malloc(mb, repc * 2)) == 0) in buf_decode()
384 while (repc >= 2) { in buf_decode()
387 repc -= 2; in buf_decode()
394 if (repc > 0) in buf_decode()
395 mb->scan += repc; in buf_decode()
472 int repc; in buf_encode() local
477 repc = 1; in buf_encode()
493 repc = 0; in buf_encode()
495 repc = repc * 10 + c - '0'; in buf_encode()
500 repc = va_arg(ap, int); in buf_encode()
507 if (smb_msgbuf_has_space(mb, repc) == 0) in buf_encode()
510 while (repc-- > 0) in buf_encode()
515 if (smb_msgbuf_has_space(mb, repc) == 0) in buf_encode()
519 bcopy(bvalp, mb->scan, repc); in buf_encode()
520 mb->scan += repc; in buf_encode()
524 if (smb_msgbuf_has_space(mb, repc) == 0) in buf_encode()
527 while (repc-- > 0) { in buf_encode()
534 rc = smb_msgbuf_has_space(mb, repc * sizeof (uint16_t)); in buf_encode()
538 while (repc-- > 0) { in buf_encode()
546 rc = smb_msgbuf_has_space(mb, repc * sizeof (int32_t)); in buf_encode()
550 while (repc-- > 0) { in buf_encode()
558 rc = smb_msgbuf_has_space(mb, repc * sizeof (int64_t)); in buf_encode()
562 while (repc-- > 0) { in buf_encode()
577 repc = smb_sbequiv_strlen(cvalp); in buf_encode()
578 if (repc == -1) in buf_encode()
581 repc++; in buf_encode()
583 if (smb_msgbuf_has_space(mb, repc) == 0) in buf_encode()
585 while (repc > 0) { in buf_encode()
594 repc--; in buf_encode()
597 repc--; in buf_encode()
600 if (*cvalp == '\0' && repc > 0 && in buf_encode()
603 repc--; in buf_encode()
605 while (repc > 0) { in buf_encode()
607 repc--; in buf_encode()
619 repc = smb_wcequiv_strlen(cvalp); in buf_encode()
621 repc += 2; in buf_encode()
623 if (!smb_msgbuf_has_space(mb, repc)) in buf_encode()
625 while (repc >= 2) { in buf_encode()
636 repc -= 2; in buf_encode()
638 if (*cvalp == '\0' && repc >= 2 && in buf_encode()
642 repc -= 2; in buf_encode()
644 while (repc > 0) { in buf_encode()
646 repc--; in buf_encode()