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