Lines Matching refs:blp

172 	struct xfs_dir2_leaf_entry	*blp,  in xfs_dir2_block_need_space()  argument
205 tagp = (__be16 *)blp - 1; in xfs_dir2_block_need_space()
216 (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
218 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
221 dup = (xfs_dir2_data_unused_t *)blp; in xfs_dir2_block_need_space()
229 tagp = (__be16 *)blp - 1; in xfs_dir2_block_need_space()
257 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space()
285 struct xfs_dir2_leaf_entry *blp, in xfs_dir2_block_compact() argument
298 if (blp[fromidx].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) { in xfs_dir2_block_compact()
308 blp[toidx] = blp[fromidx]; in xfs_dir2_block_compact()
315 (xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr), in xfs_dir2_block_compact()
316 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact()
335 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_addname() local
375 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_addname()
381 xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup, in xfs_dir2_block_addname()
417 xfs_dir2_block_compact(args, bp, hdr, btp, blp, &needlog, in xfs_dir2_block_addname()
420 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_addname()
435 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
442 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
455 sizeof(*blp)), in xfs_dir2_block_addname()
456 (xfs_dir2_data_aoff_t)sizeof(*blp), in xfs_dir2_block_addname()
475 blp--; in xfs_dir2_block_addname()
478 memmove(blp, &blp[1], mid * sizeof(*blp)); in xfs_dir2_block_addname()
488 blp[lowstale].address != in xfs_dir2_block_addname()
494 blp[highstale].address != in xfs_dir2_block_addname()
506 memmove(&blp[lowstale], &blp[lowstale + 1], in xfs_dir2_block_addname()
507 (mid - lowstale) * sizeof(*blp)); in xfs_dir2_block_addname()
518 memmove(&blp[mid + 1], &blp[mid], in xfs_dir2_block_addname()
519 (highstale - mid) * sizeof(*blp)); in xfs_dir2_block_addname()
532 blp[mid].hashval = cpu_to_be32(args->hashval); in xfs_dir2_block_addname()
533 blp[mid].address = cpu_to_be32(xfs_dir2_byte_to_dataptr( in xfs_dir2_block_addname()
575 xfs_dir2_leaf_entry_t *blp; in xfs_dir2_block_log_leaf() local
579 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_log_leaf()
580 xfs_trans_log_buf(tp, bp, (uint)((char *)&blp[first] - (char *)hdr), in xfs_dir2_block_log_leaf()
581 (uint)((char *)&blp[last + 1] - (char *)hdr - 1)); in xfs_dir2_block_log_leaf()
609 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_lookup() local
629 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_lookup()
635 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup()
657 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_lookup_int() local
682 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_lookup_int()
690 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
705 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
713 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_block_lookup_int()
734 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
759 xfs_dir2_leaf_entry_t *blp; /* block leaf pointer */ in xfs_dir2_block_removename() local
785 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_removename()
791 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename()
807 blp[ent].address = cpu_to_be32(XFS_DIR2_NULL_DATAPTR); in xfs_dir2_block_removename()
839 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_replace() local
859 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_replace()
865 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_replace()
1048 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_sf_to_block() local
1143 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_sf_to_block()
1144 endoffset = (uint)((char *)blp - (char *)hdr); in xfs_dir2_sf_to_block()
1162 blp[0].hashval = cpu_to_be32(xfs_dir_hash_dot); in xfs_dir2_sf_to_block()
1163 blp[0].address = cpu_to_be32(xfs_dir2_byte_to_dataptr( in xfs_dir2_sf_to_block()
1176 blp[1].hashval = cpu_to_be32(xfs_dir_hash_dotdot); in xfs_dir2_sf_to_block()
1177 blp[1].address = cpu_to_be32(xfs_dir2_byte_to_dataptr( in xfs_dir2_sf_to_block()
1229 blp[2 + i].hashval = cpu_to_be32(mp->m_dirnameops-> in xfs_dir2_sf_to_block()
1231 blp[2 + i].address = cpu_to_be32(xfs_dir2_byte_to_dataptr( in xfs_dir2_sf_to_block()
1244 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort); in xfs_dir2_sf_to_block()