Lines Matching refs:geo
78 int (*leaf_max_ents)(struct xfs_da_geometry *geo);
95 int (*free_max_bests)(struct xfs_da_geometry *geo);
97 xfs_dir2_db_t (*db_to_fdb)(struct xfs_da_geometry *geo,
99 int (*db_to_fdindex)(struct xfs_da_geometry *geo,
146 extern void xfs_dir2_data_freescan_int(struct xfs_da_geometry *geo,
205 xfs_dir2_byte_to_db(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_db() argument
207 return (xfs_dir2_db_t)(by >> geo->blklog); in xfs_dir2_byte_to_db()
214 xfs_dir2_dataptr_to_db(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_db() argument
216 return xfs_dir2_byte_to_db(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_db()
223 xfs_dir2_byte_to_off(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_off() argument
225 return (xfs_dir2_data_aoff_t)(by & (geo->blksize - 1)); in xfs_dir2_byte_to_off()
232 xfs_dir2_dataptr_to_off(struct xfs_da_geometry *geo, xfs_dir2_dataptr_t dp) in xfs_dir2_dataptr_to_off() argument
234 return xfs_dir2_byte_to_off(geo, xfs_dir2_dataptr_to_byte(dp)); in xfs_dir2_dataptr_to_off()
241 xfs_dir2_db_off_to_byte(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_byte() argument
244 return ((xfs_dir2_off_t)db << geo->blklog) + o; in xfs_dir2_db_off_to_byte()
251 xfs_dir2_db_to_da(struct xfs_da_geometry *geo, xfs_dir2_db_t db) in xfs_dir2_db_to_da() argument
253 return (xfs_dablk_t)(db << (geo->blklog - geo->fsblog)); in xfs_dir2_db_to_da()
260 xfs_dir2_byte_to_da(struct xfs_da_geometry *geo, xfs_dir2_off_t by) in xfs_dir2_byte_to_da() argument
262 return xfs_dir2_db_to_da(geo, xfs_dir2_byte_to_db(geo, by)); in xfs_dir2_byte_to_da()
269 xfs_dir2_db_off_to_dataptr(struct xfs_da_geometry *geo, xfs_dir2_db_t db, in xfs_dir2_db_off_to_dataptr() argument
272 return xfs_dir2_byte_to_dataptr(xfs_dir2_db_off_to_byte(geo, db, o)); in xfs_dir2_db_off_to_dataptr()
279 xfs_dir2_da_to_db(struct xfs_da_geometry *geo, xfs_dablk_t da) in xfs_dir2_da_to_db() argument
281 return (xfs_dir2_db_t)(da >> (geo->blklog - geo->fsblog)); in xfs_dir2_da_to_db()
288 xfs_dir2_da_to_byte(struct xfs_da_geometry *geo, xfs_dablk_t da) in xfs_dir2_da_to_byte() argument
290 return xfs_dir2_db_off_to_byte(geo, xfs_dir2_da_to_db(geo, da), 0); in xfs_dir2_da_to_byte()
297 xfs_dir2_block_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_data_hdr *hdr) in xfs_dir2_block_tail_p() argument
300 ((char *)hdr + geo->blksize)) - 1; in xfs_dir2_block_tail_p()
304 xfs_dir2_leaf_tail_p(struct xfs_da_geometry *geo, struct xfs_dir2_leaf *lp) in xfs_dir2_leaf_tail_p() argument
307 ((char *)lp + geo->blksize - in xfs_dir2_leaf_tail_p()
327 void *xfs_dir3_data_endp(struct xfs_da_geometry *geo,