Lines Matching refs:LineBuf

1565 	eicon_OBJBUFFER LineBuf;  in idi_faxdata_rcv()  local
1593 LineBuf.Data = chan->fax2.abLine; in idi_faxdata_rcv()
1594 LineBuf.Size = sizeof(chan->fax2.abLine); in idi_faxdata_rcv()
1595 LineBuf.Len = chan->fax2.LineLen; in idi_faxdata_rcv()
1596 LineBuf.Next = LineBuf.Data + LineBuf.Len; in idi_faxdata_rcv()
1602 Length = LineBuf.Len + (InBuf.Size - InBuf.Len); in idi_faxdata_rcv()
1609 if (LineBuf.Len < Length) { in idi_faxdata_rcv()
1610 Length -= LineBuf.Len; in idi_faxdata_rcv()
1611 LineBuf.Len = 0; in idi_faxdata_rcv()
1612 LineBuf.Next = LineBuf.Data; in idi_faxdata_rcv()
1616 LineBuf.Len -= Length; in idi_faxdata_rcv()
1617 LineBuf.Next = LineBuf.Data + LineBuf.Len; in idi_faxdata_rcv()
1618 memmove(LineBuf.Data, LineBuf.Data + Length, LineBuf.Len); in idi_faxdata_rcv()
1625 Length = LineBuf.Len + (InBuf.Size - InBuf.Len); in idi_faxdata_rcv()
1630 if (LineBuf.Len == 0) { in idi_faxdata_rcv()
1631 *LineBuf.Next++ = *InBuf.Next++; in idi_faxdata_rcv()
1632 LineBuf.Len++; in idi_faxdata_rcv()
1635 if (LineBuf.Len == 1) { in idi_faxdata_rcv()
1636 *LineBuf.Next++ = *InBuf.Next++; in idi_faxdata_rcv()
1637 LineBuf.Len++; in idi_faxdata_rcv()
1640 PageHeaderLen = *(LineBuf.Data + 1); in idi_faxdata_rcv()
1648 if (LineBuf.Len < Length) { in idi_faxdata_rcv()
1649 aLength = Length - LineBuf.Len; in idi_faxdata_rcv()
1650 memcpy(LineBuf.Next, InBuf.Next, aLength); in idi_faxdata_rcv()
1651 LineBuf.Next += aLength; in idi_faxdata_rcv()
1653 LineBuf.Len += aLength; in idi_faxdata_rcv()
1657 ob_page = (eicon_sff_pagehead *)LineBuf.Data; in idi_faxdata_rcv()
1690 LineBuf.Len -= Length; in idi_faxdata_rcv()
1691 LineBuf.Next = LineBuf.Data + LineBuf.Len; in idi_faxdata_rcv()
1692 memmove(LineBuf.Data, LineBuf.Data + Length, LineBuf.Len); in idi_faxdata_rcv()
1699 Length = LineBuf.Len + (InBuf.Size - InBuf.Len); in idi_faxdata_rcv()
1704 if (LineBuf.Len == 0) { in idi_faxdata_rcv()
1705 *LineBuf.Next++ = *InBuf.Next++; in idi_faxdata_rcv()
1706 LineBuf.Len++; in idi_faxdata_rcv()
1709 Recordtype = *LineBuf.Data; in idi_faxdata_rcv()
1717 while (LineBuf.Len < ObjHeadLen) { in idi_faxdata_rcv()
1718 *LineBuf.Next++ = *InBuf.Next++; in idi_faxdata_rcv()
1719 LineBuf.Len++; in idi_faxdata_rcv()
1722 ObjDataLen = *((__u16*) (LineBuf.Data + 1)); in idi_faxdata_rcv()
1744 LineBuf.Len--; in idi_faxdata_rcv()
1745 LineBuf.Next = LineBuf.Data + LineBuf.Len; in idi_faxdata_rcv()
1746 memmove(LineBuf.Data, LineBuf.Data + 1, LineBuf.Len); in idi_faxdata_rcv()
1761 while (LineBuf.Len < ObjHeadLen) { in idi_faxdata_rcv()
1762 *LineBuf.Next++ = *InBuf.Next++; in idi_faxdata_rcv()
1763 LineBuf.Len++; in idi_faxdata_rcv()
1766 ObjDataLen = *(LineBuf.Data + 1); in idi_faxdata_rcv()
1770 LineBuf.Len -= ObjHeadLen; in idi_faxdata_rcv()
1771 LineBuf.Next = LineBuf.Data + LineBuf.Len; in idi_faxdata_rcv()
1772 memmove(LineBuf.Data, LineBuf.Data + ObjHeadLen, LineBuf.Len); in idi_faxdata_rcv()
1781 if (LineBuf.Len < Length) { in idi_faxdata_rcv()
1782 Length -= LineBuf.Len; in idi_faxdata_rcv()
1783 LineBuf.Len = 0; in idi_faxdata_rcv()
1784 LineBuf.Next = LineBuf.Data; in idi_faxdata_rcv()
1788 LineBuf.Len -= Length; in idi_faxdata_rcv()
1789 LineBuf.Next = LineBuf.Data + LineBuf.Len; in idi_faxdata_rcv()
1790 memmove(LineBuf.Data, LineBuf.Data + Length, LineBuf.Len); in idi_faxdata_rcv()
1796 if (LineBuf.Len > ObjHeadLen) { in idi_faxdata_rcv()
1797 fax_put_rcv(ccard, chan, LineBuf.Data + ObjHeadLen, in idi_faxdata_rcv()
1798 (LineBuf.Len - ObjHeadLen)); in idi_faxdata_rcv()
1800 Length -= LineBuf.Len; in idi_faxdata_rcv()
1801 LineBuf.Len = 0; in idi_faxdata_rcv()
1802 LineBuf.Next = LineBuf.Data; in idi_faxdata_rcv()
1814 if ((LineBuf.Len + Length) > LineBuf.Size) { in idi_faxdata_rcv()
1818 memcpy(LineBuf.Next, InBuf.Next, Length); in idi_faxdata_rcv()
1819 LineBuf.Len += Length; in idi_faxdata_rcv()
1822 chan->fax2.LineLen = LineBuf.Len; in idi_faxdata_rcv()
1860 eicon_OBJBUFFER LineBuf; in idi_faxdata_send() local
1904 LineBuf.Data = chan->fax2.abLine; in idi_faxdata_send()
1905 LineBuf.Size = sizeof(chan->fax2.abLine); in idi_faxdata_send()
1906 LineBuf.Len = chan->fax2.LineLen; in idi_faxdata_send()
1907 LineBuf.Next = LineBuf.Data + LineBuf.Len; in idi_faxdata_send()
1979 chan->fax2.NullBytesPos = LineBuf.Len; in idi_faxdata_send()
1985 if (LineBuf.Len < LineBuf.Size) { in idi_faxdata_send()
1986 *LineBuf.Next++ = Byte; in idi_faxdata_send()
1987 LineBuf.Len++; in idi_faxdata_send()
2001 chan->fax2.NullBytesPos = LineBuf.Len; in idi_faxdata_send()
2007 if (LineBuf.Len < LineBuf.Size) { in idi_faxdata_send()
2008 *LineBuf.Next++ = Byte; in idi_faxdata_send()
2009 LineBuf.Len++; in idi_faxdata_send()
2028 chan->fax2.NullBytesPos = LineBuf.Len; in idi_faxdata_send()
2034 if (LineBuf.Len < LineBuf.Size) { in idi_faxdata_send()
2035 *LineBuf.Next++ = Byte; in idi_faxdata_send()
2036 LineBuf.Len++; in idi_faxdata_send()
2043 LineBuf.Len = 0; in idi_faxdata_send()
2045 LineBuf.Len = chan->fax2.NullBytesPos + 1; in idi_faxdata_send()
2048 if (LineBuf.Len > 0) { in idi_faxdata_send()
2049 if (OutBuf.Len + LineBuf.Len + SFF_LEN_FLD_SIZE > OutBuf.Size) { in idi_faxdata_send()
2052 if (LineBuf.Len <= 216) { in idi_faxdata_send()
2053 *OutBuf.Next++ = (__u8) LineBuf.Len; in idi_faxdata_send()
2057 *(__u16 *) OutBuf.Next = (__u16) LineBuf.Len; in idi_faxdata_send()
2061 memcpy(OutBuf.Next, LineBuf.Data, LineBuf.Len); in idi_faxdata_send()
2062 OutBuf.Next += LineBuf.Len; in idi_faxdata_send()
2063 OutBuf.Len += LineBuf.Len; in idi_faxdata_send()
2065 LineBuf.Len = 0; in idi_faxdata_send()
2066 LineBuf.Next = LineBuf.Data; in idi_faxdata_send()
2087 chan->fax2.LineLen = LineBuf.Len; in idi_faxdata_send()