Lines Matching refs:pList
43 #define DL_LIST_INIT(pList) \ argument
44 {(pList)->pPrev = pList; (pList)->pNext = pList; }
47 #define DL_LIST_INIT_AND_ADD(pList, pItem) \ argument
48 { (pList)->pPrev = (pItem); \
49 (pList)->pNext = (pItem); \
50 (pItem)->pNext = (pList); \
51 (pItem)->pPrev = (pList); \
54 #define DL_LIST_IS_EMPTY(pList) (((pList)->pPrev == (pList)) && \ argument
55 ((pList)->pNext == (pList)))
56 #define DL_LIST_GET_ITEM_AT_HEAD(pList) (pList)->pNext argument
57 #define DL_LIST_GET_ITEM_AT_TAIL(pList) (pList)->pPrev argument
67 static inline bool dl_list_is_entry_in_list(const DL_LIST *pList, in dl_list_is_entry_in_list() argument
72 if (pList == pEntry) in dl_list_is_entry_in_list()
75 ITERATE_OVER_LIST(pList, pTmp) { in dl_list_is_entry_in_list()
102 static inline PDL_LIST dl_list_insert_tail(PDL_LIST pList, PDL_LIST pAdd) in dl_list_insert_tail() argument
105 pAdd->pPrev = pList->pPrev; in dl_list_insert_tail()
106 pAdd->pNext = pList; in dl_list_insert_tail()
107 if (pList->pPrev) in dl_list_insert_tail()
108 pList->pPrev->pNext = pAdd; in dl_list_insert_tail()
109 pList->pPrev = pAdd; in dl_list_insert_tail()
116 static inline PDL_LIST dl_list_insert_head(PDL_LIST pList, PDL_LIST pAdd) in dl_list_insert_head() argument
119 pAdd->pPrev = pList; in dl_list_insert_head()
120 pAdd->pNext = pList->pNext; in dl_list_insert_head()
121 pList->pNext->pPrev = pAdd; in dl_list_insert_head()
122 pList->pNext = pAdd; in dl_list_insert_head()
126 #define DL_ListAdd(pList, pItem) dl_list_insert_head((pList), (pItem)) argument
145 static inline PDL_LIST dl_list_remove_item_from_head(PDL_LIST pList) in dl_list_remove_item_from_head() argument
149 if (pList->pNext != pList) { in dl_list_remove_item_from_head()
150 pItem = pList->pNext; in dl_list_remove_item_from_head()
157 static inline PDL_LIST dl_list_remove_item_from_tail(PDL_LIST pList) in dl_list_remove_item_from_tail() argument
161 if (pList->pPrev != pList) { in dl_list_remove_item_from_tail()
162 pItem = pList->pPrev; in dl_list_remove_item_from_tail()