Lines Matching +full:5 +full:gbase +full:- +full:x

1 /* SPDX-License-Identifier: GPL-2.0+ */
52 #define PGID_CPU (PGID_AGGR - 6)
53 #define PGID_UC (PGID_AGGR - 5)
54 #define PGID_BC (PGID_AGGR - 4)
55 #define PGID_MC (PGID_AGGR - 3)
56 #define PGID_MCIPV4 (PGID_AGGR - 2)
57 #define PGID_MCIPV6 (PGID_AGGR - 1)
59 /* Non-reserved PGIDs, used for general purpose */
79 #define FDMA_DCB_INFO_DATAL(x) ((x) & GENMASK(15, 0)) argument
81 #define FDMA_DCB_STATUS_BLOCKL(x) ((x) & GENMASK(15, 0)) argument
86 #define FDMA_DCB_STATUS_BLOCKO(x) (((x) << 20) & GENMASK(31, 20)) argument
93 #define SE_IDX_QUEUE 0 /* 0-79 : Queue scheduler elements */
94 #define SE_IDX_PORT 80 /* 80-89 : Port schedular elements */
99 #define LAN966X_VCAP_CID_IS1_MAX (VCAP_CID_INGRESS_L3 - 1) /* IS1 Max */
103 #define LAN966X_VCAP_CID_IS2_MAX (VCAP_CID_INGRESS_STAGE2_L2 - 1) /* IS2 Max */
106 #define LAN966X_VCAP_CID_ES0_MAX (VCAP_CID_EGRESS_L1 - 1) /* ES0 Max */
315 ((struct lan966x_skb_cb *)((skb)->cb))
707 return !!port->xdp_prog; in lan966x_xdp_port_present()
747 int gbase, int ginst, in lan_addr() argument
756 gbase + ((ginst) * gwidth) + in lan_addr()
761 int gbase, int ginst, int gcnt, int gwidth, in lan_rd() argument
764 return readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rd()
770 int gbase, int ginst, int gcnt, int gwidth, in lan_wr() argument
773 writel(val, lan_addr(lan966x->regs, id, tinst, tcnt, in lan_wr()
774 gbase, ginst, gcnt, gwidth, in lan_wr()
780 int gbase, int ginst, int gcnt, int gwidth, in lan_rmw() argument
785 nval = readl(lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw()
788 writel(nval, lan_addr(lan966x->regs, id, tinst, tcnt, gbase, ginst, in lan_rmw()