Lines Matching refs:qhead

2119 static inline QDF_STATUS __qdf_nbuf_queue_init(__qdf_nbuf_queue_t *qhead)  in __qdf_nbuf_queue_init()  argument
2121 memset(qhead, 0, sizeof(struct __qdf_nbuf_qhead)); in __qdf_nbuf_queue_init()
2136 __qdf_nbuf_queue_add(__qdf_nbuf_queue_t *qhead, struct sk_buff *skb) in __qdf_nbuf_queue_add() argument
2140 if (!qhead->head) in __qdf_nbuf_queue_add()
2141 qhead->head = skb; in __qdf_nbuf_queue_add()
2143 qhead->tail->next = skb; in __qdf_nbuf_queue_add()
2145 qhead->tail = skb; in __qdf_nbuf_queue_add()
2146 qhead->qlen++; in __qdf_nbuf_queue_add()
2185 __qdf_nbuf_queue_insert_head(__qdf_nbuf_queue_t *qhead, __qdf_nbuf_t skb) in __qdf_nbuf_queue_insert_head() argument
2187 if (!qhead->head) { in __qdf_nbuf_queue_insert_head()
2189 qhead->tail = skb; in __qdf_nbuf_queue_insert_head()
2191 skb->next = qhead->head; in __qdf_nbuf_queue_insert_head()
2192 qhead->head = skb; in __qdf_nbuf_queue_insert_head()
2193 qhead->qlen++; in __qdf_nbuf_queue_insert_head()
2205 __qdf_nbuf_queue_remove_last(__qdf_nbuf_queue_t *qhead) in __qdf_nbuf_queue_remove_last() argument
2209 if (qhead->head) { in __qdf_nbuf_queue_remove_last()
2210 qhead->qlen--; in __qdf_nbuf_queue_remove_last()
2211 tmp_tail = qhead->tail; in __qdf_nbuf_queue_remove_last()
2212 node = qhead->head; in __qdf_nbuf_queue_remove_last()
2213 if (qhead->head == qhead->tail) { in __qdf_nbuf_queue_remove_last()
2214 qhead->head = NULL; in __qdf_nbuf_queue_remove_last()
2215 qhead->tail = NULL; in __qdf_nbuf_queue_remove_last()
2220 qhead->tail = node; in __qdf_nbuf_queue_remove_last()
2236 struct sk_buff *__qdf_nbuf_queue_remove(__qdf_nbuf_queue_t *qhead) in __qdf_nbuf_queue_remove() argument
2240 if (qhead->head) { in __qdf_nbuf_queue_remove()
2241 qhead->qlen--; in __qdf_nbuf_queue_remove()
2242 tmp = qhead->head; in __qdf_nbuf_queue_remove()
2243 if (qhead->head == qhead->tail) { in __qdf_nbuf_queue_remove()
2244 qhead->head = NULL; in __qdf_nbuf_queue_remove()
2245 qhead->tail = NULL; in __qdf_nbuf_queue_remove()
2247 qhead->head = tmp->next; in __qdf_nbuf_queue_remove()
2261 __qdf_nbuf_queue_first(__qdf_nbuf_queue_t *qhead) in __qdf_nbuf_queue_first() argument
2263 return qhead->head; in __qdf_nbuf_queue_first()
2273 __qdf_nbuf_queue_last(__qdf_nbuf_queue_t *qhead) in __qdf_nbuf_queue_last() argument
2275 return qhead->tail; in __qdf_nbuf_queue_last()
2284 static inline uint32_t __qdf_nbuf_queue_len(__qdf_nbuf_queue_t *qhead) in __qdf_nbuf_queue_len() argument
2286 return qhead->qlen; in __qdf_nbuf_queue_len()
2309 static inline bool __qdf_nbuf_is_queue_empty(__qdf_nbuf_queue_t *qhead) in __qdf_nbuf_is_queue_empty() argument
2311 return qhead->qlen == 0; in __qdf_nbuf_is_queue_empty()