Lines Matching refs:pkt
43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
92 struct archdr *pkt = (struct archdr *) skb->data; in type_trans() local
93 struct arc_rfc1051 *soft = &pkt->soft.rfc1051; in type_trans()
100 if (pkt->hard.dest == 0) in type_trans()
104 if (pkt->hard.dest != dev->dev_addr[0]) in type_trans()
130 struct archdr *pkt = pkthdr; in rx() local
149 pkt = (struct archdr *) skb->data; in rx()
152 memcpy(pkt, pkthdr, sizeof(struct archdr)); in rx()
153 if (length > sizeof(pkt->soft)) in rx()
154 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
155 pkt->soft.raw + sizeof(pkt->soft), in rx()
156 length - sizeof(pkt->soft)); in rx()
172 struct archdr *pkt = (struct archdr *) skb_push(skb, hdr_size); in build_header() local
173 struct arc_rfc1051 *soft = &pkt->soft.rfc1051; in build_header()
199 pkt->hard.source = *dev->dev_addr; in build_header()
208 pkt->hard.dest = 0; in build_header()
212 pkt->hard.dest = daddr; in build_header()
218 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
222 struct arc_hardware *hard = &pkt->hard; in prepare_tx()
246 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()