Lines Matching refs:mp

56 #define	XFS_DIR2_LEAF_FIRSTDB(mp)	\  argument
57 XFS_DIR2_BYTE_TO_DB(mp, XFS_DIR2_LEAF_OFFSET)
118 xfs_dir2_max_leaf_ents(struct xfs_mount *mp);
119 #define XFS_DIR2_MAX_LEAF_ENTS(mp) \ argument
120 xfs_dir2_max_leaf_ents(mp)
122 #define XFS_DIR2_MAX_LEAF_ENTS(mp) \ argument
123 ((int)(((mp)->m_dirblksize - (uint)sizeof(xfs_dir2_leaf_hdr_t)) / \
132 xfs_dir2_leaf_tail_p(struct xfs_mount *mp, xfs_dir2_leaf_t *lp);
133 #define XFS_DIR2_LEAF_TAIL_P(mp,lp) \ argument
134 xfs_dir2_leaf_tail_p(mp, lp)
136 #define XFS_DIR2_LEAF_TAIL_P(mp,lp) \ argument
138 ((char *)(lp) + (mp)->m_dirblksize - \
159 xfs_dir2_dataptr_to_byte(struct xfs_mount *mp, xfs_dir2_dataptr_t dp);
160 #define XFS_DIR2_DATAPTR_TO_BYTE(mp,dp) xfs_dir2_dataptr_to_byte(mp, dp) argument
162 #define XFS_DIR2_DATAPTR_TO_BYTE(mp,dp) \ argument
171 xfs_dir2_byte_to_dataptr(struct xfs_mount *mp, xfs_dir2_off_t by);
172 #define XFS_DIR2_BYTE_TO_DATAPTR(mp,by) xfs_dir2_byte_to_dataptr(mp,by) argument
174 #define XFS_DIR2_BYTE_TO_DATAPTR(mp,by) \ argument
183 xfs_dir2_dataptr_to_db(struct xfs_mount *mp, xfs_dir2_dataptr_t dp);
184 #define XFS_DIR2_DATAPTR_TO_DB(mp,dp) xfs_dir2_dataptr_to_db(mp, dp) argument
186 #define XFS_DIR2_DATAPTR_TO_DB(mp,dp) \ argument
187 XFS_DIR2_BYTE_TO_DB(mp, XFS_DIR2_DATAPTR_TO_BYTE(mp, dp))
195 xfs_dir2_dataptr_to_off(struct xfs_mount *mp, xfs_dir2_dataptr_t dp);
196 #define XFS_DIR2_DATAPTR_TO_OFF(mp,dp) xfs_dir2_dataptr_to_off(mp, dp) argument
198 #define XFS_DIR2_DATAPTR_TO_OFF(mp,dp) \ argument
199 XFS_DIR2_BYTE_TO_OFF(mp, XFS_DIR2_DATAPTR_TO_BYTE(mp, dp))
207 xfs_dir2_db_off_to_byte(struct xfs_mount *mp, xfs_dir2_db_t db,
209 #define XFS_DIR2_DB_OFF_TO_BYTE(mp,db,o) \ argument
210 xfs_dir2_db_off_to_byte(mp, db, o)
212 #define XFS_DIR2_DB_OFF_TO_BYTE(mp,db,o) \ argument
214 ((mp)->m_sb.sb_blocklog + (mp)->m_sb.sb_dirblklog)) + (o))
221 xfs_dir2_db_t xfs_dir2_byte_to_db(struct xfs_mount *mp, xfs_dir2_off_t by);
222 #define XFS_DIR2_BYTE_TO_DB(mp,by) xfs_dir2_byte_to_db(mp, by) argument
224 #define XFS_DIR2_BYTE_TO_DB(mp,by) \ argument
226 ((mp)->m_sb.sb_blocklog + (mp)->m_sb.sb_dirblklog)))
233 xfs_dablk_t xfs_dir2_byte_to_da(struct xfs_mount *mp, xfs_dir2_off_t by);
234 #define XFS_DIR2_BYTE_TO_DA(mp,by) xfs_dir2_byte_to_da(mp, by) argument
236 #define XFS_DIR2_BYTE_TO_DA(mp,by) \ argument
237 XFS_DIR2_DB_TO_DA(mp, XFS_DIR2_BYTE_TO_DB(mp, by))
245 xfs_dir2_byte_to_off(struct xfs_mount *mp, xfs_dir2_off_t by);
246 #define XFS_DIR2_BYTE_TO_OFF(mp,by) xfs_dir2_byte_to_off(mp, by) argument
248 #define XFS_DIR2_BYTE_TO_OFF(mp,by) \ argument
250 ((1 << ((mp)->m_sb.sb_blocklog + \
251 (mp)->m_sb.sb_dirblklog)) - 1)))
259 xfs_dir2_db_off_to_dataptr(struct xfs_mount *mp, xfs_dir2_db_t db,
261 #define XFS_DIR2_DB_OFF_TO_DATAPTR(mp,db,o) \ argument
262 xfs_dir2_db_off_to_dataptr(mp, db, o)
264 #define XFS_DIR2_DB_OFF_TO_DATAPTR(mp,db,o) \ argument
265 XFS_DIR2_BYTE_TO_DATAPTR(mp, XFS_DIR2_DB_OFF_TO_BYTE(mp, db, o))
272 xfs_dablk_t xfs_dir2_db_to_da(struct xfs_mount *mp, xfs_dir2_db_t db);
273 #define XFS_DIR2_DB_TO_DA(mp,db) xfs_dir2_db_to_da(mp, db) argument
275 #define XFS_DIR2_DB_TO_DA(mp,db) \ argument
276 ((xfs_dablk_t)((db) << (mp)->m_sb.sb_dirblklog))
283 xfs_dir2_db_t xfs_dir2_da_to_db(struct xfs_mount *mp, xfs_dablk_t da);
284 #define XFS_DIR2_DA_TO_DB(mp,da) xfs_dir2_da_to_db(mp, da) argument
286 #define XFS_DIR2_DA_TO_DB(mp,da) \ argument
287 ((xfs_dir2_db_t)((da) >> (mp)->m_sb.sb_dirblklog))
294 xfs_dir2_off_t xfs_dir2_da_to_byte(struct xfs_mount *mp, xfs_dablk_t da);
295 #define XFS_DIR2_DA_TO_BYTE(mp,da) xfs_dir2_da_to_byte(mp, da) argument
297 #define XFS_DIR2_DA_TO_BYTE(mp,da) \ argument
298 XFS_DIR2_DB_OFF_TO_BYTE(mp, XFS_DIR2_DA_TO_DB(mp, da), 0)