Lines Matching refs:dip
949 #define XFS_DFORK_Q(dip) ((dip)->di_forkoff != 0) argument
950 #define XFS_DFORK_BOFF(dip) ((int)((dip)->di_forkoff << 3)) argument
952 #define XFS_DFORK_DSIZE(dip,mp) \ argument
953 (XFS_DFORK_Q(dip) ? \
954 XFS_DFORK_BOFF(dip) : \
955 XFS_LITINO(mp, (dip)->di_version))
956 #define XFS_DFORK_ASIZE(dip,mp) \ argument
957 (XFS_DFORK_Q(dip) ? \
958 XFS_LITINO(mp, (dip)->di_version) - XFS_DFORK_BOFF(dip) : \
960 #define XFS_DFORK_SIZE(dip,mp,w) \ argument
962 XFS_DFORK_DSIZE(dip, mp) : \
963 XFS_DFORK_ASIZE(dip, mp))
965 #define XFS_DFORK_MAXEXT(dip, mp, w) \ argument
966 (XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec))
971 #define XFS_DFORK_DPTR(dip) \ argument
972 ((char *)dip + xfs_dinode_size(dip->di_version))
973 #define XFS_DFORK_APTR(dip) \ argument
974 (XFS_DFORK_DPTR(dip) + XFS_DFORK_BOFF(dip))
975 #define XFS_DFORK_PTR(dip,w) \ argument
976 ((w) == XFS_DATA_FORK ? XFS_DFORK_DPTR(dip) : XFS_DFORK_APTR(dip))
978 #define XFS_DFORK_FORMAT(dip,w) \ argument
980 (dip)->di_format : \
981 (dip)->di_aformat)
982 #define XFS_DFORK_NEXTENTS(dip,w) \ argument
984 be32_to_cpu((dip)->di_nextents) : \
985 be16_to_cpu((dip)->di_anextents))
991 static inline xfs_dev_t xfs_dinode_get_rdev(struct xfs_dinode *dip) in xfs_dinode_get_rdev() argument
993 return be32_to_cpu(*(__be32 *)XFS_DFORK_DPTR(dip)); in xfs_dinode_get_rdev()
996 static inline void xfs_dinode_put_rdev(struct xfs_dinode *dip, xfs_dev_t rdev) in xfs_dinode_put_rdev() argument
998 *(__be32 *)XFS_DFORK_DPTR(dip) = cpu_to_be32(rdev); in xfs_dinode_put_rdev()