Lines Matching +full:ocelot +full:- +full:1

1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 * Microsemi Ocelot Switch driver
9 #include <soc/mscc/ocelot.h>
14 #define OCELOT_VCAP_ES0_TAG_8021Q_RXVLAN(ocelot, port, upstream) ((upstream) << 16 | (port)) argument
15 #define OCELOT_VCAP_IS1_TAG_8021Q_TXVLAN(ocelot, port) (port) argument
16 #define OCELOT_VCAP_IS2_TAG_8021Q_TXVLAN(ocelot, port) (port) argument
17 #define OCELOT_VCAP_IS2_MRP_REDIRECT(ocelot, port) ((ocelot)->num_phys_ports + (port)) argument
18 #define OCELOT_VCAP_IS2_MRP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2) argument
19 #define OCELOT_VCAP_IS2_L2_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 1) argument
20 #define OCELOT_VCAP_IS2_IPV4_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 2) argument
21 #define OCELOT_VCAP_IS2_IPV4_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 3) argument
22 #define OCELOT_VCAP_IS2_IPV6_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 4) argument
23 #define OCELOT_VCAP_IS2_IPV6_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 5) argument
40 u16 tg_width; /* Type-group width (in bits) */
62 /* VCAP Type-Group values */
64 #define VCAP_TG_FULL 1 /* Full entry */
78 #define VCAP_CORE_UPDATE_CTRL_CLEAR_CACHE BIT(1)
97 #define TCAM_BIST_CTRL_TCAM_BIST BIT(1)
120 #define TCAM_BIST_STAT_BIST_BUSY BIT(1)
130 #define IS2_TYPE_LLC 1
151 #define IS2_ACT_MASK_MODE_FILTER 1
161 #define IS2_ACT_REW_OP_PTP_ONE_SUB_DELAY_1 (IS2_ACT_REW_OP_PTP_ONE | (1 << 3))
163 #define IS2_ACT_REW_OP_PTP_ONE_ADD_DELAY (IS2_ACT_REW_OP_PTP_ONE | (1 << 5))
168 /* IS2 quarter key - SMAC_SIP4 */
291 #define IS1_TYPE_S1_5TUPLE_IP4 1
295 #define IS1_TYPE_S1_7TUPLE 1
428 u8 value[1];
429 u8 mask[1];
515 /* LLC header: DSAP at byte 0, SSAP at byte 1, Control at byte 2 */
568 struct ocelot_vcap_u128 sip; /* IPv6 source (byte 0-7 ignored) */
569 struct ocelot_vcap_u128 dip; /* IPv6 destination (byte 0-7 ignored) */
595 OCELOT_ES0_VID = 1,
600 OCELOT_ES0_PCP = 1,
720 int ocelot_vcap_filter_add(struct ocelot *ocelot,
723 int ocelot_vcap_filter_del(struct ocelot *ocelot,
725 int ocelot_vcap_filter_replace(struct ocelot *ocelot,