Lines Matching refs:link_len
38 symlink_hash(unsigned int link_len, const char *link_str, u8 *md5_hash) in symlink_hash() argument
52 rc = crypto_shash_update(md5, link_str, link_len); in symlink_hash()
71 unsigned int link_len; in parse_mf_symlink() local
83 rc = sscanf(buf, CIFS_MF_SYMLINK_LEN_FORMAT, &link_len); in parse_mf_symlink()
87 if (link_len > CIFS_MF_SYMLINK_LINK_MAXLEN) in parse_mf_symlink()
90 rc = symlink_hash(link_len, link_str, md5_hash); in parse_mf_symlink()
104 *_link_str = kstrndup(link_str, link_len, GFP_KERNEL); in parse_mf_symlink()
109 *_link_len = link_len; in parse_mf_symlink()
117 unsigned int link_len; in format_mf_symlink() local
124 link_len = strlen(link_str); in format_mf_symlink()
126 if (link_len > CIFS_MF_SYMLINK_LINK_MAXLEN) in format_mf_symlink()
129 rc = symlink_hash(link_len, link_str, md5_hash); in format_mf_symlink()
137 link_len, in format_mf_symlink()
141 memcpy(buf + ofs, link_str, link_len); in format_mf_symlink()
143 ofs += link_len; in format_mf_symlink()
211 unsigned int link_len = 0; in check_mf_symlink() local
235 rc = parse_mf_symlink(buf, bytes_read, &link_len, &symlink); in check_mf_symlink()
246 fattr->cf_eof = link_len; in check_mf_symlink()