Lines Matching defs:pad
377 int pad;
402 * Compute the frame length and set pad to give an overall even
408 pad = (len & 1);
414 if (len + pad > ETHER_MAX_LEN - ETHER_CRC_LEN) {
424 * If HW padding is not turned on, then pad to ETHER_MIN_LEN.
427 pad = ETHER_MIN_LEN - ETHER_CRC_LEN - len;
431 length = pad + len;
534 while (pad > 1) {
536 pad -= 2;
538 if (pad)
596 int pad;
618 * Compute the frame length and set pad to give an overall even
624 pad = (len & 1);
630 if (len + pad > ETHER_MAX_LEN - ETHER_CRC_LEN) {
640 * If HW padding is not turned on, then pad to ETHER_MIN_LEN.
643 pad = ETHER_MIN_LEN - ETHER_CRC_LEN - len;
647 length = pad + len;
732 while (pad > 1) {
734 pad -= 2;
736 if (pad)