Lines Matching refs:be16_to_cpu
119 numrecs = be16_to_cpu(block->bb_numrecs);
279 if (be16_to_cpu(right->bb_numrecs) - 1 >=
284 ASSERT(be16_to_cpu(block->bb_numrecs) >=
301 rrecs = be16_to_cpu(right->bb_numrecs);
339 if (be16_to_cpu(left->bb_numrecs) - 1 >=
344 ASSERT(be16_to_cpu(block->bb_numrecs) >=
358 lrecs = be16_to_cpu(left->bb_numrecs);
379 rrecs = be16_to_cpu(right->bb_numrecs);
386 lrecs = be16_to_cpu(left->bb_numrecs);
401 lrecs = be16_to_cpu(left->bb_numrecs);
408 rrecs = be16_to_cpu(right->bb_numrecs);
585 numrecs = be16_to_cpu(block->bb_numrecs);
659 numrecs = be16_to_cpu(block->bb_numrecs);
926 if (!(high = be16_to_cpu(block->bb_numrecs))) {
1012 keyno > be16_to_cpu(block->bb_numrecs) &&
1030 if (keyno == 0 || keyno > be16_to_cpu(block->bb_numrecs))
1101 if (be16_to_cpu(left->bb_numrecs) == XFS_INOBT_BLOCK_MAXRECS(level, cur)) {
1105 nrec = be16_to_cpu(left->bb_numrecs) + 1;
1150 for (i = 0; i < be16_to_cpu(right->bb_numrecs); i++) {
1156 memmove(rkp, rkp + 1, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp));
1157 memmove(rpp, rpp + 1, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp));
1158 xfs_inobt_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs));
1159 xfs_inobt_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs));
1161 memmove(rrp, rrp + 1, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp));
1162 xfs_inobt_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs));
1299 if (be16_to_cpu(left->bb_level) > 0) {
1371 if (cur->bc_ptrs[level] >= be16_to_cpu(left->bb_numrecs)) {
1388 if (be16_to_cpu(right->bb_numrecs) == XFS_INOBT_BLOCK_MAXRECS(level, cur)) {
1397 lkp = XFS_INOBT_KEY_ADDR(left, be16_to_cpu(left->bb_numrecs), cur);
1398 lpp = XFS_INOBT_PTR_ADDR(left, be16_to_cpu(left->bb_numrecs), cur);
1402 for (i = be16_to_cpu(right->bb_numrecs) - 1; i >= 0; i--) {
1407 memmove(rkp + 1, rkp, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp));
1408 memmove(rpp + 1, rpp, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp));
1415 xfs_inobt_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1);
1416 xfs_inobt_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1);
1418 lrp = XFS_INOBT_REC_ADDR(left, be16_to_cpu(left->bb_numrecs), cur);
1420 memmove(rrp + 1, rrp, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp));
1422 xfs_inobt_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1);
1525 right->bb_numrecs = cpu_to_be16(be16_to_cpu(left->bb_numrecs) / 2);
1530 if ((be16_to_cpu(left->bb_numrecs) & 1) &&
1531 cur->bc_ptrs[level] <= be16_to_cpu(right->bb_numrecs) + 1)
1533 i = be16_to_cpu(left->bb_numrecs) - be16_to_cpu(right->bb_numrecs) + 1;
1543 for (i = 0; i < be16_to_cpu(right->bb_numrecs); i++) {
1548 memcpy(rkp, lkp, be16_to_cpu(right->bb_numrecs) * sizeof(*rkp));
1549 memcpy(rpp, lpp, be16_to_cpu(right->bb_numrecs) * sizeof(*rpp));
1550 xfs_inobt_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs));
1551 xfs_inobt_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs));
1560 memcpy(rrp, lrp, be16_to_cpu(right->bb_numrecs) * sizeof(*rrp));
1561 xfs_inobt_log_recs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs));
1568 be16_add(&left->bb_numrecs, -(be16_to_cpu(right->bb_numrecs)));
1597 if (cur->bc_ptrs[level] > be16_to_cpu(left->bb_numrecs) + 1) {
1599 cur->bc_ptrs[level] -= be16_to_cpu(left->bb_numrecs);
1736 cur->bc_ptrs[lev] = be16_to_cpu(block->bb_numrecs);
1808 if (ptr > be16_to_cpu(block->bb_numrecs) || ptr <= 0) {
1856 if (++cur->bc_ptrs[level] <= be16_to_cpu(block->bb_numrecs)) {
1878 if (++cur->bc_ptrs[lev] <= be16_to_cpu(block->bb_numrecs))