Lines Matching refs:sys_dnode_t

54 typedef struct _dnode sys_dnode_t;  typedef
204 list->head = (sys_dnode_t *)list; in sys_dlist_init()
205 list->tail = (sys_dnode_t *)list; in sys_dlist_init()
219 static inline void sys_dnode_init(sys_dnode_t *node) in sys_dnode_init()
233 static inline bool sys_dnode_is_linked(const sys_dnode_t *node) in sys_dnode_is_linked()
247 static inline bool sys_dlist_is_head(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_is_head()
261 static inline bool sys_dlist_is_tail(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_is_tail()
302 static inline sys_dnode_t *sys_dlist_peek_head(sys_dlist_t *list) in sys_dlist_peek_head()
317 static inline sys_dnode_t *sys_dlist_peek_head_not_empty(sys_dlist_t *list) in sys_dlist_peek_head_not_empty()
333 static inline sys_dnode_t *sys_dlist_peek_next_no_check(sys_dlist_t *list, in sys_dlist_peek_next_no_check()
334 sys_dnode_t *node) in sys_dlist_peek_next_no_check()
349 static inline sys_dnode_t *sys_dlist_peek_next(sys_dlist_t *list, in sys_dlist_peek_next()
350 sys_dnode_t *node) in sys_dlist_peek_next()
367 static inline sys_dnode_t *sys_dlist_peek_prev_no_check(sys_dlist_t *list, in sys_dlist_peek_prev_no_check()
368 sys_dnode_t *node) in sys_dlist_peek_prev_no_check()
384 static inline sys_dnode_t *sys_dlist_peek_prev(sys_dlist_t *list, in sys_dlist_peek_prev()
385 sys_dnode_t *node) in sys_dlist_peek_prev()
398 static inline sys_dnode_t *sys_dlist_peek_tail(sys_dlist_t *list) in sys_dlist_peek_tail()
412 static inline void sys_dlist_append(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_append()
414 sys_dnode_t *const tail = list->tail; in sys_dlist_append()
432 static inline void sys_dlist_prepend(sys_dlist_t *list, sys_dnode_t *node) in sys_dlist_prepend()
434 sys_dnode_t *const head = list->head; in sys_dlist_prepend()
451 static inline void sys_dlist_insert(sys_dnode_t *successor, sys_dnode_t *node) in sys_dlist_insert()
453 sys_dnode_t *const prev = successor->prev; in sys_dlist_insert()
476 static inline void sys_dlist_insert_at(sys_dlist_t *list, sys_dnode_t *node, in sys_dlist_insert_at()
477 int (*cond)(sys_dnode_t *node, void *data), void *data) in sys_dlist_insert_at()
482 sys_dnode_t *pos = sys_dlist_peek_head(list); in sys_dlist_insert_at()
504 static inline void sys_dlist_remove(sys_dnode_t *node) in sys_dlist_remove()
506 sys_dnode_t *const prev = node->prev; in sys_dlist_remove()
507 sys_dnode_t *const next = node->next; in sys_dlist_remove()
524 static inline sys_dnode_t *sys_dlist_get(sys_dlist_t *list) in sys_dlist_get()
526 sys_dnode_t *node = NULL; in sys_dlist_get()
546 sys_dnode_t *node = NULL; in sys_dlist_len()