Home
last modified time | relevance | path

Searched refs:klist_node (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/include/linux/
H A Dklist.h17 struct klist_node;
21 void (*get)(struct klist_node *);
22 void (*put)(struct klist_node *);
34 extern void klist_init(struct klist *k, void (*get)(struct klist_node *),
35 void (*put)(struct klist_node *));
37 struct klist_node { struct
43 extern void klist_add_tail(struct klist_node *n, struct klist *k); argument
44 extern void klist_add_head(struct klist_node *n, struct klist *k);
45 extern void klist_add_behind(struct klist_node *n, struct klist_node *pos);
46 extern void klist_add_before(struct klist_node *n, struct klist_node *pos);
[all …]
/openbmc/linux/lib/
H A Dklist.c47 static struct klist *knode_klist(struct klist_node *knode) in knode_klist()
53 static bool knode_dead(struct klist_node *knode) in knode_dead()
58 static void knode_set_klist(struct klist_node *knode, struct klist *klist) in knode_set_klist()
65 static void knode_kill(struct klist_node *knode) in knode_kill()
84 void klist_init(struct klist *k, void (*get)(struct klist_node *), in klist_init() argument
85 void (*put)(struct klist_node *)) in klist_init() argument
94 static void add_head(struct klist *k, struct klist_node *n) in add_head()
101 static void add_tail(struct klist *k, struct klist_node *n) in add_tail()
108 static void klist_node_init(struct klist *k, struct klist_node *n) in klist_node_init()
122 void klist_add_head(struct klist_node *n, struct klist *k) in klist_add_head()
[all …]
H A Dlist-test.c1207 struct klist_node klist_node; member
1211 static struct klist_node *last_node;
1213 static void check_node(struct klist_node *node_ptr) in check_node()
1219 static void check_delete_node(struct klist_node *node_ptr) in check_delete_node()
1227 struct klist_node a, b; in klist_test_add_tail()
1255 struct klist_node a, b; in klist_test_add_head()
1283 struct klist_node a, b, c, d; in klist_test_add_behind()
1316 struct klist_node a, b, c, d; in klist_test_add_before()
1352 struct klist_node a, b, c, d; in klist_test_del_refcount_greater_than_zero()
1403 struct klist_node a, b, c, d; in klist_test_del_refcount_zero()
[all …]
/openbmc/linux/drivers/base/
H A Dbase.h81 struct klist_node knode_bus;
110 struct klist_node knode_parent;
111 struct klist_node knode_driver;
112 struct klist_node knode_bus;
113 struct klist_node knode_class;
H A Dattribute_container.c26 struct klist_node node;
31 static void internal_container_klist_get(struct klist_node *n) in internal_container_klist_get()
38 static void internal_container_klist_put(struct klist_node *n) in internal_container_klist_put()
184 struct klist_node *n = klist_next(iter); \
H A Dclass.c158 static struct device *klist_class_to_dev(struct klist_node *n) in klist_class_to_dev()
164 static void klist_class_dev_get(struct klist_node *n) in klist_class_dev_get()
171 static void klist_class_dev_put(struct klist_node *n) in klist_class_dev_put()
315 struct klist_node *start_knode = NULL; in class_dev_iter_init()
342 struct klist_node *knode; in class_dev_iter_next()
H A Dbus.c326 struct klist_node *n = klist_next(i); in next_device()
416 struct klist_node *n = klist_next(i); in next_driver()
804 static void klist_devices_get(struct klist_node *n) in klist_devices_get()
812 static void klist_devices_put(struct klist_node *n) in klist_devices_put()
1028 struct klist_node *n; in device_insertion_sort_klist()
1050 struct klist_node *n, *tmp; in bus_sort_breadthfirst()
1091 struct klist_node *start_knode = NULL; in subsys_dev_iter_init()
1113 struct klist_node *knode; in subsys_dev_iter_next()
H A Ddriver.c22 struct klist_node *n = klist_next(i); in next_device()
H A Dcore.c3087 static void klist_children_get(struct klist_node *n) in klist_children_get()
3095 static void klist_children_put(struct klist_node *n) in klist_children_put()
3893 struct klist_node *n = klist_prev(i); in prev_device()
3906 struct klist_node *n = klist_next(i); in next_device()