Lines Matching refs:blp

198 	struct xfs_dir2_leaf_entry	*blp,  in xfs_dir2_block_need_space()  argument
231 tagp = (__be16 *)blp - 1; in xfs_dir2_block_need_space()
242 (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
244 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
247 dup = (xfs_dir2_data_unused_t *)blp; in xfs_dir2_block_need_space()
255 tagp = (__be16 *)blp - 1; in xfs_dir2_block_need_space()
283 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space()
311 struct xfs_dir2_leaf_entry *blp, in xfs_dir2_block_compact() argument
324 if (blp[fromidx].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) { in xfs_dir2_block_compact()
334 blp[toidx] = blp[fromidx]; in xfs_dir2_block_compact()
341 (xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr), in xfs_dir2_block_compact()
342 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact()
361 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_addname() local
401 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_addname()
407 xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup, in xfs_dir2_block_addname()
443 xfs_dir2_block_compact(args, bp, hdr, btp, blp, &needlog, in xfs_dir2_block_addname()
446 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_addname()
461 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
468 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
481 be16_to_cpu(enddup->length) - sizeof(*blp)); in xfs_dir2_block_addname()
483 (xfs_dir2_data_aoff_t)sizeof(*blp), &needlog, in xfs_dir2_block_addname()
505 blp--; in xfs_dir2_block_addname()
508 memmove(blp, &blp[1], mid * sizeof(*blp)); in xfs_dir2_block_addname()
518 blp[lowstale].address != in xfs_dir2_block_addname()
524 blp[highstale].address != in xfs_dir2_block_addname()
536 memmove(&blp[lowstale], &blp[lowstale + 1], in xfs_dir2_block_addname()
537 (mid - lowstale) * sizeof(*blp)); in xfs_dir2_block_addname()
548 memmove(&blp[mid + 1], &blp[mid], in xfs_dir2_block_addname()
549 (highstale - mid) * sizeof(*blp)); in xfs_dir2_block_addname()
562 blp[mid].hashval = cpu_to_be32(args->hashval); in xfs_dir2_block_addname()
563 blp[mid].address = cpu_to_be32(xfs_dir2_byte_to_dataptr( in xfs_dir2_block_addname()
607 xfs_dir2_leaf_entry_t *blp; in xfs_dir2_block_log_leaf() local
611 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_log_leaf()
612 xfs_trans_log_buf(tp, bp, (uint)((char *)&blp[first] - (char *)hdr), in xfs_dir2_block_log_leaf()
613 (uint)((char *)&blp[last + 1] - (char *)hdr - 1)); in xfs_dir2_block_log_leaf()
641 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_lookup() local
661 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_lookup()
667 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup()
689 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_lookup_int() local
712 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_lookup_int()
720 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
735 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
743 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_block_lookup_int()
764 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
789 xfs_dir2_leaf_entry_t *blp; /* block leaf pointer */ in xfs_dir2_block_removename() local
815 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_removename()
821 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename()
838 blp[ent].address = cpu_to_be32(XFS_DIR2_NULL_DATAPTR); in xfs_dir2_block_removename()
870 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_replace() local
890 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_replace()
896 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_replace()
1086 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_sf_to_block() local
1163 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_sf_to_block()
1164 endoffset = (uint)((char *)blp - (char *)hdr); in xfs_dir2_sf_to_block()
1185 blp[0].hashval = cpu_to_be32(xfs_dir_hash_dot); in xfs_dir2_sf_to_block()
1186 blp[0].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(offset)); in xfs_dir2_sf_to_block()
1200 blp[1].hashval = cpu_to_be32(xfs_dir_hash_dotdot); in xfs_dir2_sf_to_block()
1201 blp[1].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(offset)); in xfs_dir2_sf_to_block()
1254 blp[2 + i].hashval = cpu_to_be32(xfs_dir2_hashname(mp, &name)); in xfs_dir2_sf_to_block()
1255 blp[2 + i].address = in xfs_dir2_sf_to_block()
1268 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort); in xfs_dir2_sf_to_block()