Lines Matching refs:head
42 static inline struct sym_quehead *sym_que_first(struct sym_quehead *head) in sym_que_first() argument
44 return (head->flink == head) ? 0 : head->flink; in sym_que_first()
47 static inline struct sym_quehead *sym_que_last(struct sym_quehead *head) in sym_que_last() argument
49 return (head->blink == head) ? 0 : head->blink; in sym_que_last()
69 static inline int sym_que_empty(struct sym_quehead *head) in sym_que_empty() argument
71 return head->flink == head; in sym_que_empty()
75 struct sym_quehead *head) in sym_que_splice() argument
81 struct sym_quehead *at = head->flink; in sym_que_splice()
83 first->blink = head; in sym_que_splice()
84 head->flink = first; in sym_que_splice()
117 #define sym_insque_head(new, head) __sym_que_add(new, head, (head)->flink) argument
119 static inline struct sym_quehead *sym_remque_head(struct sym_quehead *head) in sym_remque_head() argument
121 struct sym_quehead *elem = head->flink; in sym_remque_head()
123 if (elem != head) in sym_remque_head()
124 __sym_que_del(head, elem->flink); in sym_remque_head()
130 #define sym_insque_tail(new, head) __sym_que_add(new, (head)->blink, head) argument
132 static inline struct sym_quehead *sym_remque_tail(struct sym_quehead *head) in sym_remque_tail() argument
134 struct sym_quehead *elem = head->blink; in sym_remque_tail()
136 if (elem != head) in sym_remque_tail()
137 __sym_que_del(elem->blink, head); in sym_remque_tail()
146 #define FOR_EACH_QUEUED_ELEMENT(head, qp) \ argument
147 for (qp = (head)->flink; qp != (head); qp = qp->flink)