Lines Matching refs:h
43 static inline void INIT_HLIST_BL_NODE(struct hlist_bl_node *h) in INIT_HLIST_BL_NODE() argument
45 h->next = NULL; in INIT_HLIST_BL_NODE()
46 h->pprev = NULL; in INIT_HLIST_BL_NODE()
51 static inline int hlist_bl_unhashed(const struct hlist_bl_node *h) in hlist_bl_unhashed() argument
53 return !h->pprev; in hlist_bl_unhashed()
56 static inline struct hlist_bl_node *hlist_bl_first(struct hlist_bl_head *h) in hlist_bl_first() argument
59 ((unsigned long)h->first & ~LIST_BL_LOCKMASK); in hlist_bl_first()
62 static inline void hlist_bl_set_first(struct hlist_bl_head *h, in hlist_bl_set_first() argument
66 LIST_BL_BUG_ON(((unsigned long)h->first & LIST_BL_LOCKMASK) != in hlist_bl_set_first()
68 h->first = (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK); in hlist_bl_set_first()
71 static inline int hlist_bl_empty(const struct hlist_bl_head *h) in hlist_bl_empty() argument
73 return !((unsigned long)h->first & ~LIST_BL_LOCKMASK); in hlist_bl_empty()
77 struct hlist_bl_head *h) in hlist_bl_add_head() argument
79 struct hlist_bl_node *first = hlist_bl_first(h); in hlist_bl_add_head()
84 n->pprev = &h->first; in hlist_bl_add_head()
85 hlist_bl_set_first(h, n); in hlist_bl_add_head()