Lines Matching refs:port_mask
128 fdb->port_mask = FIELD_GET(QCA8K_ATU_PORT_MASK, reg[1]); in qca8k_fdb_read()
140 static void qca8k_fdb_write(struct qca8k_priv *priv, u16 vid, u8 port_mask, in qca8k_fdb_write() argument
150 reg[1] = FIELD_PREP(QCA8K_ATU_PORT_MASK, port_mask); in qca8k_fdb_write()
205 qca8k_fdb_write(priv, fdb->vid, fdb->port_mask, fdb->mac, fdb->aging); in qca8k_fdb_next()
214 u16 port_mask, u16 vid, u8 aging) in qca8k_fdb_add() argument
219 qca8k_fdb_write(priv, vid, port_mask, mac, aging); in qca8k_fdb_add()
227 u16 port_mask, u16 vid) in qca8k_fdb_del() argument
232 qca8k_fdb_write(priv, vid, port_mask, mac, 0); in qca8k_fdb_del()
246 static int qca8k_fdb_search_and_insert(struct qca8k_priv *priv, u8 port_mask, in qca8k_fdb_search_and_insert() argument
271 fdb.port_mask |= port_mask; in qca8k_fdb_search_and_insert()
273 qca8k_fdb_write(priv, vid, fdb.port_mask, mac, fdb.aging); in qca8k_fdb_search_and_insert()
281 static int qca8k_fdb_search_and_del(struct qca8k_priv *priv, u8 port_mask, in qca8k_fdb_search_and_del() argument
305 if (fdb.port_mask == port_mask) in qca8k_fdb_search_and_del()
309 fdb.port_mask &= ~port_mask; in qca8k_fdb_search_and_del()
311 qca8k_fdb_write(priv, vid, fdb.port_mask, mac, fdb.aging); in qca8k_fdb_search_and_del()
596 int port_mask, cpu_port; in qca8k_port_bridge_join() local
600 port_mask = BIT(cpu_port); in qca8k_port_bridge_join()
616 port_mask |= BIT(i); in qca8k_port_bridge_join()
621 QCA8K_PORT_LOOKUP_MEMBER, port_mask); in qca8k_port_bridge_join()
749 u16 port_mask, u16 vid) in qca8k_port_fdb_insert() argument
755 return qca8k_fdb_add(priv, addr, port_mask, vid, in qca8k_port_fdb_insert()
764 u16 port_mask = BIT(port); in qca8k_port_fdb_add() local
766 return qca8k_port_fdb_insert(priv, addr, port_mask, vid); in qca8k_port_fdb_add()
774 u16 port_mask = BIT(port); in qca8k_port_fdb_del() local
779 return qca8k_fdb_del(priv, addr, port_mask, vid); in qca8k_port_fdb_del()