tpl              1889 dev/pci/if_tht.c tht_pkt_alloc(struct tht_softc *sc, struct tht_pkt_list *tpl, int npkts,
tpl              1896 dev/pci/if_tht.c 	tpl->tpl_pkts = malloc(sizeof(struct tht_pkt) * npkts, M_DEVBUF,
tpl              1898 dev/pci/if_tht.c 	bzero(tpl->tpl_pkts, sizeof(struct tht_pkt) * npkts);
tpl              1900 dev/pci/if_tht.c 	TAILQ_INIT(&tpl->tpl_free);
tpl              1901 dev/pci/if_tht.c 	TAILQ_INIT(&tpl->tpl_used);
tpl              1903 dev/pci/if_tht.c 		pkt = &tpl->tpl_pkts[i];
tpl              1909 dev/pci/if_tht.c 			tht_pkt_free(sc, tpl);
tpl              1913 dev/pci/if_tht.c 		TAILQ_INSERT_TAIL(&tpl->tpl_free, pkt, tp_link);
tpl              1920 dev/pci/if_tht.c tht_pkt_free(struct tht_softc *sc, struct tht_pkt_list *tpl)
tpl              1925 dev/pci/if_tht.c 	while ((pkt = tht_pkt_get(tpl)) != NULL)
tpl              1927 dev/pci/if_tht.c 	free(tpl->tpl_pkts, M_DEVBUF);
tpl              1928 dev/pci/if_tht.c 	tpl->tpl_pkts = NULL;
tpl              1932 dev/pci/if_tht.c tht_pkt_put(struct tht_pkt_list *tpl, struct tht_pkt *pkt)
tpl              1934 dev/pci/if_tht.c 	TAILQ_REMOVE(&tpl->tpl_used, pkt, tp_link);
tpl              1935 dev/pci/if_tht.c 	TAILQ_INSERT_TAIL(&tpl->tpl_free, pkt, tp_link);
tpl              1939 dev/pci/if_tht.c tht_pkt_get(struct tht_pkt_list *tpl)
tpl              1943 dev/pci/if_tht.c 	pkt = TAILQ_FIRST(&tpl->tpl_free);
tpl              1945 dev/pci/if_tht.c 		TAILQ_REMOVE(&tpl->tpl_free, pkt, tp_link);
tpl              1946 dev/pci/if_tht.c 		TAILQ_INSERT_TAIL(&tpl->tpl_used, pkt, tp_link);
tpl              1954 dev/pci/if_tht.c tht_pkt_used(struct tht_pkt_list *tpl)
tpl              1956 dev/pci/if_tht.c 	return (TAILQ_FIRST(&tpl->tpl_used));