Lines Matching refs:header

329 	struct ext4_xattr_ibody_header *header;  in ext4_xattr_ibody_get()  local
343 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_get()
344 entry = IFIRST(header); in ext4_xattr_ibody_get()
358 memcpy(buffer, (void *)IFIRST(header) + in ext4_xattr_ibody_get()
463 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_list() local
475 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_list()
477 error = ext4_xattr_check_names(IFIRST(header), end, IFIRST(header)); in ext4_xattr_ibody_list()
480 error = ext4_xattr_list_entries(dentry, IFIRST(header), in ext4_xattr_ibody_list()
785 #define header(x) ((struct ext4_xattr_header *)(x)) in ext4_xattr_block_set() macro
798 if (header(s->base)->h_refcount == cpu_to_le32(1)) { in ext4_xattr_block_set()
807 ext4_xattr_rehash(header(s->base), in ext4_xattr_block_set()
836 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
837 header(s->base)->h_refcount = cpu_to_le32(1); in ext4_xattr_block_set()
848 header(s->base)->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_block_set()
849 header(s->base)->h_blocks = cpu_to_le32(1); in ext4_xattr_block_set()
850 header(s->base)->h_refcount = cpu_to_le32(1); in ext4_xattr_block_set()
851 s->first = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
852 s->here = ENTRY(header(s->base)+1); in ext4_xattr_block_set()
862 ext4_xattr_rehash(header(s->base), s->here); in ext4_xattr_block_set()
866 new_bh = ext4_xattr_cache_find(inode, header(s->base), &ce); in ext4_xattr_block_set()
975 #undef header in ext4_xattr_block_set()
981 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_find() local
988 header = IHDR(inode, raw_inode); in ext4_xattr_ibody_find()
989 is->s.base = is->s.first = IFIRST(header); in ext4_xattr_ibody_find()
993 error = ext4_xattr_check_names(IFIRST(header), is->s.end, in ext4_xattr_ibody_find()
994 IFIRST(header)); in ext4_xattr_ibody_find()
1012 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_inline_set() local
1035 header = IHDR(inode, ext4_raw_inode(&is->iloc)); in ext4_xattr_ibody_inline_set()
1037 header->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_ibody_inline_set()
1040 header->h_magic = cpu_to_le32(0); in ext4_xattr_ibody_inline_set()
1050 struct ext4_xattr_ibody_header *header; in ext4_xattr_ibody_set() local
1059 header = IHDR(inode, ext4_raw_inode(&is->iloc)); in ext4_xattr_ibody_set()
1061 header->h_magic = cpu_to_le32(EXT4_XATTR_MAGIC); in ext4_xattr_ibody_set()
1064 header->h_magic = cpu_to_le32(0); in ext4_xattr_ibody_set()
1258 struct ext4_xattr_ibody_header *header; in ext4_expand_extra_isize_ea() local
1277 header = IHDR(inode, raw_inode); in ext4_expand_extra_isize_ea()
1278 entry = IFIRST(header); in ext4_expand_extra_isize_ea()
1293 entry = IFIRST(header); in ext4_expand_extra_isize_ea()
1297 (void *)header, total_ino, in ext4_expand_extra_isize_ea()
1361 last = IFIRST(header); in ext4_expand_extra_isize_ea()
1406 memcpy(buffer, (void *)IFIRST(header) + offs, in ext4_expand_extra_isize_ea()
1425 entry = IFIRST(header); in ext4_expand_extra_isize_ea()
1434 (void *)header, total_ino - entry_size, in ext4_expand_extra_isize_ea()
1604 ext4_xattr_cache_find(struct inode *inode, struct ext4_xattr_header *header, in ext4_xattr_cache_find() argument
1607 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_cache_find()
1611 if (!header->h_hash) in ext4_xattr_cache_find()
1635 } else if (ext4_xattr_cmp(header, BHDR(bh)) == 0) { in ext4_xattr_cache_find()
1653 static inline void ext4_xattr_hash_entry(struct ext4_xattr_header *header, in ext4_xattr_hash_entry() argument
1667 __le32 *value = (__le32 *)((char *)header + in ext4_xattr_hash_entry()
1689 static void ext4_xattr_rehash(struct ext4_xattr_header *header, in ext4_xattr_rehash() argument
1695 ext4_xattr_hash_entry(header, entry); in ext4_xattr_rehash()
1696 here = ENTRY(header+1); in ext4_xattr_rehash()
1708 header->h_hash = cpu_to_le32(hash); in ext4_xattr_rehash()