Lines Matching refs:data
106 static void async_lcp_peek(struct asyncppp *ap, unsigned char *data,
256 * Read does nothing - no data is ever available this way.
507 * Procedure to encode the data for async serial transmission.
527 unsigned char *data;
534 data = ap->tpkt->data;
537 proto = get_unaligned_be16(data);
544 islcp = proto == PPP_LCP && 1 <= data[2] && data[2] <= 7;
548 async_lcp_peek(ap, data, count, 0);
578 c = data[i++];
638 * Push as much data as possible out to the tty.
773 p = skb->data;
785 p = skb->data;
821 /* Called when the tty driver has data for us. Runs parallel with the
936 * same data (this is checked using a 16-bit crc of the data).
943 static void async_lcp_peek(struct asyncppp *ap, unsigned char *data,
949 data += 2; /* skip protocol bytes */
953 code = data[0];
956 dlen = get_unaligned_be16(data + 2);
963 * calculate the crc of the data from the ID field on.
967 fcs = PPP_FCS(fcs, data[i]);
984 data += 4;
986 /* data[0] is code, data[1] is length */
987 while (dlen >= 2 && dlen >= data[1] && data[1] >= 2) {
988 switch (data[0]) {
990 val = get_unaligned_be16(data + 2);
997 val = get_unaligned_be32(data + 2);
1004 dlen -= data[1];
1005 data += data[1];