Lines Matching refs:eabuf
2190 static int smb2_set_ea(struct smb2_ea_info *eabuf, unsigned int buf_len, in smb2_set_ea() argument
2198 if (buf_len < sizeof(struct smb2_ea_info) + eabuf->EaNameLength + in smb2_set_ea()
2199 le16_to_cpu(eabuf->EaValueLength)) in smb2_set_ea()
2207 if (!eabuf->EaNameLength) in smb2_set_ea()
2212 eabuf->name, eabuf->EaNameLength, in smb2_set_ea()
2213 le16_to_cpu(eabuf->EaValueLength), in smb2_set_ea()
2214 le32_to_cpu(eabuf->NextEntryOffset)); in smb2_set_ea()
2216 if (eabuf->EaNameLength > in smb2_set_ea()
2223 memcpy(&attr_name[XATTR_USER_PREFIX_LEN], eabuf->name, in smb2_set_ea()
2224 eabuf->EaNameLength); in smb2_set_ea()
2225 attr_name[XATTR_USER_PREFIX_LEN + eabuf->EaNameLength] = '\0'; in smb2_set_ea()
2226 value = (char *)&eabuf->name + eabuf->EaNameLength + 1; in smb2_set_ea()
2228 if (!eabuf->EaValueLength) { in smb2_set_ea()
2233 eabuf->EaNameLength); in smb2_set_ea()
2254 le16_to_cpu(eabuf->EaValueLength), 0); in smb2_set_ea()
2264 next = le32_to_cpu(eabuf->NextEntryOffset); in smb2_set_ea()
2268 eabuf = (struct smb2_ea_info *)((char *)eabuf + next); in smb2_set_ea()
2269 if (next < (u32)eabuf->EaNameLength + le16_to_cpu(eabuf->EaValueLength)) in smb2_set_ea()