Lines Matching refs:entry
34 static inline void resource_list_add(struct resource_entry *entry, in resource_list_add() argument
37 list_add(&entry->node, head); in resource_list_add()
40 static inline void resource_list_add_tail(struct resource_entry *entry, in resource_list_add_tail() argument
43 list_add_tail(&entry->node, head); in resource_list_add_tail()
46 static inline void resource_list_del(struct resource_entry *entry) in resource_list_del() argument
48 list_del(&entry->node); in resource_list_del()
51 static inline void resource_list_free_entry(struct resource_entry *entry) in resource_list_free_entry() argument
53 kfree(entry); in resource_list_free_entry()
57 resource_list_destroy_entry(struct resource_entry *entry) in resource_list_destroy_entry() argument
59 resource_list_del(entry); in resource_list_destroy_entry()
60 resource_list_free_entry(entry); in resource_list_destroy_entry()
63 #define resource_list_for_each_entry(entry, list) \ argument
64 list_for_each_entry((entry), (list), node)
66 #define resource_list_for_each_entry_safe(entry, tmp, list) \ argument
67 list_for_each_entry_safe((entry), (tmp), (list), node)
72 struct resource_entry *entry; in resource_list_first_type() local
74 resource_list_for_each_entry(entry, list) { in resource_list_first_type()
75 if (resource_type(entry->res) == type) in resource_list_first_type()
76 return entry; in resource_list_first_type()