Lines Matching refs:lan966x

7 static void lan966x_lag_set_aggr_pgids(struct lan966x *lan966x)
9 u32 visited = GENMASK(lan966x->num_phys_ports - 1, 0);
13 for (p = 0; p < lan966x->num_phys_ports; ++p)
15 lan966x, ANA_PGID(p));
19 lan966x, ANA_PGID(p));
29 for (p = 0; p < lan966x->num_phys_ports; ++p) {
30 struct lan966x_port *port = lan966x->ports[p];
39 for (lag = 0; lag < lan966x->num_phys_ports; ++lag) {
40 struct lan966x_port *port = lan966x->ports[lag];
50 bond_mask = lan966x_lag_get_mask(lan966x, bond);
52 for_each_set_bit(p, &bond_mask, lan966x->num_phys_ports) {
53 struct lan966x_port *port = lan966x->ports[p];
59 lan966x, ANA_PGID(p));
67 ac = lan_rd(lan966x, ANA_PGID(i));
75 lan966x, ANA_PGID(i));
81 for (p = lag; p < lan966x->num_phys_ports; p++) {
82 struct lan966x_port *port = lan966x->ports[p];
93 static void lan966x_lag_set_port_ids(struct lan966x *lan966x)
100 for (p = 0; p < lan966x->num_phys_ports; ++p) {
101 port = lan966x->ports[p];
107 bond_mask = lan966x_lag_get_mask(lan966x, port->bond);
113 lan966x, ANA_PORT_CFG(port->chip_port));
117 static void lan966x_lag_update_ids(struct lan966x *lan966x)
119 lan966x_lag_set_port_ids(lan966x);
120 lan966x_update_fwd_mask(lan966x);
121 lan966x_lag_set_aggr_pgids(lan966x);
129 struct lan966x *lan966x = port->lan966x;
135 bond_mask = lan966x_lag_get_mask(lan966x, bond);
140 lan966x_lag_update_ids(lan966x);
153 lan966x_mac_lag_replace_port_entry(lan966x,
154 lan966x->ports[lag_id],
161 lan966x_lag_update_ids(lan966x);
168 struct lan966x *lan966x = port->lan966x;
173 bond_mask = lan966x_lag_get_mask(lan966x, port->bond);
177 lan966x_mac_lag_replace_port_entry(lan966x, port,
178 lan966x->ports[lag_id]);
180 lan966x_mac_lag_remove_port_entry(lan966x, port);
185 lan966x_lag_update_ids(lan966x);
189 static bool lan966x_lag_port_check_hash_types(struct lan966x *lan966x,
194 for (p = 0; p < lan966x->num_phys_ports; ++p) {
195 struct lan966x_port *port = lan966x->ports[p];
211 struct lan966x *lan966x = port->lan966x;
228 if (!lan966x_lag_port_check_hash_types(lan966x, lui->hash_type)) {
238 lan966x, ANA_AGGR_CFG);
244 lan966x, ANA_AGGR_CFG);
251 lan966x, ANA_AGGR_CFG);
269 struct lan966x *lan966x = port->lan966x;
280 lan966x_lag_set_aggr_pgids(lan966x);
336 struct lan966x *lan966x = port->lan966x;
342 bond_mask = lan966x_lag_get_mask(lan966x, lag);
349 u32 lan966x_lag_get_mask(struct lan966x *lan966x, struct net_device *bond)
358 for (p = 0; p < lan966x->num_phys_ports; p++) {
359 port = lan966x->ports[p];