Lines Matching refs:nd
26 entry->thread = rb_entry(nd, struct thread, rb_node);
37 struct rb_node *nd;
39 resort_rb__for_each_entry(nd, threads) {
60 static void __name##_sorted__init_entry(struct rb_node *nd, \
73 struct __name##_sorted_entry nd[0]; \
94 struct rb_node *nd; \
96 for (nd = rb_first(entries); nd; nd = rb_next(nd)) { \
97 struct __name##_sorted_entry *snd = &sorted->nd[i++]; \
98 __name##_sorted__init_entry(nd, snd); \
107 sorted = malloc(sizeof(*sorted) + sizeof(sorted->nd[0]) * nr_entries); \
120 static void __name##_sorted__init_entry(struct rb_node *nd, \