Lines Matching +full:chg +full:- +full:int
3 /*-
4 * SPDX-License-Identifier: BSD-4-Clause
40 /*-
166 #define BSTP_MSGTYPE_TCN 0x80 /* Topology chg notification */
186 typedef void (*bstp_state_cb_t)(struct ifnet *, int);
187 typedef void (*bstp_rtage_cb_t)(struct ifnet *, int);
243 int active;
244 int latched;
245 int value;
364 #define BSTP_LOCK_INIT(_bs) mtx_init(&(_bs)->bs_mtx, "bstp", NULL, MTX_DEF)
365 #define BSTP_LOCK_DESTROY(_bs) mtx_destroy(&(_bs)->bs_mtx)
366 #define BSTP_LOCK(_bs) mtx_lock(&(_bs)->bs_mtx)
367 #define BSTP_UNLOCK(_bs) mtx_unlock(&(_bs)->bs_mtx)
368 #define BSTP_LOCK_ASSERT(_bs) mtx_assert(&(_bs)->bs_mtx, MA_OWNED)
376 int bstp_create(struct bstp_state *, struct bstp_port *, struct ifnet *);
377 int bstp_enable(struct bstp_port *);
381 int bstp_set_htime(struct bstp_state *, int);
382 int bstp_set_fdelay(struct bstp_state *, int);
383 int bstp_set_maxage(struct bstp_state *, int);
384 int bstp_set_holdcount(struct bstp_state *, int);
385 int bstp_set_protocol(struct bstp_state *, int);
386 int bstp_set_priority(struct bstp_state *, int);
387 int bstp_set_port_priority(struct bstp_port *, int);
388 int bstp_set_path_cost(struct bstp_port *, uint32_t);
389 int bstp_set_edge(struct bstp_port *, int);
390 int bstp_set_autoedge(struct bstp_port *, int);
391 int bstp_set_ptp(struct bstp_port *, int);
392 int bstp_set_autoptp(struct bstp_port *, int);