Lines Matching defs:appl
356 const struct garp_application *appl,
360 struct garp_applicant *app = rtnl_dereference(port->applicants[appl->type]);
376 const struct garp_application *appl,
380 struct garp_applicant *app = rtnl_dereference(port->applicants[appl->type]);
515 struct garp_application *appl = proto->data;
523 app = rcu_dereference(port->applicants[appl->type]);
570 int garp_init_applicant(struct net_device *dev, struct garp_application *appl)
588 err = dev_mc_add(dev, appl->proto.group_address);
593 app->app = appl;
597 rcu_assign_pointer(dev->garp_port->applicants[appl->type], app);
611 void garp_uninit_applicant(struct net_device *dev, struct garp_application *appl)
614 struct garp_applicant *app = rtnl_dereference(port->applicants[appl->type]);
618 RCU_INIT_POINTER(port->applicants[appl->type], NULL);
632 dev_mc_del(dev, appl->proto.group_address);
638 int garp_register_application(struct garp_application *appl)
640 appl->proto.rcv = garp_pdu_rcv;
641 appl->proto.data = appl;
642 return stp_proto_register(&appl->proto);
646 void garp_unregister_application(struct garp_application *appl)
648 stp_proto_unregister(&appl->proto);