Lines Matching refs:blp

71 	xfs_dir2_leaf_entry_t	*blp;		/* block leaf entries */  in xfs_dir2_block_addname()  local
124 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_addname()
132 tagp = (__be16 *)blp - 1; in xfs_dir2_block_addname()
155 if (be16_to_cpu(dup->length) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_addname()
195 tagp = (__be16 *)blp - 1; in xfs_dir2_block_addname()
206 (uint)sizeof(*blp) < len) in xfs_dir2_block_addname()
208 } else if ((be32_to_cpu(btp->stale) - 1) * (uint)sizeof(*blp) < len) in xfs_dir2_block_addname()
211 dup = (xfs_dir2_data_unused_t *)blp; in xfs_dir2_block_addname()
258 if (be32_to_cpu(blp[fromidx].address) == XFS_DIR2_NULL_DATAPTR) { in xfs_dir2_block_addname()
268 blp[toidx] = blp[fromidx]; in xfs_dir2_block_addname()
275 (xfs_dir2_data_aoff_t)((char *)blp - (char *)block), in xfs_dir2_block_addname()
276 (xfs_dir2_data_aoff_t)((be32_to_cpu(btp->stale) - 1) * sizeof(*blp)), in xfs_dir2_block_addname()
278 blp += be32_to_cpu(btp->stale) - 1; in xfs_dir2_block_addname()
302 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_addname()
309 while (mid >= 0 && be32_to_cpu(blp[mid].hashval) >= args->hashval) { in xfs_dir2_block_addname()
322 sizeof(*blp)), in xfs_dir2_block_addname()
323 (xfs_dir2_data_aoff_t)sizeof(*blp), in xfs_dir2_block_addname()
343 blp--; in xfs_dir2_block_addname()
346 memmove(blp, &blp[1], mid * sizeof(*blp)); in xfs_dir2_block_addname()
356 be32_to_cpu(blp[lowstale].address) != XFS_DIR2_NULL_DATAPTR; in xfs_dir2_block_addname()
361 be32_to_cpu(blp[highstale].address) != XFS_DIR2_NULL_DATAPTR && in xfs_dir2_block_addname()
372 memmove(&blp[lowstale], &blp[lowstale + 1], in xfs_dir2_block_addname()
373 (mid - lowstale) * sizeof(*blp)); in xfs_dir2_block_addname()
384 memmove(&blp[mid + 1], &blp[mid], in xfs_dir2_block_addname()
385 (highstale - mid) * sizeof(*blp)); in xfs_dir2_block_addname()
398 blp[mid].hashval = cpu_to_be32(args->hashval); in xfs_dir2_block_addname()
399 blp[mid].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(mp, in xfs_dir2_block_addname()
544 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_log_leaf() local
551 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_log_leaf()
552 xfs_da_log_buf(tp, bp, (uint)((char *)&blp[first] - (char *)block), in xfs_dir2_block_log_leaf()
553 (uint)((char *)&blp[last + 1] - (char *)block - 1)); in xfs_dir2_block_log_leaf()
584 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_lookup() local
606 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_lookup()
611 xfs_dir2_dataptr_to_off(mp, be32_to_cpu(blp[ent].address))); in xfs_dir2_block_lookup()
632 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_lookup_int() local
660 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_lookup_int()
668 if ((hash = be32_to_cpu(blp[mid].hashval)) == args->hashval) in xfs_dir2_block_lookup_int()
683 while (mid > 0 && be32_to_cpu(blp[mid - 1].hashval) == args->hashval) { in xfs_dir2_block_lookup_int()
691 if ((addr = be32_to_cpu(blp[mid].address)) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_block_lookup_int()
712 be32_to_cpu(blp[mid].hashval) == hash); in xfs_dir2_block_lookup_int()
737 xfs_dir2_leaf_entry_t *blp; /* block leaf pointer */ in xfs_dir2_block_removename() local
765 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_removename()
770 ((char *)block + xfs_dir2_dataptr_to_off(mp, be32_to_cpu(blp[ent].address))); in xfs_dir2_block_removename()
786 blp[ent].address = cpu_to_be32(XFS_DIR2_NULL_DATAPTR); in xfs_dir2_block_removename()
819 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_block_replace() local
841 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_block_replace()
846 ((char *)block + xfs_dir2_dataptr_to_off(mp, be32_to_cpu(blp[ent].address))); in xfs_dir2_block_replace()
1028 xfs_dir2_leaf_entry_t *blp; /* block leaf entries */ in xfs_dir2_sf_to_block() local
1122 blp = xfs_dir2_block_leaf_p(btp); in xfs_dir2_sf_to_block()
1123 endoffset = (uint)((char *)blp - (char *)block); in xfs_dir2_sf_to_block()
1141 blp[0].hashval = cpu_to_be32(xfs_dir_hash_dot); in xfs_dir2_sf_to_block()
1142 blp[0].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(mp, in xfs_dir2_sf_to_block()
1155 blp[1].hashval = cpu_to_be32(xfs_dir_hash_dotdot); in xfs_dir2_sf_to_block()
1156 blp[1].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(mp, in xfs_dir2_sf_to_block()
1207 blp[2 + i].hashval = cpu_to_be32(mp->m_dirnameops-> in xfs_dir2_sf_to_block()
1209 blp[2 + i].address = cpu_to_be32(xfs_dir2_byte_to_dataptr(mp, in xfs_dir2_sf_to_block()
1222 xfs_sort(blp, be32_to_cpu(btp->count), sizeof(*blp), xfs_dir2_block_sort); in xfs_dir2_sf_to_block()