Lines Matching refs:blp
176 struct xfs_dir2_leaf_entry *blp, in xfs_dir2_block_need_space() argument
209 tagp = (__be16 *)blp - 1; in xfs_dir2_block_need_space()
220 (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
222 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_need_space()
225 dup = (xfs_dir2_data_unused_t *)blp; in xfs_dir2_block_need_space()
233 tagp = (__be16 *)blp - 1; in xfs_dir2_block_need_space()
261 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_need_space()
289 struct xfs_dir2_leaf_entry *blp, in xfs_dir2_block_compact() argument
302 if (blp[fromidx].address == cpu_to_be32(XFS_DIR2_NULL_DATAPTR)) { in xfs_dir2_block_compact()
312 blp[toidx] = blp[fromidx]; in xfs_dir2_block_compact()
319 (xfs_dir2_data_aoff_t)((char *)blp - (char *)hdr), in xfs_dir2_block_compact()
320 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_compact()
339 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_addname() local
379 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_addname()
385 xfs_dir2_block_need_space(dp, hdr, btp, blp, &tagp, &dup, in xfs_dir2_block_addname()
421 xfs_dir2_block_compact(args, bp, hdr, btp, blp, &needlog, in xfs_dir2_block_addname()
424 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_addname()
439 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
446 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
459 sizeof(*blp)), in xfs_dir2_block_addname()
460 (xfs_dir2_data_aoff_t)sizeof(*blp), in xfs_dir2_block_addname()
479 blp--; in xfs_dir2_block_addname()
482 memmove(blp, &blp[1], mid * sizeof(*blp)); in xfs_dir2_block_addname()
492 blp[lowstale].address != in xfs_dir2_block_addname()
498 blp[highstale].address != in xfs_dir2_block_addname()
510 memmove(&blp[lowstale], &blp[lowstale + 1], in xfs_dir2_block_addname()
511 (mid - lowstale) * sizeof(*blp)); in xfs_dir2_block_addname()
522 memmove(&blp[mid + 1], &blp[mid], in xfs_dir2_block_addname()
523 (highstale - mid) * sizeof(*blp)); in xfs_dir2_block_addname()
536 blp[mid].hashval = cpu_to_be32(args->hashval); in xfs_dir2_block_addname()
537 blp[mid].address = cpu_to_be32(xfs_dir2_byte_to_dataptr( in xfs_dir2_block_addname()
579 xfs_dir2_leaf_entry_t *blp; in xfs_dir2_block_log_leaf() local
583 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_log_leaf()
584 xfs_trans_log_buf(tp, bp, (uint)((char *)&blp[first] - (char *)hdr), in xfs_dir2_block_log_leaf()
585 (uint)((char *)&blp[last + 1] - (char *)hdr - 1)); in xfs_dir2_block_log_leaf()
613 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_lookup() local
633 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_lookup()
639 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup()
661 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_lookup_int() local
686 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_lookup_int()
694 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
709 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
717 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_block_lookup_int()
738 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
763 xfs_dir2_leaf_entry_t *blp; /* block leaf pointer */ in xfs_dir2_block_removename() local
789 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_removename()
795 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename()
811 blp[ent].address = cpu_to_be32(XFS_DIR2_NULL_DATAPTR); in xfs_dir2_block_removename()
843 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_replace() local
863 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_replace()
869 be32_to_cpu(blp[ent].address))); in xfs_dir2_block_replace()
1052 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_sf_to_block() local
1147 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_sf_to_block()
1148 endoffset = (uint)((char *)blp - (char *)hdr); in xfs_dir2_sf_to_block()
1166 blp[0].hashval = cpu_to_be32(xfs_dir_hash_dot); in xfs_dir2_sf_to_block()
1167 blp[0].address = cpu_to_be32(xfs_dir2_byte_to_dataptr( in xfs_dir2_sf_to_block()
1180 blp[1].hashval = cpu_to_be32(xfs_dir_hash_dotdot); in xfs_dir2_sf_to_block()
1181 blp[1].address = cpu_to_be32(xfs_dir2_byte_to_dataptr( in xfs_dir2_sf_to_block()
1233 blp[2 + i].hashval = cpu_to_be32(mp->m_dirnameops-> in xfs_dir2_sf_to_block()
1235 blp[2 + i].address = cpu_to_be32(xfs_dir2_byte_to_dataptr( in xfs_dir2_sf_to_block()
1248 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort); in xfs_dir2_sf_to_block()