Lines Matching refs:lp
523 xfs_dir3_leaf_hdr_size(struct xfs_dir2_leaf *lp) in xfs_dir3_leaf_hdr_size() argument
525 if (lp->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_hdr_size()
526 lp->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) in xfs_dir3_leaf_hdr_size()
532 xfs_dir3_max_leaf_ents(struct xfs_mount *mp, struct xfs_dir2_leaf *lp) in xfs_dir3_max_leaf_ents() argument
534 return (mp->m_dirblksize - xfs_dir3_leaf_hdr_size(lp)) / in xfs_dir3_max_leaf_ents()
542 xfs_dir3_leaf_ents_p(struct xfs_dir2_leaf *lp) in xfs_dir3_leaf_ents_p() argument
544 if (lp->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_ents_p()
545 lp->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_dir3_leaf_ents_p()
546 struct xfs_dir3_leaf *lp3 = (struct xfs_dir3_leaf *)lp; in xfs_dir3_leaf_ents_p()
549 return lp->__ents; in xfs_dir3_leaf_ents_p()
556 xfs_dir2_leaf_tail_p(struct xfs_mount *mp, struct xfs_dir2_leaf *lp) in xfs_dir2_leaf_tail_p() argument
559 ((char *)lp + mp->m_dirblksize - in xfs_dir2_leaf_tail_p()