Lines Matching refs:eabuf
2330 static int smb2_set_ea(struct smb2_ea_info *eabuf, unsigned int buf_len, in smb2_set_ea() argument
2338 if (buf_len < sizeof(struct smb2_ea_info) + eabuf->EaNameLength + in smb2_set_ea()
2339 le16_to_cpu(eabuf->EaValueLength)) in smb2_set_ea()
2347 if (!eabuf->EaNameLength) in smb2_set_ea()
2352 eabuf->name, eabuf->EaNameLength, in smb2_set_ea()
2353 le16_to_cpu(eabuf->EaValueLength), in smb2_set_ea()
2354 le32_to_cpu(eabuf->NextEntryOffset)); in smb2_set_ea()
2356 if (eabuf->EaNameLength > in smb2_set_ea()
2363 memcpy(&attr_name[XATTR_USER_PREFIX_LEN], eabuf->name, in smb2_set_ea()
2364 eabuf->EaNameLength); in smb2_set_ea()
2365 attr_name[XATTR_USER_PREFIX_LEN + eabuf->EaNameLength] = '\0'; in smb2_set_ea()
2366 value = (char *)&eabuf->name + eabuf->EaNameLength + 1; in smb2_set_ea()
2368 if (!eabuf->EaValueLength) { in smb2_set_ea()
2373 eabuf->EaNameLength); in smb2_set_ea()
2393 le16_to_cpu(eabuf->EaValueLength), in smb2_set_ea()
2404 next = le32_to_cpu(eabuf->NextEntryOffset); in smb2_set_ea()
2408 eabuf = (struct smb2_ea_info *)((char *)eabuf + next); in smb2_set_ea()
2414 if (buf_len < sizeof(struct smb2_ea_info) + eabuf->EaNameLength + in smb2_set_ea()
2415 le16_to_cpu(eabuf->EaValueLength)) { in smb2_set_ea()