Lines Matching refs:packet
79 int (*send)(struct udevice *dev, void *packet, int length);
81 int (*free_pkt)(struct udevice *dev, uchar *packet, int length);
102 The **send** function does what you think -- transmit the specified packet
103 whose size is specified by length (in bytes). The packet buffer can (and
110 then just queue the copied packet (for instance handing it over to a DMA
115 The **recv** function polls for availability of a new packet. If none is
117 If a packet has been received, make sure it is accessible to the CPU
120 long packet), return 0 if you require the packet to be cleaned up normally,
122 The U-Boot network stack will then process the packet.
124 If **free_pkt** is defined, U-Boot will call it after a received packet has
125 been processed, so the packet buffer can be freed or recycled. Typically you
126 would hand it back to the hardware to acquire another packet. free_pkt() will
127 be called after recv(), for the same packet, so you don't necessarily need
128 to infer the buffer to free from the ``packet`` pointer, but can rely on that
129 being the last packet that recv() handled.
130 The common code sets up packet buffers for you already in the .bss
153 (process packet)
209 each packet it must call the net_process_received_packet() function,
211 the packet, before checking for new data.
214 function into the actual new recv() function, just fetching **one** packet,
215 remove the call to net_process_received_packet(), then move the packet