Lines Matching refs:tfp
35 struct frag_packet_list_entry *tfp, in frag_merge_packet() argument
47 tmp_skb = tfp->skb; in frag_merge_packet()
50 skb = tfp->skb; in frag_merge_packet()
61 tfp->skb = NULL; in frag_merge_packet()
62 tfp->seqno = 0; in frag_merge_packet()
63 list_move_tail(&tfp->list, head); in frag_merge_packet()
76 kfree_skb(tfp->skb); in frag_merge_packet()
82 struct frag_packet_list_entry *tfp; in frag_create_entry() local
87 tfp = list_entry((head)->prev, typeof(*tfp), list); in frag_create_entry()
88 kfree_skb(tfp->skb); in frag_create_entry()
90 tfp->seqno = ntohs(up->seqno); in frag_create_entry()
91 tfp->skb = skb; in frag_create_entry()
92 list_move(&tfp->list, head); in frag_create_entry()
99 struct frag_packet_list_entry *tfp; in frag_create_buffer() local
102 tfp = kmalloc(sizeof(*tfp), GFP_ATOMIC); in frag_create_buffer()
103 if (!tfp) { in frag_create_buffer()
107 tfp->skb = NULL; in frag_create_buffer()
108 tfp->seqno = 0; in frag_create_buffer()
109 INIT_LIST_HEAD(&tfp->list); in frag_create_buffer()
110 list_add(&tfp->list, head); in frag_create_buffer()
119 struct frag_packet_list_entry *tfp; in frag_search_packet() local
128 list_for_each_entry(tfp, head, list) { in frag_search_packet()
130 if (!tfp->skb) in frag_search_packet()
133 if (tfp->seqno == ntohs(up->seqno)) in frag_search_packet()
136 tmp_up = (struct unicast_frag_packet *)tfp->skb->data; in frag_search_packet()
138 if (tfp->seqno == search_seqno) { in frag_search_packet()
142 return tfp; in frag_search_packet()
150 list_move_tail(&tfp->list, head); in frag_search_packet()