Lines Matching refs:header

264 	struct ext3_xattr_ibody_header *header;  in ext3_xattr_ibody_get()  local
278 header = IHDR(inode, raw_inode); in ext3_xattr_ibody_get()
279 entry = IFIRST(header); in ext3_xattr_ibody_get()
293 memcpy(buffer, (void *)IFIRST(header) + in ext3_xattr_ibody_get()
395 struct ext3_xattr_ibody_header *header; in ext3_xattr_ibody_list() local
407 header = IHDR(inode, raw_inode); in ext3_xattr_ibody_list()
409 error = ext3_xattr_check_names(IFIRST(header), end); in ext3_xattr_ibody_list()
412 error = ext3_xattr_list_entries(dentry, IFIRST(header), in ext3_xattr_ibody_list()
684 #define header(x) ((struct ext3_xattr_header *)(x)) in ext3_xattr_block_set() macro
696 if (header(s->base)->h_refcount == cpu_to_le32(1)) { in ext3_xattr_block_set()
705 ext3_xattr_rehash(header(s->base), in ext3_xattr_block_set()
734 s->first = ENTRY(header(s->base)+1); in ext3_xattr_block_set()
735 header(s->base)->h_refcount = cpu_to_le32(1); in ext3_xattr_block_set()
746 header(s->base)->h_magic = cpu_to_le32(EXT3_XATTR_MAGIC); in ext3_xattr_block_set()
747 header(s->base)->h_blocks = cpu_to_le32(1); in ext3_xattr_block_set()
748 header(s->base)->h_refcount = cpu_to_le32(1); in ext3_xattr_block_set()
749 s->first = ENTRY(header(s->base)+1); in ext3_xattr_block_set()
750 s->here = ENTRY(header(s->base)+1); in ext3_xattr_block_set()
760 ext3_xattr_rehash(header(s->base), s->here); in ext3_xattr_block_set()
764 new_bh = ext3_xattr_cache_find(inode, header(s->base), &ce); in ext3_xattr_block_set()
864 #undef header in ext3_xattr_block_set()
876 struct ext3_xattr_ibody_header *header; in ext3_xattr_ibody_find() local
883 header = IHDR(inode, raw_inode); in ext3_xattr_ibody_find()
884 is->s.base = is->s.first = IFIRST(header); in ext3_xattr_ibody_find()
888 error = ext3_xattr_check_names(IFIRST(header), is->s.end); in ext3_xattr_ibody_find()
907 struct ext3_xattr_ibody_header *header; in ext3_xattr_ibody_set() local
916 header = IHDR(inode, ext3_raw_inode(&is->iloc)); in ext3_xattr_ibody_set()
918 header->h_magic = cpu_to_le32(EXT3_XATTR_MAGIC); in ext3_xattr_ibody_set()
921 header->h_magic = cpu_to_le32(0); in ext3_xattr_ibody_set()
1206 ext3_xattr_cache_find(struct inode *inode, struct ext3_xattr_header *header, in ext3_xattr_cache_find() argument
1209 __u32 hash = le32_to_cpu(header->h_hash); in ext3_xattr_cache_find()
1212 if (!header->h_hash) in ext3_xattr_cache_find()
1237 } else if (ext3_xattr_cmp(header, BHDR(bh)) == 0) { in ext3_xattr_cache_find()
1255 static inline void ext3_xattr_hash_entry(struct ext3_xattr_header *header, in ext3_xattr_hash_entry() argument
1269 __le32 *value = (__le32 *)((char *)header + in ext3_xattr_hash_entry()
1291 static void ext3_xattr_rehash(struct ext3_xattr_header *header, in ext3_xattr_rehash() argument
1297 ext3_xattr_hash_entry(header, entry); in ext3_xattr_rehash()
1298 here = ENTRY(header+1); in ext3_xattr_rehash()
1310 header->h_hash = cpu_to_le32(hash); in ext3_xattr_rehash()