Lines Matching defs:hlist
9776 __find_swevent_head(struct swevent_hlist *hlist, u64 type, u32 event_id)
9780 return &hlist->heads[hash];
9787 struct swevent_hlist *hlist;
9789 hlist = rcu_dereference(swhash->swevent_hlist);
9790 if (!hlist)
9793 return __find_swevent_head(hlist, type, event_id);
9796 /* For the event head insertion and removal in the hlist */
9800 struct swevent_hlist *hlist;
9805 * Event scheduling is always serialized against hlist allocation
9809 hlist = rcu_dereference_protected(swhash->swevent_hlist,
9811 if (!hlist)
9814 return __find_swevent_head(hlist, type, event_id);
9925 /* Deref the hlist from the update side */
9935 struct swevent_hlist *hlist = swevent_hlist_deref(swhash);
9937 if (!hlist)
9941 kfree_rcu(hlist, rcu_head);
9972 struct swevent_hlist *hlist;
9974 hlist = kzalloc(sizeof(*hlist), GFP_KERNEL);
9975 if (!hlist) {
9979 rcu_assign_pointer(swhash->swevent_hlist, hlist);
13658 struct swevent_hlist *hlist;
13660 hlist = kzalloc_node(sizeof(*hlist), GFP_KERNEL, cpu_to_node(cpu));
13661 WARN_ON(!hlist);
13662 rcu_assign_pointer(swhash->swevent_hlist, hlist);