Lines Matching refs:pkt
43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
93 struct archdr *pkt = pkthdr; in rx() local
112 pkt = (struct archdr *) skb->data; in rx()
118 memcpy(pkt, pkthdr, sizeof(struct archdr)); in rx()
119 if (length > sizeof(pkt->soft)) in rx()
120 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
121 pkt->soft.raw + sizeof(pkt->soft), in rx()
122 length - sizeof(pkt->soft)); in rx()
139 struct archdr *pkt = (struct archdr *) skb_push(skb, hdr_size); in build_header() local
148 pkt->hard.source = *dev->dev_addr; in build_header()
157 pkt->hard.dest = 0; in build_header()
161 pkt->hard.dest = daddr; in build_header()
167 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
171 struct arc_hardware *hard = &pkt->hard; in prepare_tx()
198 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()