Lines Matching refs:lan966x

13 	struct lan966x *lan966x = port->lan966x;
16 flood_mask_ip = lan_rd(lan966x, ANA_PGID(pgid_ip));
25 flood_mask = lan_rd(lan966x, ANA_PGID(PGID_MC));
38 lan966x, ANA_PGID(pgid_ip));
44 u32 val = lan_rd(port->lan966x, ANA_PGID(PGID_MC));
54 port->lan966x, ANA_PGID(PGID_MC));
65 u32 val = lan_rd(port->lan966x, ANA_PGID(PGID_UC));
75 port->lan966x, ANA_PGID(PGID_UC));
81 u32 val = lan_rd(port->lan966x, ANA_PGID(PGID_BC));
91 port->lan966x, ANA_PGID(PGID_BC));
98 port->lan966x, ANA_PORT_CFG(port->chip_port));
133 void lan966x_update_fwd_mask(struct lan966x *lan966x)
137 for (i = 0; i < lan966x->num_phys_ports; i++) {
138 struct lan966x_port *port = lan966x->ports[i];
141 if (port && lan966x->bridge_fwd_mask & BIT(i)) {
142 mask = lan966x->bridge_fwd_mask & ~BIT(i);
145 mask &= ~lan966x_lag_get_mask(lan966x,
152 lan966x, ANA_PGID(PGID_SRC + i));
158 struct lan966x *lan966x = port->lan966x;
166 lan966x->bridge_fwd_mask |= BIT(port->chip_port);
168 lan966x->bridge_fwd_mask &= ~BIT(port->chip_port);
172 lan966x, ANA_PORT_CFG(port->chip_port));
174 lan966x_update_fwd_mask(lan966x);
183 lan966x_mac_set_ageing(port->lan966x, ageing_time);
188 struct lan966x *lan966x = port->lan966x;
192 lan966x_mdb_restore_entries(lan966x);
194 lan966x_mdb_clear_entries(lan966x);
202 lan966x, ANA_CPU_FWD_CFG(port->chip_port));
252 struct lan966x *lan966x = port->lan966x;
256 if (!lan966x->bridge_mask) {
257 lan966x->bridge = bridge;
259 if (lan966x->bridge != bridge) {
272 lan966x->bridge_mask |= BIT(port->chip_port);
285 struct lan966x *lan966x = port->lan966x;
291 lan966x->bridge_mask &= ~BIT(port->chip_port);
293 if (!lan966x->bridge_mask)
294 lan966x->bridge = NULL;
343 lan966x_fdb_flush_workqueue(port->lan966x);
352 lan966x_fdb_flush_workqueue(port->lan966x);
363 struct lan966x *lan966x = NULL;
375 if (lan966x) {
377 * lan966x switch inside it, check that it's
380 if (port->lan966x != lan966x) {
382 "Bridging between multiple lan966x switches disallowed");
386 /* This is the first lan966x port inside this
389 lan966x = port->lan966x;
393 /* Allow to have bond interfaces that have only lan966x
406 "Bridging lan966x ports with foreign interfaces disallowed");
492 struct lan966x *lan966x = port->lan966x;
496 if (lan966x->bridge == foreign_dev)
500 for (i = 0; i < lan966x->num_phys_ports; ++i)
501 if (lan966x->ports[i] &&
502 lan966x->ports[i]->bond == foreign_dev)
536 struct lan966x *lan966x = port->lan966x;
543 lan966x_vlan_cpu_add_vlan(lan966x, v->vid);
578 struct lan966x *lan966x = port->lan966x;
583 lan966x_vlan_cpu_del_vlan(lan966x, v->vid);