Lines Matching refs:entry
71 #define IS_LAST_ENTRY(entry) (*(__u32 *)(entry) == 0) argument
148 ext2_xattr_entry_valid(struct ext2_xattr_entry *entry, in ext2_xattr_entry_valid() argument
154 next = EXT2_XATTR_NEXT(entry); in ext2_xattr_entry_valid()
158 if (entry->e_value_block != 0) in ext2_xattr_entry_valid()
161 size = le32_to_cpu(entry->e_value_size); in ext2_xattr_entry_valid()
163 le16_to_cpu(entry->e_value_offs) + size > end_offs) in ext2_xattr_entry_valid()
171 struct ext2_xattr_entry *entry) in ext2_xattr_cmp_entry() argument
175 cmp = name_index - entry->e_name_index; in ext2_xattr_cmp_entry()
177 cmp = name_len - entry->e_name_len; in ext2_xattr_cmp_entry()
179 cmp = memcmp(name, entry->e_name, name_len); in ext2_xattr_cmp_entry()
199 struct ext2_xattr_entry *entry; in ext2_xattr_get() local
236 entry = FIRST_ENTRY(bh); in ext2_xattr_get()
237 while (!IS_LAST_ENTRY(entry)) { in ext2_xattr_get()
238 if (!ext2_xattr_entry_valid(entry, end, in ext2_xattr_get()
243 entry); in ext2_xattr_get()
249 entry = EXT2_XATTR_NEXT(entry); in ext2_xattr_get()
256 size = le32_to_cpu(entry->e_value_size); in ext2_xattr_get()
264 memcpy(buffer, bh->b_data + le16_to_cpu(entry->e_value_offs), in ext2_xattr_get()
291 struct ext2_xattr_entry *entry; in ext2_xattr_list() local
322 entry = FIRST_ENTRY(bh); in ext2_xattr_list()
323 while (!IS_LAST_ENTRY(entry)) { in ext2_xattr_list()
324 if (!ext2_xattr_entry_valid(entry, end, in ext2_xattr_list()
327 entry = EXT2_XATTR_NEXT(entry); in ext2_xattr_list()
333 for (entry = FIRST_ENTRY(bh); !IS_LAST_ENTRY(entry); in ext2_xattr_list()
334 entry = EXT2_XATTR_NEXT(entry)) { in ext2_xattr_list()
336 ext2_xattr_handler(entry->e_name_index); in ext2_xattr_list()
341 size_t size = prefix_len + entry->e_name_len + 1; in ext2_xattr_list()
350 memcpy(buffer, entry->e_name, entry->e_name_len); in ext2_xattr_list()
351 buffer += entry->e_name_len; in ext2_xattr_list()
990 struct ext2_xattr_entry *entry) in ext2_xattr_hash_entry() argument
993 char *name = entry->e_name; in ext2_xattr_hash_entry()
996 for (n=0; n < entry->e_name_len; n++) { in ext2_xattr_hash_entry()
1002 if (entry->e_value_block == 0 && entry->e_value_size != 0) { in ext2_xattr_hash_entry()
1004 le16_to_cpu(entry->e_value_offs)); in ext2_xattr_hash_entry()
1005 for (n = (le32_to_cpu(entry->e_value_size) + in ext2_xattr_hash_entry()
1012 entry->e_hash = cpu_to_le32(hash); in ext2_xattr_hash_entry()
1026 struct ext2_xattr_entry *entry) in ext2_xattr_rehash() argument
1031 ext2_xattr_hash_entry(header, entry); in ext2_xattr_rehash()