Lines Matching refs:inode
457 struct key_vector *inode = get_child(tn, --i); in update_children() local
459 if (!inode) in update_children()
466 if (node_parent(inode) == tn) in update_children()
467 update_children(inode); in update_children()
469 node_set_parent(inode, tn); in update_children()
531 struct key_vector *inode = get_child(tn, --i); in replace() local
534 if (tnode_full(tn, inode)) in replace()
535 tn = resize(t, inode); in replace()
563 struct key_vector *inode = get_child(oldtnode, --i); in inflate() local
568 if (!inode) in inflate()
572 if (!tnode_full(oldtnode, inode)) { in inflate()
573 put_child(tn, get_index(inode->key, tn), inode); in inflate()
578 tnode_free_append(oldtnode, inode); in inflate()
581 if (inode->bits == 1) { in inflate()
582 put_child(tn, 2 * i + 1, get_child(inode, 1)); in inflate()
583 put_child(tn, 2 * i, get_child(inode, 0)); in inflate()
601 node1 = tnode_new(inode->key | m, inode->pos, inode->bits - 1); in inflate()
604 node0 = tnode_new(inode->key, inode->pos, inode->bits - 1); in inflate()
612 for (k = child_length(inode), j = k / 2; j;) { in inflate()
613 put_child(node1, --j, get_child(inode, --k)); in inflate()
614 put_child(node0, j, get_child(inode, j)); in inflate()
615 put_child(node1, --j, get_child(inode, --k)); in inflate()
616 put_child(node0, j, get_child(inode, j)); in inflate()
660 struct key_vector *inode; in halve() local
669 inode = tnode_new(node0->key, oldtnode->pos, 1); in halve()
670 if (!inode) in halve()
672 tnode_free_append(tn, inode); in halve()
675 put_child(inode, 1, node1); in halve()
676 put_child(inode, 0, node0); in halve()
677 NODE_INIT_PARENT(inode, tn); in halve()
680 put_child(tn, i / 2, inode); in halve()
2346 static int fib_triestat_seq_open(struct inode *inode, struct file *file) in fib_triestat_seq_open() argument
2348 return single_open_net(inode, file, fib_triestat_seq_show); in fib_triestat_seq_open()
2532 static int fib_trie_seq_open(struct inode *inode, struct file *file) in fib_trie_seq_open() argument
2534 return seq_open_net(inode, file, &fib_trie_seq_ops, in fib_trie_seq_open()
2726 static int fib_route_seq_open(struct inode *inode, struct file *file) in fib_route_seq_open() argument
2728 return seq_open_net(inode, file, &fib_route_seq_ops, in fib_route_seq_open()