Lines Matching refs:bleft

828 decode_unicode_ssetup(char **pbcc_area, int bleft, struct cifs_ses *ses,  in decode_unicode_ssetup()  argument
834 cifs_dbg(FYI, "bleft %d\n", bleft); in decode_unicode_ssetup()
837 ses->serverOS = cifs_strndup_from_utf16(data, bleft, true, nls_cp); in decode_unicode_ssetup()
839 len = (UniStrnlen((wchar_t *) data, bleft / 2) * 2) + 2; in decode_unicode_ssetup()
841 bleft -= len; in decode_unicode_ssetup()
842 if (bleft <= 0) in decode_unicode_ssetup()
846 ses->serverNOS = cifs_strndup_from_utf16(data, bleft, true, nls_cp); in decode_unicode_ssetup()
848 len = (UniStrnlen((wchar_t *) data, bleft / 2) * 2) + 2; in decode_unicode_ssetup()
850 bleft -= len; in decode_unicode_ssetup()
851 if (bleft <= 0) in decode_unicode_ssetup()
855 ses->serverDomain = cifs_strndup_from_utf16(data, bleft, true, nls_cp); in decode_unicode_ssetup()
861 static void decode_ascii_ssetup(char **pbcc_area, __u16 bleft, in decode_ascii_ssetup() argument
868 cifs_dbg(FYI, "decode sessetup ascii. bleft %d\n", bleft); in decode_ascii_ssetup()
870 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
871 if (len >= bleft) in decode_ascii_ssetup()
885 bleft -= len + 1; in decode_ascii_ssetup()
887 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
888 if (len >= bleft) in decode_ascii_ssetup()
900 bleft -= len + 1; in decode_ascii_ssetup()
902 len = strnlen(bcc_ptr, bleft); in decode_ascii_ssetup()
903 if (len > bleft) in decode_ascii_ssetup()
914 cifs_dbg(FYI, "ascii: bytes left %d\n", bleft); in decode_ascii_ssetup()