Lines Matching refs:pkt
42 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
92 struct archdr *pkt = (struct archdr *) skb->data;
93 struct arc_rfc1051 *soft = &pkt->soft.rfc1051;
100 if (pkt->hard.dest == 0)
104 if (pkt->hard.dest != dev->dev_addr[0])
130 struct archdr *pkt = pkthdr;
149 pkt = (struct archdr *) skb->data;
151 /* up to sizeof(pkt->soft) has already been copied from the card */
152 memcpy(pkt, pkthdr, sizeof(struct archdr));
153 if (length > sizeof(pkt->soft))
154 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft),
155 pkt->soft.raw + sizeof(pkt->soft),
156 length - sizeof(pkt->soft));
174 struct archdr *pkt = (struct archdr *) skb_push(skb, hdr_size);
175 struct arc_rfc1051 *soft = &pkt->soft.rfc1051;
201 pkt->hard.source = *dev->dev_addr;
206 pkt->hard.dest = 0;
210 pkt->hard.dest = daddr;
216 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
220 struct arc_hardware *hard = &pkt->hard;
244 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length);