Lines Matching refs:packet_length
415 static int smc_send(struct eth_device *dev, void *packet, int packet_length) in smc_send() argument
434 length = ETH_ZLEN < packet_length ? packet_length : ETH_ZLEN; in smc_send()
669 word packet_length; in smc_rcv() local
697 packet_length = stat_len >> 16; in smc_rcv()
700 packet_length = SMC_inw( dev, SMC91111_DATA_REG ); in smc_rcv()
703 packet_length &= 0x07ff; /* mask off top bits */ in smc_rcv()
705 PRINTK2("RCV: STATUS %4x LENGTH %4x\n", status, packet_length ); in smc_rcv()
709 packet_length -= 4; /*4; */ in smc_rcv()
719 packet_length >> 2, packet_length & 3 ); in smc_rcv()
725 packet_length >> 2); in smc_rcv()
727 if (packet_length & 3) { in smc_rcv()
731 (packet_length & ~3)); in smc_rcv()
733 for (i=0; i<(packet_length & 3); i++) in smc_rcv()
738 (packet_length >> 1 ), packet_length & 1 ); in smc_rcv()
740 packet_length >> 1); in smc_rcv()
746 print_packet(net_rx_packets[0], packet_length); in smc_rcv()
769 net_process_received_packet(net_rx_packets[0], packet_length); in smc_rcv()
770 return packet_length; in smc_rcv()