Lines Matching refs:pkt
42 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
92 struct archdr *pkt = pkthdr;
111 pkt = (struct archdr *) skb->data;
116 /* up to sizeof(pkt->soft) has already been copied from the card */
117 memcpy(pkt, pkthdr, sizeof(struct archdr));
118 if (length > sizeof(pkt->soft))
119 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft),
120 pkt->soft.raw + sizeof(pkt->soft),
121 length - sizeof(pkt->soft));
140 struct archdr *pkt = (struct archdr *) skb_push(skb, hdr_size);
149 pkt->hard.source = *dev->dev_addr;
154 pkt->hard.dest = 0;
158 pkt->hard.dest = daddr;
164 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
168 struct arc_hardware *hard = &pkt->hard;
195 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length);