Lines Matching refs:bleft
668 decode_unicode_ssetup(char **pbcc_area, int bleft, struct cifs_ses *ses, in decode_unicode_ssetup() argument
674 cifs_dbg(FYI, "bleft %d\n", bleft); in decode_unicode_ssetup()
677 ses->serverOS = cifs_strndup_from_utf16(data, bleft, true, nls_cp); in decode_unicode_ssetup()
679 len = (UniStrnlen((wchar_t *) data, bleft / 2) * 2) + 2; in decode_unicode_ssetup()
681 bleft -= len; in decode_unicode_ssetup()
682 if (bleft <= 0) in decode_unicode_ssetup()
686 ses->serverNOS = cifs_strndup_from_utf16(data, bleft, true, nls_cp); in decode_unicode_ssetup()
688 len = (UniStrnlen((wchar_t *) data, bleft / 2) * 2) + 2; in decode_unicode_ssetup()
690 bleft -= len; in decode_unicode_ssetup()
691 if (bleft <= 0) in decode_unicode_ssetup()
695 ses->serverDomain = cifs_strndup_from_utf16(data, bleft, true, nls_cp); in decode_unicode_ssetup()
701 static void decode_ascii_ssetup(char **pbcc_area, __u16 bleft, in decode_ascii_ssetup() argument
708 cifs_dbg(FYI, "decode sessetup ascii. bleft %d\n", bleft); in decode_ascii_ssetup()
710 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
711 if (len >= bleft) in decode_ascii_ssetup()
725 bleft -= len + 1; in decode_ascii_ssetup()
727 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
728 if (len >= bleft) in decode_ascii_ssetup()
740 bleft -= len + 1; in decode_ascii_ssetup()
742 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
743 if (len > bleft) in decode_ascii_ssetup()
751 cifs_dbg(FYI, "ascii: bytes left %d\n", bleft); in decode_ascii_ssetup()