Lines Matching refs:frag
1621 struct sk_buff *newfrag, *frag, *start, *nextf; in isdn_ppp_mp_receive() local
1684 if ((frag = mp->frags) == NULL || MP_LT(newseq, MP_SEQ(frag))) { in isdn_ppp_mp_receive()
1685 newfrag->next = frag; in isdn_ppp_mp_receive()
1686 mp->frags = frag = newfrag; in isdn_ppp_mp_receive()
1690 start = MP_FLAGS(frag) & MP_BEGIN_FRAG && in isdn_ppp_mp_receive()
1691 MP_SEQ(frag) == mp->seq ? frag : NULL; in isdn_ppp_mp_receive()
1717 thisseq = MP_SEQ(frag); in isdn_ppp_mp_receive()
1718 nextf = frag->next; in isdn_ppp_mp_receive()
1730 frag->next = nextf = newfrag; in isdn_ppp_mp_receive()
1736 if (start != frag && (MP_FLAGS(frag) & MP_BEGIN_FRAG)) { in isdn_ppp_mp_receive()
1741 start = isdn_ppp_mp_discard(mp, start, frag); in isdn_ppp_mp_receive()
1742 nextf = frag->next; in isdn_ppp_mp_receive()
1745 if (MP_FLAGS(frag) & MP_BEGIN_FRAG) in isdn_ppp_mp_receive()
1746 start = frag; in isdn_ppp_mp_receive()
1748 if (MP_FLAGS(frag) & MP_END_FRAG) in isdn_ppp_mp_receive()
1750 if (mp->frags == frag) in isdn_ppp_mp_receive()
1752 isdn_ppp_mp_free_skb(mp, frag); in isdn_ppp_mp_receive()
1753 frag = nextf; in isdn_ppp_mp_receive()
1762 if (start != NULL && (MP_FLAGS(frag) & MP_END_FRAG)) { in isdn_ppp_mp_receive()
1768 frag = NULL; in isdn_ppp_mp_receive()
1787 if (frag == NULL) { in isdn_ppp_mp_receive()
1800 if (nextf != NULL && frag != NULL && in isdn_ppp_mp_receive()
1816 frag = nextf; in isdn_ppp_mp_receive()
1820 mp->frags = frag; in isdn_ppp_mp_receive()
1827 frag = mp->frags->next; in isdn_ppp_mp_receive()
1829 mp->frags = frag; in isdn_ppp_mp_receive()
1837 struct sk_buff *frag = lp->netdev->pb->frags; in isdn_ppp_mp_cleanup() local
1839 while (frag) { in isdn_ppp_mp_cleanup()
1840 nextfrag = frag->next; in isdn_ppp_mp_cleanup()
1841 isdn_ppp_mp_free_skb(lp->netdev->pb, frag); in isdn_ppp_mp_cleanup()
1842 frag = nextfrag; in isdn_ppp_mp_cleanup()
1914 struct sk_buff *frag; in isdn_ppp_mp_reassembly() local
1917 for (tot_len = n = 0, frag = from; frag != to; frag = frag->next, n++) in isdn_ppp_mp_reassembly()
1918 tot_len += frag->len - MP_HEADER_LEN; in isdn_ppp_mp_reassembly()
1937 frag = from->next; in isdn_ppp_mp_reassembly()
1939 from = frag; in isdn_ppp_mp_reassembly()