Lines Matching refs:bleft
842 decode_unicode_ssetup(char **pbcc_area, int bleft, struct cifs_ses *ses, in decode_unicode_ssetup() argument
848 cifs_dbg(FYI, "bleft %d\n", bleft); in decode_unicode_ssetup()
851 ses->serverOS = cifs_strndup_from_utf16(data, bleft, true, nls_cp); in decode_unicode_ssetup()
853 len = (UniStrnlen((wchar_t *) data, bleft / 2) * 2) + 2; in decode_unicode_ssetup()
855 bleft -= len; in decode_unicode_ssetup()
856 if (bleft <= 0) in decode_unicode_ssetup()
860 ses->serverNOS = cifs_strndup_from_utf16(data, bleft, true, nls_cp); in decode_unicode_ssetup()
862 len = (UniStrnlen((wchar_t *) data, bleft / 2) * 2) + 2; in decode_unicode_ssetup()
864 bleft -= len; in decode_unicode_ssetup()
865 if (bleft <= 0) in decode_unicode_ssetup()
869 ses->serverDomain = cifs_strndup_from_utf16(data, bleft, true, nls_cp); in decode_unicode_ssetup()
875 static void decode_ascii_ssetup(char **pbcc_area, __u16 bleft, in decode_ascii_ssetup() argument
882 cifs_dbg(FYI, "decode sessetup ascii. bleft %d\n", bleft); in decode_ascii_ssetup()
884 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
885 if (len >= bleft) in decode_ascii_ssetup()
899 bleft -= len + 1; in decode_ascii_ssetup()
901 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
902 if (len >= bleft) in decode_ascii_ssetup()
914 bleft -= len + 1; in decode_ascii_ssetup()
916 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
917 if (len > bleft) in decode_ascii_ssetup()
925 cifs_dbg(FYI, "ascii: bytes left %d\n", bleft); in decode_ascii_ssetup()