Lines Matching refs:pkt
61 static int null_prepare_tx(struct net_device *dev, struct archdr *pkt,
544 struct archdr *pkt; in arcnet_send_packet() local
555 pkt = (struct archdr *) skb->data; in arcnet_send_packet()
556 soft = &pkt->soft.rfc1201; in arcnet_send_packet()
560 skb->len, pkt->hard.dest); in arcnet_send_packet()
581 if (proto->prepare_tx(dev, pkt, skb->len, txbuf) && in arcnet_send_packet()
591 lp->outgoing.pkt = pkt; in arcnet_send_packet()
950 struct archdr pkt; in arcnet_rx() local
954 soft = &pkt.soft.rfc1201; in arcnet_rx()
956 lp->hw.copy_from_card(dev, bufnum, 0, &pkt, ARC_HDR_SIZE); in arcnet_rx()
957 if (pkt.hard.offset[0]) { in arcnet_rx()
958 ofs = pkt.hard.offset[0]; in arcnet_rx()
961 ofs = pkt.hard.offset[1]; in arcnet_rx()
966 if (sizeof(pkt.soft) <= length) in arcnet_rx()
967 lp->hw.copy_from_card(dev, bufnum, ofs, soft, sizeof(pkt.soft)); in arcnet_rx()
969 memset(&pkt.soft, 0, sizeof(pkt.soft)); in arcnet_rx()
975 bufnum, pkt.hard.source, pkt.hard.dest, length); in arcnet_rx()
984 *oldp = arc_proto_map[lp->default_proto[pkt.hard.source]], in arcnet_rx()
990 " (was '%c')\n", soft->proto, pkt.hard.source, in arcnet_rx()
999 lp->default_proto[pkt.hard.source] = soft->proto; in arcnet_rx()
1002 arc_proto_map[soft->proto]->rx(dev, bufnum, &pkt, length); in arcnet_rx()
1030 static int null_prepare_tx(struct net_device *dev, struct archdr *pkt, in null_prepare_tx() argument