Lines Matching +full:max +full:- +full:functions
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2011-2012 Stefan Bethke.
44 (!!((_sc)->sc_switchtype == AR8X16_SWITCH_ ## _type))
46 #define ARSWITCH_NUM_PORTS MAX(AR8327_NUM_PORTS, AR8X16_NUM_PORTS)
47 #define ARSWITCH_NUM_PHYS MAX(AR8327_NUM_PHYS, AR8X16_NUM_PHYS)
71 /* should be the max of both pre-AR8327 and AR8327 ports */
102 /* Port functions */
105 /* ATU functions */
112 /* VLAN functions */
139 /* PHY functions */
152 mtx_lock(&(_sc)->sc_mtx)
154 mtx_unlock(&(_sc)->sc_mtx)
156 mtx_assert(&(_sc)->sc_mtx, (_what))
158 mtx_trylock(&(_sc)->sc_mtx)
171 if (((sc)->sc_debug & (dbg)) || \
172 ((sc)->sc_debug == ARSWITCH_DBG_ANY)) { \
173 device_printf((sc)->sc_dev, args); \