Lines Matching refs:inode
426 struct key_vector *inode = get_child(tn, --i); in update_children() local
428 if (!inode) in update_children()
435 if (node_parent(inode) == tn) in update_children()
436 update_children(inode); in update_children()
438 node_set_parent(inode, tn); in update_children()
500 struct key_vector *inode = get_child(tn, --i); in replace() local
503 if (tnode_full(tn, inode)) in replace()
504 tn = resize(t, inode); in replace()
532 struct key_vector *inode = get_child(oldtnode, --i); in inflate() local
537 if (!inode) in inflate()
541 if (!tnode_full(oldtnode, inode)) { in inflate()
542 put_child(tn, get_index(inode->key, tn), inode); in inflate()
547 tnode_free_append(oldtnode, inode); in inflate()
550 if (inode->bits == 1) { in inflate()
551 put_child(tn, 2 * i + 1, get_child(inode, 1)); in inflate()
552 put_child(tn, 2 * i, get_child(inode, 0)); in inflate()
570 node1 = tnode_new(inode->key | m, inode->pos, inode->bits - 1); in inflate()
573 node0 = tnode_new(inode->key, inode->pos, inode->bits - 1); in inflate()
581 for (k = child_length(inode), j = k / 2; j;) { in inflate()
582 put_child(node1, --j, get_child(inode, --k)); in inflate()
583 put_child(node0, j, get_child(inode, j)); in inflate()
584 put_child(node1, --j, get_child(inode, --k)); in inflate()
585 put_child(node0, j, get_child(inode, j)); in inflate()
629 struct key_vector *inode; in halve() local
638 inode = tnode_new(node0->key, oldtnode->pos, 1); in halve()
639 if (!inode) in halve()
641 tnode_free_append(tn, inode); in halve()
644 put_child(inode, 1, node1); in halve()
645 put_child(inode, 0, node0); in halve()
646 NODE_INIT_PARENT(inode, tn); in halve()
649 put_child(tn, i / 2, inode); in halve()
2262 static int fib_triestat_seq_open(struct inode *inode, struct file *file) in fib_triestat_seq_open() argument
2264 return single_open_net(inode, file, fib_triestat_seq_show); in fib_triestat_seq_open()
2448 static int fib_trie_seq_open(struct inode *inode, struct file *file) in fib_trie_seq_open() argument
2450 return seq_open_net(inode, file, &fib_trie_seq_ops, in fib_trie_seq_open()
2642 static int fib_route_seq_open(struct inode *inode, struct file *file) in fib_route_seq_open() argument
2644 return seq_open_net(inode, file, &fib_route_seq_ops, in fib_route_seq_open()