Lines Matching refs:pkt
43 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
94 struct archdr *pkt = (struct archdr *) skb->data; in type_trans() local
95 struct arc_rfc1201 *soft = &pkt->soft.rfc1201; in type_trans()
102 if (pkt->hard.dest == 0) in type_trans()
106 if (pkt->hard.dest != dev->dev_addr[0]) in type_trans()
139 struct archdr *pkt = pkthdr; in rx() local
141 int saddr = pkt->hard.source, ofs; in rx()
164 soft, sizeof(pkt->soft)); in rx()
190 pkt = (struct archdr *) skb->data; in rx()
191 soft = &pkt->soft.rfc1201; in rx()
194 memcpy(pkt, pkthdr, sizeof(struct archdr)); in rx()
195 if (length > sizeof(pkt->soft)) in rx()
196 lp->hw.copy_from_card(dev, bufnum, ofs + sizeof(pkt->soft), in rx()
197 pkt->soft.raw + sizeof(pkt->soft), in rx()
198 length - sizeof(pkt->soft)); in rx()
297 pkt = (struct archdr *) skb->data; in rx()
298 soft = &pkt->soft.rfc1201; in rx()
300 memcpy(pkt, pkthdr, ARC_HDR_SIZE + RFC1201_HDR_SIZE); in rx()
344 pkt = (struct archdr *) in->skb->data; in rx()
345 soft = &pkt->soft.rfc1201; in rx()
361 skb->len, pkt->hard.source); in rx()
363 skb->len, pkt->hard.source); in rx()
379 struct archdr *pkt = (struct archdr *) skb_push(skb, hdr_size); in build_header() local
380 struct arc_rfc1201 *soft = &pkt->soft.rfc1201; in build_header()
419 pkt->hard.source = *dev->dev_addr; in build_header()
432 pkt->hard.dest = 0; in build_header()
436 pkt->hard.dest = daddr; in build_header()
474 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
486 pkt->soft.rfc1201.split_flag = 0; in prepare_tx()
499 pkt->soft.rfc1201.sequence); in prepare_tx()
504 load_pkt(dev, &pkt->hard, &pkt->soft.rfc1201, length, bufnum); in prepare_tx()
514 struct arc_hardware *hard = &out->pkt->hard; in continue_tx()
515 struct arc_rfc1201 *soft = &out->pkt->soft.rfc1201, *newsoft; in continue_tx()
525 (out->pkt->soft.raw + out->length - out->dataleft); in continue_tx()