Lines Matching refs:appl
355 const struct garp_application *appl,
359 struct garp_applicant *app = rtnl_dereference(port->applicants[appl->type]);
375 const struct garp_application *appl,
379 struct garp_applicant *app = rtnl_dereference(port->applicants[appl->type]);
514 struct garp_application *appl = proto->data;
522 app = rcu_dereference(port->applicants[appl->type]);
569 int garp_init_applicant(struct net_device *dev, struct garp_application *appl)
587 err = dev_mc_add(dev, appl->proto.group_address);
592 app->app = appl;
596 rcu_assign_pointer(dev->garp_port->applicants[appl->type], app);
610 void garp_uninit_applicant(struct net_device *dev, struct garp_application *appl)
613 struct garp_applicant *app = rtnl_dereference(port->applicants[appl->type]);
617 RCU_INIT_POINTER(port->applicants[appl->type], NULL);
631 dev_mc_del(dev, appl->proto.group_address);
637 int garp_register_application(struct garp_application *appl)
639 appl->proto.rcv = garp_pdu_rcv;
640 appl->proto.data = appl;
641 return stp_proto_register(&appl->proto);
645 void garp_unregister_application(struct garp_application *appl)
647 stp_proto_unregister(&appl->proto);