Lines Matching defs:lst
38 * lst: Pointer to list control structure.
43 * - lst != NULL.
46 static inline struct list_head *lst_first(struct lst_list *lst)
48 if (lst && !list_empty(&lst->head))
49 return lst->head.next;
67 * lst: Pointer to list control structure of list whose head
74 * - lst != NULL.
81 static inline struct list_head *lst_get_head(struct lst_list *lst)
85 if (!lst || list_empty(&lst->head))
88 elem_list = lst->head.next;
89 lst->head.next = elem_list->next;
90 elem_list->next->prev = &lst->head;
124 * lst: Pointer to list control structure.
130 * - lst != NULL.
135 static inline void lst_insert_before(struct lst_list *lst,
139 if (lst && elem_list && elem_existing)
149 * lst: Pointer to list control structure.
155 * - lst != NULL.
159 static inline struct list_head *lst_next(struct lst_list *lst,
162 if (lst && !list_empty(&lst->head) && cur_elem &&
163 (cur_elem->next != &lst->head))
182 * lst: Pointer to list control structure to which *elem_list will be
188 * *elem_list and *lst must both exist.
196 static inline void lst_put_tail(struct lst_list *lst,
199 if (lst && elem_list)
200 list_add_tail(elem_list, &lst->head);
209 * lst: Pointer to list control structure.
214 * - lst != NULL.
218 static inline void lst_remove_elem(struct lst_list *lst,
221 if (lst && !list_empty(&lst->head) && cur_elem)