Lines Matching refs:dip
116 #define XFS_DFORK_Q(dip) ((dip)->di_forkoff != 0) argument
117 #define XFS_DFORK_BOFF(dip) ((int)((dip)->di_forkoff << 3)) argument
119 #define XFS_DFORK_DSIZE(dip,mp) \ argument
120 (XFS_DFORK_Q(dip) ? \
121 XFS_DFORK_BOFF(dip) : \
123 #define XFS_DFORK_ASIZE(dip,mp) \ argument
124 (XFS_DFORK_Q(dip) ? \
125 XFS_LITINO(mp) - XFS_DFORK_BOFF(dip) : \
127 #define XFS_DFORK_SIZE(dip,mp,w) \ argument
129 XFS_DFORK_DSIZE(dip, mp) : \
130 XFS_DFORK_ASIZE(dip, mp))
135 #define XFS_DFORK_DPTR(dip) \ argument
136 ((char *)(dip) + sizeof(struct xfs_dinode))
137 #define XFS_DFORK_APTR(dip) \ argument
138 (XFS_DFORK_DPTR(dip) + XFS_DFORK_BOFF(dip))
139 #define XFS_DFORK_PTR(dip,w) \ argument
140 ((w) == XFS_DATA_FORK ? XFS_DFORK_DPTR(dip) : XFS_DFORK_APTR(dip))
142 #define XFS_DFORK_FORMAT(dip,w) \ argument
144 (dip)->di_format : \
145 (dip)->di_aformat)
146 #define XFS_DFORK_NEXTENTS(dip,w) \ argument
148 be32_to_cpu((dip)->di_nextents) : \
149 be16_to_cpu((dip)->di_anextents))
157 static inline xfs_dev_t xfs_dinode_get_rdev(struct xfs_dinode *dip) in xfs_dinode_get_rdev() argument
159 return be32_to_cpu(*(__be32 *)XFS_DFORK_DPTR(dip)); in xfs_dinode_get_rdev()
162 static inline void xfs_dinode_put_rdev(struct xfs_dinode *dip, xfs_dev_t rdev) in xfs_dinode_put_rdev() argument
164 *(__be32 *)XFS_DFORK_DPTR(dip) = cpu_to_be32(rdev); in xfs_dinode_put_rdev()