Lines Matching refs:ea_all
45 static inline bool find_ea(const struct EA_FULL *ea_all, u32 bytes, in find_ea() argument
51 if (!ea_all) in find_ea()
55 const struct EA_FULL *ea = Add2Ptr(ea_all, *off); in find_ea()
197 struct EA_FULL *ea_all = NULL; in ntfs_list_ea() local
202 err = ntfs_read_ea(ni, &ea_all, 0, &info); in ntfs_list_ea()
206 if (!info || !ea_all) in ntfs_list_ea()
215 const struct EA_FULL *ea = Add2Ptr(ea_all, off); in ntfs_list_ea()
247 kfree(ea_all); in ntfs_list_ea()
256 struct EA_FULL *ea_all = NULL; in ntfs_get_ea() local
274 err = ntfs_read_ea(ni, &ea_all, 0, &info); in ntfs_get_ea()
282 if (!find_ea(ea_all, le32_to_cpu(info->size), name, name_len, &off, in ntfs_get_ea()
287 ea = Add2Ptr(ea_all, off); in ntfs_get_ea()
306 kfree(ea_all); in ntfs_get_ea()
324 struct EA_FULL *ea_all = NULL; in ntfs_set_ea() local
345 add = ALIGN(struct_size(ea_all, name, 1 + name_len + val_size), 4); in ntfs_set_ea()
347 err = ntfs_read_ea(ni, &ea_all, add, &info); in ntfs_set_ea()
361 if (info && find_ea(ea_all, size, name, name_len, &off, &ea_sz)) { in ntfs_set_ea()
369 ea = Add2Ptr(ea_all, off); in ntfs_set_ea()
390 memset(Add2Ptr(ea_all, size), 0, ea_sz); in ntfs_set_ea()
404 if (!ea_all) { in ntfs_set_ea()
405 ea_all = kzalloc(add, GFP_NOFS); in ntfs_set_ea()
406 if (!ea_all) { in ntfs_set_ea()
414 new_ea = Add2Ptr(ea_all, size); in ntfs_set_ea()
503 err = ntfs_sb_write_run(sbi, &ea_run, 0, ea_all, size, 0); in ntfs_set_ea()
512 memcpy(p, ea_all, size); in ntfs_set_ea()
533 kfree(ea_all); in ntfs_set_ea()