Lines Matching +full:half +full:- +full:bit

1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT)
16 #define OCELOT_VCAP_IS1_VLAN_RECLASSIFY(ocelot, port) ((ocelot)->num_phys_ports + (port))
18 #define OCELOT_VCAP_IS2_MRP_REDIRECT(ocelot, port) ((ocelot)->num_phys_ports + (port))
19 #define OCELOT_VCAP_IS2_MRP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2)
20 #define OCELOT_VCAP_IS2_L2_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 1)
21 #define OCELOT_VCAP_IS2_IPV4_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 2)
22 #define OCELOT_VCAP_IS2_IPV4_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 3)
23 #define OCELOT_VCAP_IS2_IPV6_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 4)
24 #define OCELOT_VCAP_IS2_IPV6_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 5)
41 u16 tg_width; /* Type-group width (in bits) */
63 /* VCAP Type-Group values */
66 #define VCAP_TG_HALF 2 /* Half entry */
72 #define VCAP_CORE_UPDATE_CTRL_UPDATE_ENTRY_DIS BIT(21)
73 #define VCAP_CORE_UPDATE_CTRL_UPDATE_ACTION_DIS BIT(20)
74 #define VCAP_CORE_UPDATE_CTRL_UPDATE_CNT_DIS BIT(19)
78 #define VCAP_CORE_UPDATE_CTRL_UPDATE_SHOT BIT(2)
79 #define VCAP_CORE_UPDATE_CTRL_CLEAR_CACHE BIT(1)
80 #define VCAP_CORE_UPDATE_CTRL_MV_TRAFFIC_IGN BIT(0)
96 #define VCAP_STICKY_VCAP_ROW_DELETED_STICKY BIT(0)
98 #define TCAM_BIST_CTRL_TCAM_BIST BIT(1)
99 #define TCAM_BIST_CTRL_TCAM_INIT BIT(0)
101 #define TCAM_BIST_CFG_TCAM_BIST_SOE_ENA BIT(8)
102 #define TCAM_BIST_CFG_TCAM_HCG_DIS BIT(7)
103 #define TCAM_BIST_CFG_TCAM_CG_DIS BIT(6)
107 #define TCAM_BIST_STAT_BIST_RT_ERR BIT(15)
108 #define TCAM_BIST_STAT_BIST_PENC_ERR BIT(14)
109 #define TCAM_BIST_STAT_BIST_COMP_ERR BIT(13)
110 #define TCAM_BIST_STAT_BIST_ADDR_ERR BIT(12)
111 #define TCAM_BIST_STAT_BIST_BL1E_ERR BIT(11)
112 #define TCAM_BIST_STAT_BIST_BL1_ERR BIT(10)
113 #define TCAM_BIST_STAT_BIST_BL0E_ERR BIT(9)
114 #define TCAM_BIST_STAT_BIST_BL0_ERR BIT(8)
115 #define TCAM_BIST_STAT_BIST_PH1_ERR BIT(7)
116 #define TCAM_BIST_STAT_BIST_PH0_ERR BIT(6)
117 #define TCAM_BIST_STAT_BIST_PV1_ERR BIT(5)
118 #define TCAM_BIST_STAT_BIST_PV0_ERR BIT(4)
119 #define TCAM_BIST_STAT_BIST_RUN BIT(3)
120 #define TCAM_BIST_STAT_BIST_ERR BIT(2)
121 #define TCAM_BIST_STAT_BIST_BUSY BIT(1)
122 #define TCAM_BIST_STAT_TCAM_RDY BIT(0)
129 /* IS2 half key types */
141 /* IS2 half key type mask for matching any IP */
165 #define IS2_ACT_REW_OP_PTP_ONE_ADD_SUB BIT(7)
169 /* IS2 quarter key - SMAC_SIP4 */
290 /* IS1 half key types */
319 /* Specific Fields for IS1 Half Key S1_NORMAL */
334 /* Specific Fields for IS1 Half Key S1_5TUPLE_IP4 */
499 struct ocelot_vcap_vid vid; /* VLAN ID (12 bit) */
500 struct ocelot_vcap_u8 pcp; /* PCP (3 bit) */
570 struct ocelot_vcap_u128 sip; /* IPv6 source (byte 0-7 ignored) */
571 struct ocelot_vcap_u128 dip; /* IPv6 destination (byte 0-7 ignored) */