Lines Matching refs:ea
13 #define GFS2_EA_REC_LEN(ea) be32_to_cpu((ea)->ea_rec_len) argument
14 #define GFS2_EA_DATA_LEN(ea) be32_to_cpu((ea)->ea_data_len) argument
16 #define GFS2_EA_SIZE(ea) \ argument
17 ALIGN(sizeof(struct gfs2_ea_header) + (ea)->ea_name_len + \
18 ((GFS2_EA_IS_STUFFED(ea)) ? GFS2_EA_DATA_LEN(ea) : \
19 (sizeof(__be64) * (ea)->ea_num_ptrs)), 8)
21 #define GFS2_EA_IS_STUFFED(ea) (!(ea)->ea_num_ptrs) argument
22 #define GFS2_EA_IS_LAST(ea) ((ea)->ea_flags & GFS2_EAFLAG_LAST) argument
27 #define GFS2_EA2NAME(ea) ((char *)((struct gfs2_ea_header *)(ea) + 1)) argument
28 #define GFS2_EA2DATA(ea) (GFS2_EA2NAME(ea) + (ea)->ea_name_len) argument
30 #define GFS2_EA2DATAPTRS(ea) \ argument
31 ((__be64 *)(GFS2_EA2NAME(ea) + ALIGN((ea)->ea_name_len, 8)))
33 #define GFS2_EA2NEXT(ea) \ argument
34 ((struct gfs2_ea_header *)((char *)(ea) + GFS2_EA_REC_LEN(ea)))