Lines Matching refs:pkt
29 static int cfserl_receive(struct cflayer *layr, struct cfpkt *pkt);
30 static int cfserl_transmit(struct cflayer *layr, struct cfpkt *pkt);
57 struct cfpkt *pkt = NULL; in cfserl_receive() local
71 pkt = layr->incomplete_frm; in cfserl_receive()
72 if (pkt == NULL) { in cfserl_receive()
77 pkt = newpkt; in cfserl_receive()
84 cfpkt_extr_head(pkt, &tmp8, 1); in cfserl_receive()
86 while (cfpkt_more(pkt) in cfserl_receive()
88 cfpkt_extr_head(pkt, &tmp8, 1); in cfserl_receive()
90 if (!cfpkt_more(pkt)) { in cfserl_receive()
91 cfpkt_destroy(pkt); in cfserl_receive()
99 pkt_len = cfpkt_getlen(pkt); in cfserl_receive()
109 cfpkt_add_head(pkt, &stx, 1); in cfserl_receive()
110 layr->incomplete_frm = pkt; in cfserl_receive()
119 cfpkt_peek_head(pkt, &tmp, 2); in cfserl_receive()
127 if (pkt != NULL) in cfserl_receive()
128 cfpkt_destroy(pkt); in cfserl_receive()
140 cfpkt_add_head(pkt, &stx, 1); in cfserl_receive()
141 layr->incomplete_frm = pkt; in cfserl_receive()
151 tail_pkt = cfpkt_split(pkt, expectlen); in cfserl_receive()
157 ret = layr->layer.up->receive(layr->layer.up, pkt); in cfserl_receive()
162 pkt = cfpkt_append(pkt, tail_pkt, 0); in cfserl_receive()
166 cfpkt_destroy(pkt); in cfserl_receive()
167 pkt = NULL; in cfserl_receive()
171 pkt = tail_pkt; in cfserl_receive()
173 } while (pkt != NULL); in cfserl_receive()