Lines Matching +full:16 +full:- +full:bit

1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright (C) 2011-2012 Gabor Juhos <juhosg@openwrt.org>
34 #define QCA8K_PORT_PAD_RGMII_EN BIT(26)
40 #define QCA8K_PORT_PAD_RGMII_RX_DELAY_EN BIT(24)
41 #define QCA8K_PORT_PAD_SGMII_EN BIT(7)
43 #define QCA8K_PWS_SERDES_AEN_DIS BIT(7)
45 #define QCA8K_MODULE_EN_MIB BIT(0)
47 #define QCA8K_MIB_FLUSH BIT(24)
48 #define QCA8K_MIB_CPU_KEEP BIT(20)
49 #define QCA8K_MIB_BUSY BIT(17)
51 #define QCA8K_MDIO_MASTER_BUSY BIT(31)
52 #define QCA8K_MDIO_MASTER_EN BIT(30)
53 #define QCA8K_MDIO_MASTER_READ BIT(27)
55 #define QCA8K_MDIO_MASTER_SUP_PRE BIT(26)
57 #define QCA8K_MDIO_MASTER_REG_ADDR(x) ((x) << 16)
70 #define QCA8K_PORT_STATUS_TXMAC BIT(2)
71 #define QCA8K_PORT_STATUS_RXMAC BIT(3)
72 #define QCA8K_PORT_STATUS_TXFLOW BIT(4)
73 #define QCA8K_PORT_STATUS_RXFLOW BIT(5)
74 #define QCA8K_PORT_STATUS_DUPLEX BIT(6)
75 #define QCA8K_PORT_STATUS_LINK_UP BIT(8)
76 #define QCA8K_PORT_STATUS_LINK_AUTO BIT(9)
77 #define QCA8K_PORT_STATUS_LINK_PAUSE BIT(10)
78 #define QCA8K_PORT_STATUS_FLOW_AUTO BIT(12)
88 #define QCA8K_SGMII_EN_PLL BIT(1)
89 #define QCA8K_SGMII_EN_RX BIT(2)
90 #define QCA8K_SGMII_EN_TX BIT(3)
91 #define QCA8K_SGMII_EN_SD BIT(4)
92 #define QCA8K_SGMII_CLK125M_DELAY BIT(7)
93 #define QCA8K_SGMII_MODE_CTRL_MASK (BIT(22) | BIT(23))
104 #define QCA8K_PORT_VLAN_CVID(x) (x << 16)
113 #define QCA8K_ATU_ADDR3_S 16
117 #define QCA8K_ATU_PORT_S 16
125 #define QCA8K_ATU_FUNC_BUSY BIT(31)
126 #define QCA8K_ATU_FUNC_PORT_EN BIT(14)
127 #define QCA8K_ATU_FUNC_MULTI_EN BIT(13)
128 #define QCA8K_ATU_FUNC_FULL BIT(12)
132 #define QCA8K_VTU_FUNC0_VALID BIT(20)
133 #define QCA8K_VTU_FUNC0_IVL_EN BIT(19)
141 #define QCA8K_VTU_FUNC1_BUSY BIT(31)
142 #define QCA8K_VTU_FUNC1_VID_S 16
143 #define QCA8K_VTU_FUNC1_FULL BIT(4)
145 #define QCA8K_GLOBAL_FW_CTRL0_CPU_PORT_EN BIT(10)
148 #define QCA8K_GLOBAL_FW_CTRL1_BC_DP_S 16
158 #define QCA8K_PORT_LOOKUP_STATE_MASK GENMASK(18, 16)
159 #define QCA8K_PORT_LOOKUP_STATE_DISABLED (0 << 16)
160 #define QCA8K_PORT_LOOKUP_STATE_BLOCKING (1 << 16)
161 #define QCA8K_PORT_LOOKUP_STATE_LISTENING (2 << 16)
162 #define QCA8K_PORT_LOOKUP_STATE_LEARNING (3 << 16)
163 #define QCA8K_PORT_LOOKUP_STATE_FORWARD (4 << 16)
164 #define QCA8K_PORT_LOOKUP_STATE GENMASK(18, 16)
165 #define QCA8K_PORT_LOOKUP_LEARN BIT(20)
172 #define QCA8K_HROUTER_CONTROL_GLB_LOCKTIME_M GENMASK(17, 16)
173 #define QCA8K_HROUTER_CONTROL_GLB_LOCKTIME_S 16