Lines Matching refs:lan966x
11 struct lan966x *lan966x = port->lan966x;
16 "Destination not an lan966x port");
22 if (lan966x->mirror_mask[ingress] & BIT(port->chip_port)) {
28 if (lan966x->mirror_monitor &&
29 lan966x->mirror_monitor != monitor_port) {
41 lan966x->mirror_mask[ingress] |= BIT(port->chip_port);
43 lan966x->mirror_monitor = monitor_port;
44 lan_wr(BIT(monitor_port->chip_port), lan966x, ANA_MIRRORPORTS);
49 lan966x, ANA_PORT_CFG(port->chip_port));
51 lan_wr(lan966x->mirror_mask[0], lan966x,
55 lan966x->mirror_count++;
69 struct lan966x *lan966x = port->lan966x;
71 if (!(lan966x->mirror_mask[ingress] & BIT(port->chip_port))) {
77 lan966x->mirror_mask[ingress] &= ~BIT(port->chip_port);
82 lan966x, ANA_PORT_CFG(port->chip_port));
84 lan_wr(lan966x->mirror_mask[0], lan966x,
88 lan966x->mirror_count--;
90 if (lan966x->mirror_count == 0) {
91 lan966x->mirror_monitor = NULL;
92 lan_wr(0, lan966x, ANA_MIRRORPORTS);