Lines Matching refs:eabuf
2337 static int smb2_set_ea(struct smb2_ea_info *eabuf, unsigned int buf_len, in smb2_set_ea() argument
2345 if (buf_len < sizeof(struct smb2_ea_info) + eabuf->EaNameLength + in smb2_set_ea()
2346 le16_to_cpu(eabuf->EaValueLength)) in smb2_set_ea()
2354 if (!eabuf->EaNameLength) in smb2_set_ea()
2359 eabuf->name, eabuf->EaNameLength, in smb2_set_ea()
2360 le16_to_cpu(eabuf->EaValueLength), in smb2_set_ea()
2361 le32_to_cpu(eabuf->NextEntryOffset)); in smb2_set_ea()
2363 if (eabuf->EaNameLength > in smb2_set_ea()
2370 memcpy(&attr_name[XATTR_USER_PREFIX_LEN], eabuf->name, in smb2_set_ea()
2371 eabuf->EaNameLength); in smb2_set_ea()
2372 attr_name[XATTR_USER_PREFIX_LEN + eabuf->EaNameLength] = '\0'; in smb2_set_ea()
2373 value = (char *)&eabuf->name + eabuf->EaNameLength + 1; in smb2_set_ea()
2375 if (!eabuf->EaValueLength) { in smb2_set_ea()
2380 eabuf->EaNameLength); in smb2_set_ea()
2401 le16_to_cpu(eabuf->EaValueLength), in smb2_set_ea()
2412 next = le32_to_cpu(eabuf->NextEntryOffset); in smb2_set_ea()
2416 eabuf = (struct smb2_ea_info *)((char *)eabuf + next); in smb2_set_ea()
2422 if (buf_len < sizeof(struct smb2_ea_info) + eabuf->EaNameLength + in smb2_set_ea()
2423 le16_to_cpu(eabuf->EaValueLength)) { in smb2_set_ea()