Lines Matching +full:6 +full:- +full:bit

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
22 #define KSZ8863_GLOBAL_SOFTWARE_RESET BIT(4)
23 #define KSZ8863_PCS_RESET BIT(0)
27 #define SW_NEW_BACKOFF BIT(7)
28 #define SW_GLOBAL_RESET BIT(6)
29 #define SW_FLUSH_DYN_MAC_TABLE BIT(5)
30 #define SW_FLUSH_STA_MAC_TABLE BIT(4)
31 #define SW_LINK_AUTO_AGING BIT(0)
35 #define SW_HUGE_PACKET BIT(6)
36 #define SW_TX_FLOW_CTRL_DISABLE BIT(5)
37 #define SW_RX_FLOW_CTRL_DISABLE BIT(4)
38 #define SW_CHECK_LENGTH BIT(3)
39 #define SW_AGING_ENABLE BIT(2)
40 #define SW_FAST_AGING BIT(1)
41 #define SW_AGGR_BACKOFF BIT(0)
45 #define UNICAST_VLAN_BOUNDARY BIT(7)
46 #define SW_BACK_PRESSURE BIT(5)
47 #define FAIR_FLOW_CTRL BIT(4)
48 #define NO_EXC_COLLISION_DROP BIT(3)
49 #define SW_LEGAL_PACKET_DISABLE BIT(1)
51 #define KSZ8863_HUGE_PACKET_ENABLE BIT(2)
52 #define KSZ8863_LEGAL_PACKET_ENABLE BIT(1)
55 #define WEIGHTED_FAIR_QUEUE_ENABLE BIT(3)
57 #define SW_VLAN_ENABLE BIT(7)
58 #define SW_IGMP_SNOOP BIT(6)
59 #define SW_MIRROR_RX_TX BIT(0)
63 #define SW_HALF_DUPLEX_FLOW_CTRL BIT(7)
64 #define SW_HALF_DUPLEX BIT(6)
65 #define SW_FLOW_CTRL BIT(5)
66 #define SW_10_MBIT BIT(4)
67 #define SW_REPLACE_VID BIT(3)
73 #define SW_MIB_COUNTER_FLUSH BIT(7)
74 #define SW_MIB_COUNTER_FREEZE BIT(6)
92 #define SW_PASS_PAUSE BIT(0)
98 #define SW_PLL_POWER_DOWN BIT(5)
113 #define PORT_BROADCAST_STORM BIT(7)
114 #define PORT_DIFFSERV_ENABLE BIT(6)
115 #define PORT_802_1P_ENABLE BIT(5)
122 #define PORT_INSERT_TAG BIT(2)
123 #define PORT_REMOVE_TAG BIT(1)
124 #define PORT_QUEUE_SPLIT_L BIT(0)
132 #define PORT_MIRROR_SNIFFER BIT(7)
133 #define PORT_MIRROR_RX BIT(6)
134 #define PORT_MIRROR_TX BIT(5)
143 #define PORT_INGRESS_FILTER BIT(6)
144 #define PORT_DISCARD_NON_VID BIT(5)
145 #define PORT_FORCE_FLOW_CTRL BIT(4)
146 #define PORT_BACK_PRESSURE BIT(3)
167 #define PORT_ACL_ENABLE BIT(2)
175 #define PORT_MII_INTERNAL_CLOCK BIT(7)
176 #define PORT_GMII_MAC_MODE BIT(2)
183 #define PORT_AUTO_NEG_ASYM_PAUSE BIT(5)
184 #define PORT_AUTO_NEG_SYM_PAUSE BIT(4)
185 #define PORT_AUTO_NEG_100BTX_FD BIT(3)
186 #define PORT_AUTO_NEG_100BTX BIT(2)
187 #define PORT_AUTO_NEG_10BT_FD BIT(1)
188 #define PORT_AUTO_NEG_10BT BIT(0)
196 #define PORT_REMOTE_ASYM_PAUSE BIT(5)
197 #define PORT_REMOTE_SYM_PAUSE BIT(4)
198 #define PORT_REMOTE_100BTX_FD BIT(3)
199 #define PORT_REMOTE_100BTX BIT(2)
200 #define PORT_REMOTE_10BT_FD BIT(1)
201 #define PORT_REMOTE_10BT BIT(0)
208 #define PORT_HP_MDIX BIT(7)
209 #define PORT_REVERSED_POLARITY BIT(5)
210 #define PORT_TX_FLOW_CTRL BIT(4)
211 #define PORT_RX_FLOW_CTRL BIT(3)
212 #define PORT_STAT_SPEED_100MBIT BIT(2)
213 #define PORT_STAT_FULL_DUPLEX BIT(1)
215 #define PORT_REMOTE_FAULT BIT(0)
222 #define PORT_CABLE_10M_SHORT BIT(7)
223 #define PORT_CABLE_DIAG_RESULT_M GENMASK(6, 5)
229 #define PORT_START_CABLE_DIAG BIT(4)
230 #define PORT_FORCE_LINK BIT(3)
231 #define PORT_POWER_SAVING BIT(2)
232 #define PORT_PHY_REMOTE_LOOPBACK BIT(1)
248 #define PORT_AUTO_NEG_ENABLE BIT(7)
249 #define PORT_AUTO_NEG_DISABLE BIT(7)
250 #define PORT_FORCE_100_MBIT BIT(6)
251 #define PORT_FORCE_FULL_DUPLEX BIT(5)
258 #define PORT_LED_OFF BIT(7)
259 #define PORT_TX_DISABLE BIT(6)
260 #define PORT_AUTO_NEG_RESTART BIT(5)
261 #define PORT_POWER_DOWN BIT(3)
262 #define PORT_AUTO_MDIX_DISABLE BIT(2)
263 #define PORT_FORCE_MDIX BIT(1)
264 #define PORT_MAC_LOOPBACK BIT(0)
271 #define PORT_MDIX_STATUS BIT(7)
272 #define PORT_AUTO_NEG_COMPLETE BIT(6)
273 #define PORT_STAT_LINK_GOOD BIT(5)
280 #define PORT_PHY_LOOPBACK BIT(7)
281 #define PORT_PHY_ISOLATE BIT(5)
282 #define PORT_PHY_SOFT_RESET BIT(4)
283 #define PORT_PHY_FORCE_LINK BIT(3)
289 #define PHY_MODE_100BT_FULL 6
324 (REG_PORT_2_CTRL_0 - REG_PORT_1_CTRL_0))
342 #define TABLE_READ BIT(4)
368 #define INT_PME BIT(4)
373 #define INT_PORT_5 BIT(4)
374 #define INT_PORT_4 BIT(3)
375 #define INT_PORT_3 BIT(2)
376 #define INT_PORT_2 BIT(1)
377 #define INT_PORT_1 BIT(0)
395 #define SW_PRIO_MAPPING_S 6
405 #define SW_SELF_ADDR_FILTER_ENABLE BIT(6)
412 #define SW_UNK_FWD_ENABLE BIT(5)
422 #define SW_OUT_RATE_LIMIT_QUEUE_BASED BIT(3)
423 #define SW_INS_TAG_ENABLE BIT(2)
455 #define SW_DRIVE_STRENGTH_24MA 6
461 #define SW_IPV6_MLD_OPTION BIT(3)
462 #define SW_IPV6_MLD_SNOOP BIT(2)
470 #define PORT_PASS_ALL BIT(6)
472 #define PORT_INS_TAG_FOR_PORT_5 BIT(3)
473 #define PORT_INS_TAG_FOR_PORT_4 BIT(2)
474 #define PORT_INS_TAG_FOR_PORT_3 BIT(1)
475 #define PORT_INS_TAG_FOR_PORT_2 BIT(0)
483 #define PORT_QUEUE_SPLIT_H BIT(1)
487 #define PORT_DROP_TAG BIT(0)
531 #define RATE_CTRL_ENABLE BIT(7)
532 #define RATE_RATIO_M (BIT(7) - 1)
534 #define PORT_OUT_RATE_ENABLE BIT(7)
542 #define PORT_IN_PORT_BASED_S 6
549 #define PORT_IN_PORT_BASED BIT(PORT_IN_PORT_BASED_S)
550 #define PORT_RATE_PACKET_BASED BIT(PORT_RATE_PACKET_BASED_S)
551 #define PORT_IN_FLOW_CTRL BIT(PORT_IN_FLOW_CTRL_S)
556 #define PORT_COUNT_IFG BIT(PORT_COUNT_IFG_S)
557 #define PORT_COUNT_PREAMBLE BIT(PORT_COUNT_PREAMBLE_S)
580 #define PORT_IN_RATE_ENABLE BIT(7)
581 #define PORT_RATE_LIMIT_M (BIT(7) - 1)
610 #define SW_PME_OUTPUT_ENABLE BIT(1)
611 #define SW_PME_ACTIVE_HIGH BIT(0)
613 #define PORT_MAGIC_PACKET_DETECT BIT(2)
614 #define PORT_LINK_UP_DETECT BIT(1)
615 #define PORT_ENERGY_DETECT BIT(0)
639 #define ACL_SRC BIT(1)
640 #define ACL_EQUAL BIT(0)
656 #define ACL_TCP_FLAG_ENABLE BIT(0)
665 #define ACL_PRIO_MODE_S 6
672 #define ACL_VLAN_PRIO_REPLACE BIT(2)
686 #define ACL_CNT_M (BIT(11) - 1)
688 #define ACL_MSEC_UNIT BIT(4)
689 #define ACL_INTR_MODE BIT(3)
712 #define PORT_ACL_WRITE_DONE BIT(6)
713 #define PORT_ACL_READ_DONE BIT(5)
714 #define PORT_ACL_WRITE BIT(4)
719 #define PORT_ACL_FORCE_DLR_MISS BIT(0)
729 #define PHY_START_CABLE_DIAG BIT(15)
736 #define PHY_CABLE_10M_SHORT BIT(12)
743 #define PHY_STAT_REVERSED_POLARITY BIT(5)
744 #define PHY_STAT_MDIX BIT(4)
745 #define PHY_FORCE_LINK BIT(3)
746 #define PHY_POWER_SAVING_ENABLE BIT(2)
747 #define PHY_REMOTE_LOOPBACK BIT(1)
789 * MIB_COUNTER_VALUE 00-00000000-3FFFFFFF
790 * MIB_TOTAL_BYTES 00-0000000F-FFFFFFFF
791 * MIB_PACKET_DROPPED 00-00000000-0000FFFF
792 * MIB_COUNTER_VALID 00-00000020-00000000
793 * MIB_COUNTER_OVERFLOW 00-00000040-00000000
810 #define TAIL_TAG_OVERRIDE BIT(6)
811 #define TAIL_TAG_LOOKUP BIT(7)