Lines Matching refs:dip

1001 #define XFS_DFORK_BOFF(dip)		((int)((dip)->di_forkoff << 3))  argument
1003 #define XFS_DFORK_DSIZE(dip,mp) \ argument
1004 ((dip)->di_forkoff ? XFS_DFORK_BOFF(dip) : XFS_LITINO(mp))
1005 #define XFS_DFORK_ASIZE(dip,mp) \ argument
1006 ((dip)->di_forkoff ? XFS_LITINO(mp) - XFS_DFORK_BOFF(dip) : 0)
1007 #define XFS_DFORK_SIZE(dip,mp,w) \ argument
1009 XFS_DFORK_DSIZE(dip, mp) : \
1010 XFS_DFORK_ASIZE(dip, mp))
1012 #define XFS_DFORK_MAXEXT(dip, mp, w) \ argument
1013 (XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec))
1018 #define XFS_DFORK_DPTR(dip) \ argument
1019 ((void *)dip + xfs_dinode_size(dip->di_version))
1020 #define XFS_DFORK_APTR(dip) \ argument
1021 (XFS_DFORK_DPTR(dip) + XFS_DFORK_BOFF(dip))
1022 #define XFS_DFORK_PTR(dip,w) \ argument
1023 ((w) == XFS_DATA_FORK ? XFS_DFORK_DPTR(dip) : XFS_DFORK_APTR(dip))
1025 #define XFS_DFORK_FORMAT(dip,w) \ argument
1027 (dip)->di_format : \
1028 (dip)->di_aformat)
1034 static inline xfs_dev_t xfs_dinode_get_rdev(struct xfs_dinode *dip) in xfs_dinode_get_rdev() argument
1036 return be32_to_cpu(*(__be32 *)XFS_DFORK_DPTR(dip)); in xfs_dinode_get_rdev()
1039 static inline void xfs_dinode_put_rdev(struct xfs_dinode *dip, xfs_dev_t rdev) in xfs_dinode_put_rdev() argument
1041 *(__be32 *)XFS_DFORK_DPTR(dip) = cpu_to_be32(rdev); in xfs_dinode_put_rdev()
1107 static inline bool xfs_dinode_has_bigtime(const struct xfs_dinode *dip) in xfs_dinode_has_bigtime() argument
1109 return dip->di_version >= 3 && in xfs_dinode_has_bigtime()
1110 (dip->di_flags2 & cpu_to_be64(XFS_DIFLAG2_BIGTIME)); in xfs_dinode_has_bigtime()
1114 const struct xfs_dinode *dip) in xfs_dinode_has_large_extent_counts() argument
1116 return dip->di_version >= 3 && in xfs_dinode_has_large_extent_counts()
1117 (dip->di_flags2 & cpu_to_be64(XFS_DIFLAG2_NREXT64)); in xfs_dinode_has_large_extent_counts()