Lines Matching refs:link_len
38 symlink_hash(unsigned int link_len, const char *link_str, u8 *md5_hash) in symlink_hash() argument
47 rc = crypto_shash_digest(md5, link_str, link_len, md5_hash); in symlink_hash()
59 unsigned int link_len; in parse_mf_symlink() local
71 rc = sscanf(buf, CIFS_MF_SYMLINK_LEN_FORMAT, &link_len); in parse_mf_symlink()
75 if (link_len > CIFS_MF_SYMLINK_LINK_MAXLEN) in parse_mf_symlink()
78 rc = symlink_hash(link_len, link_str, md5_hash); in parse_mf_symlink()
92 *_link_str = kstrndup(link_str, link_len, GFP_KERNEL); in parse_mf_symlink()
97 *_link_len = link_len; in parse_mf_symlink()
105 unsigned int link_len; in format_mf_symlink() local
112 link_len = strlen(link_str); in format_mf_symlink()
114 if (link_len > CIFS_MF_SYMLINK_LINK_MAXLEN) in format_mf_symlink()
117 rc = symlink_hash(link_len, link_str, md5_hash); in format_mf_symlink()
125 link_len, in format_mf_symlink()
129 memcpy(buf + ofs, link_str, link_len); in format_mf_symlink()
131 ofs += link_len; in format_mf_symlink()
199 unsigned int link_len = 0; in check_mf_symlink() local
223 rc = parse_mf_symlink(buf, bytes_read, &link_len, &symlink); in check_mf_symlink()
234 fattr->cf_eof = link_len; in check_mf_symlink()