Lines Matching refs:tophdr
312 flowacct_add_obj(list_head_t *tophdr, list_hdr_t *insert_point, void *obj) in flowacct_add_obj() argument
316 if (tophdr == NULL) { in flowacct_add_obj()
327 tophdr->nbr_items++; in flowacct_add_obj()
330 if (tophdr->head == NULL) { in flowacct_add_obj()
331 tophdr->head = new_hdr; in flowacct_add_obj()
332 tophdr->tail = new_hdr; in flowacct_add_obj()
336 new_hdr->next = tophdr->head; in flowacct_add_obj()
337 tophdr->head->prev = new_hdr; in flowacct_add_obj()
338 tophdr->head = new_hdr; in flowacct_add_obj()
342 if (insert_point == tophdr->tail) { in flowacct_add_obj()
343 tophdr->tail->next = new_hdr; in flowacct_add_obj()
344 new_hdr->prev = tophdr->tail; in flowacct_add_obj()
345 tophdr->tail = new_hdr; in flowacct_add_obj()
358 flowacct_del_obj(list_head_t *tophdr, list_hdr_t *hdr, uint_t mode) in flowacct_del_obj() argument
363 if ((tophdr == NULL) || (hdr == NULL)) { in flowacct_del_obj()
369 tophdr->nbr_items--; in flowacct_del_obj()
377 if (tophdr->head == hdr) { in flowacct_del_obj()
378 tophdr->head = hdr->next; in flowacct_del_obj()
380 if (tophdr->tail == hdr) { in flowacct_del_obj()
381 tophdr->tail = hdr->prev; in flowacct_del_obj()