Lines Matching defs:packet
28 * replaces the standard ethernet header in a packet so only actual
78 * packet depend only on whether it is on the IN or OUT endpoint. */
99 struct vl600_pkt_hdr *packet;
110 /* Allow a packet (or multiple packets batched together) to be
133 * otherwise we may run out of memory w/a bad packet */
157 if (buf->len < sizeof(*packet)) {
162 packet = (struct vl600_pkt_hdr *) buf->data;
163 packet_len = sizeof(*packet) + le32_to_cpup(&packet->len);
166 "Bad packet length stored in header\n");
171 * (sizeof(*packet) == sizeof(*ethhdr)), additionally
178 /* Copy the addresses from packet contents */
199 /* Not the last packet in this batch */
235 struct vl600_pkt_hdr *packet;
275 /* Packet header is same size as ethernet packet header
276 * (sizeof(*packet) == sizeof(struct ethhdr)), additionally the
280 packet = (struct vl600_pkt_hdr *) skb->data;
285 packet->h_proto = htons(ETH_P_IP);
286 memset(&packet->dummy, 0, sizeof(packet->dummy));
287 packet->len = cpu_to_le32(orig_len);