Lines Matching refs:packet_len
410 unsigned int packet_number, status, packet_len;
424 SMC_GET_PKT_HDR(lp, status, packet_len);
425 packet_len &= 0x07ff; /* mask off top bits */
427 packet_number, status, packet_len, packet_len);
430 if (unlikely(packet_len < 6 || status & RS_ERRORS)) {
431 if (status & RS_TOOLONG && packet_len <= (1514 + 4 + 6)) {
436 if (packet_len < 6) {
439 packet_len, status);
461 * Actual payload is packet_len - 6 (or 5 if odd byte).
466 * Hence packet_len - 6 + 2 + 2 + 2.
468 skb = netdev_alloc_skb(dev, packet_len);
484 * If odd length: packet_len - 5,
485 * otherwise packet_len - 6.
486 * With the trailing ctrl byte it's packet_len - 4.
488 data_len = packet_len - ((status & RS_ODDFRAME) ? 5 : 6);
490 SMC_PULL_DATA(lp, data, packet_len - 4);
495 PRINT_PKT(data, packet_len - 4);