Lines Matching refs:packet_len
480 unsigned int packet_number, status, packet_len;
494 SMC_GET_PKT_HDR(status, packet_len);
495 packet_len &= 0x07ff; /* mask off top bits */
498 packet_len, packet_len);
501 if (unlikely(packet_len < 6 || status & RS_ERRORS)) {
502 if (status & RS_TOOLONG && packet_len <= (1514 + 4 + 6)) {
507 if (packet_len < 6) {
510 dev->name, packet_len, status);
532 * Actual payload is packet_len - 6 (or 5 if odd byte).
537 * Hence packet_len - 6 + 2 + 2 + 2.
539 skb = dev_alloc_skb(packet_len);
557 * If odd length: packet_len - 5,
558 * otherwise packet_len - 6.
559 * With the trailing ctrl byte it's packet_len - 4.
561 data_len = packet_len - ((status & RS_ODDFRAME) ? 5 : 6);
563 SMC_PULL_DATA(data, packet_len - 4);
568 PRINT_PKT(data, packet_len - 4);