Lines Matching refs:length
41 static int sb_eth_raw_send(struct udevice *dev, void *packet, int length) in sb_eth_raw_send() argument
45 debug("eth_sandbox_raw: Send packet %d\n", length); in sb_eth_raw_send()
62 length -= ETHER_HDR_SIZE; in sb_eth_raw_send()
64 return sandbox_eth_raw_os_send(packet, length, priv); in sb_eth_raw_send()
72 int length; in sb_eth_raw_recv() local
98 length = ARP_HDR_SIZE; in sb_eth_raw_recv()
104 retval = sandbox_eth_raw_os_recv(pktptr, &length, priv); in sb_eth_raw_recv()
107 if (!retval && length) { in sb_eth_raw_recv()
116 length += ETHER_HDR_SIZE; in sb_eth_raw_recv()
120 length); in sb_eth_raw_recv()
122 return length; in sb_eth_raw_recv()