Lines Matching full:ports
11 u16 ports; member
18 u16 ports; member
97 mac[1] = mdb_entry->ports >> 8; in lan966x_mdb_encode_mac()
98 mac[2] = mdb_entry->ports & 0xff; in lan966x_mdb_encode_mac()
100 mac[0] = mdb_entry->ports >> 8; in lan966x_mdb_encode_mac()
101 mac[1] = mdb_entry->ports & 0xff; in lan966x_mdb_encode_mac()
128 mdb_entry->ports |= BIT(port->chip_port); in lan966x_mdb_ip_add()
148 u16 ports; in lan966x_mdb_ip_del() local
154 ports = mdb_entry->ports; in lan966x_mdb_ip_del()
163 ports &= ~BIT(port->chip_port); in lan966x_mdb_ip_del()
169 mdb_entry->ports = ports; in lan966x_mdb_ip_del()
171 if (!mdb_entry->ports && !mdb_entry->cpu_copy) { in lan966x_mdb_ip_del()
183 lan966x_pgid_entry_add(struct lan966x *lan966x, int index, u16 ports) in lan966x_pgid_entry_add() argument
191 pgid_entry->ports = ports; in lan966x_pgid_entry_add()
207 /* Try to find an existing pgid that uses the same ports as the in lan966x_pgid_entry_get()
211 if (pgid_entry->ports == mdb_entry->ports) { in lan966x_pgid_entry_get()
232 mdb_entry->ports); in lan966x_pgid_entry_get()
270 mdb_entry->ports |= BIT(CPU_PORT); in lan966x_mdb_l2_add()
273 mdb_entry->ports |= BIT(port->chip_port); in lan966x_mdb_l2_add()
287 mdb_entry->ports &= BIT(CPU_PORT); in lan966x_mdb_l2_add()
289 lan_rmw(ANA_PGID_PGID_SET(mdb_entry->ports), in lan966x_mdb_l2_add()
306 u16 ports; in lan966x_mdb_l2_del() local
312 ports = mdb_entry->ports; in lan966x_mdb_l2_del()
321 ports &= ~BIT(CPU_PORT); in lan966x_mdb_l2_del()
323 ports &= ~BIT(port->chip_port); in lan966x_mdb_l2_del()
330 mdb_entry->ports = ports; in lan966x_mdb_l2_del()
332 if (!mdb_entry->ports) { in lan966x_mdb_l2_del()
346 lan_rmw(ANA_PGID_PGID_SET(mdb_entry->ports), in lan966x_mdb_l2_del()
420 mdb_entry->ports |= BIT(CPU_PORT); in lan966x_mdb_l2_cpu_copy()
428 lan_rmw(ANA_PGID_PGID_SET(mdb_entry->ports), in lan966x_mdb_l2_cpu_copy()
475 mdb_entry->ports &= ~BIT(CPU_PORT); in lan966x_mdb_l2_cpu_remove()
483 lan_rmw(ANA_PGID_PGID_SET(mdb_entry->ports), in lan966x_mdb_l2_cpu_remove()