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