Lines Matching defs:pkt
44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
89 struct archdr *pkt = (struct archdr *)skb->data;
90 struct arc_rfc1051 *soft = &pkt->soft.rfc1051;
97 if (pkt->hard.dest == 0) {
101 if (pkt->hard.dest != dev->dev_addr[0])
126 struct archdr *pkt = pkthdr;
144 pkt = (struct archdr *)skb->data;
146 /* up to sizeof(pkt->soft) has already been copied from the card */
147 memcpy(pkt, pkthdr, sizeof(struct archdr));
148 if (length > sizeof(pkt->soft))
149 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft),
150 pkt->soft.raw + sizeof(pkt->soft),
151 length - sizeof(pkt->soft));
165 struct archdr *pkt = skb_push(skb, hdr_size);
166 struct arc_rfc1051 *soft = &pkt->soft.rfc1051;
190 pkt->hard.source = *dev->dev_addr;
198 pkt->hard.dest = 0;
202 pkt->hard.dest = daddr;
207 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
211 struct arc_hardware *hard = &pkt->hard;
237 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length);