Lines Matching refs:sp_node
2890 static struct sp_node *sp_lookup(struct shared_policy *sp, in sp_lookup()
2896 struct sp_node *p = rb_entry(n, struct sp_node, nd); in sp_lookup()
2908 struct sp_node *w = NULL; in sp_lookup()
2912 w = rb_entry(prev, struct sp_node, nd); in sp_lookup()
2917 return rb_entry(n, struct sp_node, nd); in sp_lookup()
2924 static void sp_insert(struct shared_policy *sp, struct sp_node *new) in sp_insert()
2928 struct sp_node *nd; in sp_insert()
2932 nd = rb_entry(parent, struct sp_node, nd); in sp_insert()
2949 struct sp_node *sn; in mpol_shared_policy_lookup()
2964 static void sp_free(struct sp_node *n) in sp_free()
3098 static void sp_delete(struct shared_policy *sp, struct sp_node *n) in sp_delete()
3104 static void sp_node_init(struct sp_node *node, unsigned long start, in sp_node_init()
3112 static struct sp_node *sp_alloc(unsigned long start, unsigned long end, in sp_alloc()
3115 struct sp_node *n; in sp_alloc()
3135 pgoff_t end, struct sp_node *new) in shared_policy_replace()
3137 struct sp_node *n; in shared_policy_replace()
3138 struct sp_node *n_new = NULL; in shared_policy_replace()
3172 n = rb_entry(next, struct sp_node, nd); in shared_policy_replace()
3218 struct sp_node *sn; in mpol_shared_policy_init()
3254 struct sp_node *new = NULL; in mpol_set_shared_policy()
3272 struct sp_node *n; in mpol_free_shared_policy()
3280 n = rb_entry(next, struct sp_node, nd); in mpol_free_shared_policy()
3346 sizeof(struct sp_node), in numa_policy_init()