Lines Matching refs:packet_len

743 	u32 packet_len;  in smsc95xx_recv()  local
768 if (actual_len < sizeof(packet_len)) { in smsc95xx_recv()
772 memcpy(&packet_len, buf_ptr, sizeof(packet_len)); in smsc95xx_recv()
773 le32_to_cpus(&packet_len); in smsc95xx_recv()
774 if (packet_len & RX_STS_ES_) { in smsc95xx_recv()
775 debug("Rx: Error header=%#x", packet_len); in smsc95xx_recv()
778 packet_len = ((packet_len & RX_STS_FL_) >> 16); in smsc95xx_recv()
780 if (packet_len > actual_len - sizeof(packet_len)) { in smsc95xx_recv()
781 debug("Rx: too large packet: %d\n", packet_len); in smsc95xx_recv()
786 net_process_received_packet(buf_ptr + sizeof(packet_len), in smsc95xx_recv()
787 packet_len - 4); in smsc95xx_recv()
790 actual_len -= sizeof(packet_len) + packet_len; in smsc95xx_recv()
791 buf_ptr += sizeof(packet_len) + packet_len; in smsc95xx_recv()
966 u32 packet_len; in smsc95xx_eth_recv() local
985 if (len < sizeof(packet_len)) { in smsc95xx_eth_recv()
989 memcpy(&packet_len, ptr, sizeof(packet_len)); in smsc95xx_eth_recv()
990 le32_to_cpus(&packet_len); in smsc95xx_eth_recv()
991 if (packet_len & RX_STS_ES_) { in smsc95xx_eth_recv()
992 debug("Rx: Error header=%#x", packet_len); in smsc95xx_eth_recv()
995 packet_len = ((packet_len & RX_STS_FL_) >> 16); in smsc95xx_eth_recv()
997 if (packet_len > len - sizeof(packet_len)) { in smsc95xx_eth_recv()
998 debug("Rx: too large packet: %d\n", packet_len); in smsc95xx_eth_recv()
1002 *packetp = ptr + sizeof(packet_len); in smsc95xx_eth_recv()
1003 return packet_len - 4; in smsc95xx_eth_recv()
1010 static int smsc95xx_free_pkt(struct udevice *dev, uchar *packet, int packet_len) in smsc95xx_free_pkt() argument
1014 packet_len = ALIGN(packet_len + sizeof(u32), 4); in smsc95xx_free_pkt()
1015 usb_ether_advance_rxbuf(&priv->ueth, sizeof(u32) + packet_len); in smsc95xx_free_pkt()