Lines Matching refs:pkt
44 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
89 struct archdr *pkt = (struct archdr *)skb->data; in type_trans() local
90 struct arc_rfc1051 *soft = &pkt->soft.rfc1051; in type_trans()
97 if (pkt->hard.dest == 0) { in type_trans()
101 if (pkt->hard.dest != dev->dev_addr[0]) in type_trans()
126 struct archdr *pkt = pkthdr; in rx() local
144 pkt = (struct archdr *)skb->data; in rx()
147 memcpy(pkt, pkthdr, sizeof(struct archdr)); in rx()
148 if (length > sizeof(pkt->soft)) in rx()
149 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
150 pkt->soft.raw + sizeof(pkt->soft), in rx()
151 length - sizeof(pkt->soft)); in rx()
165 struct archdr *pkt = (struct archdr *)skb_push(skb, hdr_size); in build_header() local
166 struct arc_rfc1051 *soft = &pkt->soft.rfc1051; in build_header()
190 pkt->hard.source = *dev->dev_addr; in build_header()
198 pkt->hard.dest = 0; in build_header()
202 pkt->hard.dest = daddr; in build_header()
207 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
211 struct arc_hardware *hard = &pkt->hard; in prepare_tx()
237 lp->hw.copy_to_card(dev, bufnum, ofs, &pkt->soft, length); in prepare_tx()