Lines Matching defs:pkt
47 struct archdr *pkt;
67 pkt = (struct archdr *)skb_mac_header(skb);
70 /* up to sizeof(pkt->soft) has already been copied from the card
75 pktbuf = (char *)pkt;
77 memcpy(pktbuf, pkthdrbuf, ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto));
78 memcpy(pktbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto) + sizeof(int),
79 pkthdrbuf + ARC_HDR_SIZE + sizeof(pkt->soft.cap.proto),
80 sizeof(struct archdr) - ARC_HDR_SIZE - sizeof(pkt->soft.cap.proto));
82 if (length > sizeof(pkt->soft))
83 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft),
84 pkt->soft.raw + sizeof(pkt->soft)
86 length - sizeof(pkt->soft));
104 struct archdr *pkt = skb_push(skb, hdr_size);
107 *((int *)&pkt->soft.cap.cookie[0]));
115 pkt->hard.source = *dev->dev_addr;
123 pkt->hard.dest = 0;
127 pkt->hard.dest = daddr;
132 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
136 struct arc_hardware *hard = &pkt->hard;
148 *((int *)&pkt->soft.cap.cookie[0]));
171 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft.cap.proto,
172 sizeof(pkt->soft.cap.proto));
178 ((unsigned char *)&pkt->soft.cap.mes), length - 1);