Lines Matching refs:bstp_state
146 LIST_HEAD(, bstp_state) bstp_list = LIST_HEAD_INITIALIZER(bstp_list);
156 static void bstp_transmit(struct bstp_state *, struct bstp_port *);
157 static void bstp_transmit_bpdu(struct bstp_state *, struct bstp_port *);
158 static void bstp_transmit_tcn(struct bstp_state *, struct bstp_port *);
161 static void bstp_send_bpdu(struct bstp_state *, struct bstp_port *,
165 static void bstp_received_stp(struct bstp_state *, struct bstp_port *,
167 static void bstp_received_rstp(struct bstp_state *, struct bstp_port *,
169 static void bstp_received_tcn(struct bstp_state *, struct bstp_port *,
171 static void bstp_received_bpdu(struct bstp_state *, struct bstp_port *,
179 static void bstp_assign_roles(struct bstp_state *);
180 static void bstp_update_roles(struct bstp_state *, struct bstp_port *);
181 static void bstp_update_state(struct bstp_state *, struct bstp_port *);
185 static void bstp_set_all_reroot(struct bstp_state *);
186 static void bstp_set_all_sync(struct bstp_state *);
193 static int bstp_rerooted(struct bstp_state *, struct bstp_port *);
197 static void bstp_ifupdstatus(struct bstp_state *, struct bstp_port *);
198 static void bstp_enable_port(struct bstp_state *, struct bstp_port *);
199 static void bstp_disable_port(struct bstp_state *, struct bstp_port *);
205 static void bstp_hello_timer_expiry(struct bstp_state *,
207 static void bstp_message_age_expiry(struct bstp_state *,
209 static void bstp_migrate_delay_expiry(struct bstp_state *,
211 static void bstp_edge_delay_expiry(struct bstp_state *,
215 static void bstp_reinit(struct bstp_state *);
218 bstp_transmit(struct bstp_state *bs, struct bstp_port *bp) in bstp_transmit()
258 bstp_transmit_bpdu(struct bstp_state *bs, struct bstp_port *bp) in bstp_transmit_bpdu()
294 bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp) in bstp_transmit_tcn()
411 bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp, in bstp_send_bpdu()
548 struct bstp_state *bs = bp->bp_bs; in bstp_input()
632 bstp_received_stp(struct bstp_state *bs, struct bstp_port *bp, in bstp_received_stp()
658 bstp_received_rstp(struct bstp_state *bs, struct bstp_port *bp, in bstp_received_rstp()
679 bstp_received_tcn(__unused struct bstp_state *bs, struct bstp_port *bp, in bstp_received_tcn()
687 bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp, in bstp_received_bpdu()
909 bstp_assign_roles(struct bstp_state *bs) in bstp_assign_roles()
1030 bstp_update_state(struct bstp_state *bs, struct bstp_port *bp) in bstp_update_state()
1055 bstp_update_roles(struct bstp_state *bs, struct bstp_port *bp) in bstp_update_roles()
1278 struct bstp_state *bs = bp->bp_bs; in bstp_update_info()
1308 struct bstp_state *bs = bp->bp_bs; in bstp_set_other_tcprop()
1322 bstp_set_all_reroot(struct bstp_state *bs) in bstp_set_all_reroot()
1333 bstp_set_all_sync(struct bstp_state *bs) in bstp_set_all_sync()
1388 struct bstp_state *bs = bp->bp_bs; in bstp_set_port_role()
1463 struct bstp_state *bs = bp->bp_bs; in bstp_set_port_proto()
1495 struct bstp_state *bs = bp->bp_bs; in bstp_set_port_tc()
1573 struct bstp_state *bs = bp->bp_bs; in bstp_set_timer_tc()
1607 bstp_rerooted(struct bstp_state *bs, struct bstp_port *bp) in bstp_rerooted()
1625 bstp_set_htime(struct bstp_state *bs, int t) in bstp_set_htime()
1647 bstp_set_fdelay(struct bstp_state *bs, int t) in bstp_set_fdelay()
1664 bstp_set_maxage(struct bstp_state *bs, int t) in bstp_set_maxage()
1681 bstp_set_holdcount(struct bstp_state *bs, int count) in bstp_set_holdcount()
1699 bstp_set_protocol(struct bstp_state *bs, int proto) in bstp_set_protocol()
1731 bstp_set_priority(struct bstp_state *bs, int pri) in bstp_set_priority()
1750 struct bstp_state *bs = bp->bp_bs; in bstp_set_port_priority()
1769 struct bstp_state *bs = bp->bp_bs; in bstp_set_path_cost()
1797 struct bstp_state *bs = bp->bp_bs; in bstp_set_edge()
1812 struct bstp_state *bs = bp->bp_bs; in bstp_set_autoedge()
1831 struct bstp_state *bs = bp->bp_bs; in bstp_set_ptp()
1842 struct bstp_state *bs = bp->bp_bs; in bstp_set_autoptp()
1904 struct bstp_state *bs = bp->bp_bs; in bstp_notify_state()
1919 struct bstp_state *bs = bp->bp_bs; in bstp_notify_rtage()
1948 struct bstp_state *bs; in bstp_linkstate()
1971 bstp_ifupdstatus(struct bstp_state *bs, struct bstp_port *bp) in bstp_ifupdstatus()
2017 bstp_enable_port(struct bstp_state *bs, struct bstp_port *bp) in bstp_enable_port()
2024 bstp_disable_port(struct bstp_state *bs, struct bstp_port *bp) in bstp_disable_port()
2033 struct bstp_state *bs = arg; in bstp_tick()
2126 bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp) in bstp_hello_timer_expiry()
2139 bstp_message_age_expiry(struct bstp_state *bs, struct bstp_port *bp) in bstp_message_age_expiry()
2149 bstp_migrate_delay_expiry(__unused struct bstp_state *bs, struct bstp_port *bp) in bstp_migrate_delay_expiry()
2155 bstp_edge_delay_expiry(__unused struct bstp_state *bs, struct bstp_port *bp) in bstp_edge_delay_expiry()
2197 bstp_reinit(struct bstp_state *bs) in bstp_reinit()
2279 bstp_attach(struct bstp_state *bs, struct bstp_cb_ops *cb) in bstp_attach()
2304 bstp_detach(struct bstp_state *bs) in bstp_detach()
2316 bstp_init(struct bstp_state *bs) in bstp_init()
2331 bstp_stop(struct bstp_state *bs) in bstp_stop()
2346 bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp) in bstp_create()
2372 struct bstp_state *bs = bp->bp_bs; in bstp_enable()
2398 struct bstp_state *bs = bp->bp_bs; in bstp_disable()