Lines Matching refs:nn
591 int nn = *n; in tnc_next() local
593 nn += 1; in tnc_next()
594 if (nn < znode->child_cnt) { in tnc_next()
595 *n = nn; in tnc_next()
604 nn = znode->iip + 1; in tnc_next()
606 if (nn < znode->child_cnt) { in tnc_next()
607 znode = get_znode(c, znode, nn); in tnc_next()
615 nn = 0; in tnc_next()
620 *n = nn; in tnc_next()
636 int nn = *n; in tnc_prev() local
638 if (nn > 0) { in tnc_prev()
639 *n = nn - 1; in tnc_prev()
648 nn = znode->iip - 1; in tnc_prev()
650 if (nn >= 0) { in tnc_prev()
651 znode = get_znode(c, znode, nn); in tnc_prev()
655 nn = znode->child_cnt - 1; in tnc_prev()
656 znode = get_znode(c, znode, nn); in tnc_prev()
660 nn = znode->child_cnt - 1; in tnc_prev()
665 *n = nn; in tnc_prev()
762 int nn = *n; in resolve_collision() local
767 err = tnc_next(c, &znode, &nn); in resolve_collision()
772 if (keys_cmp(c, &znode->zbranch[nn].key, key)) in resolve_collision()
774 err = matches_name(c, &znode->zbranch[nn], nm); in resolve_collision()
780 *n = nn; in resolve_collision()
879 int uninitialized_var(o_n), err, cmp, unsure = 0, nn = *n; in fallible_resolve_collision()
881 cmp = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
888 o_n = nn; in fallible_resolve_collision()
947 *n = nn; in fallible_resolve_collision()
949 err = tnc_next(c, &znode, &nn); in fallible_resolve_collision()
954 if (keys_cmp(c, &znode->zbranch[nn].key, key)) in fallible_resolve_collision()
956 err = fallible_matches_name(c, &znode->zbranch[nn], nm); in fallible_resolve_collision()
962 *n = nn; in fallible_resolve_collision()
967 o_n = nn; in fallible_resolve_collision()
1023 int nn, err; in resolve_collision_directly() local
1026 nn = *n; in resolve_collision_directly()
1027 if (matches_position(&znode->zbranch[nn], lnum, offs)) in resolve_collision_directly()
1032 err = tnc_prev(c, &znode, &nn); in resolve_collision_directly()
1037 if (keys_cmp(c, &znode->zbranch[nn].key, key)) in resolve_collision_directly()
1039 if (matches_position(&znode->zbranch[nn], lnum, offs)) { in resolve_collision_directly()
1041 *n = nn; in resolve_collision_directly()
1048 nn = *n; in resolve_collision_directly()
1050 err = tnc_next(c, &znode, &nn); in resolve_collision_directly()
1055 if (keys_cmp(c, &znode->zbranch[nn].key, key)) in resolve_collision_directly()
1058 *n = nn; in resolve_collision_directly()
1059 if (matches_position(&znode->zbranch[nn], lnum, offs)) in resolve_collision_directly()
2975 int n, nn; in lookup_znode() local
3035 nn = n; in lookup_znode()
3059 n = nn; in lookup_znode()
3131 int n, found, err, nn; in is_leaf_node_in_tnc() local
3149 nn = n; in is_leaf_node_in_tnc()
3165 n = nn; in is_leaf_node_in_tnc()