Lines Matching refs:proto

246 void arcnet_unregister_proto(struct ArcProto *proto)  in arcnet_unregister_proto()  argument
250 if (arc_proto_default == proto) in arcnet_unregister_proto()
252 if (arc_bcast_proto == proto) in arcnet_unregister_proto()
256 if (arc_proto_map[count] == proto) in arcnet_unregister_proto()
480 struct ArcProto *proto; in arcnet_header() local
507 proto = arc_proto_map[proto_num]; in arcnet_header()
509 proto_num, proto->suffix); in arcnet_header()
510 if (proto == &arc_proto_null && arc_bcast_proto != proto) { in arcnet_header()
513 proto = arc_bcast_proto; in arcnet_header()
515 return proto->build_header(skb, dev, type, _daddr); in arcnet_header()
531 struct ArcProto *proto; in arcnet_rebuild_header() local
560 proto = arc_proto_map[lp->default_proto[daddr]]; in arcnet_rebuild_header()
561 proto->build_header(skb, dev, type, daddr); in arcnet_rebuild_header()
574 struct ArcProto *proto; in arcnet_send_packet() local
583 proto = arc_proto_map[soft->proto]; in arcnet_send_packet()
590 if (skb->len - ARC_HDR_SIZE > XMTU && !proto->continue_tx) { in arcnet_send_packet()
603 if (proto->prepare_tx(dev, pkt, skb->len, txbuf)) { in arcnet_send_packet()
609 lp->outgoing.proto = proto; in arcnet_send_packet()
613 if (!proto->continue_tx) in arcnet_send_packet()
615 else if (proto->continue_tx(dev, txbuf)) { in arcnet_send_packet()
618 "(proto='%c')\n", proto->suffix); in arcnet_send_packet()
817 if (lp->outgoing.proto && lp->outgoing.proto->continue_tx) { in arcnet_interrupt()
820 if (lp->outgoing.proto->continue_tx(dev, txbuf)) { in arcnet_interrupt()
824 lp->outgoing.proto = NULL; in arcnet_interrupt()
945 if (arc_proto_map[soft->proto] != &arc_proto_null) { in arcnet_rx()
949 *newp = arc_proto_map[soft->proto]; in arcnet_rx()
954 " (was '%c')\n", soft->proto, pkt.hard.source, in arcnet_rx()
960 lp->default_proto[0] = soft->proto; in arcnet_rx()
963 lp->default_proto[pkt.hard.source] = soft->proto; in arcnet_rx()
966 arc_proto_map[soft->proto]->rx(dev, bufnum, &pkt, length); in arcnet_rx()
987 pkthdr->soft.rfc1201.proto, pkthdr->hard.source); in null_rx()