Lines Matching refs:pkt

45 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
93 struct archdr *pkt = (struct archdr *)skb->data; in type_trans() local
94 struct arc_rfc1201 *soft = &pkt->soft.rfc1201; in type_trans()
101 if (pkt->hard.dest == 0) { in type_trans()
105 if (pkt->hard.dest != dev->dev_addr[0]) in type_trans()
137 struct archdr *pkt = pkthdr; in rx() local
139 int saddr = pkt->hard.source, ofs; in rx()
163 soft, sizeof(pkt->soft)); in rx()
189 pkt = (struct archdr *)skb->data; in rx()
190 soft = &pkt->soft.rfc1201; in rx()
195 memcpy(pkt, pkthdr, sizeof(struct archdr)); in rx()
196 if (length > sizeof(pkt->soft)) in rx()
198 ofs + sizeof(pkt->soft), in rx()
199 pkt->soft.raw + sizeof(pkt->soft), in rx()
200 length - sizeof(pkt->soft)); in rx()
300 pkt = (struct archdr *)skb->data; in rx()
301 soft = &pkt->soft.rfc1201; in rx()
303 memcpy(pkt, pkthdr, ARC_HDR_SIZE + RFC1201_HDR_SIZE); in rx()
347 pkt = (struct archdr *)in->skb->data; in rx()
348 soft = &pkt->soft.rfc1201; in rx()
364 skb->len, pkt->hard.source); in rx()
366 skb->len, pkt->hard.source); in rx()
382 struct archdr *pkt = (struct archdr *)skb_push(skb, hdr_size); in build_header() local
383 struct arc_rfc1201 *soft = &pkt->soft.rfc1201; in build_header()
421 pkt->hard.source = *dev->dev_addr; in build_header()
434 pkt->hard.dest = 0; in build_header()
438 pkt->hard.dest = daddr; in build_header()
475 static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, in prepare_tx() argument
487 pkt->soft.rfc1201.split_flag = 0; in prepare_tx()
500 pkt->soft.rfc1201.sequence); in prepare_tx()
505 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()