Home
last modified time | relevance | path

Searched refs:packet_len (Results 1 – 7 of 7) sorted by relevance

/u-boot/drivers/usb/eth/
A Dasix.c482 memcpy(msg, &packet_len, sizeof(packet_len)); in asix_send_common()
553 memcpy(&packet_len, buf_ptr, sizeof(packet_len)); in asix_recv()
557 packet_len, (~packet_len >> 16) & 0x7ff, in asix_recv()
561 packet_len = packet_len & 0x7ff; in asix_recv()
562 if (packet_len > actual_len - sizeof(packet_len)) { in asix_recv()
574 actual_len -= sizeof(packet_len) + packet_len; in asix_recv()
575 buf_ptr += sizeof(packet_len) + packet_len; in asix_recv()
793 memcpy(&packet_len, ptr, sizeof(packet_len)); in asix_eth_recv()
797 packet_len, (~packet_len >> 16) & 0x7ff, in asix_eth_recv()
801 packet_len = packet_len & 0x7ff; in asix_eth_recv()
[all …]
A Dsmsc95xx.c743 u32 packet_len; in smsc95xx_recv() local
772 memcpy(&packet_len, buf_ptr, sizeof(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()
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
989 memcpy(&packet_len, ptr, sizeof(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()
[all …]
A Dlan7x.c429 u32 packet_len = 0; in lan7x_eth_recv() local
449 if (len < sizeof(packet_len)) { in lan7x_eth_recv()
459 packet_len = (u16) (rx_cmd_a & RX_CMD_A_LEN_MASK); in lan7x_eth_recv()
461 if (packet_len > len - sizeof(packet_len)) { in lan7x_eth_recv()
462 debug("Rx: too large packet: %d\n", packet_len); in lan7x_eth_recv()
473 return packet_len; in lan7x_eth_recv()
480 int lan7x_free_pkt(struct udevice *dev, uchar *packet, int packet_len) in lan7x_free_pkt() argument
484 packet_len = ALIGN(packet_len, 4); in lan7x_free_pkt()
485 usb_ether_advance_rxbuf(&priv->ueth, sizeof(u32) + packet_len); in lan7x_free_pkt()
A Dasix88179.c473 u32 packet_len, tx_hdr2; in asix_send_common() local
476 PKTSIZE + (2 * sizeof(packet_len))); in asix_send_common()
480 packet_len = length; in asix_send_common()
481 cpu_to_le32s(&packet_len); in asix_send_common()
483 memcpy(msg, &packet_len, sizeof(packet_len)); in asix_send_common()
491 memcpy(msg + sizeof(packet_len), &tx_hdr2, sizeof(tx_hdr2)); in asix_send_common()
493 memcpy(msg + sizeof(packet_len) + sizeof(tx_hdr2), in asix_send_common()
499 length + sizeof(packet_len) + sizeof(tx_hdr2), in asix_send_common()
503 length + sizeof(packet_len), actual_len, err); in asix_send_common()
847 static int ax88179_free_pkt(struct udevice *dev, uchar *packet, int packet_len) in ax88179_free_pkt() argument
A Dr8152.c1505 u16 packet_len; in r8152_recv() local
1534 packet_len -= CRC_SIZE; in r8152_recv()
1536 net_process_received_packet(pkt_ptr, packet_len); in r8152_recv()
1539 (packet_len + sizeof(struct rx_desc) + CRC_SIZE); in r8152_recv()
1750 u16 packet_len; in r8152_eth_recv() local
1767 packet_len -= CRC_SIZE; in r8152_eth_recv()
1770 debug("Rx: too large packet: %d\n", packet_len); in r8152_eth_recv()
1775 return packet_len; in r8152_eth_recv()
1786 packet_len += sizeof(struct rx_desc) + CRC_SIZE; in r8152_free_pkt()
1787 packet_len = ALIGN(packet_len, 8); in r8152_free_pkt()
[all …]
A Dmcs7830.c883 static int mcs7830_free_pkt(struct udevice *dev, uchar *packet, int packet_len) in mcs7830_free_pkt() argument
887 packet_len = ALIGN(packet_len, 4); in mcs7830_free_pkt()
888 usb_ether_advance_rxbuf(&priv->ueth, sizeof(u32) + packet_len); in mcs7830_free_pkt()
A Dlan7x.h235 int lan7x_free_pkt(struct udevice *dev, uchar *packet, int packet_len);

Completed in 17 milliseconds